:root {
    --gold: #d9b46f;
    --gold-light: #f2d89b;
    --dark: #061018;
    --dark-2: #0b1720;
    --glass: rgba(8, 18, 28, 0.68);
    --glass-strong: rgba(5, 12, 18, 0.84);
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --border: rgba(255, 255, 255, 0.16);
    --success: #86efac;
    --danger: #fecaca;
    --warning: #fde68a;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    background: radial-gradient(circle at top left, #12314a 0, var(--dark) 34rem);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

a {
    color: inherit;
}

code {
    padding: .18rem .36rem;
    border-radius: .5rem;
    color: var(--gold-light);
    background: rgba(255, 255, 255, .08);
}

/* Background video */
.video-background,
.video-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.video-background {
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #06223b, #080f16);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .52;
}

.video-overlay {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(2, 10, 16, .72) 0%, rgba(3, 16, 26, .30) 48%, rgba(2, 10, 16, .86) 100%),
        radial-gradient(circle at 20% 20%, rgba(217, 180, 111, .18), transparent 32rem);
}

.page-content,
.navbar,
.footer,
.floating-whatsapp {
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    padding: 1.25rem 7vw;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(3, 10, 16, .86), rgba(3, 10, 16, .36));
    backdrop-filter: blur(16px);
}

.navbar.compact {
    position: sticky;
}

.brand {
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.brand span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-links a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-whatsapp {
    padding: .7rem 1rem;
    border: 1px solid rgba(217, 180, 111, .75);
    border-radius: 999px;
    color: var(--gold-light) !important;
}

/* Layout */
section {
    padding: 6.8rem 7vw;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr);
    align-items: center;
    gap: 3rem;
    padding-top: 9rem;
}

.hero-copy {
    max-width: 58rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--gold-light);
    letter-spacing: .20em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
}

h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(3.2rem, 8vw, 7.6rem);
    line-height: .94;
    text-shadow: 0 1rem 3rem rgba(0, 0, 0, .42);
}

.lead {
    max-width: 44rem;
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: clamp(1.06rem, 2vw, 1.32rem);
    line-height: 1.8;
}

.hero-actions,
.property-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.glass-panel {
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: var(--glass);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, .30);
    backdrop-filter: blur(18px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .45;
    transform: none;
}

.btn-primary {
    color: #1b1207;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-color: rgba(255, 255, 255, .22);
}

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    border-color: var(--border);
}

.full {
    width: 100%;
}

/* Forms */
.search-panel,
.booking-panel,
.checkout-card,
.contact-form,
.contact-info {
    padding: 2rem;
}

.panel-header h2,
.checkout-card h2 {
    margin: 0 0 1.4rem;
    font-size: 2.15rem;
}

label {
    display: grid;
    gap: .5rem;
    margin-bottom: .9rem;
    color: rgba(255, 255, 255, .72);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .03em;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: .95rem 1rem;
    color: var(--white);
    background: rgba(255, 255, 255, .10);
    outline: none;
    font: inherit;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, .5);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(217, 180, 111, .72);
    box-shadow: 0 0 0 .22rem rgba(217, 180, 111, .14);
    background-color: rgba(255, 255, 255, .13);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 3rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .06)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f2d89b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 1rem center;
    background-size: auto, 1.1rem;
}

select option {
    color: #ffffff;
    background: #0b1720;
}

select option:checked {
    color: #1b1207;
    background: #d9b46f;
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-note {
    color: rgba(255, 255, 255, .58);
    font-size: .86rem;
    line-height: 1.65;
}

/* Search form */
.gatein-search {
    max-width: 38rem;
}

.gatein-search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    margin-bottom: 1rem;
}

.gatein-search-grid > label {
    margin-bottom: 0;
}

.gatein-search-grid > label:first-child,
.gatein-search-grid > label:last-child,
.gatein-search-grid > .date-range-single {
    grid-column: span 2;
}

/* Single calendar date range */
.date-range-single {
    position: relative;
    min-height: 3.8rem;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
}

.booking-date-range {
    margin-bottom: .9rem;
}

.date-range-display {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: stretch;
    min-height: 3.8rem;
}

.date-range-display > div:not(.date-range-divider) {
    display: grid;
    align-content: center;
    gap: .22rem;
    padding: .65rem 1rem;
}

