/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image,
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-image img,
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image::after,
.hero-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 29, 40, 0.3) 0%, rgba(26, 29, 40, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    text-shadow: 3px 5px 15px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.5);
    padding-bottom: 1rem;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #d4af37;
    font-size: 2.5rem;
    text-decoration: none;
    animation: bounce 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

.scroll-arrow:hover {
    color: #fff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: #f4f1ed;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.about-intro {
    font-size: 1.75rem;
    color: #2d2d2d;
    line-height: 1.9;
    font-weight: 300;
    font-style: italic;
    margin: 0;
}

.about-intro::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #d4af37;
    line-height: 0;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.about-intro::after {
    content: '"';
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #d4af37;
    line-height: 0;
    vertical-align: middle;
    margin-left: 0.25rem;
}

/* Accommodation Section */
.accommodation-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #1a1d28 0%, #252836 100%);
}

.accommodation-container {
    max-width: 1100px;
    margin: 0 auto;
}

.accommodation-container h2 {
    text-align: center;
    color: #d4af37;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.accommodation-desc {
    text-align: center;
    color: #a8a5a0;
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.amenity-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 2rem;
}

.amenity-group h3 {
    color: #d4af37;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.amenity-group h3 i {
    font-size: 1.5rem;
}

.amenity-group ul {
    list-style: none;
}

.amenity-group li {
    color: #e8e6e3;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.amenity-group li i {
    color: #d4af37;
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 2rem;
    background: #f4f1ed;
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-container h2 {
    text-align: center;
    color: #2d2d2d;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.pricing-single {
    display: flex;
    justify-content: center;
}

.price-card {
    background: linear-gradient(180deg, #1a1d28 0%, #252836 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    max-width: 500px;
}

.price-card.featured {
    border-color: #d4af37;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: #d4af37;
}

.price-header h3 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: #a8a5a0;
}

.price-card p {
    color: #a8a5a0;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
}

.price-extras {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.price-extras span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #a8a5a0;
    font-size: 0.95rem;
}

.price-extras i {
    color: #d4af37;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #1a1d28 0%, #252836 100%);
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-container h2 {
    text-align: center;
    color: #d4af37;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Gallery Main Layout */
.gallery-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-display {
    flex: 1;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-display:has(.grid-view.active) {
    aspect-ratio: unset;
    overflow: visible;
}

.gallery-prev,
.gallery-next {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Only apply hover on devices that support it (not touch) */
@media (hover: hover) {
    .gallery-prev:hover,
    .gallery-next:hover {
        background: #d4af37;
        color: #1a1d28;
    }
}

/* Active state for touch feedback */
.gallery-prev:active,
.gallery-next:active {
    background: #d4af37;
    color: #1a1d28;
}

/* Slideshow View */
.slideshow-view {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-view img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.25s ease;
    border-radius: 12px;
    /* Prevent any image ghosting/stacking */
    will-change: opacity;
    backface-visibility: hidden;
}

.slideshow-view img.fading {
    opacity: 0;
}

.slideshow-view.hidden {
    display: none;
}

/* Grid View */
.grid-view {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.grid-view.active {
    display: grid;
}

.grid-view.fading {
    opacity: 0;
}

.grid-view-item {
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
}

.grid-view-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.grid-view-item:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.grid-view-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-view-item:hover img {
    transform: scale(1.05);
}

/* Thumbnail Strip */
.thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #1a1d28;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: #1a1d28;
    border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border-color: #d4af37;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-strip.hidden {
    display: none;
}

/* View Toggle */
.gallery-view-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.view-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #a8a5a0;
    font-size: 1.25rem;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn:hover {
    color: #d4af37;
    border-color: #d4af37;
}

.view-toggle-btn.active {
    background: #d4af37;
    color: #1a1d28;
    border-color: #d4af37;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: #f4f1ed;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    color: #2d2d2d;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #2d2d2d;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #d4af37;
}

.contact-item i {
    font-size: 1.75rem;
    color: #d4af37;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-intro {
        font-size: 1.2rem;
    }

    .about-intro::before,
    .about-intro::after {
        font-size: 2.25rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price-card {
        padding: 2rem 1.5rem;
    }

    /* Mobile gallery - image first, buttons below side by side */
    .gallery-main {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .gallery-display {
        width: 100%;
        aspect-ratio: 4/3;
        flex: none;
        overflow: hidden;
        order: -1; /* Display first */
        margin-bottom: 0.5rem;
    }

    .gallery-prev,
    .gallery-next {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Keep buttons side by side with gap */
    .gallery-prev {
        margin-right: 0.5rem;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    /* When grid is active, let it determine its own height */
    .gallery-display:has(.grid-view.active) {
        aspect-ratio: unset;
        height: auto;
        overflow: visible;
    }

    .grid-view {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 0.75rem;
        height: auto !important;
        overflow: visible;
    }

    .grid-view-item {
        aspect-ratio: 4/3;
    }

    .grid-view-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 3rem 1rem;
    }

    .gallery-display {
        aspect-ratio: 1/1;
    }

    .gallery-prev,
    .gallery-next {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .thumbnail {
        width: 50px;
        height: 38px;
    }
}