/* =========================================================================
   Royex Travel
   Palette: deep navy ground, cool paper, brass signal.
   Type:    Sora for headings, Inter for prose, IBM Plex Mono for every
            number the supplier gives us. Prices, airport codes, durations
            and tokens all sit in mono so a fare reads like a fare.
   ========================================================================= */

:root {
    --ink: #0e1b2a;
    --deep: #16324f;
    --slate: #35506b;
    --muted: #5c6e82;
    --line: #e3e8ef;
    --line-soft: #eef2f7;
    --paper: #f4f6f9;
    --surface: #ffffff;

    --brass: #b8873b;
    --brass-dark: #8f6829;
    --brass-soft: #faf3e6;

    --good: #0f7a5a;
    --good-soft: #eaf5f1;
    --warn: #a4402c;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(14, 27, 42, .06), 0 2px 8px rgba(14, 27, 42, .04);
    --shadow-md: 0 4px 12px rgba(14, 27, 42, .08), 0 16px 40px rgba(14, 27, 42, .08);
    --shadow-lg: 0 24px 64px rgba(14, 27, 42, .16);

    --shell: 1200px;
    --gap: 24px;

    --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(20px, 2.4vw, 26px); }
h3 { font-size: 17px; }
h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--brass-dark); }

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

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
    border-radius: 4px;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brass-dark);
    margin-bottom: 12px;
}

.hint { color: var(--muted); font-size: 13px; }
.footnote { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.lede { font-size: 18px; color: var(--slate); }

/* ---------- masthead ---------- */

.masthead {
    background: var(--ink);
    color: #fff;
    position: relative;
    z-index: 40;
}

.masthead-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}

.wordmark { display: flex; align-items: center; gap: 10px; color: #fff; }
.wordmark:hover { color: #fff; }

.wordmark-mark {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .06em;
    background: var(--brass);
    color: var(--ink);
    padding: 5px 8px;
    border-radius: 5px;
}

.wordmark-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -.01em;
}

.masthead-nav { display: flex; gap: 24px; margin-left: auto; }

.masthead-nav a {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.masthead-nav a:hover { color: #fff; border-bottom-color: var(--brass); }

.masthead-contact {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}
.masthead-contact:hover { color: var(--brass); }

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

.hero { position: relative; padding: 72px 0 0; }

/* The search panel and its dropdowns must escape the hero, so nothing here
   may clip. Anything decorative that could bleed is clipped on its own box. */
.hero > .shell { position: relative; z-index: 2; }

.hero-bg {
    position: absolute;
    inset: 0;
    bottom: 92px;
    background:
        radial-gradient(120% 90% at 78% -10%, rgba(184, 135, 59, .30), transparent 58%),
        radial-gradient(90% 70% at 10% 0%, rgba(52, 108, 168, .38), transparent 62%),
        linear-gradient(178deg, #0b1725 0%, #12293f 52%, #16324f 100%);
}

/* a single brass hairline for the horizon, the one flourish on this page */
.hero-bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 96px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 135, 59, .55) 22%, rgba(184, 135, 59, .55) 78%, transparent);
}

.hero-inner { position: relative; color: #fff; padding-bottom: 44px; }
.hero-inner .eyebrow { color: rgba(255, 255, 255, .62); }

.hero-title {
    font-size: clamp(32px, 5.2vw, 56px);
    font-weight: 600;
    margin-bottom: 16px;
    max-width: 15ch;
}

.hero-title em {
    font-style: normal;
    color: var(--brass);
}

.hero-sub {
    color: rgba(255, 255, 255, .74);
    font-size: 17px;
    max-width: 46ch;
}

/* ---------- search panel ---------- */

.panel {
    position: relative;
    z-index: 50;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: visible;
}

.panel-tabs {
    display: flex;
    gap: 2px;
    padding: 8px 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.panel-tab {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.panel-tab:hover { color: var(--ink); background: var(--paper); }

.panel-tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--brass);
    background: transparent;
}

.tab-glyph { font-size: 15px; color: var(--brass-dark); }

.panel-body {
    display: none;
    align-items: flex-end;
    gap: 12px;
    padding: 18px;
    flex-wrap: wrap;
}

.panel-body.is-active { display: flex; }

.panel-compact .panel-body { padding: 12px; gap: 8px; }
.panel-compact { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 150px;
    min-width: 0;
}

.field-grow { flex: 2 1 220px; }

/* A field with an open dropdown must sit above the fields beside it. */
.field:focus-within { z-index: 70; }
.field-narrow { flex: 0 0 96px; }

.field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input[type=text],
.field input[type=date],
.field select,
.guest-toggle {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 13px;
    width: 100%;
    height: 44px;
    text-align: left;
    cursor: pointer;
}

.field input[type=text] { cursor: text; }
.field input::placeholder { color: #9aa8b7; }

.field input:focus,
.field select:focus,
.guest-toggle:focus {
    outline: none;
    border-color: var(--brass);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(184, 135, 59, .16);
}

.guest-toggle {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.btn-search {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.btn-search:hover { background: var(--deep); }

.swap {
    flex: 0 0 auto;
    height: 44px;
    width: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--slate);
    font-size: 17px;
    cursor: pointer;
}

.swap:hover { border-color: var(--brass); color: var(--brass-dark); }

.route-toggle { display: flex; gap: 6px; flex: 1 0 100%; margin-bottom: 2px; }

.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
}

.chip input:checked + span {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

/* suggestions */

.suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-height: 320px;
    overflow-y: auto;
    min-width: 260px;
}

.suggestions li {
    padding: 9px 11px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.suggestions li:hover,
.suggestions li.is-active { background: var(--brass-soft); }

.suggestions .sug-code {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--brass-dark);
    flex: 0 0 auto;
}

.suggestions .sug-name { font-size: 14px; color: var(--ink); }
.suggestions .sug-sub { font-size: 12px; color: var(--muted); margin-left: auto; text-align: right; }
.suggestions .sug-empty { color: var(--muted); font-size: 13px; cursor: default; }

/* guests popover */

.guest-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 14px;
}

.guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
}

.guest-row:last-of-type { border-bottom: 0; }
.guest-row > span { font-size: 14px; display: flex; flex-direction: column; }
.guest-row small { font-size: 11.5px; color: var(--muted); }
.guest-row select { height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; font-family: var(--font-body); }

.stepper { display: flex; align-items: center; gap: 6px; }

.stepper button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 7px;
    color: var(--slate);
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
}

