/* Slider Wrapper Container */
.slider-wrapper {
    position: relative;
    max-width: 1235px;
    width: 100%;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

/* Style 1: Modern Horizontal Card */
.card-style-1 {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    min-width: 320px;
    max-width: 340px;
    flex: 0 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.card-style-1:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Image Box Fixed Size — flush left, no gap */
.card-style-1 .img-box {
    width: 150px;
    min-width: 150px;
    height: 150px;
    align-self: stretch;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.card-style-1 .img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
}

.card-style-1 .img-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Content Text Layout */
.card-style-1 .content-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-style-1 h3 {
    margin: 0 0 6px 0;
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-style-1 p {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 10;
    color: #334155;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #f8fafc;
    color: #000;
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* Photo Gallery — all images, 3 per page desktop; 1 per page mobile */
.photo-gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
}
.photo-gallery-viewport {
    width: 100%;
    overflow: hidden;
}
.photo-gallery-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}
.photo-gallery-page {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    box-sizing: border-box;
}
.photo-gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}
.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 10;
    color: #334155;
}
.photo-gallery-nav:hover {
    background: #f8fafc;
    color: #000;
}
.photo-gallery-nav.prev { left: -8px; }
.photo-gallery-nav.next { right: -8px; }
.photo-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.photo-gallery-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
}
.photo-gallery-dots button.active {
    background: #334155;
}

/* Related businesses section */
.related-businesses {
    max-width: 1235px;
    width: 100%;
    margin: 0px auto 60px;
    box-sizing: border-box;
}
.related-businesses a.card-style-1 {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.photo-gallery-mobile { display: none; }
.photo-gallery-desktop { display: block; }

/* ≤3 photos: static grid, no carousel */
.photo-gallery-static .photo-gallery-viewport {
    overflow: visible;
}
.photo-gallery-static .photo-gallery-track {
    display: block;
    transform: none !important;
}
.photo-gallery-static .photo-gallery-page {
    flex: none;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.photo-gallery-static.photo-gallery-cols-1 .photo-gallery-page {
    grid-template-columns: 1fr;
    max-width: 420px;
}
.photo-gallery-static.photo-gallery-cols-2 .photo-gallery-page {
    grid-template-columns: repeat(2, 1fr);
    max-width: 840px;
}

/* Related ≤3: desktop static; mobile still carousel */
.slider-wrapper.no-carousel .nav-btn {
    display: none;
}
.slider-wrapper.no-carousel .slider-container {
    overflow: visible;
    flex-wrap: wrap;
}

.business-facilities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}
.business-facilities li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.business-facilities li::before {
    content: "✓";
    flex-shrink: 0;
    color: #2e7d32;
    font-weight: 700;
}
.mr-spotlight-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #1A206D;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    box-sizing: border-box;
}

.mr-spotlight-logo {
    flex: 0 0 280px;
    width: 280px;
    min-height: 160px;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f1f5f9;
    align-self: stretch;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.mr-spotlight-logo iframe {
    width: 100%;
    height: 100%;
    min-height: 160px;
    border: 0;
    display: block;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.mr-spotlight-logo img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    display: block;
}

.mr-spotlight-content {
    flex: 1;
    min-width: 0;
    padding: 22px 18px;
}

.mr-spotlight-label {
    margin-bottom: 8px;
    color: #1A206D;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mr-spotlight-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.mr-spotlight-title {
    margin: 0;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}

/* MR Verified tick */
.mr-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid #b8e8ca;
    border-radius: 50px;
    background: #e8f7ee;
    color: #00863f;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.mr-verified-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00a551;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

/* Official Mauritius Trust Badge image */
.mr-trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: 2px;
}

.mr-trust-badge img {
    display: block;
    width: 150px;
    object-fit: contain;
}

.mr-spotlight-address {
    margin: 0 0 8px;
    line-height: 1.6;
}

.mr-spotlight-description {
    margin: 0;
    line-height: 1.7;
}

.mr-spotlight-action {
    flex: 0 0 auto;
    padding: 22px 22px 22px 0;
    display: flex;
    align-items: center;
}

.mr-spotlight-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 19px;
    border: 2px solid #1A206D;
    border-radius: 6px;
    background: #1A206D;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s ease;
}

.location-icon {
    width: 14px;
    height: 14px;
    color: #EA4335;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .mr-spotlight-card {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        display: block;
        gap: 0;
        padding: 0;
    }

    .mr-spotlight-logo {
        width: 100%;
        min-height: 100%;
        flex: none;
    }

    .mr-spotlight-content {
        padding: 14px 12px;
    }

    .mr-spotlight-action {
        padding: 0 12px 14px;
    }

    .mr-spotlight-title {
        font-size: 19px;
    }

    .mr-spotlight-title-row {
        gap: 7px;
    }

    .mr-verified-badge {
        font-size: 10px;
        padding: 4px 7px;
    }

    .mr-trust-badge img {
        width: 120px;
    }

    .mr-spotlight-address {
        font-size: 12px;
    }

    .mr-spotlight-description {
        font-size: 13px;
    }

    .mr-spotlight-action {
        grid-column: 1 / -1;
    }

    .mr-spotlight-button {
        width: 100%;
    }
    .related-businesses {
        padding: 30px 12px 0px;
    }
    .location-banner, .business-container {
        padding: 30px 12px 0px;
    }
    .related-businesses {
        margin: 0px auto 10px;
    }
    .extra-bottom-padding {
        padding-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .business-facilities {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        padding: 0;
        overflow: hidden;
    }
    .slider-container {
        gap: 0;
        padding: 10px 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .nav-btn {
        display: flex;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .prev-btn { left: 4px; }
    .next-btn { right: 4px; }

    /* Related: vertical card — image on top, content below; one at a time */
    .card-style-1 {
        flex-direction: column;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        flex: 0 0 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .card-style-1 .img-box {
        width: 100%;
        min-width: 100%;
        height: 200px;
        border-radius: 0;
        align-self: stretch;
    }
    .card-style-1 .img-box img {
        object-fit: cover;
        mix-blend-mode: normal;
    }
    .card-style-1 .content-box {
        padding: 14px 16px 18px;
        justify-content: flex-start;
    }
    .card-style-1 h3 {
        font-size: 1.6rem;
    }
    .card-style-1 p {
        -webkit-line-clamp: 3;
    }

    /* Photo gallery: one image at a time */
    .photo-gallery-desktop { display: none; }
    .photo-gallery-mobile { display: block; }
    .photo-gallery-static { display: none; }
    .photo-gallery-page {
        grid-template-columns: 1fr;
    }
    .photo-gallery-nav.prev { left: 4px; }
    .photo-gallery-nav.next { right: 4px; }
    .photo-gallery-item {
        aspect-ratio: 16 / 10;
    }

    /* Related ≤3: still carousel on mobile */
    .slider-wrapper.no-carousel .nav-btn {
        display: flex;
    }
    .slider-wrapper.no-carousel .slider-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
}