/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-title {
    position: relative;
    color: white;
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    width: 100%;
    padding: 0 1rem;
}

.hero-subtitle {
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: -2rem;
    text-align: center;
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollIndicator 2s infinite;
}

/* Rooms Section */
.rooms-section {
    padding: 5rem 2rem 2rem;
    background: #f9f9f9;
    width: 100%;
}

.rooms-section > h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.floor-section {
    margin-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.floor-section:last-child {
    margin-bottom: 0;
}

.floor-section h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 500;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

.room-tile {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
    height: 100%;
    cursor: pointer;
}

.room-tile:hover {
    transform: translateY(-5px);
}

.room-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.room-tile .image-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.room-tile .carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.room-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.room-info h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Amenities Section */
.amenities-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.amenities-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: #2c3e50;
    opacity: 0.3;
    margin: 0 auto 4rem;
    border: none;
}

.rooms-section .section-divider {
    margin-bottom: 2rem;
}

.contact-info .section-divider {
    margin: 0 0 2rem 0;
}

/* Elegant Separator Styles */
.elegant-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    max-width: 300px;
    gap: 0rem;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2c3e50, transparent);
    opacity: 0.4;
}

.separator-ornament {
    font-size: 1.2rem;
    color: #2c3e50;
    opacity: 0.6;
    font-family: 'Cormorant Garamond', serif;
}

.sylt-logo {
    height: 80px;
    width: 80px;
    opacity: 0.6;
    filter: grayscale(100%) brightness(0.5);
    display: block;
}

@media (max-width: 768px) {
    .elegant-separator {
        margin: 1rem auto;
        gap: 0rem;
    }
    
    .separator-ornament {
        font-size: 1rem;
    }
    
    .sylt-logo {
        height: 60px;
        width: 60px;
    }
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
}

.amenity-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.card-content {
    padding: 2rem;
}

.amenity-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.amenity-details {
    display: grid;
    gap: 1rem;
}