.date-range-display span {
    color: rgba(255, 255, 255, .62);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.date-range-display strong {
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
}

.date-range-divider {
    width: 1px;
    background: rgba(255, 255, 255, .16);
}

.date-range-picker-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.date-range-picker-input:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.flatpickr-calendar {
    overflow: hidden;
    border-radius: 1rem;
}

/* Section headers */
.section-header {
    max-width: 52rem;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4.35rem);
    line-height: 1;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.notice,
.empty-state,
.info-card {
    padding: 1.6rem;
    margin-bottom: 1.3rem;
}

.notice.error {
    border-color: rgba(254, 202, 202, .55);
    color: var(--danger);
}

.empty-state h3 {
    margin-top: 0;
    font-size: 1.75rem;
}

/* Property cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.property-card {
    overflow: hidden;
    border-radius: 2rem;
    transition: transform .2s ease, border-color .2s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 180, 111, .4);
}

.property-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

.property-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .62) 100%);
}

.property-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: .45rem .75rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .48);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.property-body {
    padding: 1.35rem;
}

.property-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.property-topline h3 {
    margin: 0;
    font-size: 1.7rem;
}

.property-topline span {
    color: var(--gold-light);
    white-space: nowrap;
    font-weight: 800;
}

.property-meta {
    color: var(--muted);
    line-height: 1.6;
}

.property-link {
    color: var(--gold-light);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.muted-link {
    color: rgba(255, 255, 255, .68);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.service-card {
    padding: 1.7rem;
}

.service-card span {
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: .16em;
}

.service-card h3 {
    margin: 1rem 0 .7rem;
    font-size: 1.6rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-info h3 {
    margin: 0 0 1rem;
    font-size: 2.3rem;
}

.contact-info p {
    color: var(--muted);
    line-height: 1.8;
}

.contact-list {
    display: grid;
    gap: 1rem;
    color: rgba(255, 255, 255, .82);
}

.contact-list strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--gold-light);
}

.contact-list a {
    text-decoration: none;
}

/* Room detail page */
.detail-page {
    background: var(--dark);
}

.detail-page .video-background,
.detail-page .video-overlay {
    display: none;
}

.detail-content {
    padding-top: 0;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .65fr);
    align-items: start;
    gap: 2rem;
    padding-top: 4.5rem;
}

.detail-hero.narrow {
    display: block;
}

.detail-hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
}

.room-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.room-stats span,
.amenities span {
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .07);
}

.price-box {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(217, 180, 111, .38);
    border-radius: 1.2rem;
    background: rgba(217, 180, 111, .14);
}

.price-box span {
    display: block;
    color: var(--muted);
}

.price-box strong {
    display: block;
    margin-top: .35rem;
    color: var(--gold-light);
    font-size: 1.8rem;
}

.room-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 1.4rem;
    padding-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 18rem;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: .8rem 1rem;
    color: var(--muted);
    font-size: .85rem;
}

.details-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.details-list div {
    padding: 1rem;
    border-radius: 1rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .07);
    line-height: 1.55;
}

.details-list strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--gold-light);
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.warning-card {
    border-color: rgba(253, 230, 138, .42);
}

.warning-card ul {
    color: var(--warning);
    line-height: 1.8;
}

/* Checkout and auth */
.checkout-sidebar {
    position: relative;
}

.checkout-card {
    position: sticky;
    top: 6rem;
}

.auth-status {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border-radius: 1rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .08);
}

.auth-status.ok {
    color: var(--success);
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: 18px;
}

.tab {
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    font-weight: 800;
}

.tab.active {
    color: #1b1207;
    background: var(--gold);
    border-color: var(--gold);
}

.auth-form {
    display: none;
    margin-top: 18px;
    gap: 12px;
}

.auth-form.active {
    display: grid;
}

.checkout-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.api-message {
    margin-top: 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.api-message.error {
    color: var(--danger);
}

.api-message.success {
    color: var(--success);
}

.logout-link {
    margin-left: 10px;
    border: 0;
    color: var(--gold-light);
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}

/* Footer and floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .35);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 2.4rem 7vw;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .68);
    background: rgba(1, 7, 12, .80);
}

.footer a {
    color: var(--gold-light);
    text-decoration: none;
}

/* Responsive */
@media (min-width: 900px) {
    .gatein-search-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1100px) {
    .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero,
    .detail-hero,
    .room-layout {
        grid-template-columns: 1fr;
    }

    .checkout-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 5vw;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: .25rem;
    }

    section {
        padding: 5rem 5vw;
    }

    .hero {
        padding-top: 11rem;
    }

    .properties-grid,
    .services-grid,
    .contact-wrapper,
    .gallery-grid,
    .details-list {
        grid-template-columns: 1fr;
    }

    .gatein-search-grid > label:first-child,
    .gatein-search-grid > label:last-child,
    .gatein-search-grid > .date-range-single {
        grid-column: span 1;
    }

    .date-range-single {
        border-radius: 1.4rem;
    }

    .date-range-display {
        grid-template-columns: 1fr;
    }

    .date-range-divider {
        width: 100%;
        height: 1px;
    }

    .property-topline {
        display: block;
    }

    .footer {
        flex-direction: column;
    }
}