.stepper button:hover:not(:disabled) { border-color: var(--brass); color: var(--brass-dark); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }

.stepper input {
    width: 34px;
    height: 30px;
    text-align: center;
    border: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink);
    padding: 0;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.guest-ages { padding-top: 10px; border-top: 1px solid var(--line-soft); }
.age-inputs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.age-inputs input {
    width: 54px;
    height: 34px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.guest-done {
    width: 100%;
    margin-top: 12px;
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
}

/* ---------- home sections ---------- */

.section { padding: 64px 24px; }
.section-head { margin-bottom: 28px; max-width: 60ch; }
.section-head p { color: var(--muted); }

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.tile {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tile:hover {
    border-color: var(--brass);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.tile-code {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--brass-dark);
    background: var(--brass-soft);
    padding: 3px 7px;
    border-radius: 4px;
}

.tile h3 { margin: 12px 0 2px; font-size: 19px; }
.tile-country { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tile-note { font-size: 13px; color: var(--slate); margin: 0; }

.tile-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--brass);
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
}

.tile:hover .tile-arrow { opacity: 1; transform: translateX(3px); }

.strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}

.strip-num {
    font-size: 12px;
    color: var(--brass-dark);
    letter-spacing: .1em;
}

.strip-item h4 { margin: 10px 0 6px; text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); font-family: var(--font-display); }
.strip-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- results ---------- */

.results-bar {
    background: var(--ink);
    padding: 16px 0 20px;
}

.results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 28px;
    padding-bottom: 18px;
}

.results-head h1 { margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.route-title { font-size: .92em; }
.arrow { color: var(--brass); }

.results-meta { font-size: 12.5px; color: var(--muted); margin: 0; }

.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.sort-form select {
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    padding: 0 10px;
    font-family: var(--font-body);
    font-size: 13.5px;
}

.results-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; }

.crumb { padding-top: 20px; padding-bottom: 4px; }
.crumb a { font-size: 13.5px; color: var(--muted); }
.crumb a:hover { color: var(--brass-dark); }

/* hotel card */

