/* ==========================================================================
   Short Stay — Design system
   Palette: deep navy brand + bright action blue + gold accent (travel/OTA style)
   ========================================================================== */

:root {
    /* Brand */
    --color-navy-950: #071a30;
    --color-navy-900: #0a2540;
    --color-navy-800: #10345a;
    --color-primary: #0a3d7c;
    --color-primary-dark: #082c59;
    --color-primary-light: #e8f1fc;
    --color-action: #0068c9;
    --color-action-dark: #00509b;
    --color-action-light: #eaf4ff;
    --color-action-tint: #4fa8ff;
    --color-accent: #f2a900;
    --color-accent-dark: #c98a00;
    --color-accent-light: #fef3d9;

    /* Neutrals */
    --color-text: #12203a;
    --color-text-muted: #5b6b82;
    --color-text-faint: #8695ab;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f7fb;
    --color-bg-navy: #0a2540;
    --color-border: #dde5ef;
    --color-border-strong: #c3d0e0;

    /* Semantic */
    --color-danger: #d1293d;
    --color-danger-bg: #fdecee;
    --color-success: #17845a;
    --color-success-bg: #e9f8f1;

    /* Type */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Elevation */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --shadow-xs: 0 1px 2px rgba(10, 37, 64, 0.06);
    --shadow-sm: 0 2px 6px rgba(10, 37, 64, 0.08);
    --shadow-md: 0 10px 28px rgba(10, 37, 64, 0.12);
    --shadow-lg: 0 24px 56px rgba(10, 37, 64, 0.18);

    --container-width: 1200px;
}

/* ---------- Color themes ----------
   The "navy" theme above is the default (:root). Each alternate theme
   overrides only the brand colors + placeholder-gradient tint; neutrals,
   semantic colors, and the shared gold accent (ratings/badges) stay fixed
   across themes so they remain legible regardless of the active palette. */

[data-theme="sunset"] {
    --color-navy-950: #2b1410;
    --color-navy-900: #3d1f16;
    --color-navy-800: #5a2e1f;
    --color-primary: #c33d2e;
    --color-primary-dark: #9c2f22;
    --color-primary-light: #fdece8;
    --color-action: #e8623f;
    --color-action-dark: #c94d2c;
    --color-action-light: #fff0e9;
    --color-action-tint: #f4a077;
}

[data-theme="forest"] {
    --color-navy-950: #0c2a1f;
    --color-navy-900: #123a2b;
    --color-navy-800: #1c5240;
    --color-primary: #1f7a5c;
    --color-primary-dark: #155c44;
    --color-primary-light: #e6f5ef;
    --color-action: #1f9d74;
    --color-action-dark: #167a5a;
    --color-action-light: #e5f7f0;
    --color-action-tint: #6fd6ab;
}

[data-theme="slate"] {
    --color-navy-950: #14181f;
    --color-navy-900: #1c222c;
    --color-navy-800: #2a323f;
    --color-primary: #33404f;
    --color-primary-dark: #232c37;
    --color-primary-light: #eef1f4;
    --color-action: #0891b2;
    --color-action-dark: #0e7490;
    --color-action-light: #e6f7fa;
    --color-action-tint: #5fcbe0;
}

[data-theme="gold"] {
    --color-navy-950: #2a1120;
    --color-navy-900: #3d1830;
    --color-navy-800: #5c2447;
    --color-primary: #7a2856;
    --color-primary-dark: #5c1d40;
    --color-primary-light: #f8e9f1;
    --color-action: #9c2b4e;
    --color-action-dark: #7a2039;
    --color-action-light: #fbe9ee;
    --color-action-tint: #e08aa4;
}

[data-theme="premium"] {
    --color-navy-950: #241333;
    --color-navy-900: #331c47;
    --color-navy-800: #4a2c66;
    --color-primary: #5b3684;
    --color-primary-dark: #452870;
    --color-primary-light: #f1e9f7;
    --color-action: #b8862c;
    --color-action-dark: #96701f;
    --color-action-light: #faf1dc;
    --color-action-tint: #dcb968;
}

/* ---------- Layout styles ----------
   "standard" (default) is the current design: photo hero carousel, moderate
   radius/shadow. The alternates only touch shape/depth tokens and the hero
   presentation — no template structure changes. */

[data-layout="minimal"] {
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --shadow-xs: none;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-layout="minimal"] .hero-carousel,
[data-layout="minimal"] .hero-carousel__overlay,
[data-layout="minimal"] .hero::before {
    display: none;
}

