/* ============================================
   Rayya Suites — Public Site
   Refined corporate hospitality aesthetic.
   Restraint, whitespace, photography-led.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
    /* Palette — professional navy + burgundy accent */
    --c-navy:        #0c2340;   /* Primary — headers, buttons */
    --c-navy-deep:   #081a30;   /* Hover/active */
    --c-navy-soft:   #1c3556;   /* Secondary navy surfaces */
    --c-burgundy:    #7d2935;   /* Accent — CTAs */
    --c-burgundy-dk: #5e1e28;
    --c-ink:         #1a202c;   /* Heading text */
    --c-slate:       #4a5568;   /* Body text */
    --c-grey:        #718096;   /* Muted text */
    --c-mist:        #f4f5f7;   /* Background tint */
    --c-paper-soft:  #fafbfc;   /* Card bg variant */
    --c-paper:       #ffffff;
    --c-border:      #e2e6ec;
    --c-border-strong: #cbd2db;
    --c-success:     #2f7e57;
    --c-danger:      #b03430;

    /* Typography */
    --f-display: 'DM Serif Display', Georgia, serif;
    --f-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows — subtle */
    --shadow-xs: 0 1px 2px rgba(12, 35, 64, 0.05);
    --shadow-sm: 0 2px 6px rgba(12, 35, 64, 0.06);
    --shadow-md: 0 8px 24px rgba(12, 35, 64, 0.08);
    --shadow-lg: 0 24px 60px rgba(12, 35, 64, 0.12);

    /* Layout */
    --max-w: 1240px;

    /* ── Legacy aliases — keep inline styles in PHP templates working ─── */
    --c-ink:        var(--c-navy);
    --c-ink-dark:   var(--c-navy-deep);
    --c-gold:       var(--c-burgundy);
    --c-gold-dark:  var(--c-burgundy-dk);
    --c-cream:      var(--c-mist);
    --c-sand:       var(--c-mist);
    --c-text:       var(--c-slate);
    --c-muted:      var(--c-grey);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--f-body);
    color: var(--c-slate);
    background: var(--c-paper);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--c-ink);
    font-family: var(--f-body);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 600; }

/* Display headings — used sparingly */
.display, .hero h1 {
    font-family: var(--f-display);
    font-weight: 400;
    letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }

a {
    color: var(--c-navy);
    text-decoration: none;
    transition: color .15s;
}
a:hover { color: var(--c-burgundy); }

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

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

/* ----- Top utility bar (optional, currently hidden) ----- */
.utility-bar {
    background: var(--c-navy-deep);
    color: rgba(255,255,255,0.7);
    font-size: .82rem;
    padding: .4rem 0;
}
.utility-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}
.utility-bar a { color: rgba(255,255,255,0.7); }
.utility-bar a:hover { color: #fff; }

/* ----- Header ----- */
.site-header {
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none !important;
}

.brand-logo { height: 42px; width: auto; }

/* ── Logo mark (RS monogram, transparent PNG) ── */
.brand-logo-mark {
    height: 46px;
    width: auto;
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--f-body);
    font-size: .88rem;
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.brand-text small {
    display: block;
    font-family: var(--f-body);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .38em;
    color: var(--c-burgundy);
    text-transform: uppercase;
    margin-top: .45rem;
    padding-top: .4rem;
    border-top: 1px solid var(--c-border);
}

/* ── Motel page booking bar ── */
.motel-booking-bar {
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-burgundy);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.motel-booking-bar .search-form {
    grid-template-columns: 1fr 1fr 1fr auto;
    margin-top: 0;
    border-top: 0;
}

@media (max-width: 640px) {
    .motel-booking-bar .search-form {
        grid-template-columns: 1fr;
    }
    .motel-booking-bar .search-submit {
        padding: 1rem;
        grid-column: 1;
    }
}

.main-nav {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.main-nav a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--c-ink);
    position: relative;
    padding: .4rem 0;
}

.main-nav a:hover { color: var(--c-burgundy); }