.hotel-card {
    display: grid;
    grid-template-columns: 260px 1fr 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.hotel-card:hover { border-color: #cfd8e3; box-shadow: var(--shadow-md); }

.hotel-photo { background: var(--paper); }
.hotel-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }

.photo-empty {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 190px;
    color: var(--muted);
    font-size: 12.5px;
}

.hotel-body { padding: 18px 20px; min-width: 0; }
.hotel-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

.stars { color: var(--brass); font-size: 12px; letter-spacing: 1px; }

.chain {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.hotel-body h2 { font-size: 19px; margin-bottom: 4px; }
.hotel-address { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.amenity-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.amenity-row li {
    font-size: 12px;
    color: var(--slate);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    padding: 3px 8px;
}

.amenity-row .more { color: var(--muted); background: transparent; border-color: transparent; }

.user-rating { font-size: 13px; color: var(--muted); margin: 0; }
.user-rating strong { color: var(--good); font-size: 15px; margin-right: 4px; }

.hotel-rate {
    border-left: 1px solid var(--line-soft);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    background: linear-gradient(180deg, #fff, #fcfdfe);
}

.rate-label { font-size: 11.5px; color: var(--muted); margin: 0 0 2px; }

.rate-total {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.1;
}

.rate-ccy { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.rate-night { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.rate-tax { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.rate-saved { font-size: 12px; color: var(--good); margin: 4px 0 0; font-weight: 500; }
.rate-gone { font-size: 12.5px; color: var(--warn); }

.btn-primary {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 18px;
    background: var(--brass);
    color: var(--ink);
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .15s ease;
}

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

.btn-ghost {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--slate);
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
}

.btn-ghost:hover { border-color: var(--brass); color: var(--brass-dark); }

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 56px;
    font-size: 13px;
    color: var(--muted);
}

/* flight card */

.highlight-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 16px;
}

.highlight {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.highlight-label {
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brass-dark);
}

.highlight-value { font-size: 16px; font-weight: 600; }
.highlight-note { font-size: 12px; color: var(--muted); }

.flight-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.flight-legs { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }

.leg { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }

.leg-carrier { display: flex; align-items: center; gap: 10px; }
.leg-carrier img { width: 30px; height: 30px; object-fit: contain; }
.carrier-name { font-size: 14px; font-weight: 500; margin: 0; }
.carrier-code { font-size: 11.5px; color: var(--muted); margin: 0; }
.carrier-aircraft { font-size: 11.5px; color: var(--muted); margin: 0; }

.leg-route { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 14px; align-items: center; }
.leg-end { min-width: 0; }
.leg-end-right { text-align: right; }
.leg-time { font-size: 15px; font-weight: 500; margin: 0; }
.leg-port { font-size: 12px; color: var(--muted); margin: 0; letter-spacing: .05em; }

.leg-line { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.leg-duration { font-size: 11.5px; color: var(--muted); }

/* the route hairline: dots mark real stops, so the drawing carries data */
.leg-line .line {
    position: relative;
    width: 100%;
    height: 1px;
    background: var(--line);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.leg-line .line::before,
.leg-line .line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--slate);
}

.leg-line .line::before { left: 0; }
.leg-line .line::after { right: 0; }

.stop-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brass);
    display: block;
    position: relative;
    z-index: 1;
}

.leg-stops { font-size: 11.5px; color: var(--muted); }

.operated { grid-column: 2; font-size: 11.5px; color: var(--muted); margin: 0; }

.flight-fares { border-top: 1px solid var(--line-soft); background: #fcfdfe; }

.fare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.fare:last-child { border-bottom: 0; }
.fare.is-best { background: var(--brass-soft); }
.fare-cabin { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.fare-meta { min-width: 0; }
.fare-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }

.rate-flags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }

.rate-flags li {
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 5px;
    background: var(--paper);
    color: var(--slate);
}

.flag-good { background: var(--good-soft); color: var(--good); }
.flag-plain { background: var(--paper); color: var(--muted); }

/* ---------- property page ---------- */

.property-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 18px;
}

.property-address { color: var(--muted); font-size: 14px; margin: 0 0 2px; }
.property-phone { font-size: 13px; color: var(--muted); margin: 0; }

.property-stay {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 16px;
}

.stay-nights { color: var(--brass-dark); }

.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 130px 130px;
    gap: 6px;
    padding-bottom: 28px;
}

.gallery figure { margin: 0; overflow: hidden; border-radius: 6px; background: var(--line-soft); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.property-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    padding-bottom: 56px;
    align-items: start;
}

.rooms h2 { margin-bottom: 14px; }

.room {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}

.room-head { display: flex; gap: 16px; padding: 18px 20px; }
.room-photo { width: 140px; height: 100px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; }
.room-head h3 { margin-bottom: 3px; }
.room-meta { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.room-desc { font-size: 13.5px; color: var(--slate); margin-bottom: 8px; }

.rate-list { border-top: 1px solid var(--line-soft); }

.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.rate-row:last-child { border-bottom: 0; }
.rate-terms { min-width: 0; flex: 1 1 300px; }
.rate-bed { font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.rate-extra { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.rate-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }

.property-aside, .itinerary-aside, .price-aside { display: flex; flex-direction: column; gap: 14px; }

.aside-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.aside-block h3 { margin-bottom: 10px; }

.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plain-list li { font-size: 13.5px; color: var(--slate); }
.plain-list strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

.amenity-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
}

.amenity-grid li { font-size: 12.5px; color: var(--slate); }

.policy-list { margin: 0; }
.policy-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-top: 10px; }
.policy-list dt:first-child { margin-top: 0; }
.policy-list dd { margin: 3px 0 0; font-size: 13px; color: var(--slate); }

