:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f3eee5;
  --ink: #12302f;
  --ink-2: #4a5f5d;
  --ink-3: #7b8b89;
  --line: #e4ddd1;
  --sea: #0e7c7b;
  --sea-deep: #0a4f55;
  --sea-soft: #d8efec;
  --coral: #e2674a;
  --sand: #f2d9a6;
  --star: #e0a526;
  --shadow: 0 1px 2px rgba(18, 48, 47, .06), 0 8px 24px rgba(18, 48, 47, .07);
  --radius: 14px;
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1a1b; --surface: #132526; --surface-2: #1a3133; --ink: #e8f1ef; --ink-2: #a9bdba; --ink-3: #7d9592;
    --line: #24403f; --sea: #3fb8b1; --sea-deep: #8fdcd5; --sea-soft: #173b3b; --coral: #f08a6f; --sand: #5b4a2a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1a1b; --surface: #132526; --surface-2: #1a3133; --ink: #e8f1ef; --ink-2: #a9bdba; --ink-3: #7d9592;
  --line: #24403f; --sea: #3fb8b1; --sea-deep: #8fdcd5; --sea-soft: #173b3b; --coral: #f08a6f; --sand: #5b4a2a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 2px; }
a:hover { color: var(--sea-deep); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: "Fraunces", serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink); font: inherit; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
}

/* hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--sea-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,30,33,.25) 0%, rgba(6,30,33,.75) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 56px; }
.hero.compact .wrap { padding-top: 64px; padding-bottom: 40px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p.lede { font-size: 1.15rem; max-width: 640px; color: rgba(255,255,255,.9); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); margin-bottom: 12px; }
.hero .eyebrow { color: #ffe3a8; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; }
.hero-stats div { font-size: .9rem; color: rgba(255,255,255,.8); }
.hero-stats strong { display: block; font-family: "Fraunces", serif; font-size: 1.8rem; color: #fff; font-variant-numeric: tabular-nums; }
.crumbs { font-size: .85rem; margin-bottom: 16px; color: rgba(255,255,255,.75); }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs.dark { color: var(--ink-3); }
.crumbs.dark a { color: var(--ink-2); }

/* sections */
section.block { padding: 48px 0; }
section.block.alt { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sea-soft), var(--sand)); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .rank { position: absolute; top: 10px; left: 10px; background: var(--coral); color: #fff; font-weight: 700; font-size: .85rem; min-width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; padding: 0 8px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .meta { font-size: .85rem; color: var(--ink-2); }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; padding-top: 8px; }
.price { font-size: .8rem; color: var(--ink-3); }
.price strong { font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.score { background: var(--sea); color: #fff; font-weight: 700; font-size: .85rem; border-radius: 6px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .75rem; background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 2px 9px; }
.chip.sea { background: var(--sea-soft); color: var(--sea-deep); }
.stars { color: var(--star); letter-spacing: 1px; font-size: .85rem; }

.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--sea); transform: translateY(-2px); color: var(--ink); }
.tile .num { font-family: "Fraunces", serif; font-size: 1.6rem; color: var(--sea); font-variant-numeric: tabular-nums; }
.tile p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* directory */
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.filters select, .filters input[type="search"] { font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
.filters .checks { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .9rem; grid-column: 1 / -1; }
.filters .checks span { display: inline-flex; gap: 6px; align-items: center; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: .9rem; color: var(--ink-2); }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.toggle button { font: inherit; font-size: .85rem; background: var(--surface); color: var(--ink-2); border: 0; padding: 6px 12px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--sea); color: #fff; }
#map, .map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.map.small { height: 300px; }
.empty { padding: 40px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* hotel detail */
.detail { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 340px; padding: 32px 0 56px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--sea-soft), var(--sand)); margin-bottom: 24px; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.aside { position: sticky; top: 82px; align-self: start; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 10px; padding: 11px 16px; background: var(--sea); color: #fff; border: 0; width: 100%; }
.btn:hover { background: var(--sea-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--sea); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn + .btn { margin-top: 8px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; margin: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 52px 1fr 52px; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-2); }
.bar .track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar .fill { height: 100%; background: var(--sea); border-radius: 4px; }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.big-score { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.big-score .n { font-family: "Fraunces", serif; font-size: 2.6rem; line-height: 1; color: var(--sea); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--sea); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* footer */
.site-footer { background: var(--sea-deep); color: rgba(255,255,255,.8); padding: 48px 0 32px; font-size: .9rem; }
:root[data-theme="dark"] .site-footer { background: #081213; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #081213; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 28px; }
.foot-cols h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fine { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .8rem; color: rgba(255,255,255,.6); }

.callout { background: var(--sea-soft); border-left: 4px solid var(--sea); border-radius: 8px; padding: 14px 18px; margin: 20px 0; }
.callout p:last-child { margin: 0; }
.leaflet-popup-content a { font-weight: 600; }
.link-list { columns: 2 220px; column-gap: 24px; padding-left: 18px; margin: 0 0 12px; }
.link-list li { margin-bottom: 6px; break-inside: avoid; }

/* tap targets: at least 24px (WCAG 2.2 AA) for standalone links and controls */
.filters .check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px; cursor: pointer; flex-direction: row; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .9rem; color: var(--ink); }
.filters .check input { width: 18px; height: 18px; accent-color: var(--sea); margin: 0; }
.reset-btn { font: inherit; font-size: .85rem; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.toggle button { min-height: 36px; }
.foot-cols li a, .link-list a, .crumbs a, .facts a { display: inline-block; padding: 4px 0; min-height: 24px; }
.foot-cols ul { gap: 2px; }
