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

:root {
  color-scheme: light;
  --ink: #20352a;
  --dark: #1d362b;
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --muted: #546057;
  --line: #dbd8c9;
  --rust: #9b3f29;
  --serif: 'Instrument Serif', Georgia, serif;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ae552a; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; top: 8px; left: 8px; background: var(--surface); padding: 12px; }
.masthead, .hero { background: var(--dark); color: #fff7e8; }
.masthead { border-bottom: 1px solid #ffffff24; }
.masthead-inner { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 34px/1 var(--serif); text-decoration: none; }
.brand img { flex: none; }
.saved-link { flex: none; }
.saved-link, .surprise { background: transparent; border: 1px solid #fff7e864; border-radius: 7px; min-height: 42px; padding: 8px 15px; font-weight: 700; }
.saved-link[aria-current], .saved-link:hover, .surprise:hover { background: #ffffff1a; }
#saved-count:not(:empty) { margin-left: 3px; color: #ffd6bb; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding-block: 40px 59px; }
.hero-copy { padding-block: 12px; }
.eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-copy .eyebrow { color: #ffc6a6; }
h1 { margin: 12px 0 17px; font: 400 clamp(4rem, 6.5vw, 6.7rem)/.87 var(--serif); letter-spacing: -.025em; }
.hero-copy > p:not(.eyebrow) { max-width: 340px; margin: 0 0 25px; line-height: 1.55; color: #eee1d2; }
.surprise span { padding-right: 4px; color: #ffc6a6; }
.hero-photo { min-width: 0; overflow: hidden; position: relative; background: #4d4030; border: 0; border-radius: 12px; padding: 0; aspect-ratio: 1.59; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; display: block; }
.hero-photo > span { position: absolute; bottom: 12px; right: 12px; color: #fff7e8; background: #20352a; border-radius: 5px; padding: 7px 10px; font-size: .78rem; }
.catalog { min-height: 360px; padding-bottom: 45px; }
.searchbar { position: relative; margin-top: -25px; display: flex; align-items: center; gap: 12px; padding: 8px 9px 8px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; box-shadow: 0 4px 15px #4235270e; }
.searchbar input { min-width: 0; flex: 1; border: 0; color: var(--ink); background: transparent; min-height: 40px; padding: 0 5px; }
.searchbar input::placeholder { color: var(--muted); }
.search-icon { width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; background: var(--ink); bottom: -3px; right: -5px; transform: rotate(45deg); }
.filter-open, .primary { background: var(--dark); color: #fff7e8; border: 1px solid var(--dark); border-radius: 6px; padding: 10px 15px; min-height: 42px; white-space: nowrap; font-weight: 700; }
.filter-open:hover, .primary:hover { background: #314e40; }
#filter-count { margin-left: 4px; color: #ffc6a6; }
.views { display: flex; gap: 5px 24px; border-bottom: 1px solid var(--line); margin: 20px 0 22px; }
.views button { border: 0; border-bottom: 3px solid transparent; padding: 13px 5px; background: transparent; font-weight: 700; white-space: nowrap; }
.views button[aria-current] { color: var(--rust); border-color: var(--rust); }
.views button:hover { color: var(--rust); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 0 0 15px; }
.section-head h2, .shelf h3 { margin: 0; font: 400 clamp(2.2rem, 4vw, 3rem)/1 var(--serif); }
.section-head span, .result-count, .meta, .group-count { color: var(--muted); font-size: .9rem; }
.shelf { margin: 28px 0 34px; }
.shelf h3 { font-size: 2rem; }
.shelf-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px)/5); overflow-x: auto; gap: 14px; padding: 4px 3px 12px; scroll-snap-type: x proximity; scrollbar-color: #a7ac9e transparent; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.place { min-width: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; scroll-snap-align: start; }
.place:focus-within, .place:hover { border-color: #8f9987; }
.place-open { display: block; width: 100%; height: 100%; text-align: left; background: transparent; border: 0; padding: 0; }
.place-open:focus-visible { outline-offset: -3px; }
.place-image { display: grid; place-items: center; aspect-ratio: 1.58; background: #e7e9dc; color: var(--muted); position: relative; }
.place-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-image span { font: 1.45rem var(--serif); }
.place-info { display: grid; gap: 5px; padding: 11px 12px 13px; }
.place-info strong { font-size: 1rem; line-height: 1.25; }
.place-info small { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; color: var(--muted); font-size: .78rem; }
.price { color: var(--rust); font-weight: 700; white-space: nowrap; }
.favorite { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--rust); font-size: 1.36rem; line-height: 1; }
.favorite:hover { background: #fff0e5; }
.text-button { background: transparent; border: 0; padding: 6px 0; min-height: 36px; color: var(--rust); font-weight: 700; text-align: left; }
.text-button:hover { text-decoration: underline; }
.secondary, .chip { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 9px 13px; min-height: 40px; font-weight: 700; }
.secondary:hover, .chip:hover { background: #f2eadb; }
.all { display: block; width: fit-content; margin: 24px auto 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { color: var(--rust); font-size: .84rem; }
.empty { padding: 26px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.city-list { display: grid; gap: 10px; }
.city-row { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; justify-content: space-between; gap: 10px; text-align: left; align-items: center; padding: 15px 18px; }
.city-row:hover { border-color: var(--rust); }
.city-row strong { font: 1.8rem var(--serif); }
.group { margin-top: 24px; }
.group h3 { margin: 0 0 12px; font-size: 1.15rem; }
.footer { padding-block: 22px 30px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.footer span { font: 1.7rem var(--serif); }
.footer p { color: var(--muted); font-size: .83rem; margin: 0; }
dialog { width: min(700px, calc(100% - 28px)); max-height: min(88dvh, 880px); padding: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 20px 70px #17221955; }
dialog::backdrop { background: #14251dc2; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-layout { display: flex; flex-direction: column; max-height: min(87dvh, 870px); }
.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.dialog-head { border-bottom: 1px solid var(--line); }
.dialog-head h2 { font: 2.2rem/1 var(--serif); margin: 0; }
.dialog-head [data-close] { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.6rem; }
.dialog-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.dialog-actions { border-top: 1px solid var(--line); }
.filter-options, .detail-body { padding: 18px 20px 25px; }
fieldset { padding: 10px 0 0; border: 0; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 700; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 14px; }
.option { min-height: 36px; display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.option input { accent-color: var(--dark); width: 17px; height: 17px; flex: 0 0 auto; }
.detail-hero { aspect-ratio: 2.15; }
.detail-body h2 { font: 400 clamp(2.8rem, 8vw, 4.5rem)/.98 var(--serif); margin: 8px 0 10px; }
.detail-body p { line-height: 1.6; }
.detail-body h3 { margin: 23px 0 4px; }
.detail-body h3 + p { margin-top: 4px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.detail-links a { text-decoration: none; }
.detail-photos { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 10px; margin-top: 10px; }
.detail-photos a { border-radius: 7px; overflow: hidden; }
@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .shelf-scroll { grid-auto-columns: calc((100% - 42px)/4); }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { min-height: 59px; }
  .brand { font-size: clamp(24px, 7vw, 29px); gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .saved-link, .surprise, .filter-open, .primary, .secondary, .favorite, .dialog-head [data-close] { min-height: 44px; }
  .saved-link { padding-inline: 10px; }
  .favorite, .dialog-head [data-close] { width: 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; padding-block: 20px 41px; }
  .hero-copy { padding: 0; }
  h1 { margin-block: 9px 11px; font-size: clamp(3rem, 11vw, 4.7rem); }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 15px; }
  .hero-photo { aspect-ratio: 2.75; }
  .views { gap: 0; justify-content: space-between; margin-top: 13px; }
  .views button { font-size: .91rem; }
  .searchbar { gap: 8px; padding-left: 12px; }
  .searchbar input { font-size: 16px; }
  .filter-open { padding-inline: 9px; font-size: .88rem; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .shelf-scroll { grid-auto-columns: 46%; gap: 10px; }
  .place-info small { flex-wrap: wrap; gap: 2px 6px; }
  .section-head { gap: 8px; }
  .section-head > span, .section-head .text-button { font-size: .79rem; }
  .footer { display: grid; }
  dialog { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .dialog-layout { max-height: 93dvh; }
  .dialog-actions { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .option { min-height: 44px; }
  .detail-links a, .detail-links button { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .place-info { padding-inline: 9px; }
  .options { grid-template-columns: 1fr; }
  .search-icon { display: none; }
}