.main-nav a.active {
    color: var(--c-navy);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1.15rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-burgundy);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: .5rem;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--c-navy);
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 620px;
    background-image:
        linear-gradient(180deg, rgba(12,35,64,.35) 0%, rgba(12,35,64,.55) 100%),
        url('../images/hero.svg');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: visible;    /* don't clip content on small viewports */
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem 0 9rem;
    max-width: 720px;
}

.hero-eyebrow {
    font-family: var(--f-body);
    font-size: .72rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.hero-eyebrow::before {
    content: '';
    width: 32px; height: 2px;
    background: #fff;
    display: inline-block;
}

.hero h1 {
    color: #fff;
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p.tagline {
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0;
    color: rgba(255,255,255,.92);
    font-weight: 300;
    line-height: 1.55;
}

/* ----- Search Widget ----- */
.search-widget {
    position: relative;
    z-index: 10;
    background: var(--c-paper);
    box-shadow: var(--shadow-lg);
    margin: -5rem auto 4rem;
    max-width: 1100px;
    border-top: 3px solid var(--c-burgundy);
}

.search-widget-heading {
    padding: 1.5rem 2rem 0;
    text-align: left;
}

.search-widget-heading .label {
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--c-burgundy);
    font-weight: 600;
}

.search-widget-heading h2 {
    font-size: 1.4rem;
    margin: .35rem 0 0;
    color: var(--c-ink);
    font-weight: 500;
}

.search-form {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr .9fr 1.4fr auto;
    gap: 1px;
    background: var(--c-border);
    margin-top: 1.25rem;
    border-top: 1px solid var(--c-border);
}

.search-field {
    background: var(--c-paper);
    padding: 1.1rem 1.25rem;
    position: relative;
    transition: background .12s;
}
.search-field:hover { background: var(--c-mist); }

.search-field label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--c-grey);
    font-weight: 600;
    margin-bottom: .4rem;
}

.search-field input,
.search-field select {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-ink);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.search-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%230c2340' d='M5 6L0 0h10z'/></svg>");
    background-repeat: no-repeat;
    background-position: right .25rem center;
    padding-right: 1.25rem;
}

.search-submit {
    background: var(--c-burgundy);
    color: #fff;
    border: 0;
    padding: 0 2.5rem;
    font-family: var(--f-body);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    cursor: pointer;
    transition: background .2s;
}

.search-submit:hover { background: var(--c-burgundy-dk); }

/* ----- Sections ----- */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-mist { background: var(--c-mist); }
.section-navy {
    background: var(--c-navy);
    color: rgba(255,255,255,.85);
}
.section-navy h2, .section-navy h3 { color: #fff; }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-eyebrow {
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--c-burgundy);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    margin-bottom: .75rem;
    color: var(--c-ink);
    font-family: var(--f-display);
    font-weight: 400;
}

.section-header p {
    color: var(--c-slate);
    font-size: 1.05rem;
}

/* ----- Motel cards ----- */
.motel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.motel-card {
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .2s;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.motel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-border-strong);
    color: inherit;
}

.motel-card-image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    position: relative;
}

.motel-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--c-navy);
    color: #fff;
    padding: .35rem .85rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    z-index: 2;
}

.motel-card-body {
    padding: 1.5rem 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.motel-card h3 {
    font-size: 1.3rem;
    margin-bottom: .35rem;
    color: var(--c-ink);
    font-weight: 500;
}

.motel-card .motel-location {
    color: var(--c-grey);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.motel-card-description {
    color: var(--c-slate);
    font-size: .92rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex: 1;
}

.motel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--c-border);
    padding-top: 1rem;
    margin-top: auto;
}

.motel-card-price {
    font-size: .75rem;
    color: var(--c-grey);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.motel-card-price strong {
    font-family: var(--f-body);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--c-ink);
    display: block;
    margin-top: .15rem;
    text-transform: none;
    letter-spacing: normal;
}

.motel-card-cta {
    color: var(--c-burgundy);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: .85rem 1.85rem;
    font-family: var(--f-body);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s;
    text-align: center;
    border-radius: 0;
}