.coords { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

/* ---------- price / itinerary ---------- */

.price-page, .itinerary-head { padding-top: 12px; }
.price-head { margin-bottom: 24px; }
.price-room { font-size: 16px; color: var(--slate); margin-bottom: 6px; }
.price-dates { font-size: 13px; color: var(--muted); }

.price-grid, .itinerary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    padding-bottom: 56px;
    align-items: start;
}

.block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
}

.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.block-head h2 { margin: 0; }
.block-meta { font-size: 12.5px; color: var(--muted); }

/* the fare strip: the one place numbers are allowed to dominate */
.fare-strip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--brass);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
}

.fare-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 14px;
    border-bottom: 1px dotted var(--line);
}

.fare-line:last-of-type { border-bottom: 0; }
.fare-line > span:first-child { color: var(--muted); }
.fare-muted { font-size: 13px; }
.fare-muted > span { color: var(--muted) !important; }

.fare-total {
    border-top: 1px solid var(--ink);
    border-bottom: 0;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 600;
}

.fare-total > span:first-child { color: var(--ink) !important; }
.fare-total .mono { font-size: 20px; }

.fare-grand { font-weight: 600; }
.fare-saved { font-size: 12.5px; color: var(--good); margin: 10px 0 0; }

.price-room-card { border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 14px; }
.price-room-card:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.policy-timeline { list-style: none; margin: 10px 0 0; padding: 0; }

.policy-timeline li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px dotted var(--line);
}

.policy-timeline li:last-child { border-bottom: 0; }

.token {
    font-size: 11px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 8px;
    margin: 10px 0 0;
    word-break: break-all;
    line-height: 1.4;
}

.segments { list-style: none; margin: 0; padding: 0; }

.segment {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    align-items: start;
}

.segment:last-child { border-bottom: 0; padding-bottom: 0; }
.segment-carrier { display: flex; gap: 10px; align-items: flex-start; }
.segment-carrier img { width: 32px; height: 32px; object-fit: contain; }

.segment-times { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.segment-time { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.2; }
.segment-day { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.segment-port { font-size: 12px; color: var(--brass-dark); margin: 0; letter-spacing: .06em; }
.segment-portname { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

.segment-rule { text-align: center; color: var(--muted); font-size: 11.5px; }
.segment-rule::before { content: ''; display: block; width: 60px; height: 1px; background: var(--line); margin: 0 auto 5px; }

.segment-extra { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.pill {
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    color: var(--slate);
}

.pill-muted { color: var(--muted); }

.layover {
    grid-column: 2;
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--brass-dark);
    background: var(--brass-soft);
    border-radius: 6px;
    padding: 6px 10px;
    display: inline-block;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table caption { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 0 6px; }
.data-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.data-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line-soft); }
.data-table tr:last-child td { border-bottom: 0; }

.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.service-list li:last-child { border-bottom: 0; }

.rule { border: 1px solid var(--line-soft); border-radius: 7px; padding: 10px 12px; margin-bottom: 8px; }
.rule summary { cursor: pointer; font-size: 13.5px; display: flex; gap: 10px; align-items: baseline; }
.rule-basis { font-size: 11.5px; color: var(--muted); }
.rule-text { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; background: var(--paper); padding: 12px; border-radius: 6px; margin-top: 10px; max-height: 320px; overflow: auto; }
.fare-type { font-size: 12px; color: var(--brass-dark); margin-bottom: 10px; }

/* ---------- states ---------- */

.notice {
    background: #fff6f4;
    border: 1px solid #f2d5cd;
    border-left: 3px solid var(--warn);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #6f2c1d;
    font-size: 14px;
}

.empty {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 40px;
}

.empty h2, .empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto; }

.prose { padding: 48px 24px 72px; max-width: 68ch; }
.prose h2 { margin-top: 32px; }

/* ---------- footer ---------- */

.footer { background: var(--ink); color: rgba(255, 255, 255, .72); margin-top: 40px; }

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 32px;
}

.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 { color: rgba(255, 255, 255, .45); margin-bottom: 10px; }
.footer-cols a { display: block; color: rgba(255, 255, 255, .72); font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { color: var(--brass); }
.footer .footnote { color: rgba(255, 255, 255, .5); }

.footer-base {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .45);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .property-grid, .price-grid, .itinerary-grid { grid-template-columns: 1fr; }
    .hotel-card { grid-template-columns: 210px 1fr; }
    .hotel-rate { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-soft); flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
    .hotel-rate .btn-primary { margin-top: 0; }
}

