* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    border-bottom: 4px solid #e74c3c;
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.section-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #222;
    border-left: 5px solid #e74c3c;
    padding-left: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.car-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.car-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.car-info {
    padding: 1.2rem;
}

.car-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.car-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.car-info .price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Rodapé */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 1rem 1rem 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3, .footer-map h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #e74c3c;
    display: inline-block;
    padding-bottom: 4px;
}

.footer-info p {
    margin-bottom: 0.8rem;
    color: #bbb;
}

.footer-info a {
    color: #bbb;
    text-decoration: none;
}

.footer-info a:hover {
    color: white;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 15px;
}

.social-icons a {
    background: #333;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.social-icons a:hover {
    background: #e74c3c;
}

.map-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    color: #777;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #555;
}

.close-btn:hover {
    color: #000;
}

.gallery img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    padding-bottom: 5px;
}

.thumbnails img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnails img:hover {
    border-color: #e74c3c;
}

.car-details-info p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.price-highlight {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: bold;
}

.modal-cta {
    margin-top: 1.5rem;
}

.btn-contact {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-contact:hover {
    background-color: #219653;
}