.btn-primary {
    background: var(--c-navy);
    color: #fff !important;
    border-color: var(--c-navy);
}
.btn-primary:hover {
    background: var(--c-navy-deep);
    color: #fff !important;
}

.btn-burgundy, .btn-gold {
    background: var(--c-burgundy);
    color: #fff !important;
    border-color: var(--c-burgundy);
}
.btn-burgundy:hover, .btn-gold:hover {
    background: var(--c-burgundy-dk);
    color: #fff !important;
}

.btn-outline {
    background: transparent;
    color: var(--c-navy);
    border-color: var(--c-navy);
}
.btn-outline:hover {
    background: var(--c-navy);
    color: #fff !important;
}

.btn-ghost {
    background: transparent;
    color: var(--c-slate);
    border-color: var(--c-border-strong);
}
.btn-ghost:hover {
    background: var(--c-mist);
    color: var(--c-ink);
}

.btn-block { display: block; width: 100%; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: .9rem; }

/* ----- Motel detail page ----- */
.motel-hero {
    min-height: 460px;
    background-color: var(--c-navy);   /* fallback when no image uploaded */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.motel-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,26,48,.4) 0%, rgba(8,26,48,.75) 100%);
}

.motel-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    width: 100%;
}

.motel-hero h1 {
    color: #fff;
    font-family: var(--f-display);
    margin: .5rem 0;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}
.motel-hero .motel-address {
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .82rem;
    font-weight: 500;
}

.motel-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
    padding: 4rem 0;
}

.motel-content h2 {
    margin-top: 2.5rem;
    color: var(--c-ink);
    font-family: var(--f-display);
    font-weight: 400;
}
.motel-content h2:first-child { margin-top: 0; }

/* ── Amenity icon grid (Booking.com style) ── */
.amenity-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .85rem 2.25rem;
}
.amenity-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .93rem;
    color: var(--c-slate);
    min-width: 180px;
}
.amenity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #3daa6e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #3daa6e;
}
.amenity-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.motel-sidebar {
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    padding: 2rem;
    position: sticky;
    top: 6rem;
    align-self: start;
}

.motel-sidebar h3 {
    border-bottom: 1px solid var(--c-border);
    padding-bottom: .85rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--c-ink);
    font-weight: 500;
}

.motel-sidebar dl { margin: 0 0 1.5rem; }
.motel-sidebar dt {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--c-grey);
    margin-top: 1rem;
    font-weight: 600;
}
.motel-sidebar dd {
    margin: .25rem 0 0;
    font-weight: 500;
    color: var(--c-ink);
}
.motel-sidebar a { color: var(--c-navy); }

/* ----- Room cards ----- */
.room-card {
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr 240px;
    align-items: stretch;
    transition: border-color .2s, box-shadow .2s;
}
.room-card:hover {
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-sm);
}

.room-image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.room-body { padding: 1.5rem 2rem; }

/* Quill HTML output inside room cards */
.room-description { font-size: .92rem; color: var(--c-slate); line-height: 1.65; margin-bottom: .75rem; }
.room-description p { margin: 0 0 .5em; }
.room-description p:last-child { margin-bottom: 0; }
.room-description ul, .room-description ol { padding-left: 1.25rem; margin: 0 0 .5em; }
.room-description strong { font-weight: 600; color: var(--c-ink); }
.room-description h2, .room-description h3, .room-description h4 { font-size: 1rem; margin: .5em 0 .25em; color: var(--c-ink); }

.room-body h3 {
    font-size: 1.25rem;
    margin-bottom: .35rem;
    color: var(--c-ink);
    font-weight: 500;
}

.room-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--c-grey);
    font-size: .85rem;
    margin-bottom: .85rem;
    flex-wrap: wrap;
}
.room-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.room-meta span::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--c-burgundy);
    border-radius: 50%;
    display: inline-block;
}

.room-price-block {
    background: var(--c-mist);
    padding: 1.5rem 1.5rem;
    text-align: center;
    border-left: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-price-from {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--c-grey);
    font-weight: 600;
}

