:root {
    --swiper-navigation-size: 16px;
    --swiper-theme-color: #3b3c3d;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Roboto, sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    background-color: #eaeaea;
}

header, footer {
    background: #004080;
    color: white;
    text-align: center;
    padding: 1em;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.phone {
    color: #c18ef8;
    font-size: 18px;
    font-weight: 600;
}

.map {
    width: 100%;
}

.card {
    border: 1px solid #ccc;
    background-color: white;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    min-width: 0; /* ✅ Prevent overflow in grid cell */
}

.card h2 {
    margin-top: 0;
}

.card img {
    max-width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
}

.price {
    font-size: 1.2em;
    color: green;
}

form input, form button {
    padding: 10px;
    margin: 5px 0;
    width: 100%;
}

.card-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr; /* Mobile: 1 card per row */
}

/* Tablet: 2 cards per row */
@media (min-width: 600px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 cards per row */
@media (min-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*!* Ensure swiper stays within the card *!*/
.card .swiper {
    width: 100%;
    max-width: 100%;
}

.swiper-button-prev,
.swiper-button-next {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.7);
}