:root {
    --ink: #171513;
    --ink-soft: #5f5a52;
    --paper: #f7f3ec;
    --paper-deep: #eee7dc;
    --ivory: #fffdf8;
    --line: rgba(31, 28, 24, 0.12);
    --line-light: rgba(255, 255, 255, 0.24);
    --gold: #b9aa7a;
    --gold-deep: #8d7b45;
    --charcoal: #151717;
    --primary: #173a39;
    --primary-dark: #0f2828;
    --shadow: 0 18px 44px rgba(23, 21, 19, 0.12);
}

* {
    min-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Sans 3", "Avenir Next", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 17px;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink);
}

a {
    color: var(--primary);
}

.container {
    max-width: 1180px;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(22, 22, 20, 0.38);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.navbar {
    min-height: 82px;
    padding: 0;
}

.navbar-brand {
    color: #fff !important;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0;
}

.navbar-nav {
    gap: 4px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    bottom: 0.25rem;
    left: 0.5rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #fff !important;
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55);
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(185, 170, 122, 0.28);
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

.btn {
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #171513;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #d0c28e;
    border-color: #d0c28e;
    color: #171513;
}

.btn-outline-primary {
    border-color: var(--gold-deep);
    color: var(--primary-dark);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.lang-switch:hover,
.lang-switch:focus {
    border-color: var(--gold);
    color: var(--gold);
}

.site-header .navbar-collapse .btn-outline-primary {
    border-color: var(--gold);
    color: #fff;
    background: rgba(185, 170, 122, 0.08);
}

.site-header .navbar-collapse .btn-outline-primary:hover,
.site-header .navbar-collapse .btn-outline-primary:focus {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--ink);
}

.luxury-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #fff;
    background: var(--charcoal) var(--hero-poster) center/cover no-repeat;
}

.luxury-hero__video,
.luxury-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.luxury-hero__video {
    object-fit: cover;
    transform: scale(1.03);
}

.luxury-hero__shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.62) 100%);
}

.luxury-hero__content {
    position: relative;
    z-index: 1;
    padding-top: clamp(180px, 24vh, 260px);
    padding-bottom: 150px;
}

.luxury-hero__eyebrow,
.form-label {
    margin-bottom: 0.75rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.luxury-hero__eyebrow {
    color: var(--gold);
}

.luxury-hero h1 {
    max-width: 760px;
    margin-bottom: 0.65rem;
    color: #fff;
    font-size: clamp(3.5rem, 6vw, 6.25rem);
    line-height: 0.98;
    text-wrap: balance;
}

.luxury-hero__tagline {
    max-width: 720px;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.94);
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(2.15rem, 3.7vw, 4rem);
    font-weight: 600;
    line-height: 1.02;
    text-wrap: balance;
}

.luxury-hero .lead {
    max-width: 620px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.28rem;
}

.booking-bar {
    position: relative;
    z-index: 5;
    margin-top: -78px;
    padding: 0 0 34px;
}

.booking-bar form,
.booking-form,
.contact-form,
.filter-panel,
.content-box,
.room-info-card,
.review-card,
.stay-card {
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(185, 170, 122, 0.28);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.booking-bar form {
    padding: 22px;
}

.form-label {
    color: var(--ink-soft);
}

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid rgba(23, 21, 19, 0.16);
    border-radius: 4px;
    background-color: #fff;
    color: var(--ink);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(185, 170, 122, 0.24);
}

.benefits-section {
    padding: 44px 0 18px;
}

.benefit-chip,
.amenity-pill,
.reviews-rating {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(185, 170, 122, 0.34);
    border-radius: 4px;
    background: rgba(255, 253, 248, 0.72);
    color: var(--primary-dark);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rooms-preview,
.gallery-highlight,
.reviews-section,
.faq-section,
.stay-section,
.location-section {
    padding: 78px 0;
}

.rooms-preview h2,
.gallery-highlight h2,
.reviews-section h2,
.location-section h2,
.faq-section h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
}

.rooms-page,
.booking-page,
.contact-page,
.gallery-page,
.faq-page,
.location-page,
.privacy-page,
.room-details {
    padding: 52px 0 92px;
}

.page-hero {
    padding: 150px 0 58px;
    background:
        linear-gradient(90deg, rgba(23, 21, 19, 0.78), rgba(23, 21, 19, 0.42)),
        url("/assets/images/dani-beach-page-hero.jpg") center/cover no-repeat;
    border-bottom: 1px solid var(--line);
    color: #fff;
}

.page-hero h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
}

.page-hero .text-muted {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 1.15rem;
}

.rooms-preview,
.gallery-highlight,
.location-section,
.faq-section {
    background: var(--paper);
}