.room-price {
    font-family: var(--f-body);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--c-navy);
    margin: .35rem 0 .25rem;
    letter-spacing: -0.02em;
}

.room-price-night {
    font-size: .78rem;
    color: var(--c-grey);
    margin-bottom: 1rem;
}

/* ----- Forms ----- */
fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 2rem;
}

legend {
    font-family: var(--f-body);
    font-size: .78rem;
    color: var(--c-burgundy);
    margin-bottom: 1.25rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--c-border);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 600;
}

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

.form-field { margin-bottom: 1rem; }

.form-field label,
.form-row label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--c-grey);
    font-weight: 600;
    margin-bottom: .5rem;
}

.form-field input,
.form-field select,
.form-field textarea,
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--c-border-strong);
    background: var(--c-paper);
    font-family: var(--f-body);
    font-size: .95rem;
    color: var(--c-ink);
    border-radius: 2px;
    transition: border-color .15s, box-shadow .15s;
}

.form-field input:focus,
.form-row input:focus,
.form-field select:focus,
.form-row select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--c-navy);
    box-shadow: 0 0 0 3px rgba(12, 35, 64, .12);
}

.form-field input.error { border-color: var(--c-danger); }

.checkbox-row {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    font-size: .9rem;
    color: var(--c-slate);
    cursor: pointer;
}
.checkbox-row input { width: auto; margin-top: .25rem; accent-color: var(--c-navy); }

/* ----- Confirmation / booking-reference ----- */
.confirmation-page {
    text-align: center;
    padding: 5rem 0;
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--c-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
}

.booking-reference-box {
    display: inline-block;
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-burgundy);
    padding: 1.5rem 3rem;
    margin: 2rem auto;
}

.booking-reference-box span {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: var(--c-grey);
    margin-bottom: .5rem;
    font-weight: 600;
}

.booking-reference-box strong {
    font-family: var(--f-body);
    font-size: 1.6rem;
    color: var(--c-navy);
    letter-spacing: .08em;
    font-weight: 500;
}

/* ----- Alerts ----- */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-left: 3px solid;
    font-size: .92rem;
    background: var(--c-paper);
    color: var(--c-ink);
}
.alert-success { border-color: var(--c-success); }
.alert-error   { border-color: var(--c-danger); color: var(--c-danger); }
.alert-warn    { border-color: var(--c-burgundy); color: var(--c-burgundy); }
.alert-info    { border-color: var(--c-navy); }

/* ----- Lookup page ----- */
.lookup-page {
    max-width: 540px;
    margin: 4rem auto;
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-burgundy);
    padding: 3rem;
    text-align: center;
}
.lookup-page h1 { color: var(--c-ink); font-family: var(--f-display); margin-bottom: 1rem; }
.lookup-page p { color: var(--c-slate); margin-bottom: 2rem; }
.lookup-page form { text-align: left; }

/* ----- CMS page ----- */
.cms-page {
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    padding: 3rem;
    margin: 3rem auto;
    max-width: 820px;
}
.cms-page h1 {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-ink);
    font-family: var(--f-display);
}
.cms-page h2, .cms-page h3 { margin-top: 2rem; color: var(--c-ink); }
.cms-page p, .cms-page ul, .cms-page ol {
    color: var(--c-slate);
    line-height: 1.75;
}

/* ----- Footer ----- */
.site-footer {
    background: var(--c-navy);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--f-display);
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: .5rem;
    font-weight: 400;
}

