:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f6f7fb;
  --panel: #ffffff;
  --primary: #0d6efd;
  --primary-dark: #084dbf;
  --accent: #17a2b8;
  --good: #12805c;
  --warn: #b7791f;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.1);
}

* { box-sizing: border-box; }

body {
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

a { color: inherit; }

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-logo-img {
  display: block;
  max-height: 70px;
  max-width: 220px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 22px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a,
.button,
button.button {
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
  padding: 10px 13px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(23, 32, 51, 0.06);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.22);
  color: #fff;
  padding-left: 16px;
  padding-right: 16px;
}

.site-nav .nav-cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

.site-nav .nav-login {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.nav-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 18px;
}

.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

.shell {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(24px, 4vw, 56px);
}

.listing-shell {
  max-width: 1480px;
  padding: clamp(16px, 2vw, 28px);
}

.hero {
  background: linear-gradient(rgba(23, 32, 51, 0.62), rgba(23, 32, 51, 0.5)), url("../img/hero/h1_hero.jpg") center / cover;
  color: #fff;
  min-height: 540px;
  padding: clamp(72px, 12vw, 132px) clamp(18px, 4vw, 56px) 40px;
}

.hero-inner {
  margin: 0 auto;
  max-width: 1120px;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  margin: 14px 0 16px;
  max-width: 760px;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
}

.search-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  margin-top: 34px;
  max-width: 1080px;
  padding: 12px;
}

.field,
.select,
textarea.field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 52px;
  padding: 0 14px;
  width: 100%;
}

textarea.field {
  min-height: 118px;
  padding-top: 14px;
}

.button,
button.button {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 18px;
}

.stat strong { display: block; font-size: 28px; }
.stat span { color: rgba(255, 255, 255, 0.78); }

.section-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head h2,
.detail-title h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  margin: 0;
}

.muted { color: var(--muted); }

.grid {
  display: grid;
  gap: 18px;
}

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout { grid-template-columns: minmax(0, 1fr) 340px; }

.listing-shell .layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.card,
.listing-card,
.filter-panel,
.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.card { padding: 22px; }

.cta-card {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.category-showcase {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.category-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(23, 162, 184, 0.08)),
    #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-height: 150px;
  padding: 20px 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-card:hover {
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.promo-slider {
  display: grid;
  gap: 18px;
  grid-auto-columns: calc((100% - 54px) / 4);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 4px 0 14px;
  scroll-snap-type: x mandatory;
}

.promo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
}

.promo-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.promo-card-body {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.promo-card-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-card-body strong {
  font-size: 17px;
  line-height: 1.25;
}

.promo-modal {
  display: none;
  inset: 0;
  padding: 22px;
  position: fixed;
  z-index: 120;
}

.promo-modal.open {
  align-items: center;
  display: flex;
  justify-content: center;
}

.promo-modal-backdrop {
  background: rgba(23, 32, 51, 0.62);
  inset: 0;
  position: absolute;
}

.promo-modal-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  max-height: 92vh;
  max-width: 980px;
  overflow: auto;
  position: relative;
  width: 100%;
}

.promo-modal-panel > img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  width: 100%;
}

.promo-modal-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.promo-modal-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  z-index: 2;
}

.category-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.icon-box {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.16);
  box-shadow: 0 10px 26px rgba(13, 110, 253, 0.12);
  border-radius: 8px;
  color: var(--primary);
  display: inline-flex;
  font-size: 22px;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.listing-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.listing-results-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.listing-results-grid .map-strip {
  grid-column: 1 / -1;
}

.listing-results-grid .listing-card {
  grid-template-columns: 1fr;
}

.listing-results-grid .listing-image {
  min-height: 210px;
}

.listing-results-grid .listing-body {
  align-content: start;
}

.listing-image {
  background: #d8dde7;
  height: 100%;
  min-height: 218px;
  object-fit: cover;
  width: 100%;
}

.listing-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.listing-body h2,
.card h3,
.detail-panel h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.meta-row,
.chips,
.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: #f2f4f7;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
}

.chip.good { background: rgba(18, 128, 92, 0.1); color: var(--good); }
.chip.warn { background: rgba(183, 121, 31, 0.12); color: var(--warn); }
.chip.primary { background: rgba(13, 110, 253, 0.1); color: var(--primary-dark); }

.rating {
  color: #f59e0b;
  font-weight: 800;
}

.view-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.view-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 46px;
  padding: 11px 14px;
  text-decoration: none;
}

.view-toggle.active,
.view-toggle:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  text-decoration: none;
}

.rating-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rating-picker label {
  cursor: pointer;
  margin: 0;
}

.rating-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-picker span {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #b45309;
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
}

.rating-picker input:checked + span,
.rating-picker label:hover span {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.filter-panel,
.detail-panel {
  padding: 20px;
}

.filter-panel {
  align-self: start;
  position: sticky;
  top: 96px;
}

.filter-stack {
  display: grid;
  gap: 12px;
}

.map-strip {
  align-items: center;
  background: #172033;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  margin-bottom: 22px;
  min-height: 82px;
  padding: 18px;
}

.map-strip .button {
  align-self: center;
  white-space: nowrap;
}

.photo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 2fr 1fr 1fr;
}

.photo-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.detail-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.detail-title {
  display: grid;
  gap: 12px;
}

.mini-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-list li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.review {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.notice {
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.notice.success { background: rgba(18, 128, 92, 0.1); color: var(--good); }
.notice.error { background: rgba(13, 110, 253, 0.1); color: var(--primary-dark); }

.site-footer {
  background: #121927;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px clamp(18px, 4vw, 56px);
}

.site-footer p { color: rgba(255, 255, 255, 0.68); margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 18px;
    top: 18px;
  }

  .site-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    gap: 8px;
    padding: 10px;
    width: 100%;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
    width: 100%;
  }

  .search-panel,
  .stats,
  .grid.three,
  .grid.two,
  .layout,
  .map-strip,
  .cta-card,
  .promo-modal-panel {
    grid-template-columns: 1fr;
  }

  .promo-slider {
    grid-auto-columns: minmax(240px, 78vw);
  }

  .promo-modal-panel > img {
    min-height: 220px;
  }

  .filter-panel { position: static; }
  .listing-card { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { min-height: 620px; }
  .shell { padding: 22px 16px; }
  .photo-grid { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
}