[data-layout="minimal"] .hero {
    background: var(--color-navy-950);
    padding: 2.5rem 0 4rem;
}

[data-layout="bold"] {
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --shadow-xs: 0 2px 6px rgba(10, 37, 64, 0.10);
    --shadow-sm: 0 6px 16px rgba(10, 37, 64, 0.14);
    --shadow-md: 0 16px 40px rgba(10, 37, 64, 0.18);
    --shadow-lg: 0 32px 72px rgba(10, 37, 64, 0.24);
}

[data-layout="bold"] .hero {
    padding: 4.5rem 0 8rem;
}

[data-layout="bold"] .hero h1 {
    font-size: 3.1rem;
}

/* ---------- Reset ---------- */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-action);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-navy-950);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
    color: var(--color-text-muted);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.5rem 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    margin: 0.25rem 0 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* ---------- Site header ---------- */

.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-navy-950);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-action), var(--color-primary));
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu__links a {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu__links a:hover {
    color: var(--color-action);
    text-decoration: none;
}

.nav-menu__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-action);
    color: #fff;
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
    background: var(--color-action-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-action);
    color: var(--color-action);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--color-text);
}

.btn-ghost:hover {
    background: var(--color-bg-alt);
    color: var(--color-action);
}

.btn-danger-outline {
    background: transparent;
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.btn-danger-outline:hover {
    background: var(--color-danger-bg);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.55rem;
    border-radius: 50%;
}

/* ---------- Cards ---------- */

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 1.75rem;
}

.card--narrow {
    max-width: 460px;
    margin: 3rem auto;
}

.card--flush {
    padding: 0;
    overflow: hidden;
}

/* ---------- Listing / service cards ---------- */

.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.entity-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    font-weight: 400;
    color: var(--color-text);
}

.entity-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    text-decoration: none;
}

.entity-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.entity-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entity-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.entity-card__body {
    padding: 1rem 1.1rem 1.2rem;
}

.entity-card__title {
    font-weight: 700;
    color: var(--color-navy-950);
    font-size: 1.02rem;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entity-card__meta {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.entity-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy-950);
    margin-bottom: 0.5rem;
}

.entity-card__price {
    font-weight: 800;
    color: var(--color-navy-950);
    font-size: 1.05rem;
}

.entity-card__price span {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ---------- Designed photo placeholders ---------- */

.photo-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.12), transparent 45%);
}

.photo-placeholder svg {
    position: relative;
    width: 34%;
    height: 34%;
    max-width: 72px;
    max-height: 72px;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0.9;
}

.ph-grad-1 { background: linear-gradient(135deg, var(--color-primary), var(--color-action)); }
.ph-grad-2 { background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-800)); }
.ph-grad-3 { background: linear-gradient(135deg, var(--color-action-dark), var(--color-action-tint)); }
.ph-grad-4 { background: linear-gradient(135deg, var(--color-navy-800), var(--color-action)); }
.ph-grad-5 { background: linear-gradient(135deg, var(--color-navy-950), var(--color-primary)); }

/* ---------- Badges ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge--dark {
    background: rgba(10, 37, 64, 0.65);
    color: #fff;
    backdrop-filter: blur(2px);
}

.badge--success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge--danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.badge--gold {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
}

/* ---------- Rating stars ---------- */

.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-navy-950);
    font-weight: 700;
    font-size: 0.9rem;
}

.rating svg {
    width: 15px;
    height: 15px;
    color: var(--color-accent);
}

.star-picker {
    display: flex;
    gap: 0.35rem;
}

.star-picker__star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: var(--color-border-strong);
    transition: color 0.1s ease, transform 0.1s ease;
}

.star-picker__star:hover {
    transform: scale(1.1);
}

.star-picker__star svg {
    width: 30px;
    height: 30px;
}

.star-picker__star.is-active {
    color: var(--color-accent);
}

/* ---------- Forms ---------- */

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

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--color-navy-950);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 4px var(--color-action-light);
}

.form-error {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.form-hint {
    color: var(--color-text-faint);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.radio-card-group {
    display: flex;
    gap: 0.75rem;
}

.radio-card {
    flex: 1;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.radio-card:has(input:checked) {
    border-color: var(--color-action);
    background: var(--color-action-light);
}

/* ---------- Alerts ---------- */

.alert {
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.alert-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid #f7c9cf;
}

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid #b9e8d1;
}

.alert-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
}

.alert-dismiss:hover {
    opacity: 1;
}

/* ---------- Hero (homepage) ---------- */

.hero {
    position: relative;
    background: linear-gradient(155deg, var(--color-navy-950) 0%, var(--color-primary) 55%, var(--color-action) 130%);
    color: #fff;
    padding: 3.5rem 0 6.5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.10), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

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

.hero-carousel__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.6s ease;
}