.footer-tagline {
    color: rgba(255,255,255,.6);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .3em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.site-footer h4 {
    color: #fff;
    font-family: var(--f-body);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .25em;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-submit { grid-column: 1 / -1; padding: 1rem; }
    .motel-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .room-card { grid-template-columns: 1fr; }
    .room-image { aspect-ratio: 16/9; }
    .room-price-block { border-left: 0; border-top: 1px solid var(--c-border); padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .motel-sidebar { position: static; }
}

@media (max-width: 720px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-paper);
        flex-direction: column;
        padding: 1rem;
        gap: .25rem;
        border-top: 1px solid var(--c-border);
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        padding: .85rem 0;
        border-bottom: 1px solid var(--c-border);
    }
    .main-nav a.active::after { display: none; }
    .menu-toggle { display: block; }

    /* Hero — smaller on mobile so it doesn't fill the whole screen */
    .hero { min-height: 420px; }
    .hero-content { padding: 3rem 0 5rem; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }

    .search-form { grid-template-columns: 1fr; }
    /* Reduce the overlap so the search widget doesn't hide behind the fold */
    .search-widget {
        margin-top: -2rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 3.5rem 0; }
    .cms-page, .lookup-page { padding: 2rem 1.5rem; }
}

/* Extra-small phones (≤ 430px) — remove overlap entirely */
@media (max-width: 430px) {
    .hero { min-height: 340px; }
    .hero-content { padding: 2.5rem 0 3rem; }
    .hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
    .search-widget { margin-top: 0; margin-left: .75rem; margin-right: .75rem; }
}

@media print {
    .site-header, .site-footer, .menu-toggle, .btn { display: none !important; }
    body { background: #fff; }
    .booking-reference-box { border: 2px solid #000; }
}

/* ============================================
   MOTEL GALLERY — Booking.com style
   ============================================ */

/* ── Hero photo grid ── */
.motel-photo-grid { display: flex; flex-direction: column; gap: 4px; }

.motel-photo-top {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 210px 210px;
    gap: 4px;
}

.motel-photo-main {
    grid-row: 1 / 3;
    overflow: hidden;
    border-radius: 6px 0 0 6px;
    position: relative;
    cursor: zoom-in;
    display: block;
}

.motel-photo-side {
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    display: block;
}
.motel-photo-side:first-of-type { border-radius: 0 6px 0 0; }
.motel-photo-side:last-of-type  { border-radius: 0 0 6px 0; }

.motel-photo-main img,
.motel-photo-side img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.motel-photo-main:hover img,
.motel-photo-side:hover img { transform: scale(1.04); }

/* ── Thumbnail strip ── */
.motel-photo-strip {
    display: flex;
    gap: 4px;
}
.motel-photo-thumb {
    flex: 1;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    cursor: zoom-in;
    display: block;
}
.motel-photo-thumb:first-child { border-radius: 0 0 0 6px; }
.motel-photo-thumb:last-child  { border-radius: 0 0 6px 0; }

.motel-photo-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.motel-photo-thumb:hover img { transform: scale(1.05); }

.motel-photo-more {
    position: absolute;
    inset: 0;
    background: rgba(12, 35, 64, .62);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .97rem;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: inherit;
}

/* ── Fallback grid for < 3 images ── */
.motel-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}
.motel-gallery-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}
.motel-gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
    display: block;
}
.motel-gallery-thumb:hover img { transform: scale(1.04); }

/* ── Responsive ── */
@media (max-width: 720px) {
    .motel-photo-top {
        grid-template-columns: 1fr;
        grid-template-rows: 220px;
    }
    .motel-photo-main { grid-row: 1; border-radius: 6px; }
    .motel-photo-side { display: none; }
    .motel-photo-strip { flex-wrap: wrap; }
    .motel-photo-thumb { flex: 1 1 calc(33.33% - 4px); }
}

/* Thumbnail strip on room cards */
.room-thumb-strip {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.room-thumb {
    display: block;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid var(--c-border);
    flex-shrink: 0;
    cursor: zoom-in;
}

.room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
    display: block;
}

.room-thumb:hover img { transform: scale(1.08); }

.room-thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--c-mist);
    border: 1px solid var(--c-border);
    border-radius: 2px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--c-slate);
}

/* ── Lightbox overlay ── */
#rs-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 26, 48, .95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#rs-lightbox.open { display: flex; }

#rs-lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    border: 2px solid rgba(255,255,255,.1);
}

.lb-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: rgba(255,255,255,.7);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: 0;
    line-height: 1;
    transition: color .15s;
}
.lb-close:hover { color: #fff; }

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.55);
    font-size: .82rem;
    letter-spacing: .1em;
}

