/* ============================================
   SU'S HOUSE FOR RENT — Thong Nai Pan, Koh Phangan
   Modern tropical design
   ============================================ */

:root {
    /* Colors — inspired by the logo & the bay */
    --ink: #0e2a3a;            /* deep ocean navy */
    --ink-soft: #24475c;
    --teal: #0fa3a3;           /* lagoon teal */
    --teal-dark: #0b7f80;
    --sunset: #ff5c39;         /* logo sunset red-orange */
    --sand: #f7f3ec;           /* warm background */
    --white: #ffffff;
    --text: #3c4c56;
    --text-light: #6b7d88;
    --line: #e6e0d6;
    --whatsapp: #25D366;

    /* Type */
    --font-display: 'Sora', 'Noto Sans Thai', 'Noto Sans Hebrew', sans-serif;
    --font-body: 'Inter', 'Noto Sans Thai', 'Noto Sans Hebrew', sans-serif;
    --font-script: 'Pacifico', cursive;

    /* Layout */
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 12px rgba(14, 42, 58, 0.07);
    --shadow-md: 0 10px 30px rgba(14, 42, 58, 0.12);
    --shadow-lg: 0 24px 60px rgba(14, 42, 58, 0.18);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--sand);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Section basics ---------- */
section { padding: 6rem 0; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1rem;
}

.section-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--sunset);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

.section-header {
    max-width: 640px;
    margin-bottom: 3rem;
}

.section-sub {
    color: var(--text-light);
    font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-glass,
.btn-outline,
.btn-whatsapp,
.btn-nav-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(120deg, var(--sunset), #ff7e42);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(255, 92, 57, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 92, 57, 0.45);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--teal-dark);
    margin-top: 0.5rem;
    transition: gap 0.25s var(--ease), color 0.25s;
}

.link-arrow:hover {
    gap: 0.85rem;
    color: var(--sunset);
}

/* ---------- Header / Nav ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.35s var(--ease), box-shadow 0.35s;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.navbar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
    color: var(--white);
    transition: color 0.35s;
}

.nav-brand-sub {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.header.scrolled .nav-brand-text { color: var(--ink); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ---------- Language switcher ---------- */
.lang-switch {
    position: relative;
    z-index: 1100;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.28); }