@media (max-width: 860px) {
    .masthead-nav { display: none; }
    .hero { padding-top: 48px; }
    .field, .field-grow, .field-narrow { flex: 1 1 100%; }
    .btn-search { width: 100%; }
    .swap { display: none; }
    .guest-popover { right: auto; left: 0; width: 100%; }
    .leg { grid-template-columns: 1fr; gap: 12px; }
    .operated, .segment-extra, .layover { grid-column: 1; }
    .segment { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 120px 120px; }
    .gallery figure:first-child { grid-row: span 1; grid-column: span 2; }
    .gallery figure:nth-child(n+4) { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .hotel-card { grid-template-columns: 1fr; }
    .hotel-photo img, .photo-empty { min-height: 170px; }
    .room-head { flex-direction: column; }
    .room-photo { width: 100%; height: 160px; }
    .leg-route { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .segment-times { grid-template-columns: 1fr; text-align: left; }
    .segment-rule::before { margin: 8px 0; }
    .amenity-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================================
   Property page, rebuilt to the reference layout.
   Card grid for rooms, inline availability re-search, section nav.
   ========================================================================= */

.property-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.property-bar-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.back-link {
    font-size: 20px;
    line-height: 1;
    color: var(--slate);
    padding: 4px 8px 4px 0;
    flex: 0 0 auto;
}

.back-link:hover { color: var(--brass-dark); }

.property-bar-title { flex: 1 1 auto; min-width: 0; }
.property-bar-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.property-bar-name h1 { font-size: clamp(20px, 2.6vw, 26px); margin: 0; }
.property-bar-address { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.btn-reserve {
    flex: 0 0 auto;
    background: var(--brass);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 7px;
}

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

/* gallery: one lead image, four supporting, count badge */

.hero-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.hero-gallery figure { margin: 0; overflow: hidden; border-radius: 8px; background: var(--line-soft); }
.hg-main { height: 340px; }
.hg-main img { width: 100%; height: 100%; object-fit: cover; }

.hg-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 340px; }
.hg-grid img { width: 100%; height: 100%; object-fit: cover; }

.hg-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(14, 27, 42, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

/* sticky section nav */

.section-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    margin-top: 24px;
}

.section-nav-inner { display: flex; gap: 4px; overflow-x: auto; }

.section-nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    padding: 14px 16px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.section-nav a:hover { color: var(--ink); }
.section-nav a.is-active { color: var(--ink); border-bottom-color: var(--brass); }

.block-section { padding-top: 36px; padding-bottom: 8px; scroll-margin-top: 64px; }

.sub-head {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
}

.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.overview-desc { font-size: 14px; color: var(--slate); margin-bottom: 24px; }

.address-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.address-card h3 { font-size: 14px; margin-bottom: 8px; }
.address-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }

.link-btn {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--deep);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-btn:hover { color: var(--brass-dark); }

.tick-grid {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
}

.tick-grid-wide { grid-template-columns: repeat(4, 1fr); }
.tick-grid li { font-size: 13.5px; color: var(--slate); display: flex; align-items: baseline; gap: 8px; }
.tick { color: var(--good); font-size: 12px; flex: 0 0 auto; }
.tick-grid li[hidden] { display: none; }

/* choose your room: inline availability re-search */

.rooms-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.rooms-head .sub-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.room-search { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }

.room-search-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 12px;
    height: 42px;
}

.rs-glyph { font-size: 14px; opacity: .55; flex: 0 0 auto; }
.rs-dates { display: flex; align-items: center; gap: 6px; }
.rs-divider { color: var(--line); }

.rs-dates input {
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--ink);
    padding: 0;
    width: 120px;
}

.rs-dates input:focus { outline: none; }

.rs-guests {
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    white-space: nowrap;
}

.rs-caret { font-size: 10px; opacity: .5; }

.rs-submit {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.rs-submit:hover { background: var(--deep); }
.room-search-field:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184, 135, 59, .16); }

/* room cards */

.room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-bottom: 24px;
}

.room-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.rc-media { position: relative; height: 160px; background: var(--line-soft); overflow: hidden; }
.rc-track { display: flex; height: 100%; transition: transform .25s ease; }
.rc-track img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; }

.rc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease;
}

.rc-media:hover .rc-nav, .rc-nav:focus-visible { opacity: 1; }
.rc-prev { left: 8px; }
.rc-next { right: 8px; }

.rc-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.rc-name { font-size: 14px; line-height: 1.3; margin: 0; }

.rc-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.rc-facts li { font-size: 12px; color: var(--muted); }
.rc-bed { font-size: 12px; color: var(--muted); margin: 0; }

/* The source list is never shown inline any more: it exists so the amenities are
   still in the markup without JS, and the modal clones it. `display: flex` here
   used to beat the browser's own `[hidden] { display: none }`, so the list
   rendered under every card and the button looked dead. */
.rc-features { display: none; }
.rc-features li { font-size: 12px; color: var(--slate); display: flex; align-items: baseline; gap: 7px; }

