/* VILLAS STYLES */

:root {
    --onyx: #0a0908;
    --onyx-mid: #141210;
    --onyx-sur: #1c1917;
    --gold: #c9a84c;
    --gold-lt: #dfc078;
    --stone: #F9F5EE;
    --muted: #7a7068;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--onyx);
    color: var(--stone);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* GRAIN */
.grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    mix-blend-mode: overlay;
    opacity: 0.3;
}

/* CURSOR */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width .3s, height .3s, border-color .3s, opacity .3s;
    mix-blend-mode: exclusion;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

body.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 76, 0.1);
}

@media (max-width: 1024px) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* TYPOGRAPHY */
.font-display {
    font-family: var(--font-display);
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-weight: 800;
    font-size: 0.65rem;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* ANIMATIONS */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1);
}

.reveal-up.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: none;
}

/* BUTTONS */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--gold);
    color: var(--onyx);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.25);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-gold:hover {
    background-color: var(--gold-lt);
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(201, 168, 76, 0.35);
}

/* CARDS */
.luxury-card {
    background: var(--onyx-sur);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s ease;
}

.luxury-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* UTILITIES */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.text-gold {
    color: var(--gold);
}

.bg-onyx-mid {
    background-color: var(--onyx-mid);
}

.bg-onyx-sur {
    background-color: var(--onyx-sur);
}

/* BARS ANIMATION */
.bar-fill {
    height: 4px;
    /* Visible base line */
    transition: height 1.8s cubic-bezier(.16, 1, .3, 1);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--onyx);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* HEADER SCROLL */
#siteHeader {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#siteHeader.scrolled {
    background: rgba(10, 9, 8, 0.9);
    backdrop-filter: blur(20px);
    height: 90px !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

#siteHeader.scrolled .nav-link {
    color: var(--stone);
}

@keyframes subtleZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-bg {
    animation: subtleZoom 25s infinite alternate ease-in-out;
}

/* LUXURY CARD */
.luxury-card {
    cursor: pointer;
    position: relative;
}

/* ══════════════════════════════════
   VILLA DETAIL OVERLAY
   ══════════════════════════════════ */
.villa-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.4s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

.villa-detail-overlay.active {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    pointer-events: all;
}

.villa-detail-panel {
    background: var(--onyx-sur);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-bottom: none;
    border-radius: 2rem 2rem 0 0;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(.16, 1, .3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.villa-detail-overlay.active .villa-detail-panel {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .villa-detail-overlay {
        align-items: center;
    }

    .villa-detail-panel {
        border-radius: 2rem;
        border-bottom: 1px solid rgba(201, 168, 76, 0.12);
        max-height: 85vh;
        padding: 3rem;
    }
}

/* CLOSE BUTTON */
.villa-detail-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--stone);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.villa-detail-close:hover {
    background: var(--gold);
    color: var(--onyx);
    border-color: var(--gold);
    transform: rotate(90deg);
}

/* HEADER */
.villa-detail-header {
    margin-bottom: 2rem;
    padding-right: 3rem;
}

.villa-detail-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.villa-detail-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.villa-detail-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(249, 245, 238, 0.45);
    font-weight: 300;
}

/* STATS */
.villa-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .villa-detail-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.villa-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s;
}

.villa-stat:hover {
    border-color: rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.04);
}

.villa-stat .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--gold);
}

.villa-stat div {
    display: flex;
    flex-direction: column;
}

.villa-stat strong {
    font-size: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.villa-stat span:last-child {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(249, 245, 238, 0.3);
}

/* TABS */
.villa-detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.villa-tab {
    padding: 0.85rem 1.5rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(249, 245, 238, 0.3);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.villa-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.16, 1, .3, 1);
}

.villa-tab:hover {
    color: var(--stone);
}

.villa-tab.active {
    color: var(--gold);
}

.villa-tab.active::after {
    transform: scaleX(1);
}

/* TAB CONTENT */
.villa-tab-content {
    display: none;
    animation: fadeSlideUp 0.4s ease forwards;
}

.villa-tab-content.active {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SURFACES */
.villa-surfaces {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.villa-surface-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.villa-surface-row span:first-child {
    color: rgba(249, 245, 238, 0.5);
    font-weight: 400;
    white-space: nowrap;
}

.villa-surface-line {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 4px, transparent 4px, transparent 8px);
}

.villa-surface-row strong {
    font-family: var(--font-display);
    color: var(--gold);
    white-space: nowrap;
}

/* EXTRAS */
.villa-extras {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.villa-extra-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.villa-extra-item .material-symbols-outlined {
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.villa-extra-item strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.villa-extra-item p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(249, 245, 238, 0.4);
    font-weight: 300;
}

/* MATERIALS */
.villa-materials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.villa-material-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    transition: all 0.4s;
}

.villa-material-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.04);
    transform: translateY(-4px);
}

.villa-material-card .material-symbols-outlined {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}

.villa-material-card h4 {
    font-size: 0.95rem;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.villa-material-card p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(249, 245, 238, 0.35);
    font-weight: 300;
}

@media (max-width: 480px) {
    .villa-materials-grid {
        grid-template-columns: 1fr;
    }
}

/* ROOMS */
.villa-rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .villa-rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.villa-room-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
    animation: fadeSlideUp 0.4s ease both;
}

.villa-room-item:hover {
    border-color: rgba(201, 168, 76, 0.15);
    background: rgba(201, 168, 76, 0.03);
}

.villa-room-num {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 1.5rem;
}

.villa-room-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(249, 245, 238, 0.6);
    line-height: 1.3;
}

/* CTA */
.villa-detail-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
    .villa-detail-cta {
        flex-direction: row;
        justify-content: space-between;
    }
}

.villa-delivery {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(249, 245, 238, 0.35);
}

.villa-delivery .material-symbols-outlined {
    font-size: 1.2rem;
    color: var(--gold);
}

.villa-detail-btn {
    font-size: 0.7rem !important;
    padding: 1rem 2rem !important;
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 9, 8, 0.98);
    backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

#lightbox.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

#lightbox-img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 1.5rem;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 40px;
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    width: 70px;
    height: 70px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#lightbox.is-gallery .lightbox-nav {
    display: flex;
}

.lightbox-nav:hover {
    background: var(--gold);
    color: var(--onyx);
    border-color: var(--gold);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    z-index: 30;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-caption {
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.lightbox-caption h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption p {
    font-size: 0.7rem;
    color: white;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-weight: 800;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }

    .lightbox-caption h3 {
        font-size: 1.75rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}