/* ==========================================================================
   Macam Travel — design tokens + site styles

   Themed through the OneBloc `--ob-*` tokens so the shared UI kit (OBNotify,
   OBValidate, OBTip, DataGrid) inherits the brand rather than fighting it.

   The ground is white. Travel marketplaces sit on white because the photography
   is the colour — the interface should get out of its way, and a card needs to
   read as a tappable object rather than a panel sunk into a tinted page. The
   Macam forest-green, mint and gold stay, but they are now reserved for the
   things that act: buttons, badges, accents, and the dark closing band.
   ========================================================================== */

/* ── Fonts: self-hosted from /fonts (tools/self-host-fonts.py), SIL OFL 1.1 ─────────────
   Variable fonts: one file per family and subset covers every weight. Self-hosted so the
   first paint waits on this server only (no fonts.googleapis.com -> fonts.gstatic.com chain). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    /* Brand */
    --mt-forest: #12352B;   /* deep mountain green — dark surfaces */
    --mt-forest-2: #0C241D;
    --mt-green: #1E6A54;   /* primary action */
    --mt-green-hi: #27856A;
    --mt-mint: #5ED4B3;   /* the existing Macam mint */
    --mt-gold: #C0872E;   /* warm gold accent */
    --mt-amber: #F5A94C;   /* the existing Macam amber */
    --mt-bg: #FFFFFF;      /* the ground. White, like every marketplace that photographs well */
    --mt-bg-2: #F6F8FA;    /* the alternating band — cool near-white, not a tint */
    --mt-bg-3: #EEF1F4;    /* image placeholder ground */

    /* OneBloc kit tokens — the kit reads these */
    --ob-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ob-ink: #14161F;
    --ob-muted: #5E6472;
    --ob-faint: #9AA0AE;
    --ob-line: #E4E7EC;
    --ob-accent: var(--mt-green);
    --ob-success: #0E9F6E;
    --ob-danger: #E5484D;
    --ob-warning: #C4841D;

    --mt-display: "Fraunces", Georgia, "Times New Roman", serif;

    /* Shape + depth */
    --mt-r-sm: 10px;
    --mt-r: 16px;
    --mt-r-lg: 22px;
    --mt-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px rgba(16, 24, 40, .16);
    --mt-shadow-lift: 0 2px 8px rgba(16, 24, 40, .07), 0 20px 44px -18px rgba(16, 24, 40, .24);

    --mt-max: 1200px;
}

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

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

body {
    margin: 0;
    font-family: var(--ob-font);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ob-ink);
    background: var(--mt-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--mt-green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-family: var(--mt-display); font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 600; }
h2 { font-family: var(--mt-display); font-size: clamp(1.55rem, 3.2vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--mt-max); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--mt-green) 55%, white);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--mt-forest); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--mt-r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── Buttons — pills, per the house nav standard ───────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 20px; border-radius: 999px;
    font: 600 14.5px/1 var(--ob-font); letter-spacing: -.01em;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--mt-green); color: #fff; }
.btn-primary:hover { background: var(--mt-green-hi); box-shadow: 0 8px 22px -8px rgba(30, 106, 84, .7); }