.rc-section { border-top: 1px solid var(--line-soft); padding-top: 10px; }

.rc-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 6px;
}

.rc-inline { font-size: 12.5px; margin: 0; display: inline-block; padding: 2px 8px; border-radius: 5px; }
.rc-extras { display: flex; flex-direction: column; gap: 4px; }

.rc-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    cursor: pointer;
    padding: 4px 0;
}

.rc-extra input { margin: 0; accent-color: var(--brass-dark); flex: 0 0 auto; }
.rc-extra-name { color: var(--slate); }
.rc-extra-price { margin-left: auto; color: var(--muted); font-size: 12px; }

.rc-price { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.rc-total-label { font-size: 11.5px; color: var(--muted); margin: 0; }
.rc-total { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin: 2px 0 0; }
.rc-incl { font-size: 11px; color: var(--muted); margin: 1px 0 0; }
.rc-per-night { font-size: 11.5px; color: var(--muted); margin: 4px 0 6px; }

.rc-policy { list-style: none; margin: 8px 0 0; padding: 0; }

.rc-policy li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    padding: 5px 0;
    border-bottom: 1px dotted var(--line);
}

.rc-policy li:last-child { border-bottom: 0; }

.rc-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rc-left { font-size: 11.5px; color: var(--warn); font-weight: 500; }
.rc-left-quiet { color: var(--muted); font-weight: 400; }
.rc-actions .btn-primary { margin-top: 0; padding: 8px 16px; font-size: 12.5px; }

.rc-save {
    margin: 0;
    background: var(--good-soft);
    color: var(--good);
    font-size: 11.5px;
    text-align: center;
    padding: 8px 12px;
    border-top: 1px solid rgba(15, 122, 90, .12);
}

/* nearby, about, policies */

.nearby-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.nearby { background: var(--surface); padding: 14px; }
.nearby-name { font-size: 13px; font-weight: 500; margin: 0 0 3px; }
.nearby-dist { font-size: 11.5px; color: var(--muted); margin: 0; }

.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.about-sub { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 600; margin: 16px 0 4px; }
.about-sub:first-of-type { margin-top: 0; }
.about-sub-spaced { margin-top: 24px; }
.about-text { font-size: 13.5px; color: var(--slate); margin: 0 0 10px; }

.kv-list { margin: 0; font-size: 13.5px; }
.kv-list dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-top: 10px; }
.kv-list dt:first-child { margin-top: 0; }
.kv-list dd { margin: 2px 0 0; color: var(--slate); }

.policy-blocks { columns: 2; column-gap: 40px; }
.policy-block { break-inside: avoid; margin-bottom: 16px; }

/* reviews */

.review-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }

.review-badge {
    display: flex;
    align-items: baseline;
    gap: 3px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 12px 16px;
}

.review-score { font-size: 26px; font-weight: 600; line-height: 1; }
.review-outof { font-size: 13px; opacity: .6; }
.review-headline { font-size: 16px; font-weight: 600; margin: 0; font-family: var(--font-display); }
.review-count { font-size: 13px; color: var(--muted); margin: 2px 0 0; }

.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; margin-bottom: 28px; }
.score-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 5px; }
.score-top span { color: var(--muted); }
.score-bar { height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--brass); border-radius: 2px; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-grid > [hidden] { display: none; }

.review {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.review-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.review-rating { font-size: 12px; font-weight: 600; color: var(--good); background: var(--good-soft); padding: 2px 7px; border-radius: 5px; }
.review-title { font-size: 13px; font-weight: 600; }
.review-source { font-size: 11px; color: var(--muted); margin-left: auto; }
.review-author { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.review-author strong { color: var(--ink); }
.review-with, .review-date { font-size: 11.5px; }
.review-text { font-size: 13px; color: var(--slate); margin: 0; }
.review-more { text-align: center; padding: 20px 0 8px; }

/* property page responsive */

@media (max-width: 1080px) {
    .room-grid { grid-template-columns: repeat(3, 1fr); }
    .nearby-grid { grid-template-columns: repeat(4, 1fr); }
    .score-grid { grid-template-columns: repeat(3, 1fr); }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
    .tick-grid-wide { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .overview-grid, .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .room-grid { grid-template-columns: repeat(2, 1fr); }
    .nearby-grid { grid-template-columns: repeat(2, 1fr); }
    .score-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .tick-grid, .tick-grid-wide { grid-template-columns: repeat(2, 1fr); }
    .policy-blocks { columns: 1; }
    .hero-gallery { grid-template-columns: 1fr; }
    .hg-main { height: 240px; }
    .hg-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; height: 80px; }
    .property-bar-inner { flex-wrap: wrap; }
    .btn-reserve { width: 100%; text-align: center; }
    .room-search { width: 100%; }
    .room-search-field { flex: 1 1 auto; }
}

@media (max-width: 560px) {
    .room-grid { grid-template-columns: 1fr; }
    .tick-grid, .tick-grid-wide { grid-template-columns: 1fr; }
    .rs-dates input { width: 104px; }
}

/* =========================================================================
   Room features modal
   ========================================================================= */

body.has-modal { overflow: hidden; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 27, 42, .55);
    backdrop-filter: blur(2px);
    animation: modal-fade .16s ease;
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modal-rise .18s ease;
}

.modal-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.modal-head-text { min-width: 0; }

.modal-eyebrow {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brass-dark);
    margin: 0 0 6px;
}