/* ----- flatpickr brand overrides ----- */
.flatpickr-input { background: transparent; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--c-navy) !important;
    border-color: var(--c-navy) !important;
    color: #fff !important;
}
.flatpickr-day:hover { background: var(--c-mist); }
.flatpickr-day.today { border-color: var(--c-burgundy); }
.flatpickr-day.inRange { background: rgba(12,35,64,.08) !important; border-color: transparent !important; }

/* ============================================
   SEARCH RESULTS — motel cards on /search
   ============================================ */

.search-motel-card {
    display: grid;
    grid-template-columns: 300px 1fr 220px;
    gap: 0;
    border: 1px solid var(--c-border);
    background: var(--c-paper);
    margin-bottom: 1.75rem;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.search-motel-card:hover {
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
}

.search-motel-image {
    display: block;
    background-color: var(--c-navy);
    background-size: cover;
    background-position: center;
    min-height: 220px;
    position: relative;
    text-decoration: none;
}

.search-motel-body {
    padding: 1.75rem 2rem;
    border-left: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-motel-name {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--c-ink);
    margin-bottom: .35rem;
    line-height: 1.2;
}

.search-motel-name a {
    color: var(--c-ink);
    text-decoration: none;
}

.search-motel-name a:hover { color: var(--c-burgundy); }

.search-motel-location {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--c-grey);
    font-weight: 600;
    margin-bottom: .85rem;
}

.search-motel-tagline {
    color: var(--c-slate);
    font-size: .97rem;
    line-height: 1.65;
    margin-bottom: .6rem;
}

.search-motel-amenities {
    color: var(--c-grey);
    font-size: .83rem;
    margin: 0;
    line-height: 1.5;
}

.search-motel-cta {
    background: var(--c-mist);
    padding: 1.75rem 1.5rem;
    border-left: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.search-motel-rate-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--c-grey);
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (max-width: 980px) {
    .search-motel-card {
        grid-template-columns: 1fr;
    }
    .search-motel-image {
        min-height: 220px;
    }
    .search-motel-body {
        border-left: 0;
        border-top: 1px solid var(--c-border);
    }
    .search-motel-cta {
        border-left: 0;
        border-top: 1px solid var(--c-border);
    }
}

/* ============================================
   PAGE HERO — inner pages (motels, about, contact, etc.)
   ============================================ */

.page-hero {
    background: var(--c-navy);
    color: #fff;
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(125, 41, 53, 0.07) 100%);
    pointer-events: none;
}

/* Decorative diagonal rule */
.page-hero::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--c-burgundy);
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.page-hero-eyebrow {
    font-size: .72rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--c-burgundy);
    font-weight: 600;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.page-hero-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--c-burgundy);
    display: inline-block;
    flex-shrink: 0;
}

.page-hero h1 {
    color: #fff;
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero p {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 300;
    line-height: 1.65;
    max-width: 560px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-story-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--c-navy);
    overflow: hidden;
}

.about-story-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
}

.about-visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy-soft) 100%);
    position: relative;
}

.about-visual-placeholder::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(255,255,255,.12);
    pointer-events: none;
}

.about-visual-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(125, 41, 53, .25);
}

.about-visual-text {
    font-family: var(--f-display);
    font-size: 1.85rem;
    color: rgba(255,255,255,.35);
    text-align: center;
    font-weight: 400;
    letter-spacing: .05em;
    position: relative;
    z-index: 1;
}

.about-visual-text small {
    display: block;
    font-family: var(--f-body);
    font-size: .65rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: rgba(255,255,255,.2);
    margin-top: .85rem;
    font-weight: 600;
}

.about-blockquote {
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    color: var(--c-ink);
    line-height: 1.45;
    border-left: 3px solid var(--c-burgundy);
    padding-left: 1.75rem;
    margin: 2.5rem 0 2rem;
    font-weight: 400;
    font-style: italic;
}

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

.about-value-card {
    padding: 2.25rem 2rem;
    border: 1px solid var(--c-border);
    background: var(--c-paper);
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}