.btn-ink { background: var(--ob-ink); color: #fff; }
.btn-ink:hover { background: #23262f; box-shadow: 0 8px 22px -8px rgba(20, 22, 31, .6); }

.btn-ghost { background: transparent; color: var(--ob-ink); border-color: var(--ob-line); }
.btn-ghost:hover { background: #F2F4F7; border-color: #D0D5DD; }

.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.24); }

.btn-gold { background: var(--mt-gold); color: #fff; }
.btn-gold:hover { background: #ad7726; }

.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* The Connect SSO pill — gradient outline that fills on hover, per the nav standard. */
.btn-connect {
    position: relative; background: #fff; color: var(--ob-ink);
    border: 0; padding: 0 20px; height: 42px;
}
.btn-connect::before {
    content: ""; position: absolute; inset: 0; border-radius: 999px; padding: 1.5px;
    background: linear-gradient(100deg, #2B7FF0, #7A5AF8, #D946A8);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn-connect .cx-glyph { color: #2B7FF0; transition: color .16s ease; }
.btn-connect:hover { background: linear-gradient(100deg, #2B7FF0, #7A5AF8, #D946A8); color: #fff; }
.btn-connect:hover .cx-glyph { color: #fff; }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .90);
    backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--ob-line);
}
.site-header .bar {
    display: flex; align-items: center; gap: 28px;
    height: 68px; max-width: var(--mt-max); margin: 0 auto; padding: 0 22px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ob-ink); }
.brand-rule { width: 1px; height: 20px; background: var(--ob-line); }
.brand-module { font-weight: 600; font-size: 16px; color: var(--mt-green); letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 6px; }
.nav-links a { font-weight: 600; font-size: 14.5px; color: var(--ob-muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ob-ink); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-burger {
    display: none; width: 40px; height: 40px; border-radius: 999px;
    border: 1px solid var(--ob-line); background: #fff; cursor: pointer;
    align-items: center; justify-content: center;
}

.nav-sheet {
    display: none; border-top: 1px solid var(--ob-line); background: var(--mt-bg);
    padding: 16px 22px 22px;
}
.nav-sheet.open { display: block; }
.nav-sheet a.sheet-link {
    display: block; padding: 11px 0; font-weight: 600; color: var(--ob-ink);
    border-bottom: 1px solid var(--ob-line); text-decoration: none;
}
.nav-sheet .sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-right .desktop-only { display: none; }
    .nav-burger { display: inline-flex; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

/* overflow: hidden - the media and mist layers are deliberately wider than the frame (they scale and drift), so the section must clip them itself or they widen the document by a few px on phones. */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media img, .hero-media .hero-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(8,26,21,.52) 0%, rgba(8,26,21,.34) 30%, rgba(8,26,21,.92) 100%),
        linear-gradient(90deg, rgba(8,26,21,.70) 0%, rgba(8,26,21,.10) 58%, transparent 78%);
}
.hero-inner {
    max-width: var(--mt-max); margin: 0 auto; padding: 118px 22px 56px;
    min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .3em; }
.hero .lede { font-size: clamp(1rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.9); max-width: 46ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--mt-mint); margin-bottom: 14px;
}
.eyebrow.on-light { color: var(--mt-green); }

@media (max-width: 700px) {
    .hero-inner { min-height: 480px; padding: 96px 22px 40px; }
}

/* ── Search card (hero) ────────────────────────────────────────────────── */

.searchcard {
    background: #fff; border-radius: var(--mt-r-lg); box-shadow: var(--mt-shadow-lift);
    padding: 8px; margin-top: 30px; max-width: 900px;
}
.searchcard .tabs { display: flex; gap: 4px; padding: 4px; }
.searchcard .tab {
    flex: 1; border: 0; background: transparent; cursor: pointer;
    padding: 11px 12px; border-radius: 999px;
    font: 700 14px/1 var(--ob-font); color: var(--ob-muted);
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.searchcard .tab[aria-selected="true"] { background: var(--mt-forest); color: #fff; }
.searchcard .panel { display: none; padding: 12px; }
.searchcard .panel.active { display: block; }
.searchcard .fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.searchcard .fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.searchcard label { display: block; font-size: 12px; font-weight: 700; color: var(--ob-muted); margin-bottom: 5px; }
.searchcard input, .searchcard select {
    width: 100%; height: 44px; padding: 0 12px;
    border: 1px solid var(--ob-line); border-radius: var(--mt-r-sm);
    font: 400 14.5px/1 var(--ob-font); color: var(--ob-ink); background: #fff;
}
.searchcard .go { grid-column: span 1; }
/* iOS Safari gives a date input a native minimum width wider than half a phone, and a 1fr column
   will not shrink below it, so the check-out box ran off the card. Columns may shrink to 0 and the
   date input drops the native box (the picker still opens on tap). */
.searchcard .fields > * { min-width: 0; }
.searchcard input[type="date"] { min-width: 0; max-width: 100%; display: block; }
@supports (-webkit-touch-callout: none) {
    .searchcard input[type="date"] { -webkit-appearance: none; appearance: none; line-height: 44px; text-align: left; }
    .searchcard input[type="date"]::-webkit-date-and-time-value { text-align: left; }
}

@media (max-width: 780px) {
    .searchcard .fields, .searchcard .fields.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .searchcard .go { grid-column: span 2; }
    .searchcard .tab span { display: none; }
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section { padding: 72px 0; }
.section.tight { padding: 52px 0; }
.section.alt { background: var(--mt-bg-2); }
.section.forest { background: var(--mt-forest); color: #fff; }
.section.forest h2, .section.forest h3 { color: #fff; }
.section.forest .section-sub { color: rgba(255,255,255,.72); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head .section-sub { color: var(--ob-muted); max-width: 56ch; margin: 0; }
.section-head h2 { margin-bottom: .25em; }
.section-head .more { flex: none; font-weight: 600; font-size: 14.5px; }

@media (max-width: 700px) {
    .section { padding: 52px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Price provenance ──────────────────────────────────────────────────── */
/* A price on a travel site is a claim with a shelf life, so every figure carries
   how old ours is. Muted by default, warm when it is past the window, green when
   a live feed refreshed it — never louder than the price itself. */

.price .price-checked {
    display: block; margin-top: 2px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
    color: var(--ob-muted); text-transform: none;
}
.price .price-checked.is-live { color: var(--mt-green); }
.price .price-checked.is-stale { color: var(--mt-gold); }

.price-note {
    margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ob-muted);
}
.price-note.is-live { color: var(--mt-green); }
.price-note.is-stale { color: var(--mt-gold); }

/* ── Stay blocks ───────────────────────────────────────────────────────── */
/* Two labelled bands inside one "where to stay" section. They are separated
   on purpose: ours are ours and we say so, and the hilltop hotels then get a
   heading of their own rather than being crowded out of a single ranked row. */

.stayblock { position: relative; padding-left: 24px; }
.stayblock + .stayblock { margin-top: 52px; }
.stayblock::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 30px; width: 3px;
    border-radius: 3px; background: linear-gradient(180deg, var(--mt-mint), rgba(94,212,179,0));
}
.stayblock-peak::before { background: linear-gradient(180deg, var(--mt-amber), rgba(245,169,76,0)); }

.stayblock-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 32px; margin-bottom: 24px;
}
.stayblock-head > div { flex: none; max-width: 30ch; }
.stayblock-head .eyebrow { margin-bottom: 9px; }
.stayblock-peak .eyebrow { color: var(--mt-gold); }
.stayblock-head h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.015em; margin: 0; }
.stayblock-head p { margin: 0; max-width: 62ch; font-size: 15px; color: var(--ob-muted); }

.stayblock-note { margin: 16px 0 0; font-size: 13px; color: var(--ob-muted); }
.stayblock-note a { color: var(--mt-green); font-weight: 600; }

@media (max-width: 880px) {
    .stayblock { padding-left: 18px; }
    .stayblock-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .stayblock-head > div { max-width: none; }
}

/* ── Grids + cards ─────────────────────────────────────────────────────── */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border-radius: var(--mt-r); overflow: hidden;
    /* On a white ground the hairline, not the shadow, is what separates a card from the page. */
    border: 1px solid var(--ob-line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--mt-shadow-lift); border-color: #D6DAE1; }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mt-bg-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.card-title a { color: var(--ob-ink); }
.card-title a:hover { color: var(--mt-green); text-decoration: none; }
.card-meta { font-size: 13px; color: var(--ob-muted); margin: 0; }
.card-desc { font-size: 14px; color: var(--ob-muted); margin: 0; flex: 1; }
.card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 10px; padding-top: 13px; border-top: 1px solid var(--ob-line);
}
.price { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.price small { font-weight: 600; font-size: 11.5px; color: var(--ob-muted); display: block; letter-spacing: 0; }

/* Big editorial "plan your trip" cards */
.plancard {
    position: relative; border-radius: var(--mt-r-lg); overflow: hidden; min-height: 320px;
    display: flex; align-items: flex-end; color: #fff; isolation: isolate;
    box-shadow: var(--mt-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.plancard:hover { transform: translateY(-4px); box-shadow: var(--mt-shadow-lift); text-decoration: none; }
.plancard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.plancard::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(12,36,29,0) 30%, rgba(12,36,29,.88) 100%);
}
.plancard .pc-body { padding: 22px 24px 24px; }
.plancard h3 { font-family: var(--mt-display); font-size: 1.6rem; font-weight: 600; color: #fff; margin: 0 0 4px; }
.plancard p { color: rgba(255,255,255,.86); font-size: 14px; margin: 0 0 12px; }
.plancard .pc-cta { font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }

/* ── Pills, badges, ratings ────────────────────────────────────────────── */

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 25px; padding: 0 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: -.005em;
    background: var(--mt-bg-2); color: var(--ob-muted); border: 1px solid var(--ob-line);
}
.pill-own { background: color-mix(in oklab, var(--mt-mint) 26%, white); color: #0d5844; border-color: transparent; }
.pill-deal { background: color-mix(in oklab, var(--mt-amber) 30%, white); color: #8a5510; border-color: transparent; }
.pill-free { background: color-mix(in oklab, var(--mt-green) 15%, white); color: var(--mt-green); border-color: transparent; }
.pill-halal { background: #eaf6ef; color: #14663d; border-color: transparent; }
.pill-live { background: #e9f7f1; color: #0E9F6E; border-color: transparent; }
/* --ob-muted, not --ob-faint: faint grey on this cream was 2.4:1, under the 4.5:1 minimum. */
.pill-muted { background: #f1efe9; color: var(--ob-muted); }

.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-badges .pill { box-shadow: 0 2px 8px rgba(0,0,0,.14); }

.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.rating .stars { color: var(--mt-gold); letter-spacing: -1px; }
.rating .count { font-weight: 500; color: var(--ob-faint); }

/* ── Filter bar ────────────────────────────────────────────────────────── */

.filterbar {
    position: sticky; top: 68px; z-index: 40;
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ob-line); padding: 14px 0;
}
.filterbar form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filterbar select, .filterbar input {
    height: 38px; padding: 0 12px; border: 1px solid var(--ob-line);
    border-radius: 999px; background: #fff;
    font: 600 13.5px/1 var(--ob-font); color: var(--ob-ink);
}
.filterbar .spacer { margin-left: auto; }
.filterbar .result-count { font-size: 13.5px; color: var(--ob-muted); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--ob-line); background: #fff;
    font: 600 13.5px/1 var(--ob-font); color: var(--ob-muted); text-decoration: none;
}
.chip:hover { border-color: var(--mt-green); color: var(--mt-green); text-decoration: none; }
.chip[aria-current="true"] { background: var(--mt-forest); border-color: var(--mt-forest); color: #fff; }
.chips.stay-bands { margin-top: 18px; }

/* ── Detail pages ──────────────────────────────────────────────────────── */

.detail-hero { position: relative; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; height: 420px; }
.gallery > * { overflow: hidden; border-radius: var(--mt-r-sm); background: var(--mt-bg-3); }
.gallery > :first-child { grid-row: span 2; border-radius: var(--mt-r); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
/* A Genting scene filling a hotel gallery: says so on the tile. */
.gallery-scene { position: relative; margin: 0; }
.gallery-scene figcaption {
    position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; width: fit-content; max-width: calc(100% - 16px);
    background: rgba(6,20,16,.72); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; height: 300px; } .gallery > :not(:first-child) { display: none; } }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
@media (max-width: 950px) { .detail-layout { grid-template-columns: 1fr; gap: 30px; } }

.booking-box {
    position: sticky; top: 92px;
    background: #fff; border: 1px solid var(--ob-line); border-radius: var(--mt-r);
    padding: 22px; box-shadow: var(--mt-shadow);
}
.booking-box .bb-price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.booking-box .bb-price small { font-size: 13px; font-weight: 600; color: var(--ob-muted); letter-spacing: 0; }

.partner-note {
    font-size: 12.5px; color: var(--ob-muted); margin-top: 12px; line-height: 1.5;
    padding-top: 12px; border-top: 1px solid var(--ob-line);
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--ob-line);
         border: 1px solid var(--ob-line); border-radius: var(--mt-r); overflow: hidden; margin: 26px 0; }
.facts div { background: #fff; padding: 15px 17px; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--ob-faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.facts dd { margin: 0; font-weight: 600; font-size: 14.5px; }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.tick-list li { position: relative; padding-left: 26px; font-size: 14.5px; }
.tick-list li::before {
    content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 8px;
    border-left: 2.2px solid var(--mt-green); border-bottom: 2.2px solid var(--mt-green);
    transform: rotate(-45deg);
}

.amenity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.amenity-grid span { font-size: 14px; color: var(--ob-muted); text-transform: capitalize; }

.prose { max-width: 68ch; font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
    margin: 1.5em 0; padding: 4px 0 4px 20px;
    border-left: 3px solid var(--mt-mint); color: var(--ob-muted); font-style: italic;
}
.prose img { border-radius: var(--mt-r-sm); margin: 1.5em 0; }
.prose a { text-decoration: underline; }

.breadcrumb { font-size: 13px; color: var(--ob-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--ob-muted); }
.breadcrumb a:hover { color: var(--ob-ink); }
.breadcrumb .sep { margin: 0 7px; color: var(--ob-faint); }

/* ── Deals ─────────────────────────────────────────────────────────────── */

.dealcard { position: relative; }
.dealcard .strike { color: var(--ob-faint); text-decoration: line-through; font-weight: 600; font-size: 13px; }
.dealcard .save {
    position: absolute; top: 12px; right: 12px;
    background: var(--mt-gold); color: #fff; font-weight: 800; font-size: 12.5px;
    padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

/* ── Trip ──────────────────────────────────────────────────────────────── */

.trip-day { border-left: 2px solid var(--ob-line); padding-left: 22px; margin-left: 8px; }
.trip-day h3 { font-family: var(--mt-display); font-size: 1.35rem; font-weight: 600; position: relative; }
.trip-day h3::before {
    content: ""; position: absolute; left: -29px; top: .45em;
    width: 12px; height: 12px; border-radius: 50%; background: var(--mt-green); border: 3px solid var(--mt-bg);
}
.trip-item {
    display: flex; gap: 14px; align-items: center; background: #fff;
    border: 1px solid var(--ob-line); border-radius: var(--mt-r-sm); padding: 11px 14px; margin-bottom: 10px;
}
.trip-item img { width: 62px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.trip-item .ti-body { flex: 1; min-width: 0; }
.trip-item .ti-name { font-weight: 700; font-size: 14.5px; }
.trip-item .ti-meta { font-size: 12.5px; color: var(--ob-muted); }

/* ── Empty / states ────────────────────────────────────────────────────── */

.empty {
    text-align: center; padding: 60px 20px; border: 1px dashed var(--ob-line);
    border-radius: var(--mt-r); background: #fff; color: var(--ob-muted);
}
.empty h3 { color: var(--ob-ink); margin-bottom: 6px; }

/* ── Pagination ────────────────────────────────────────────────────────── */

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 38px; }
.pager a, .pager span {
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; border: 1px solid var(--ob-line); background: #fff; color: var(--ob-ink);
    text-decoration: none;
}
.pager a:hover { border-color: var(--mt-green); color: var(--mt-green); text-decoration: none; }
.pager [aria-current="page"] { background: var(--mt-forest); border-color: var(--mt-forest); color: #fff; }
.pager .disabled { opacity: .4; }

/* ── Service tiles (umbrella landing) ──────────────────────────────────── */

.servicecard {
    background: #fff; border: 1px solid var(--ob-line); border-radius: var(--mt-r-lg);
    padding: 28px; box-shadow: var(--mt-shadow); display: flex; flex-direction: column; gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.servicecard:hover { transform: translateY(-3px); box-shadow: var(--mt-shadow-lift); }
.servicecard .sc-emoji { font-size: 30px; line-height: 1; }
.servicecard h3 { font-family: var(--mt-display); font-size: 1.45rem; font-weight: 600; margin: 0; }
.servicecard .sc-tag { color: var(--mt-green); font-weight: 700; font-size: 13.5px; margin: 0; }
.servicecard p { color: var(--ob-muted); font-size: 14.5px; margin: 0; flex: 1; }
.servicecard .sc-foot { margin-top: 14px; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer { background: var(--mt-forest); color: rgba(255,255,255,.78); padding: 62px 0 30px; margin-top: 0; }
/* h2, not h4: a footer heading that skips levels breaks the page outline (Lighthouse heading-order). */
.site-footer h2.footer-h { color: #fff; font-family: var(--ob-font); font-weight: 700; font-size: 13px;
    line-height: 1.4; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 14px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-blurb { font-size: 14px; max-width: 34ch; }
.footer-bottom {
    margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
    font-size: 12.5px; color: rgba(255,255,255,.55);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Admin ─────────────────────────────────────────────────────────────── */

.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { background: var(--mt-forest); color: rgba(255,255,255,.8); padding: 24px 16px; }
.admin-side .brand-word, .admin-side .brand-module { color: #fff; }
.admin-side nav { display: grid; gap: 3px; margin-top: 26px; }
.admin-side nav a {
    display: block; padding: 9px 13px; border-radius: var(--mt-r-sm);
    color: rgba(255,255,255,.76); font-weight: 600; font-size: 14px; text-decoration: none;
}
.admin-side nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-side nav a[aria-current="page"] { background: rgba(94,212,179,.18); color: #fff; }
.admin-main { background: #fff; padding: 30px 34px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-head h1 { font-family: var(--ob-font); font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat {
    border: 1px solid var(--ob-line); border-radius: var(--mt-r); padding: 16px 18px; background: #fff;
}
.stat .s-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ob-faint); }
.stat .s-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.stat .s-note { font-size: 12.5px; color: var(--ob-muted); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ob-faint); padding: 10px 12px; border-bottom: 1px solid var(--ob-line); white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--ob-line); vertical-align: middle; }
.table tbody tr:hover { background: #F9FAFB; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ── Admin: price desk ─────────────────────────────────────────────────── */

.admin-h2 { font-family: var(--ob-font); font-size: 1.1rem; font-weight: 800; margin: 26px 0 12px; }
.admin-flash {
    margin: 0 0 18px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
    background: rgba(94,212,179,.16); border: 1px solid rgba(30,106,84,.25); color: var(--mt-forest);
}

.feedlist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.feedlist li { border: 1px solid var(--ob-line); border-radius: var(--mt-r); padding: 12px 14px; }
.feedlist .t-faint-12 { margin-top: 4px; max-width: 78ch; }

.input-price, .input-feed {
    border: 1px solid var(--ob-line); border-radius: 8px; padding: 6px 8px;
    font: inherit; font-size: 13px; background: #fff; color: var(--ob-ink);
}
.input-price { width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.input-feed { width: 150px; }

/* A tint, not a shout: the eye should land on "never checked" first. */
.price-row-never td { background: rgba(245,169,76,.10); }
.price-row-stale td { background: rgba(245,169,76,.05); }

.admin-form { display: grid; gap: 16px; max-width: 780px; }
.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .admin-form .row2 { grid-template-columns: 1fr; } .admin-shell { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .card:hover, .plancard:hover, .servicecard:hover { transform: none; }
}

/* ==========================================================================
   Utilities

   These exist because the Content-Security-Policy is `style-src 'self'` with no
   'unsafe-inline' — so a `style="…"` attribute is blocked by the browser, not
   merely frowned upon. Everything one-off lives here as a named class instead.
   ========================================================================== */

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mt-34 { margin-top: 34px; }
.mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; }

.mb-2  { margin-bottom: 2px; }
.mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-34 { margin-bottom: 34px; }

.ml-8  { margin-left: 8px; }
.mr-7  { margin-right: 7px; }
.mr-8  { margin-right: 8px; }
.pt-0  { padding-top: 0; }

/* Reading measures — keep body copy off the full grid width */
.measure    { max-width: 62ch; }
.measure-sm { max-width: 56ch; }
.measure-md { max-width: 60ch; }
.measure-lg { max-width: 74ch; }
.measure-58 { max-width: 58ch; }
.measure-48 { max-width: 48ch; }
.measure-52 { max-width: 52ch; }

.w-96    { width: 96px; }
.w-110   { width: 110px; }
.w-320   { max-width: 320px; }
.col-56  { width: 56px; }
.nowrap  { white-space: nowrap; }
.h-44    { height: 44px; }
.h-34    { height: 34px; }
.fit     { width: fit-content; }
.pointer { cursor: pointer; }
.inline  { display: inline; }
.plain   { text-decoration: none; }

.t-muted      { color: var(--ob-muted); font-size: 14px; }
.t-muted-15   { color: var(--ob-muted); font-size: 14.5px; }
.t-muted-135  { color: var(--ob-muted); font-size: 13.5px; }
.t-faint-12   { color: var(--ob-faint); font-size: 12px; }
.t-faint-125  { color: var(--ob-faint); font-size: 12.5px; }
.t-faint-13   { color: var(--ob-faint); font-size: 13px; }
.t-13-nowrap  { white-space: nowrap; font-size: 13px; }
.t-lede       { font-size: 1.1rem; }
.t-lede-sm    { font-size: 1.08rem; }
.t-white      { color: #fff; }
.t-mint       { color: var(--mt-mint); }

/* The big title on a detail page — display size without the display face */
.h-detail { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

/* Small uppercase section label used across the admin */
.sec-label {
    font-family: var(--ob-font); font-size: 1rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em; color: var(--ob-faint);
}

.row-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.row-6      { display: flex; gap: 6px; align-items: center; }
.row-8      { display: flex; gap: 8px; }
.row-10     { display: flex; gap: 10px; }
.row-10-wrap{ display: flex; gap: 10px; flex-wrap: wrap; }
.row-center { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stack-9    { display: grid; gap: 9px; }
.stack-10   { display: grid; gap: 10px; }
.inline-block { display: inline-block; }

.cta-row {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ob-line);
}

.center-pad     { text-align: center; padding: 40px 22px; }
.center-pad-lg  { text-align: center; padding: 60px 22px; }
.center-copy    { margin: 0 auto 26px; }
.center-copy-48 { margin: 0 auto 28px; max-width: 48ch; }
.center-copy-52 { margin: 0 auto 26px; max-width: 52ch; }
.left-540       { text-align: left; max-width: 540px; margin: 0 auto; }

/* Single-image "gallery" strip on detail pages */
.gallery-1 { grid-template-columns: 1fr; }
.g-h-340 { height: 340px; }
.g-h-360 { height: 360px; }
.g-h-380 { height: 380px; }
.g-h-400 { height: 400px; }

.card-media-wide { aspect-ratio: 16 / 10; }
.plancard-tall   { min-height: 380px; }
.servicecard-ghost {
    justify-content: center; min-height: 380px; border-style: dashed; box-shadow: none;
}

.thumb-44 { border-radius: 6px; object-fit: cover; width: 44px; height: 34px; }

/* Admin callout — a note that wants attention without being an error */
.admin-note {
    text-align: left; border-color: var(--mt-gold); background: #fffdf7; margin-bottom: 30px;
}

/* On the dark admin rail and footer */
.rule-light  { background: rgba(255, 255, 255, .25); }
.side-foot   { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.link-light  { color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.link-faint  { color: rgba(255, 255, 255, .55); font-size: 13px; }

/* ── Listing editorial ──────────────────────────────────────────────────────
   Our own opinion on a stay, restaurant, attraction or transport option. The
   thing that makes a listing page worth reading instead of a spec sheet. */

.editorial { margin: 40px 0 8px; }
.editorial h2 {
    font-family: var(--mt-display); font-size: 1.6rem; font-weight: 600;
    margin-bottom: .5em; position: relative; padding-top: .55em;
}
.editorial h2::before {
    content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--mt-mint), var(--mt-amber));
}
.editorial .verdict { font-size: 16.5px; line-height: 1.75; color: #23262e; max-width: 66ch; }

.editorial .drawback {
    margin: 26px 0; padding: 18px 22px; border-radius: var(--mt-r);
    background: #fdf6ee; border: 1px solid #eedcc4;
}
.editorial .drawback h3 {
    font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: #9a6512; margin: 0 0 7px;
}
.editorial .drawback p { margin: 0; font-size: 15px; line-height: 1.65; color: #4a3a24; }

.editorial .know-head {
    font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: var(--ob-faint); margin: 28px 0 12px;
}

/* ── Photo attribution ──────────────────────────────────────────────────────
   Required by the CC BY / BY-SA licences on the Wikimedia Commons photographs.
   Quiet, but present wherever such a photo appears. */

.img-credit {
    font-size: 11.5px; line-height: 1.45; color: var(--ob-faint);
    margin: 8px 0 0; text-align: right;
}
.img-credit a { color: var(--ob-muted); text-decoration: underline; text-underline-offset: 2px; }
.img-credit a:hover { color: var(--ob-ink); }

.credit-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.credit-list th {
    text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--ob-faint);
    padding: 10px 12px; border-bottom: 2px solid var(--ob-line);
}
.credit-list td { padding: 12px; border-bottom: 1px solid var(--ob-line); vertical-align: top; }
.credit-list img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; }

/* ── Macam services band on the home page (links into /cleaning) ───────── */

.svc-band { background: #EAF3FA; border-block: 1px solid #D6E3EE; }
.svc-band-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.svc-band-inner img { width: 96px; height: 96px; }
.svc-band h2 { margin-bottom: .2em; }
.svc-band .eyebrow.on-light { color: #1E5A85; }
.svc-band-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-band .btn-primary { background: #1E5A85; }
.svc-band .btn-primary:hover { background: #17496d; box-shadow: none; }

@media (max-width: 760px) {
    .svc-band-inner { grid-template-columns: 1fr; text-align: left; }
    .svc-band-inner img { width: 72px; height: 72px; }
}