.modal-head h3 { font-size: 18px; margin: 0; }
.modal-facts { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }
.modal-facts[hidden] { display: none; }

.modal-close {
    flex: 0 0 auto;
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--slate);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover { border-color: var(--brass); color: var(--brass-dark); }

.modal-body { padding: 18px 22px 22px; overflow-y: auto; }

.modal-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 20px;
}

.modal-features li {
    font-size: 13.5px;
    color: var(--slate);
    display: flex;
    align-items: baseline;
    gap: 8px;
}


@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-panel { max-width: none; max-height: 88vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .modal-features { grid-template-columns: 1fr; }
}

/* =========================================================================
   Icon sprite
   ========================================================================= */

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -3px;
}

.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 20px; height: 20px; }

/* =========================================================================
   Search results: filter rail + redesigned cards
   ========================================================================= */

.search-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 56px;
}

/* ---- filter rail ---- */

.filters {
    position: sticky;
    top: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.filters-head h2 { font-size: 15px; margin: 0; }

.filter-group { border-bottom: 1px solid var(--line-soft); }
.filter-group:last-of-type { border-bottom: 0; }

.filter-legend {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.filter-legend small {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}

.filter-legend .chevron { color: var(--muted); font-size: 10px; transition: transform .15s ease; }
.filter-group.is-collapsed .chevron { transform: rotate(180deg); }
.filter-group.is-collapsed .filter-body { display: none; }

.filter-body { padding: 0 16px 16px; }
.filter-note { font-size: 11px; color: var(--muted); margin: 8px 0 0; }

.price-inputs { display: flex; gap: 10px; }
.price-inputs label { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.price-inputs span { font-size: 11px; color: var(--muted); }

.price-inputs input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 10px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.price-inputs input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184, 135, 59, .16); }

/* price distribution behind the range, built from the current page of results */
.histogram {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 42px;
    margin-top: 12px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line);
}

.histogram i { flex: 1 1 0; background: var(--brass); opacity: .45; border-radius: 1px 1px 0 0; }

.range { width: 100%; accent-color: var(--brass-dark); margin: 6px 0 4px; }
.range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.range-scale output { color: var(--ink); font-weight: 600; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.check-list > [hidden] { display: none; }

.check-list label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--slate);
    cursor: pointer;
}