.about-value-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--c-border-strong);
}

.about-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c-burgundy);
}

.about-value-icon {
    width: 32px;
    height: 2px;
    background: var(--c-border-strong);
    margin-bottom: 1.25rem;
}

.about-value-card h3 {
    font-size: 1.05rem;
    margin-bottom: .65rem;
    color: var(--c-ink);
    font-weight: 600;
}

.about-value-card p {
    color: var(--c-slate);
    font-size: .93rem;
    margin: 0;
    line-height: 1.75;
}

.about-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.about-stat-item {
    text-align: center;
    padding: 3rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,.12);
}

.about-stat-item:last-child { border-right: 0; }

.about-stat-number {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: .6rem;
    display: block;
}

.about-stat-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: rgba(255,255,255,.5);
    font-weight: 600;
}

.about-promise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    padding: 5rem 0;
    align-items: start;
}

.contact-form-section h2 {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--c-ink);
    margin-bottom: .5rem;
}

.contact-form-section > p.contact-intro {
    color: var(--c-slate);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 500px;
}

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

.contact-form .form-row .form-field { margin: 0; }

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--c-border);
}

.contact-info-card {
    background: var(--c-navy);
    padding: 1.75rem 2rem;
    transition: background .15s;
}

.contact-info-card:first-child { padding-top: 2.25rem; }
.contact-info-card:last-child  { padding-bottom: 2.25rem; }

.contact-info-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: var(--c-burgundy);
    font-weight: 600;
    margin-bottom: .65rem;
    display: block;
}

.contact-info-value {
    color: #fff;
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
}

.contact-info-value a {
    color: rgba(255,255,255,.85);
    transition: color .15s;
}

.contact-info-value a:hover { color: #fff; }

.contact-success {
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-success);
    padding: 3.5rem 2.5rem;
    text-align: center;
}

.contact-success-icon {
    width: 60px;
    height: 60px;
    background: var(--c-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 1.5rem;
}

.contact-success h3 {
    font-family: var(--f-display);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--c-ink);
    margin-bottom: .5rem;
}

.contact-success p {
    color: var(--c-slate);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ============================================
   IMPROVED CMS PAGE (page.php)
   ============================================ */

.cms-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.cms-featured-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    margin-bottom: 3rem;
    display: block;
}

.cms-rich-content {
    color: var(--c-slate);
    line-height: 1.8;
    font-size: 1.02rem;
}

.cms-rich-content h2 {
    font-family: var(--f-display);
    font-weight: 400;
    color: var(--c-ink);
    margin: 2.5rem 0 .75rem;
    font-size: 1.85rem;
}

.cms-rich-content h3 {
    color: var(--c-ink);
    font-weight: 600;
    margin: 2rem 0 .65rem;
    font-size: 1.2rem;
}

.cms-rich-content p { margin-bottom: 1.2rem; }

.cms-rich-content ul,
.cms-rich-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.cms-rich-content li { margin-bottom: .45rem; }

.cms-rich-content a {
    color: var(--c-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cms-rich-content blockquote {
    font-family: var(--f-display);
    font-size: 1.4rem;
    color: var(--c-ink);
    border-left: 3px solid var(--c-burgundy);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-weight: 400;
}

/* ============================================
   RESPONSIVE — inner pages
   ============================================ */

@media (max-width: 980px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-promise-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .about-stats-bar {
        grid-template-columns: 1fr 1fr;
    }
    .about-stat-item {
        border-right: 1px solid rgba(255,255,255,.12);
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .about-stat-item:nth-child(2n)   { border-right: 0; }
    .about-stat-item:nth-last-child(-n+2) { border-bottom: 0; }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 0;
    }
    .contact-info-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
    }
}

@media (max-width: 720px) {
    .page-hero { padding: 3rem 0 2.5rem; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .contact-info-sidebar { grid-template-columns: 1fr; }
    .cms-content-wrapper { padding: 2.5rem 0; }
    .cms-featured-image { height: 220px; }
    .about-stats-bar { grid-template-columns: 1fr 1fr; }
}