.hotel-browser {
  color-scheme: light;
  --ink: #18352c;
  --muted: #536960;
  --forest: #153b36;
  --green: #145340;
  --light: #fbfaf6;
  --surface: #fff;
  --line: #dce5da;
  --gold: #f6ca68;
  --radius: 17px;
  font-family: var(--sans, Arial, sans-serif);
  color: var(--ink);
  background: var(--light);
}
@scope (.hotel-browser) {
*, *::before, *::after { box-sizing: border-box; }

button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b35f0c; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.site-header { background: var(--forest); color: white; border-bottom: 1px solid #ffffff26; }
.header-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 780; font-size: 1.1rem; line-height: 1.15; }
.mark { display: grid; place-items: center; color: var(--forest); background: var(--gold); width: 35px; height: 35px; border-radius: 10px; font-size: 1.32rem; }
.brand-emphasis { color: var(--gold); }
.brand small { display: block; margin-top: 4px; font-size: .56rem; letter-spacing: .19em; color: #dcebe0; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-weight: 650; font-size: .88rem; text-decoration: none; }
.header-link:hover, .header-link[aria-current="page"] { background: #ffffff1c; color: var(--gold); }
.hotel-hero { color: white; background: radial-gradient(ellipse at 93% 115%, #4a7657, transparent 63%), var(--forest); }
.hero-inner { padding-block: 45px 42px; position: relative; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .17em; font-size: .7rem; }
.eyebrow.dark { color: #35624e; }
h1, h2 { font-family: var(--serif, Georgia, serif); font-weight: 500; letter-spacing: -.04em; }
h1 { margin: 10px 0 12px; font-size: clamp(3.25rem, 8vw, 6rem); line-height: .96; }
h1 em { color: #ffe0a0; font-weight: inherit; }
.hero-copy { max-width: 37rem; font-size: 1rem; line-height: 1.5; color: #e3eee5; }
.search-panel { max-width: 605px; margin-top: 22px; padding: 11px 12px 12px; background: white; border-radius: 14px; color: var(--ink); box-shadow: 0 10px 26px #071d1740; }
.search-panel label { display: block; font-size: .76rem; font-weight: 750; padding-left: 5px; margin-bottom: 5px; }
.search-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search-field input, .filters select { min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; font-weight: 730; text-decoration: none; font-size: .85rem; }
.search-button { background: var(--gold); color: #25352a; }
.search-button:hover { background: #ffdb8b; }
.entry-button { margin-top: 20px; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--forest); }
.outline { background: white; border-color: #9ab5a7; color: var(--green); }
.outline:hover { background: #e8f0e8; }
button:disabled { cursor: default; }
.primary:disabled { background: #dce7de; color: #3f5f50; }
.catalog { padding-block: 34px 44px; scroll-margin-top: 12px; }
.catalog h2, .dialog-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.07; margin-top: 5px; }
.destinations { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 17px 13px; }
.chip { min-height: 40px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--green); font-size: .83rem; font-weight: 680; }
.chip:hover, .chip[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; }
.filters label { display: grid; gap: 4px; font-size: .74rem; font-weight: 750; }
.filters select { font-size: .83rem; }
.reset { color: var(--green); background: transparent; border: 0; padding: 0 7px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-weight: 650; font-size: .8rem; }
.result-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; border-top: 1px solid var(--line); padding-top: 11px; margin: 15px 0 13px; font-size: .79rem; color: var(--muted); }
#result-count { font-weight: 760; color: var(--ink); }
.hotel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card { overflow: clip; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.photo-frame { position: relative; min-width: 0; aspect-ratio: 2 / 1; background: #e1ebe1; }
.photo-frame img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.photo-fallback { display: grid; place-items: center; height: 100%; font-size: .69rem; color: var(--muted); text-align: center; padding: 4px; }
.card-body { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 12px 13px 8px; }
.hotel-city { color: #406354; font-size: .65rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.hotel-name { font-size: clamp(.97rem, 2vw, 1.12rem); line-height: 1.19; margin: 4px 0 7px; overflow-wrap: anywhere; }
.hotel-metrics, .hotel-rating { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hotel-metrics { min-height: 24px; margin-bottom: 7px; font-size: .73rem; color: var(--muted); }
.hotel-stars { color: #7b4c0c; font-weight: 700; }
.hotel-score { padding: 3px 5px; border-radius: 5px; background: #deeee1; color: #174b35; white-space: nowrap; }
.card-actions { display: flex; width: 100%; gap: 6px; justify-content: space-between; align-items: center; margin-top: auto; }
.hotel-price { color: var(--muted); font-size: .72rem; }
.hotel-price strong { display: block; font-size: .99rem; color: var(--ink); }
.book { white-space: nowrap; }
.compare-toggle { min-height: 40px; padding: 0 5px; margin-left: -5px; background: transparent; color: var(--green); border: 1px solid transparent; border-radius: 6px; font-weight: 720; font-size: .78rem; }
.compare-toggle:hover { text-decoration: underline; }
.compare-toggle[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 3px; }
.compare-toggle[aria-disabled="true"] { color: var(--muted); cursor: default; }
.empty { padding: 34px 14px; border: 1px dashed #aec4b6; border-radius: 14px; text-align: center; }
.empty p { margin-block: 7px 12px; color: var(--muted); }
.more-row { text-align: center; margin-top: 16px; }
.footer { background: var(--forest); color: #fff; padding-block: 22px; }
.footer p { color: #dcebe0; font-size: .79rem; margin-top: 5px; }
.tray { position: fixed; inset: auto 0 0; z-index: 2; background: #fff; border-top: 1px solid #c3d4c7; box-shadow: 0 -5px 22px #12382f19; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); }
body:has(.tray:not([hidden])) { padding-bottom: 85px; }
.tray-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center; }
.tray-summary { overflow: hidden; font-size: .84rem; }
.tray-names { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; color: var(--muted); }
dialog { width: min(850px, calc(100% - 28px)); max-height: min(82dvh, 720px); border: 1px solid var(--line); border-radius: 19px; padding: 18px; color: var(--ink); background: var(--light); }
dialog::backdrop { background: #071f19b5; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.6rem; }
.dialog-hint { margin: 8px 0 13px; color: var(--muted); font-size: .8rem; }
.scroll-hint { display: none; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare-scroll table { border-collapse: collapse; width: 100%; background: #fff; table-layout: fixed; }
.compare-scroll td, .compare-scroll th { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; font-size: .82rem; }
.compare-scroll th[scope="row"], .compare-scroll thead th:first-child { width: 84px; color: var(--green); background: #edf3eb; }
.compare-scroll thead th { vertical-align: top; }
.compare-scroll .photo-frame { border-radius: 8px; overflow: hidden; margin-bottom: 7px; }
.compare-scroll tbody tr:last-child td, .compare-scroll tbody tr:last-child th { border-bottom: 0; }
.compare-scroll .book { white-space: normal; width: 100%; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 8px; background: white; }
@media (max-width: 840px) {
  .hotel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 58px; }
  .hero-inner { padding-block: 26px 24px; }
  .hero-copy { font-size: .89rem; }
  .search-panel { margin-top: 15px; padding: 8px; }
  .search-field input { font-size: 1rem; }
  .search-button { padding-inline: 8px; }
  .search-button span { display: none; }
  .catalog { padding-top: 24px; }
  .destinations { margin-block: 12px 10px; }
  .chip { min-height: 36px; padding-inline: 10px; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.28fr); gap: 6px; }
  .filters select { width: 100%; padding-inline: 5px; font-size: .76rem; }
  .filters .reset { justify-self: start; grid-column: 1 / -1; }
  .hotel-grid { grid-template-columns: 1fr; gap: 8px; }
  .card { grid-template-columns: minmax(83px, 32%) minmax(0, 1fr); grid-template-rows: auto; border-radius: 13px; }
  .card .photo-frame { aspect-ratio: auto; }
  .card-body { padding: 8px 8px 3px; }
  .card .book { padding-inline: 7px; font-size: .74rem; }
  .hotel-metrics { margin-bottom: 4px; }
  .hotel-name { margin-bottom: 4px; }
  dialog { padding: 11px; }
  .scroll-hint { display: block; margin-bottom: 7px; color: var(--muted); font-size: .75rem; }
  .compare-scroll table.three { min-width: 414px; }
  .compare-scroll th[scope="row"], .compare-scroll thead th:first-child { width: 65px; }
  .compare-scroll td, .compare-scroll th { padding: 6px; font-size: .72rem; }
  .compare-scroll .book { padding-inline: 4px; font-size: .73rem; }
}

.directory-link { display: inline-block; margin-top: 14px; padding-block: 10px; text-underline-offset: 4px; }
.hotel-name a { text-decoration-color: #a2bcaf; text-underline-offset: 3px; }
.hotel-name a:hover { color: var(--green); }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }

@media (max-width: 380px) { .site-nav .header-link:first-child { display: none; } }

.filters label:first-child { min-width: 0; }
.filters select { max-width: 100%; }
.hotel-hero .hero-inner { min-height: 0; }
@media(max-width:580px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filters label:first-child{grid-column:1 / -1}}
}
.filters input[type="number"] { width: 100%; max-width: 110px; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
#price-error { color: #9b2c22; font-size: .8rem; grid-column: 1 / -1; }

@scope (.hotel-browser) {
  .hotel-city-links, .hotel-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .65rem;
  }
  .hotel-city-links { margin-top: 1rem; }
  .hotel-city-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .25rem .8rem;
    border: 1px solid #ffffff72;
    border-radius: 999px;
    font-size: .875rem;
    text-decoration: none;
  }
  .hotel-city-links a:hover { background: #ffffff20; }
  .hotel-hero-links { column-gap: 1.25rem; }
  .hotel-hero-links .directory-link { margin-top: .25rem; min-height: 44px; }
  .hotel-guides { padding-block: 1rem 4rem; scroll-margin-block-start: 6rem; }
  .hotel-guides > p { margin-top: .4rem; color: var(--muted); }
  .hotel-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1rem;
  }
  .hotel-guide-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .hotel-guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .hotel-guide-card > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .45rem;
    padding: .85rem;
  }
  .hotel-guide-card h3 { font-size: 1.1rem; line-height: 1.3; }
  .hotel-guide-card a { text-decoration: underline; text-underline-offset: .2em; }
  .hotel-guide-card p { color: var(--muted); }
  .hotel-guide-city { font-size: .875rem; font-weight: 700; }
  .hotel-guide-browse {
    display: flex;
    align-items: center;
    align-self: start;
    min-height: 44px;
    margin-top: auto;
    color: var(--green);
    font-size: .875rem;
    font-weight: 700;
  }
  @media (max-width: 800px) {
    .hotel-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 430px) {
    .hotel-guide-grid { grid-template-columns: 1fr; }
  }
}
