:root {
  --red: #da2929;
  --light-blue: #bbdcf1;
  --black: #1f1f1f;
  --gray: #626262;
  --line: #232323;
  --panel: #f5f5f5;
  --white: #ffffff;
  --toggle-gray: #e9e9e9;
  --status-note: #f2dfaa;
  --status-refresh: #d8ccf4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--black);
  font-family: "Avenir Next", Avenir, "Inter", sans-serif;
}

.background-media {
  position: absolute;
  top: 80px;
  right: 0;
  left: 0;
  height: 738px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.05);
  /* transform-origin: center center; */
  opacity: 0.95;
}

.site-header,
.page-shell {
  position: relative;
  z-index: 1;
}

.page-shell {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--red);
}

.header-inner {
  max-width: 1512px;
  height: 84px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.suggest-button-mobile,
.mobile-menu-button,
.mobile-nav-menu {
  display: none;
}

.logo-link {
  justify-self: start;
  display: flex;
  align-items: center;
  overflow: visible;
}

.site-logo {
  width: 176px;
  max-height: 78px;
  object-fit: contain;
  transform: scale(1.6);
  transform-origin: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

.nav-link {
  color: #111111;
  text-decoration: none;
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.nav-link.is-active {
  text-decoration: none;
}

.suggest-button {
  justify-self: end;
  min-width: 164px;
  padding: 9px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: #111111;
  text-decoration: none;
  text-align: center;
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.mobile-menu-button {
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  color: hsl(0, 0%, 7%);
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.mobile-menu-button-icon {
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}

.mobile-menu-button-icon::before,
.mobile-menu-button-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.mobile-menu-button-icon::before {
  top: -5px;
}

.mobile-menu-button-icon::after {
  top: 5px;
}

.mobile-nav-menu {
  padding: 0 18px 16px;
  background: var(--red);
}

.mobile-nav-menu.hidden {
  display: none;
}

.mobile-nav-menu:not(.hidden) {
  display: grid;
  gap: 10px;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #111111;
  text-decoration: none;
  text-align: center;
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.page-shell {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 64px 96px;
}

.hero-section {
  display: flex;
  justify-content: center;
  min-height: 680px;
  padding-top: 84px;
}

.hero-copy-wrap {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.hero-copy-wrap h1 {
  max-width: 900px;
  margin: 0 auto;
  color: #17171b;
  font-family: "Montserrat", sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 540px;
  margin: 10px auto 0;
  color: #17171b;
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.search-bar {
  width: 100%;
  max-width: 680px;
  min-height: 64px;
  margin: 40px auto 0;
  padding: 6px 12px 6px 22px;
  display: grid;
  grid-template-columns: 1fr 156px;
  gap: 18px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #17171b;
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}

.search-bar input::placeholder {
  color: #666666;
  opacity: 1;
}

.search-bar button {
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--light-blue);
  color: #17171b;
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.toolbar {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.distance-button {
  min-width: 240px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--line);
  color: #17171b;
  font-family: "Inter", "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.view-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 170px;
  height: 58px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--toggle-gray);
  box-shadow: inset 0 0 0 2px var(--line);
  overflow: hidden;
}

.view-option {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f5f5f;
  font-family: "Inter", "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  appearance: none;
}

.view-option.is-active {
  background: #ff2c1e;
  color: var(--white);
}

.results-section {
  margin-top: 0;
}

.results-meta {
  min-height: 22px;
  margin-bottom: 10px;
  color: #666666;
  font-size: 14px;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 62px 44px;
}

.restaurant-card {
  min-width: 0;
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 1.47 / 1;
  overflow: hidden;
  background: #efefef;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding-top: 18px;
}

.card-title {
  margin: 0;
  color: #202020;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.card-subtitle {
  margin: 6px 0 0;
  color: #5d5d5d;
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.card-badge-row {
  margin-top: 20px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 5px 14px 4px;
  border: 2px solid #2a2a2a;
  border-radius: 999px;
  background: var(--light-blue);
  color: #202020;
  font-family: Avenir, "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-badge.status-note {
  background: var(--status-note);
}

.card-badge.status-refresh {
  background: var(--status-refresh);
}


.map-view,
.info-section {
  margin-top: 72px;
}

.map-placeholder,
.info-card,
.empty-state {
  border: 3px solid var(--line);
  border-radius: 32px;
  background: var(--white);
}

.map-placeholder,
.info-card {
  padding: 28px;
}

.map-placeholder h2,
.info-card h2 {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-placeholder p,
.info-card p {
  margin: 0;
  line-height: 1.5;
}

.info-card p + p {
  margin-top: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 28px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .page-shell {
    padding-left: 28px;
    padding-right: 28px;
  }

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

@media (max-width: 1139px) {
  .background-media {
    top: 98px;
    height: 620px;
  }

  .background-video {
    object-position: 52% 50%;
    transform: scale(1.02);
  }

  .header-inner {
    position: relative;
    height: 98px;
    padding: 14px 22px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
  }

  .site-nav,
  .suggest-button {
    display: none;
  }

  .site-logo {
    width: 212px;
    max-height: 80px;
    transform: scale(1.24);
    transform-origin: center center;
    margin: 0 auto;
  }

  .page-shell {
    padding-top: 0;
    padding-left: 24px;
    padding-right: 24px;
  }

  .logo-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    justify-self: unset;
    grid-column: auto;
    grid-row: auto;
    align-self: unset;
  }

  .suggest-button-mobile,
  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-menu-button {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    grid-column: auto;
    justify-self: unset;
    align-self: unset;
    padding: 12px 16px;
    font-size: 16px;
  }

  .suggest-button-mobile {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    grid-column: auto;
    justify-self: unset;
    align-self: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
  }

  .hero-section {
    min-height: 590px;
    padding-top: 42px;
  }

  .hero-copy-wrap {
    max-width: 760px;
  }

  .hero-copy-wrap h1 {
    max-width: 720px;
    font-size: clamp(40px, 8vw, 50px);
  }

  .hero-copy {
    max-width: 500px;
  }

  .search-bar {
    max-width: 620px;
  }

  .toolbar {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }
}

@media (max-width: 760px) {
  .background-media {
    top: 90px;
    height: 500px;
  }

  .background-video {
    object-position: 56% 45%;
    transform: scale(1.03);
  }

  .hero-section {
    min-height: 500px;
    padding-top: 34px;
  }

  .hero-copy-wrap h1 {
    max-width: 320px;
    font-size: clamp(34px, 11vw, 44px);
  }

  .hero-copy {
    max-width: 320px;
    margin-top: 12px;
    font-size: 14px;
  }

  .search-bar {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) 180px;
    min-height: 58px;
    margin-top: 28px;
    padding: 8px 10px 8px 18px;
    gap: 12px;
    border-radius: 30px;
  }

  .search-bar input {
    font-size: 15px;
  }

  .search-bar button {
    height: 42px;
  }

  .distance-button,
  .view-toggle {
    width: 100%;
  }

  .toolbar {
    align-items: stretch;
    gap: 10px;
  }

  .distance-button,
  .view-toggle {
    height: 52px;
  }

  .results-meta {
    min-height: 0;
    margin-bottom: 18px;
    font-size: 13px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card-body {
    padding-top: 14px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-subtitle {
    font-size: 13px;
  }

  .card-badge {
    font-size: 13px;
    padding: 5px 12px 4px;
  }

  .map-view,
  .info-section {
    margin-top: 52px;
  }

  .map-placeholder,
  .info-card,
  .empty-state {
    border-radius: 24px;
  }

  .map-placeholder,
  .info-card {
    padding: 22px;
  }
}

@media (max-width: 540px) {
  .background-media {
    top: 84px;
    height: 440px;
  }

  .background-video {
    object-position: 60% 40%;
  }

  .header-inner {
    height: 84px;
    padding: 10px 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .site-logo {
    width: 220px;
    max-height: 74px;
    transform: scale(1.18);
    transform-origin: center center;
    margin-top: 0;
  }

  .logo-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    justify-self: unset;
    grid-column: auto;
    grid-row: auto;
  }

  .suggest-button-mobile {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    grid-column: auto;
    justify-self: unset;
    align-self: unset;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-menu-button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    grid-column: auto;
    justify-self: unset;
    align-self: unset;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 52px;
  }

  .hero-section {
    min-height: 450px;
    padding-top: 26px;
  }

  .hero-copy-wrap h1 {
    max-width: 280px;
    font-size: 34px;
  }

  .hero-copy {
    max-width: 276px;
    font-size: 13px;
  }

  .search-bar {
    grid-template-columns: minmax(0, 1fr) 150px;
    min-height: 54px;
    margin-top: 46px;
    padding: 7px 8px 7px 14px;
    border-radius: 26px;
  }

  .search-bar input,
  .search-bar button {
    font-size: 15px;
  }

  .search-bar button {
    height: 40px;
  }

  .distance-button,
  .view-toggle {
    height: 50px;
  }

  .card-image-wrap {
    aspect-ratio: 1.25 / 1;
  }

  .card-title {
    font-size: 17px;
  }
}