.hero-carousel__slide.is-active {
    opacity: 1;
    animation: heroKenBurns 12s ease-in-out infinite alternate;
}

.hero-carousel__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(155deg,
        color-mix(in srgb, var(--color-navy-950) 93%, transparent) 0%,
        color-mix(in srgb, var(--color-primary) 86%, transparent) 55%,
        color-mix(in srgb, var(--color-action) 78%, transparent) 130%);
}

.hero-carousel__dots {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.hero-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-carousel__dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide.is-active {
        animation: none;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero__content {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.hero h1 {
    color: #fff;
    font-size: 2.75rem;
    margin-bottom: 0.6rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0;
}

/* ---------- Search widget ---------- */

.search-widget {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem;
    max-width: 920px;
    margin: 0 auto;
}

.search-widget__row {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

.search-widget__field {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.15s ease;
}

.search-widget__field:hover {
    background: var(--color-bg-alt);
}

.search-widget__field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}

.search-widget__field input,
.search-widget__field select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    width: 100%;
    padding: 0;
    font-family: inherit;
}

.search-widget__submit {
    display: flex;
    align-items: center;
    padding: 0 0.35rem;
}

.search-widget__submit button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-action);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.15s ease;
}

.search-widget__submit button:hover {
    background: var(--color-action-dark);
}

.search-widget__submit svg {
    width: 20px;
    height: 20px;
}

/* Compact variant used on search-results pages */

.search-widget--compact {
    max-width: none;
    margin: 0 0 2rem;
    padding: 0.5rem;
}

/* ---------- Category / quick-link tiles ---------- */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tile:hover {
    border-color: var(--color-action);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    text-decoration: none;
}

.tile__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile__icon svg {
    width: 22px;
    height: 22px;
}

.tile__label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-navy-950);
}

/* ---------- Trust strip ---------- */

.trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.trust-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item__icon svg {
    width: 20px;
    height: 20px;
}

.trust-item h3 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
}

.trust-item p {
    margin: 0;
    font-size: 0.88rem;
}

/* ---------- Gallery (detail pages) ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 420px;
    margin-bottom: 2rem;
}

.gallery-grid__main {
    grid-row: 1 / span 2;
    height: 100%;
}

.gallery-grid__cell,
.gallery-grid__main {
    overflow: hidden;
    background: var(--color-bg-alt);
}

.gallery-grid__cell img,
.gallery-grid__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-grid__cell,
.gallery-grid__main {
    border: none;
    padding: 0;
    position: relative;
}

.gallery-grid__cell[data-gallery-open],
.gallery-grid__main[data-gallery-open] {
    cursor: zoom-in;
}

.gallery-grid__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 26, 48, 0.35);
    color: #fff;
}

.gallery-grid__play svg {
    width: 42px;
    height: 42px;
}

.gallery-grid__expand {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    background: rgba(7, 26, 48, 0.7);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 20, 0.92);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__stage {
    max-width: min(92vw, 1000px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__stage img,
.lightbox__stage video,
.lightbox__stage iframe {
    max-width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-sm);
    background: #000;
}

.lightbox__stage iframe {
    width: min(92vw, 900px);
    height: min(60vh, 506px);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lightbox__close {
    top: 1.2rem;
    right: 1.2rem;
}

.lightbox__prev {
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
    width: 22px;
    height: 22px;
}

/* ---------- Map embed ---------- */