.detail-item {
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.detail-item:hover {
    background: rgba(52, 152, 219, 0.03);
    border-left: 2px solid #3498db;
    padding-left: 1rem;
}

.detail-label {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Location Section */
.location-section {
    padding: 5rem 2rem;
    background: white;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info {
    padding: 0 2rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info .section-divider {
    margin: 0 0 2rem 0;
}

address {
    font-style: normal;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    font-size: 1.1rem;
    line-height: 1.8;
}

.booking-header {
    margin-top: 3rem !important;
}

.booking-link {
    margin-top: 1rem;
}

.booking-link a {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.booking-link a:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollIndicator {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        margin-top: -1rem;
        padding: 0 1rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }

    .rooms-section {
        padding: 3rem 1rem;
    }

    .location-section {
        padding: 3rem 1rem;
    }

    .amenities-section {
        padding: 4rem 1rem;
    }
    
    .amenities-grid {
        gap: 2rem;
        padding: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }

    .floor-section {
        margin-bottom: 2rem;
    }

    .section-divider {
        margin-bottom: 3rem;
    }
    
    .rooms-section .section-divider {
        margin-bottom: 1.5rem;
    }
    
    .contact-info .section-divider {
        margin-bottom: 1.5rem;
    }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    z-index: 1000;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.8;
}

.main-nav.dark {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav.dark a {
    color: #333;
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
    }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.flag-icon {
    width: 30px;
    height: 20px;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-repeat: no-repeat;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-images img.active {
    opacity: 1;
}

    .carousel-dots {
        position: absolute;
        top: 15px;
        right: 12px;
        display: flex;
        gap: 8px;
        z-index: 2;
        max-width: calc(100vw - 24px);
    }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 24px;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-arrow.prev {
    left: 10px;
}

    .carousel-arrow.next {
        right: 8px; /* slight inset to avoid cropping */
    }

@media (max-width: 768px) {
    .carousel-arrow {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .carousel-arrow.prev {
        left: 6px;
    }
    
    .carousel-arrow.next {
        right: 6px;
    }
}

.sound-toggle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sound-icon {
    font-size: 18px;
    color: white;
}

.villa-intro {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
}

.intro-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.intro-carousel .image-carousel {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.intro-carousel .carousel-images {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.intro-carousel .carousel-images img {
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.villa-description {
    text-align: left;
    padding: 0;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.text-carousel {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.text-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.text-content {
    flex: 0 1 560px; /* a bit narrower */
    max-width: 560px;
    min-height: 360px; /* a bit taller */
    position: relative;
    overflow: hidden;
    z-index: 5;
    margin: 10px auto 0; /* nudge down and center between arrows */
    display: flex;            /* center track vertically */
    align-items: center;      /* center track vertically */
}

/* Track-based slider for robust, conflict-free sliding */
.text-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}

.text-paragraph {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    opacity: 1;
    display: grid;           /* robust vertical centering for multi-block content */
    align-content: center;   /* vertical centering of content block */
    justify-items: start;    /* keep text left-aligned */
}

/* Ensure inner content uses full width but remains left-aligned */
.text-paragraph > * {
    width: 100%;
}

.villa-description p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
    position: relative;
}

.villa-description ul {
    margin: 1rem 0;
    padding-left: 1.5em;
    list-style-position: outside;
}

.villa-description li {
    margin: 0.5rem 0;
    padding-left: 0;
}

.text-arrow {
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.text-arrow:hover {
    color: #333;
}

.text-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.text-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-dot.active {
    background: #666;
    transform: scale(1.2);
}

.villa-description p::before,
.villa-description p::after {
    display: none;
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100vw;    /* prevent overflow */
        overflow-x: hidden; /* clip any child overflow */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .villa-intro {
        padding: 4rem 1rem;
    }

    .villa-description p {
        font-size: 1.2rem;
        line-height: 1.6;
    }
}

.drone-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.drone-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.drone-gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .drone-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }

    .drone-gallery img {
        height: 250px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .amenities-section {
        background: linear-gradient(to bottom, #1a1a1a, #2d2d2d);
    }
    
    .amenity-card {
        background: rgba(45, 45, 45, 0.9);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .section-title,
    .amenity-card h3 {
        color: #ffffff;
    }
    
    .detail-label {
        color: #e0e0e0;
    }
    
    .detail-item:hover {
        background: rgba(52, 152, 219, 0.05);
    }

    .section-divider {
        background: #ffffff;
        opacity: 0.2;
    }
}

/* Booking Section */
.booking-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.booking-content {
    margin-top: 2rem;
}

.booking-description {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Cormorant Garamond', serif;
}

.booking-link {
    margin-top: 2rem;
}

.booking-link a {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.booking-link a:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .booking-section,
    .contact-section {
        padding: 3rem 1rem;
    }

    .booking-description {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .booking-section {
        background: linear-gradient(to bottom, #1a1a1a, #2d2d2d);
    }

    .booking-description {
        color: #e0e0e0;
    }
}

/* Fullscreen Modal Styles */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 120px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    line-height: 1;
}

.modal-image-container {
    width: 100%;
    height: calc(100% - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 100px;
    position: relative;
    z-index: 1;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 20px;
    line-height: 1;
    transition: all 0.3s ease;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .modal-content {
        padding-bottom: 100px;
    }
    
    .modal-image-container {
        height: calc(100% - 100px);
        padding: 20px 60px;
    }
    
    .modal-prev,
    .modal-next {
        width: 44px;
        height: 44px;
        font-size: 32px;
        padding: 10px;
        touch-action: manipulation;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    
    .modal-prev {
        left: 5px;
    }
    
    .modal-next {
        right: 5px;
    }

    .modal-title {
        bottom: 60px;
        font-size: 1.4rem;
        max-width: 90%;
        padding: 8px 16px;
    }
    
    .modal-navigation {
        bottom: 10px;
        gap: 10px;
        padding: 0 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .floor-nav {
        flex-shrink: 0;
        display: none; /* Hide all floor navs by default */
        position: relative;
    }

    .floor-nav.active {
        display: flex; /* Show only active floor */
    }

    /* Add indicators for adjacent floors */
    .floor-nav.active::before,
    .floor-nav.active::after {
        content: '';
        position: absolute;
        top: 4px; /* Align with dots */
        width: 20px;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

    .floor-nav.active::before {
        left: -30px;
    }

    .floor-nav.active::after {
        right: -30px;
    }

    /* Hide indicators if it's the first or last floor */
    .floor-nav.active[data-floor="welcome"]::before,
    .floor-nav.active[data-floor="outdoors"]::after {
        display: none;
    }

    .nav-items {
        gap: 4px;
        justify-content: center;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .floor-line {
        display: none; /* Hide lines on mobile */
    }

    .floor-label {
        display: block; /* Show label on mobile */
        font-size: 0.8rem;
        color: white;
        margin-top: 8px;
        text-transform: capitalize;
    }
}

/* Prevent touch events from propagating to the page */
.modal-prev,
.modal-next {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.modal-title {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    max-width: 80%;
    padding: 10px 20px;
    text-align: center;
}

.modal-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
    justify-content: center;
}

.floor-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-items {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-dot-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-spacer {
    width: 20px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.floor-line {
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.floor-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.floor-nav.active .floor-label {
    color: white;
}

.floor-nav.active .floor-line {
    background-color: white;
}

@media (max-width: 768px) {
    .modal-content {
        padding-bottom: 100px;
    }
    
    .modal-image-container {
        height: calc(100% - 100px);
    }
    
    .modal-title {
        bottom: 60px;
        font-size: 1.4rem;
        max-width: 90%;
        padding: 8px 16px;
    }
    
    .modal-navigation {
        bottom: 10px;
        gap: 10px;
        padding: 0 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .floor-nav {
        flex-shrink: 0;
        display: none; /* Hide all floor navs by default */
        position: relative;
    }

    .floor-nav.active {
        display: flex; /* Show only active floor */
    }

    /* Add indicators for adjacent floors */
    .floor-nav.active::before,
    .floor-nav.active::after {
        content: '';
        position: absolute;
        top: 4px; /* Align with dots */
        width: 20px;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

    .floor-nav.active::before {
        left: -30px;
    }

    .floor-nav.active::after {
        right: -30px;
    }

    /* Hide indicators if it's the first or last floor */
    .floor-nav.active[data-floor="welcome"]::before,
    .floor-nav.active[data-floor="outdoors"]::after {
        display: none;
    }

    .nav-items {
        gap: 4px;
        justify-content: center;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .floor-line {
        display: none; /* Hide lines on mobile */
    }

    .floor-label {
        display: block; /* Show label on mobile */
        font-size: 0.8rem;
        color: white;
        margin-top: 8px;
        text-transform: capitalize;
    }
}

/* Hide the original carousel controls when modal is active */
.fullscreen-modal.active ~ .room-tile .carousel-arrow,
.fullscreen-modal.active ~ .room-tile .carousel-dots {
    display: none;
} 