.stay-section,
.reviews-section,
.rooms-page,
.booking-page,
.contact-page,
.gallery-page,
.faq-page,
.location-page,
.privacy-page,
.room-details {
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.room-card {
    overflow: hidden;
    border: 1px solid rgba(23, 21, 19, 0.1);
    border-radius: 8px;
    background: var(--ivory);
    box-shadow: 0 14px 36px rgba(23, 21, 19, 0.1);
}

.room-card img {
    height: 250px;
    object-fit: cover;
}

.room-card .card-body {
    padding: 24px;
}

.room-card .card-title {
    font-size: 1.7rem;
    line-height: 1.05;
}

.text-muted {
    color: var(--ink-soft) !important;
}

.price,
.price-lg,
.price-summary strong {
    color: var(--gold-deep);
    font-weight: 700;
}

.price-lg {
    font-size: 2rem;
}

.stay-card {
    height: 100%;
    padding: clamp(28px, 4vw, 44px);
}

.stay-card h3 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.stay-card-alt {
    background: var(--primary-dark);
    color: #fff;
}

.stay-card-alt h3,
.stay-card-alt p {
    color: #fff;
}

.stay-card-alt .btn-outline-primary {
    border-color: var(--gold);
    color: #fff;
}

.stay-card-alt .btn-outline-primary:hover,
.stay-card-alt .btn-outline-primary:focus {
    background: var(--gold);
    color: var(--ink);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--charcoal);
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 320ms ease, opacity 320ms ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus img {
    opacity: 0.88;
    transform: scale(1.04);
}

.map-embed iframe,
.room-details .carousel img {
    width: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.map-embed iframe {
    height: 360px;
}

.room-details .carousel img {
    height: 460px;
    object-fit: cover;
}

.distance-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.distance-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.review-card {
    height: 100%;
    padding: 26px;
}

.review-rating {
    margin-bottom: 14px;
    color: var(--gold-deep);
    letter-spacing: 0.16em;
}

.accordion-item {
    overflow: hidden;
    border: 1px solid rgba(23, 21, 19, 0.1);
    border-radius: 8px !important;
    background: var(--ivory);
}

.accordion-item + .accordion-item {
    margin-top: 12px;
}

.accordion-button {
    background: var(--ivory);
    color: var(--ink);
    font-weight: 700;
}

.accordion-button:not(.collapsed) {
    background: #fff8e6;
    color: var(--ink);
    box-shadow: none;
}

.filter-panel,
.booking-form,
.contact-form,
.content-box,
.room-info-card {
    padding: 24px;
}

.amenities-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 0;
    border: 1px solid rgba(23, 21, 19, 0.12);
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
}

.price-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.site-footer {
    margin-top: 0;
    padding: 74px 0 96px;
    background: #111312;
    color: rgba(255, 253, 248, 0.78);
}

.site-footer h5,
.site-footer h6 {
    color: #fff;
}

.site-footer h5 {
    font-size: 2rem;
}

.site-footer a {
    color: #fff8e6 !important;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(185, 170, 122, 0.52);
    border-radius: 50%;
    color: #fff8e6;
    text-decoration: none;
}

.footer-social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-social:hover,
.footer-social:focus {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink) !important;
}

.mobile-book {
    position: fixed;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 1001;
    display: none;
    border-radius: 4px;
    padding: 13px 16px;
    background: var(--gold);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .luxury-hero__video {
        display: none;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

@media (max-width: 991px) {
    .site-header {
        background: rgba(18, 18, 16, 0.82);
    }

    .navbar {
        min-height: 72px;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 12px 0 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .mobile-book {
        display: block;
    }

    .luxury-hero {
        min-height: 650px;
    }

    .luxury-hero__content {
        padding-top: 145px;
        padding-bottom: 124px;
    }

    .luxury-hero h1 {
        font-size: 3.35rem;
    }

    .luxury-hero .lead {
        font-size: 1.08rem;
    }

    .booking-bar {
        margin-top: -54px;
    }

    .booking-bar form {
        padding: 18px;
    }

    .rooms-preview,
    .gallery-highlight,
    .reviews-section,
    .faq-section,
    .stay-section,
    .location-section {
        padding: 58px 0;
    }

    .page-hero {
        padding-top: 124px;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 16px;
    }

    .flatpickr-calendar {
        max-width: calc(100vw - 24px);
    }

    .flatpickr-calendar,
    .flatpickr-calendar.open {
        right: 12px !important;
        left: 12px !important;
        margin: 0 auto;
    }

    .flatpickr-rContainer,
    .flatpickr-days,
    .dayContainer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .flatpickr-day {
        max-width: none;
    }

    .navbar-brand {
        font-size: 1.35rem;
    }

    .luxury-hero {
        min-height: 620px;
    }

    .luxury-hero__content {
        padding-top: 128px;
        padding-bottom: 118px;
    }

    .luxury-hero h1,
    .page-hero h1 {
        font-size: 2.75rem;
    }

    .luxury-hero .lead {
        font-size: 1rem;
    }

    .booking-bar {
        margin-top: -42px;
    }

    .rooms-page,
    .booking-page,
    .contact-page,
    .gallery-page,
    .faq-page,
    .location-page,
    .privacy-page,
    .room-details {
        padding-bottom: 104px;
    }

    .room-card img,
    .gallery-grid img {
        height: 210px;
    }

    .room-details .carousel img {
        height: 320px;
    }
}