.map-embed {
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-embed--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 160px;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

/* ---------- Events calendar grid ---------- */

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.calendar-grid th {
    padding: 0.6rem;
    text-align: left;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.calendar-grid__cell {
    width: 14.28%;
    height: 110px;
    vertical-align: top;
    padding: 0.4rem;
    border: 1px solid var(--color-border);
}

.calendar-grid__cell--muted {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

.calendar-grid__cell--today {
    background: var(--color-primary-light);
}

.calendar-grid__date {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.calendar-grid__pill {
    display: block;
    font-size: 0.72rem;
    background: var(--color-action-light);
    color: var(--color-action-dark);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.4rem;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Amenity grid ---------- */

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.9rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.amenity-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ---------- Auth split layout ---------- */

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 64px);
}

.auth-split__brand {
    background: linear-gradient(155deg, var(--color-navy-950) 0%, var(--color-primary) 55%, var(--color-action) 130%);
    color: #fff;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-split__brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 40%), radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.10), transparent 45%);
}

.auth-split__brand > * {
    position: relative;
}

.auth-split__brand h2 {
    color: #fff;
    font-size: 1.9rem;
    max-width: 380px;
}

.auth-split__brand p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 380px;
}

.auth-split__points {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-split__points div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-split__points span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.auth-split__points svg {
    width: 16px;
    height: 16px;
}

.auth-split__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.auth-split__form .card {
    width: 100%;
    max-width: 420px;
    border: none;
    box-shadow: none;
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-split__brand {
        padding: 2.5rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .auth-split__points {
        align-items: flex-start;
    }
}

/* ---------- Detail page two-column layout ---------- */

.detail-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- Booking summary card (sticky) ---------- */

.summary-card {
    position: sticky;
    top: 90px;
}

/* ---------- Review card ---------- */

.review-card {
    padding: 1.25rem 0;
    border-top: 1px solid var(--color-border);
}

.review-card:first-child {
    border-top: none;
}

.review-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ---------- Page shell ---------- */

.page {
    min-height: calc(100vh - 64px);
    padding: 3rem 0;
    background: var(--color-bg-alt);
}

.page--plain {
    background: var(--color-bg);
}

.page--tight {
    padding: 2rem 0;
}

.module-placeholder {
    padding: 4rem 0;
    text-align: center;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.module-grid a.card {
    color: var(--color-text);
    font-weight: 600;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.module-grid a.card:hover {
    border-color: var(--color-action);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ---------- Quick link cards ---------- */

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 700;
    color: var(--color-navy-950);
}

.quick-link__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-link__icon svg {
    width: 20px;
    height: 20px;
}

.quick-link__arrow {
    margin-left: auto;
    color: var(--color-text-faint);
    flex-shrink: 0;
}

.quick-link__arrow svg {
    width: 16px;
    height: 16px;
}

/* ---------- Dashboard hero ---------- */

.dashboard-hero {
    background: linear-gradient(135deg, var(--color-navy-950), var(--color-action));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 45%);
}

.dashboard-hero > * {
    position: relative;
}

.dashboard-hero h1 {
    color: #fff;
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.85);
}

.dashboard-hero .badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ---------- Stat tiles (admin/dashboards) ---------- */

.stat-tile h2 {
    font-size: 1.85rem;
    margin-bottom: 0.15rem;
}

.stat-tile p:first-child {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-faint);
}

/* ---------- Tables ---------- */

.data-table th,
.data-table td {
    padding: 0.75rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-faint);
    font-weight: 700;
}

.data-table tbody tr:hover {
    background: var(--color-bg-alt);
}

/* ---------- Pagination ---------- */

nav[role="navigation"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

nav[role="navigation"] span,
nav[role="navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
}

nav[role="navigation"] a:hover {
    border-color: var(--color-action);
    color: var(--color-action);
    text-decoration: none;
}

nav[role="navigation"] span[aria-current="page"] span {
    background: var(--color-action);
    color: #fff;
    border-color: var(--color-action);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--color-navy-950);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 1.75rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-grid ul li {
    margin-bottom: 0.6rem;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.75rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.25rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal-links a:hover {
    color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-menu__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .hero {
        padding: 2.5rem 0 5rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .search-widget__row {
        flex-direction: column;
    }

    .search-widget__submit {
        padding: 0.35rem;
    }

    .search-widget__submit button {
        width: 100%;
        border-radius: var(--radius);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .gallery-grid__main {
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery-grid__cell {
        display: none;
    }

    .gallery-grid__cell:first-of-type {
        display: block;
        aspect-ratio: 4 / 3;
    }

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

    .summary-card {
        position: static;
    }
}

/* ---------- Horizontal card carousels ---------- */

.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
    scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: var(--radius-pill);
}

.carousel-track > * {
    scroll-snap-align: start;
    flex: 0 0 280px;
}

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

.carousel-nav button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border-strong);
    background: var(--color-bg);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.carousel-nav button:hover {
    border-color: var(--color-action);
    color: var(--color-action);
    background: var(--color-action-light);
}

.carousel-nav svg {
    width: 16px;
    height: 16px;
}

/* ---------- Testimonial cards ---------- */

.testimonial-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.testimonial-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card__quote {
    color: var(--color-text);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 640px) {
    .carousel-track > * {
        flex-basis: 240px;
    }

    .testimonial-card {
        flex-basis: 260px;
    }
}