.check-list input { margin: 0; accent-color: var(--brass-dark); flex: 0 0 auto; }
.check-label { display: flex; align-items: center; gap: 7px; min-width: 0; }
.check-price { margin-left: auto; font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.check-list .stars { font-size: 10px; }

.filter-apply { width: calc(100% - 32px); margin: 4px 16px 16px; height: 40px; }

/* ---- hotel result card ---- */

.search-results { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.result-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 190px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.result-card:hover { border-color: #cfd8e3; box-shadow: var(--shadow-md); }

.rescard-photo { background: var(--paper); display: block; }
.rescard-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }

.rescard-body { padding: 16px 18px; min-width: 0; }
.rescard-body h2 { font-size: 17px; margin-bottom: 4px; }
.rescard-locality { font-size: 13px; color: var(--deep); margin: 4px 0 2px; }

.rescard-distance {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-amenities {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 16px;
}

.icon-amenities li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--slate);
    min-width: 0;
}

.icon-amenities span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-amenities .ic { color: var(--good); }

.rescard-rate {
    border-left: 1px solid var(--line-soft);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    background: linear-gradient(180deg, #fff, #fcfdfe);
}

.btn-select {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 9px 16px;
    border: 1px solid var(--brass);
    border-radius: 7px;
    background: var(--surface);
    color: var(--brass-dark);
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
}

.btn-select:hover { background: var(--brass); color: var(--ink); }

/* ---- flight rank tabs ---- */

.rank-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.rank-tab {
    padding: 14px 18px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rank-tab:last-child { border-right: 0; }
.rank-tab:hover { background: var(--paper); color: inherit; }
.rank-tab.is-active { border-bottom-color: var(--brass); background: var(--brass-soft); }

.rank-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rank-tab.is-active .rank-label { color: var(--brass-dark); }
.rank-price { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.rank-price-empty { color: var(--muted); font-weight: 400; }
.rank-note { font-size: 11.5px; color: var(--muted); }

.result-count {
    display: inline-block;
    font-size: 12.5px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px;
    margin: 0;
    align-self: flex-start;
}

.trip-tag {
    font-size: 11.5px;
    color: var(--brass-dark);
    background: var(--brass-soft);
    padding: 3px 9px;
    border-radius: 999px;
}

/* ---- flight fare card ---- */

.fare-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.fare-card:hover { border-color: #cfd8e3; box-shadow: var(--shadow-md); }

.fare-legs { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }

.fl-leg { display: grid; grid-template-columns: 70px 1fr 2fr 1fr; gap: 14px; align-items: center; }
.fl-carrier { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--slate); }
.fl-carrier img { width: 30px; height: 30px; object-fit: contain; }
.fl-carrier-code { font-size: 11px; color: var(--muted); }

.fl-end { min-width: 0; }
.fl-end-right { text-align: right; }
.fl-time { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: -.01em; }

.fl-port {
    font-size: 11.5px;
    color: var(--muted);
    margin: 3px 0 0;
    letter-spacing: .04em;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.fl-end-right .fl-port { justify-content: flex-end; }

/* the date sits under the airport code, quieter than both */
.fl-day { color: var(--slate); opacity: .75; }

/* a landing on a later calendar day is easy to miss, so it is called out */
.fl-next-day {
    font-size: 10px;
    font-weight: 600;
    color: var(--warn);
    background: #fdf0ec;
    border-radius: 4px;
    padding: 1px 4px;
    margin-left: 3px;
    top: -.5em;
}

.fl-line { text-align: center; }
.fl-duration { font-size: 11.5px; color: var(--muted); margin: 0 0 4px; }
.fl-via { font-size: 11px; color: var(--brass-dark); margin: 4px 0 0; }

/* dotted route line: the dots are real stops, not decoration */
.fl-rule {
    position: relative;
    height: 1px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.fl-dot {
    position: absolute;
    left: 0;
    width: 6px;
    height: 6px;
    border: 1.5px solid var(--slate);
    border-radius: 50%;
    background: var(--surface);
}

.fl-stop { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); position: relative; z-index: 1; }
.fl-plane { position: absolute; right: -4px; color: var(--slate); }

.fl-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line-soft);
    padding-top: 12px;
}

.fl-cabin { font-size: 12.5px; font-weight: 500; color: var(--slate); }
.fl-operated { font-size: 11.5px; color: var(--muted); }
.fl-bags { margin-left: auto; display: flex; gap: 6px; }

.bag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--slate);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 4px 9px;
}

.fare-rate {
    border-left: 1px solid var(--line-soft);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    background: linear-gradient(180deg, #fff, #fcfdfe);
}

/* ---- multi-city rows in the search panel ---- */

.simple-legs { display: contents; }
.simple-legs[hidden], .multi-legs[hidden] { display: none; }

.multi-legs { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; }
.multi-leg { display: flex; align-items: flex-end; gap: 8px; }

.leg-index {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-bottom: 11px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    font-size: 11px;
    display: grid;
    place-items: center;
}

.leg-remove {
    flex: 0 0 auto;
    width: 36px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
}

.leg-remove:hover { border-color: var(--warn); color: var(--warn); }

.leg-add {
    align-self: flex-start;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: none;
    color: var(--deep);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
}

.leg-add:hover { border-color: var(--brass); color: var(--brass-dark); }

.switch { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-left: auto; cursor: pointer; }
.switch input { margin: 0; accent-color: var(--brass-dark); }

/* ---- results responsive ---- */

@media (max-width: 1080px) {
    .search-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .icon-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .result-card { grid-template-columns: 200px minmax(0, 1fr); }
    .rescard-rate { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-soft); flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
    .btn-select { width: auto; margin-top: 0; }
    .fare-card { grid-template-columns: 1fr; }
    .fare-rate { border-left: 0; border-top: 1px solid var(--line-soft); flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
    .fl-leg { grid-template-columns: 46px 1fr 1.4fr 1fr; gap: 8px; }
    .multi-leg { flex-wrap: wrap; }
    .rank-tabs { grid-template-columns: 1fr; }
    .rank-tab { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 620px) {
    .result-card { grid-template-columns: 1fr; }
    .rescard-photo img { min-height: 170px; }
    .icon-amenities { grid-template-columns: 1fr; }
    .fl-leg { grid-template-columns: 1fr 1.2fr 1fr; }
    .fl-carrier { display: none; }
}

/* An advisory rather than an error: the page still works, the currency is just not
   the one that was asked for. */
.notice-warn {
    background: var(--brass-soft);
    border-color: #e8d5aa;
    border-left-color: var(--brass);
    color: #6b4e14;
}