.lang-caret { font-size: 0.6rem; transition: transform 0.25s var(--ease); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.header.scrolled .lang-btn {
    color: var(--ink);
    background: rgba(14, 42, 58, 0.06);
    border-color: rgba(14, 42, 58, 0.18);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

[dir="rtl"] .lang-menu { right: auto; left: 0; }

.lang-switch.open .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-menu li {
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-menu li:hover { background: var(--sand); color: var(--ink); }

.lang-menu li.active {
    background: var(--teal);
    color: var(--white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.35s;
}

.header.scrolled .nav-link { color: var(--ink-soft); }

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--sunset);
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.btn-nav-book {
    background: var(--sunset);
    color: var(--white);
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(255, 92, 57, 0.4);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    z-index: 1100;
}

.nav-toggle span {
    height: 2.5px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.header.scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle.active span { background: var(--white) !important; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.05);
    animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
    to { transform: scale(1); }
}

/* Hero background video (drone footage) */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

/* Fallback image sits behind the video; visible until video renders
   or when the browser cannot play it */
.hero-video-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* If the user prefers reduced motion, hide the video (JS also pauses it) */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero-video-fallback { z-index: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
        rgba(14, 42, 58, 0.45) 0%,
        rgba(14, 42, 58, 0.12) 45%,
        rgba(14, 42, 58, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--sunset), #ff7e42);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(255, 92, 57, 0.4);
    margin-bottom: 1rem;
    animation: fadeUp 0.8s 0.05s var(--ease) both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    margin: 0 0 1.75rem;
    animation: fadeUp 0.8s 0.1s var(--ease) both;
}

.hero-badge + .hero-eyebrow { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

.hero-eyebrow i { color: var(--sunset); }

.hero-title {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -2px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    animation: fadeUp 0.8s 0.12s var(--ease) both;
}

.hero-title-accent {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 0.55em;
    color: #ffd9a8;
    letter-spacing: 0;
    display: inline-block;
    transform: rotate(-2deg);
}

.hero-thai {
    margin-top: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    opacity: 0.9;
    animation: fadeUp 0.8s 0.24s var(--ease) both;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.25rem;
    animation: fadeUp 0.8s 0.36s var(--ease) both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    animation: fadeUp 0.8s 0.5s var(--ease) both;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-stat i { color: #7fe3e0; }

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.85;
    animation: bounce 2.2s infinite;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-9px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ---------- Intro ---------- */
.intro { background: var(--white); }

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.intro-text strong { color: var(--ink); }

.intro-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 1rem;
}

.intro-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.intro-img:hover img { transform: scale(1.06); }

.intro-img-tall {
    grid-row: span 2;
}

/* ---------- Accommodation (stay) ---------- */
.stay {
    background: var(--white);
    padding-top: 5.5rem;
}

.stay .section-header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.stay-card {
    background: var(--sand);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stay-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.stay-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.stay-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.stay-card:hover .stay-card-img img { transform: scale(1.07); }

.stay-count {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: rgba(14, 42, 58, 0.78);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.stay-card-body {
    padding: 1.6rem 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stay-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stay-card-body p {
    font-size: 0.93rem;
    color: var(--text-light);
    flex: 1;
}

.stay-card-body .link-arrow { margin-top: 1rem; font-size: 0.9rem; }

/* ---------- Features ---------- */
.features {
    background: var(--sand);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 1.6rem;
    color: var(--teal);
    background: rgba(15, 163, 163, 0.1);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-light);
}

/* ---------- Gallery ---------- */
.gallery { background: var(--white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}

.gallery-item.g-wide { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 1rem 0.8rem;
    background: linear-gradient(180deg, transparent, rgba(14, 42, 58, 0.75));
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.cta-band-bg {
    position: absolute;
    inset: 0;
}

.cta-band-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 127, 128, 0.82), rgba(14, 42, 58, 0.72));
}

.cta-band-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.cta-band-content h2 {
    color: var(--white);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    margin-bottom: 1rem;
}

.cta-band-content p {
    max-width: 560px;
    margin: 0 auto 2rem;
    opacity: 0.92;
}

.cta-band-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Location ---------- */
.location { background: var(--sand); }

.location-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.location-map-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.location-map-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.location-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 240px;
    flex: 1;
}

.location-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 240px;
}

.location-list {
    display: grid;
    gap: 0.6rem;
}

.location-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.location-list i {
    color: var(--sunset);
    width: 20px;
    text-align: center;
}

.location-side .btn-outline { align-self: flex-start; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-lead {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--teal);
}

.contact-card i {
    font-size: 1.4rem;
    color: var(--teal);
    flex-shrink: 0;
}

.contact-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--ink);
}

.contact-card span {
    font-size: 0.82rem;
    color: var(--text-light);
    word-break: break-word;
}

.contact-form-card {
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.25s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.contact-form textarea { resize: vertical; }

.contact-form-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.contact-form-actions button { flex: 1; min-width: 180px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 1.75rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.05rem;
}

.footer-brand span {
    font-size: 0.8rem;
    opacity: 0.75;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.25s, color 0.25s;
}

.footer-links a:hover {
    opacity: 1;
    color: #7fe3e0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
    transition: background 0.25s, transform 0.25s var(--ease);
}

.footer-social a:hover {
    background: var(--sunset);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.75rem;
    font-size: 0.85rem;
    opacity: 0.65;
}

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    z-index: 990;
    transition: transform 0.25s var(--ease);
}

.whatsapp-float:hover { transform: scale(1.1) rotate(6deg); }

.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s var(--ease), background 0.25s;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover { background: var(--teal-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 35, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
    animation: lbFadeIn 0.3s ease;
}

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ---------- Notifications ---------- */
.notification {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.92rem;
    box-shadow: var(--shadow-lg);
    max-width: 380px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success { background: #2eaf68; }
.notification.error { background: #e5484d; }

@keyframes noteIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Availability calendar ---------- */
.availability { background: var(--white); }

.av-card {
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 980px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.av-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.av-units {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.av-pill {
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s var(--ease);
}

.av-pill:hover { border-color: var(--teal); color: var(--teal); }

.av-pill.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.av-nav { display: flex; gap: 0.5rem; }

.av-nav button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease);
}

.av-nav button:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.av-status {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.av-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.av-month h3 {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.8rem;
    text-transform: capitalize;
}

.av-dow,
.av-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.av-dow span {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    text-transform: uppercase;
    padding: 4px 0;
}

.av-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    border-radius: 9px;
    position: relative;
    color: var(--ink-soft);
}

.av-day.empty { background: transparent; }
.av-day.past { background: #efece5; color: #c3bcac; }
.av-day.free { background: #ddf1ea; color: #0b6b52; font-weight: 500; }
.av-day.booked { background: #ffe1d8; color: #b33418; font-weight: 600; }

.av-day.booked::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    top: 50%;
    height: 2px;
    background: #e0755d;
    border-radius: 2px;
    transform: rotate(-18deg);
}

.av-day.today { outline: 2px solid var(--teal); outline-offset: 1px; }

.av-legend {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--text-light);
}

.av-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.av-dot {
    width: 15px;
    height: 15px;
    border-radius: 5px;
    display: inline-block;
}

.av-dot.free { background: #ddf1ea; border: 1px solid #b5dfd0; }
.av-dot.booked { background: #ffe1d8; border: 1px solid #f0b7a8; }
.av-dot.past { background: #efece5; border: 1px solid #e2ddd0; }

.av-note {
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============================================
   BOOK DIRECT — CTA nach dem Kalender
   ============================================ */
.book-direct {
    background: linear-gradient(180deg, #eef7f6 0%, var(--sand) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.bd-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bd-step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.bd-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.bd-step-num {
    position: absolute;
    top: -16px;
    inset-inline-start: 1.6rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.bd-step > i {
    font-size: 1.6rem;
    color: var(--sunset);
    margin-bottom: 0.9rem;
    display: block;
}

.bd-step h3 {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
}

.bd-step p {
    font-size: 0.92rem;
    color: var(--text-light);
}

/* Payment options */
.bd-pay {
    margin-top: 3.25rem;
}

.bd-pay-title {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.6rem;
}

.bd-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.bd-pay-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bd-pay-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
}

.bd-pay-card > i {
    font-size: 1.5rem;
    color: var(--teal);
}

.bd-pay-card h4 {
    font-size: 1rem;
}

.bd-pay-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.bd-pay-action {
    margin-top: auto;
    padding-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--teal-dark);
    cursor: pointer;
    text-align: start;
    transition: color 0.3s var(--ease);
}

.bd-pay-action:hover { color: var(--sunset); }

.bd-qr-box {
    margin-top: 0.9rem;
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
}

.bd-qr-box img {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 8px;
}

/* Big CTA row */
.bd-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-bd {
    font-size: 1.05rem;
    padding: 1rem 2.2rem;
}

/* ============================================
   AREA — Umgebung / Königsgeschichte
   ============================================ */
.area {
    background: var(--white);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}

.area-card {
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.area-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.area-card-body {
    padding: 1.8rem 1.8rem 2rem;
    position: relative;
}

.area-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.area-card p {
    font-size: 0.95rem;
    color: var(--text);
}

.area-badge {
    position: absolute;
    top: -18px;
    inset-inline-start: 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--sunset);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.area-card-royal {
    border-color: rgba(255, 92, 57, 0.35);
}

.area-card-royal .area-card-body {
    padding-top: 2.2rem;
}

/* Quick facts strip */
.area-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.area-fact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.area-fact i {
    color: var(--teal);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .intro-grid { gap: 2.5rem; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item.g-wide { grid-column: span 3; aspect-ratio: 21 / 9; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stay-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { gap: 2.5rem; }
}

@media (max-width: 860px) {
    section { padding: 4.25rem 0; }

    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        inset: 0;
        background: rgba(14, 42, 58, 0.97);
        backdrop-filter: blur(14px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s var(--ease);
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu .nav-link {
        color: var(--white) !important;
        font-size: 1.3rem;
    }

    .nav-menu-cta { margin-top: 0.5rem; }

    .nav-actions { gap: 0.9rem; }

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

    .intro-images { grid-template-rows: repeat(2, 180px); }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.g-wide { grid-column: span 2; }

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

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

    .av-card { padding: 1.4rem; }
    .av-months { grid-template-columns: 1fr; }

    .bd-steps { grid-template-columns: 1fr; gap: 1.9rem; }
    .bd-pay-grid { grid-template-columns: 1fr; }

    .area-grid { grid-template-columns: 1fr; }
    .area-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .hero { padding: 6.5rem 1.25rem 4.5rem; }

    .nav-brand-text { font-size: 0.95rem; }

    .lang-btn { padding: 0.45rem 0.75rem; font-size: 0.75rem; }

    .hero-stats { gap: 0.5rem; }
    .hero-stat { font-size: 0.78rem; padding: 0.5rem 0.9rem; }

    .hero-cta-group { flex-direction: column; align-items: stretch; }

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

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.g-wide { grid-column: span 1; aspect-ratio: 4 / 3; }
    .gallery-item figcaption { opacity: 1; transform: none; }

    .intro-images {
        grid-template-columns: 1fr;
        grid-template-rows: 260px 180px 180px;
    }

    .intro-img-tall { grid-row: span 1; }

    .form-row { grid-template-columns: 1fr; }

    .area-facts { grid-template-columns: 1fr; }

    .bd-cta { flex-direction: column; align-items: stretch; }
    .btn-bd { justify-content: center; }

    .contact-form-card { padding: 1.5rem; }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ============================================
   RTL SUPPORT (Hebrew)
   ============================================ */
[dir="rtl"] .section-eyebrow::before { order: 2; }

[dir="rtl"] .link-arrow i { transform: scaleX(-1); }

[dir="rtl"] .hero-title-accent { transform: rotate(2deg); }

[dir="rtl"] .lightbox-close { right: auto; left: 26px; }

[dir="rtl"] .notification {
    right: auto;
    left: 24px;
    transform: translateX(-40px);
}

[dir="rtl"] .notification.show { transform: translateX(0); }

@media (max-width: 520px) {
    [dir="rtl"] .notification { left: 20px; right: 20px; }
}
