:root {
  --ink: #20313a;
  --muted: #697984;
  --line: #dbe4e8;
  --paper: #ffffff;
  --canvas: #f4f7f7;
  --teal: #0d7774;
  --teal-dark: #085654;
  --mint: #dff3ec;
  --coral: #e96d56;
  --blue: #426bb4;
  --yellow: #f6c44f;
  --green: #65a852;
  --shadow: 0 18px 44px rgba(27, 49, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1180px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(13, 119, 116, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(13, 119, 116, 0.05) 0 1px, transparent 1px 100%),
    var(--canvas);
  background-size: 32px 32px;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: 1240px;
  margin: 0 auto;
  padding: 22px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(25, 50, 54, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--green));
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  gap: 6px;
}

.topnav a {
  padding: 10px 14px;
  color: var(--ink);
  border-radius: 6px;
  text-decoration: none;
}

.topnav a:hover {
  background: var(--mint);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover,
.icon-button.is-active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.hero-panel {
  display: grid;
  grid-template-columns: 392px 1fr;
  gap: 24px;
  margin-top: 22px;
  padding: 28px;
  min-height: 296px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 86, 84, 0.94), rgba(13, 119, 116, 0.84)),
    radial-gradient(circle at 85% 18%, rgba(246, 196, 79, 0.42), transparent 34%),
    linear-gradient(90deg, #0f6f6a, #2f8659);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel .eyebrow {
  color: #f9df93;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.55;
}

.quick-search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.field legend,
.range-row span,
.sort-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.age-field {
  margin: 0;
  padding: 0;
  border: 0;
}

input,
select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 119, 116, 0.14);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 42px;
  overflow: hidden;
  background: #edf4f3;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.seg-btn {
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-weight: 700;
}

.seg-btn:last-child {
  border-right: 0;
}

.seg-btn.is-active {
  color: #fff;
  background: var(--teal);
}

.quick-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.situation-chip,
.pill {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.situation-chip:hover,
.pill:hover {
  border-color: var(--teal);
}

.situation-chip.is-active,
.pill.is-active {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.results-shell {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.filters-panel,
.content-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(25, 50, 54, 0.08);
}

.filters-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
}

.panel-heading,
.results-toolbar,
.context-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading h2,
.results-toolbar h2,
.context-card h3 {
  margin: 0;
}

.text-button {
  height: 34px;
  padding: 0 12px;
  color: var(--teal-dark);
  background: var(--mint);
  border: 1px solid rgba(13, 119, 116, 0.18);
  border-radius: 6px;
  font-weight: 800;
}

.filter-section {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.filter-section:first-of-type {
  margin-top: 14px;
}

.filter-section h3 {
  margin-bottom: 12px;
  font-size: 14px;
}

.compact input,
.compact select {
  height: 38px;
}

.filter-section .field + .field,
.field + .button-grid,
.check-list + .range-row {
  margin-top: 10px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-list {
  display: grid;
  gap: 9px;
}

.check-list.columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: #314751;
  font-size: 13px;
  line-height: 1.25;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.range-row {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.content-panel {
  padding: 22px;
}

.toolbar-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

.sort-control {
  display: grid;
  gap: 6px;
  width: 190px;
}

.sort-control select {
  height: 38px;
}

.view-toggle {
  display: flex;
  gap: 6px;
  padding-bottom: 1px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  margin: 18px 0;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px 0 11px;
  color: var(--teal-dark);
  background: var(--mint);
  border: 1px solid rgba(13, 119, 116, 0.18);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.active-chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
  border: 0;
  border-radius: 4px;
  font-weight: 800;
}

.context-card {
  align-items: start;
  padding: 16px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.context-card .field {
  width: 250px;
}

.context-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  padding-top: 25px;
}

.context-tag {
  padding: 7px 10px;
  color: #22363d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.result-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.result-list.grid-view {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 16px;
  min-height: 154px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.grid-view .result-card {
  grid-template-columns: 1fr;
}

.thumb {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  border-radius: 7px;
  background: #d9e8e6;
}

.thumb::before,
.thumb::after {
  content: "";
  position: absolute;
}

.thumb::before {
  inset: 18px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.thumb::after {
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.thumb.playroom { background: linear-gradient(135deg, #6bbcc1, #f5b565); }
.thumb.museum { background: linear-gradient(135deg, #426bb4, #79b7d3); }
.thumb.playground { background: linear-gradient(135deg, #65a852, #f6c44f); }
.thumb.trip { background: linear-gradient(135deg, #0d7774, #8ab96b); }
.thumb.club { background: linear-gradient(135deg, #e96d56, #8f70b7); }
.thumb.home { background: linear-gradient(135deg, #d86987, #f6c44f); }

.card-body h3 {
  margin-bottom: 7px;
  font-size: 19px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.meta span {
  padding: 5px 8px;
  color: #314751;
  background: #edf4f3;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.card-body p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  padding: 5px 8px;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.card-score {
  display: grid;
  justify-items: end;
  align-content: space-between;
  min-width: 96px;
}

.rating {
  color: #253a42;
  font-weight: 900;
}

.distance {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.primary-button {
  height: 36px;
  padding: 0 13px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.map-view {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 16px;
  margin-top: 18px;
}

.map-view[hidden] {
  display: none;
}

.map-canvas {
  position: relative;
  height: 482px;
  overflow: hidden;
  background:
    linear-gradient(30deg, transparent 0 39%, rgba(13, 119, 116, 0.16) 40% 42%, transparent 43% 100%),
    linear-gradient(145deg, transparent 0 46%, rgba(66, 107, 180, 0.18) 47% 49%, transparent 50% 100%),
    linear-gradient(90deg, rgba(32, 49, 58, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(32, 49, 58, 0.06) 0 1px, transparent 1px 100%),
    #e9f2ee;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-pin {
  position: absolute;
  padding: 7px 10px;
  color: #fff;
  background: var(--coral);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(32, 49, 58, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.pin-a { left: 20%; top: 22%; }
.pin-b { left: 54%; top: 36%; background: var(--blue); }
.pin-c { left: 34%; top: 66%; background: var(--green); }
.pin-d { left: 73%; top: 58%; background: var(--teal); }

.map-side {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-side p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.empty-state {
  padding: 32px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
