:root {
  --accent: #0b5fa5;
  --accent-dark: #073b5c;
  --sea: #2aa6b8;
  --sky: #eaf7fb;
  --sand: #e4c47b;
  --limestone: #f8f2e8;
  --paper: #fffefa;
  --ink: #12344a;
  --muted: #687982;
  --line: rgba(11, 95, 165, .15);
  --shadow: 0 18px 48px rgba(7, 59, 92, .11);
}

* { box-sizing: border-box; }
html { background: var(--limestone); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  border-top: 7px solid var(--accent);
  background: radial-gradient(circle at 90% 4%, rgba(228,196,123,.3) 0 105px, transparent 106px), linear-gradient(180deg, #edf9fc 0, var(--limestone) 540px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.local-nav, .local-shell { width: min(980px, calc(100% - 32px)); margin-inline: auto; }
.local-nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 3px 18px; }
.local-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.local-brand strong, .local-brand small { display: block; }
.local-brand small { color: var(--muted); font-size: 13px; }
.local-logo { display: grid; width: 45px; height: 45px; place-items: center; color: white; background: var(--accent); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 3px var(--sand); font-weight: 900; }
.back-link { color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.local-shell { padding-bottom: 70px; }
.local-intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 35px; align-items: end; padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,254,250,.94); box-shadow: var(--shadow); }
.kicker { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .13em; }
h1 { margin: 9px 0 12px; font-size: clamp(42px, 7vw, 65px); line-height: .98; letter-spacing: -.055em; }
h2 { margin: 6px 0; font-size: clamp(25px, 4vw, 35px); letter-spacing: -.035em; }
h3 { margin: 0; font-size: 21px; }
p { color: var(--muted); line-height: 1.55; }
.local-intro p { max-width: 620px; margin: 0; font-size: 17px; }
.hotel-picker, .suggest-dialog label, .note-field { display: grid; gap: 7px; color: #536a76; font-size: 14px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); border: 1px solid #cadde3; border-radius: 12px; outline: none; background: white; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,95,165,.11); }
.notice { margin-top: 18px; padding: 14px 16px; color: #185f4c; border: 1px solid #b8ddd1; border-radius: 13px; background: #e9f5f0; font-weight: 750; }
.notice.error { color: #8e3030; border-color: #eccaca; background: #fae9e9; }
.chooser, .rating-panel { margin-top: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.section-head, .rating-heading, .submit-row, .dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; padding: 10px 15px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 850; }
.button.primary { color: white; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.button.secondary { color: var(--accent-dark); border: 1px solid var(--line); background: var(--sky); }
.choice-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; padding: 5px; border-radius: 14px; background: #edf3f3; }
.choice-tab { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; cursor: pointer; background: transparent; font-weight: 800; }
.choice-tab.active { color: white; background: var(--accent); box-shadow: 0 5px 14px rgba(7,59,92,.18); }
.list-help { margin: 17px 0 13px; font-size: 14px; }
.place-search { margin-bottom: 12px; }
.candidate-tools { display: flex; align-items: center; gap: 12px; }
.candidate-tools .place-search { flex: 1; }
.candidate-count { flex: none; margin-bottom: 12px; color: var(--accent); font-size: 13px; font-weight: 850; }
.place-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.place-choice { display: grid; grid-template-columns: 1fr auto; gap: 7px 14px; padding: 17px; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; background: white; text-align: left; }
.place-choice:hover, .place-choice:focus-visible { border-color: var(--accent); background: #f6fbfd; transform: translateY(-1px); }
.place-choice strong { font-size: 16px; }
.place-choice span { color: var(--muted); font-size: 13px; }
.place-choice .rating-count { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--accent); font-weight: 850; white-space: nowrap; }
.back-button { padding: 0; color: var(--accent); border: 0; background: transparent; cursor: pointer; font-weight: 800; }
.rating-heading { align-items: end; margin: 18px 0 25px; }
.rating-heading p { margin: 6px 0 0; }
.location-pill { padding: 8px 11px; color: var(--accent-dark); border-radius: 999px; background: var(--sky); font-size: 12px; font-weight: 800; }
fieldset { border: 0; padding: 0; margin: 0; }
.overall-fieldset { padding: 20px; border-radius: 18px; background: #f7f3e9; }
.overall-fieldset legend { padding: 0 0 13px; font-size: 16px; font-weight: 850; }
.overall-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.overall-options label { position: relative; }
.overall-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.overall-options span { display: grid; min-height: 66px; place-items: center; padding: 8px; border: 1px solid #ded5bd; border-radius: 12px; cursor: pointer; background: white; font-size: 20px; font-weight: 900; }
.overall-options small { color: var(--muted); font-size: 11px; font-weight: 700; }
.overall-options input:checked + span { color: white; border-color: var(--accent); background: var(--accent); }
.overall-options input:checked + span small { color: white; }
.overall-options input:focus-visible + span { outline: 3px solid rgba(200,95,69,.42); outline-offset: 2px; }
.attribute-intro { margin: 28px 0 13px; }
.attribute-intro p { margin: 5px 0 0; font-size: 14px; }
.attribute-groups { display: grid; gap: 12px; }
.attribute-group { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.attribute-group summary { padding: 15px 17px; color: var(--accent-dark); cursor: pointer; font-weight: 850; background: #f4fafb; }
.attribute-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 22px; padding: 18px; }
.attribute-field { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(100px, 1fr) 28px; gap: 11px; align-items: center; font-size: 13px; font-weight: 750; }
.attribute-field input { min-height: 0; padding: 0; accent-color: var(--accent); box-shadow: none; }
.attribute-value { color: var(--accent); font-weight: 900; text-align: center; }
.note-field { margin-top: 21px; }
.note-field span { color: var(--muted); font-weight: 600; }
.submit-row { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.submit-row p { max-width: 450px; margin: 0; font-size: 12px; }
.honeypot { position: absolute; left: -10000px; }
.suggest-dialog { width: min(610px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 24px 80px rgba(7,30,40,.35); }
.suggest-dialog::backdrop { background: rgba(7,40,58,.68); }
.suggest-dialog form { display: grid; gap: 15px; padding: 24px; }
.dialog-head h2 { margin-top: 4px; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: var(--sky); font-size: 24px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { justify-content: flex-end; margin-top: 4px; }

@media (max-width: 720px) {
  .local-intro { grid-template-columns: 1fr; padding: 26px 22px; }
  .place-choice-list, .attribute-grid { grid-template-columns: 1fr; }
  .candidate-tools { align-items: stretch; flex-direction: column; gap: 0; }
  .candidate-count { margin-top: -4px; }
  .section-head, .rating-heading, .submit-row { align-items: stretch; flex-direction: column; }
  .overall-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .overall-options span { min-height: 59px; padding-inline: 3px; }
  .overall-options small { font-size: 9px; }
  .submit-row .button { width: 100%; }
}

@media (max-width: 470px) {
  .local-nav, .local-shell { width: min(100% - 22px, 980px); }
  .back-link { font-size: 13px; }
  .chooser, .rating-panel { padding: 20px 16px; }
  .two-fields { grid-template-columns: 1fr; }
  .attribute-field { grid-template-columns: 1fr 95px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
