:root {
  --ink: #18282a;
  --muted: #637071;
  --cream: #f8f3e8;
  --paper: #fffdf7;
  --coral: #f15b45;
  --coral-dark: #c93d2c;
  --pink: #ef93a8;
  --sun: #f4b54a;
  --teal: #157f78;
  --teal-dark: #0d5e5b;
  --line: rgba(24, 40, 42, 0.16);
  --shadow: 0 20px 55px rgba(36, 56, 55, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(
      90deg,
      rgba(4, 42, 45, 0.32) 0%,
      rgba(4, 42, 45, 0.15) 47%,
      rgba(4, 42, 45, 0) 70%
    ),
    url("assets/miami-spice-cat-hero.webp") 68% center / cover no-repeat,
    var(--teal-dark);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hero::before {
  width: 540px;
  height: 540px;
  right: -190px;
  top: 35px;
  opacity: 0.55;
}

.hero::after {
  width: 410px;
  height: 410px;
  right: -125px;
  top: 100px;
  opacity: 0.55;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50% 50% 48% 52% / 45% 51% 49% 55%;
  color: var(--sun);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
}

.about-link {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 430px;
  padding: 62px 6% 82px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  color: #ffbea9;
}

.eyebrow span {
  width: 38px;
  height: 1px;
  margin-right: 12px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.84;
  text-shadow: 0 3px 28px rgba(4, 42, 45, 0.18);
}

.hero h1 em {
  color: var(--sun);
  font-weight: 400;
}

.hero-lede {
  max-width: 575px;
  margin: 30px 0 0 4px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-stamp {
  display: grid;
  flex: 0 0 190px;
  height: 190px;
  margin: 42px 0 0 50px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(8, 62, 63, 0.26);
  backdrop-filter: blur(4px);
  text-align: center;
  transform: rotate(5deg);
}

.hero-stamp span,
.hero-stamp small {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-stamp strong {
  margin: 3px 0;
  color: var(--sun);
  font-family: Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
}

.sunset-stripes {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 13px;
  grid-template-columns: 1fr 1.1fr 1.6fr;
}

.sunset-stripes span:nth-child(1) {
  background: var(--sun);
}

.sunset-stripes span:nth-child(2) {
  background: var(--pink);
}

.sunset-stripes span:nth-child(3) {
  background: var(--coral);
}

main {
  min-height: 600px;
}

.filter-wrap {
  position: relative;
  z-index: 3;
  margin-top: -43px;
}

.filter-card {
  padding: 30px 34px 34px;
  border: 1px solid rgba(24, 40, 42, 0.08);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.filter-heading,
.results-heading,
.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.filter-heading {
  margin-bottom: 25px;
}

.filter-heading .section-kicker,
.results-heading .section-kicker {
  margin-bottom: 5px;
}

.filter-heading h2,
.results-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.clear-button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--coral);
  color: var(--coral-dark);
  background: none;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.filter-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
}

.copy-link-button {
  padding: 4px 0;
  border: 0;
  color: var(--teal-dark);
  background: none;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.copy-link-button span {
  margin-right: 3px;
}

.copy-link-button:hover {
  color: var(--coral-dark);
}

.copy-status {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  color: var(--teal-dark);
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
}

.search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.search-field,
.personal-tools {
  min-width: 0;
}

.search-field > span:first-child,
.personal-tools > span:first-child {
  display: block;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-wrap {
  position: relative;
  display: block;
}

.search-wrap svg {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 21px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  color: var(--ink);
  background: white;
  font-size: 0.92rem;
}

.search-wrap input::placeholder {
  color: #8c9695;
}

.search-wrap input:focus,
.select-wrap select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(21, 127, 120, 0.11);
}

.personal-tools {
  position: relative;
}

.personal-tools > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.personal-button {
  height: 48px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  transition: 150ms ease;
}

.personal-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.personal-button[aria-pressed="true"] {
  border-color: var(--teal);
  color: white;
  background: var(--teal);
}

.personal-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.personal-button b {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 3px;
  place-items: center;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e8f2ed;
  font-size: 0.65rem;
}

.personal-button[aria-pressed="true"] b {
  color: var(--teal-dark);
  background: white;
}

.personal-tools small {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  color: var(--muted);
  font-size: 0.64rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
}

.offer-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(270px, 1fr) minmax(190px, 0.72fr);
  gap: 20px;
  align-items: end;
  margin-top: 20px;
}

.select-field,
.meal-field,
.price-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.select-field > span:first-child,
.meal-field legend,
.price-field legend {
  display: block;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
}

.select-wrap select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 48px;
  padding: 0 42px 0 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  appearance: none;
}

.select-wrap select:focus-visible,
.price-option:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(244, 181, 74, 0.7);
  outline-offset: 2px;
}

.select-wrap svg {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 11px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.price-options,
.meal-options {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.price-option,
.meal-option {
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-weight: 800;
  transition: 150ms ease;
}

.price-option:hover,
.meal-option:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.price-option[aria-pressed="true"],
.meal-option[aria-pressed="true"] {
  border-color: var(--coral);
  color: white;
  background: var(--coral);
  box-shadow: 0 7px 18px rgba(241, 91, 69, 0.25);
}

.filter-extras {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 21px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.filter-extras > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.michelin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  transition: 150ms ease;
}

.michelin-toggle:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.michelin-toggle[aria-pressed="true"] {
  border-color: #d96d60;
  color: #581a15;
  background: #ffcec3;
  box-shadow: 0 7px 18px rgba(217, 109, 96, 0.18);
}

.michelin-icon {
  color: var(--coral-dark);
  font-size: 0.86rem;
}

.potential-value-toggle[aria-pressed="true"] {
  border-color: #d99a2d;
  color: #553705;
  background: #ffe3a9;
  box-shadow: 0 7px 18px rgba(217, 154, 45, 0.18);
}

.value-icon {
  color: #bb7412;
  font-size: 1rem;
}

.results {
  padding-top: 72px;
  padding-bottom: 100px;
}

.results-heading {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.results-note {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.restaurant-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(24, 40, 42, 0.11);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 4px 0 transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.restaurant-card:hover {
  box-shadow: 0 19px 40px rgba(33, 54, 53, 0.12);
  transform: translateY(-4px);
}

.card-image-link {
  display: block;
  height: 100%;
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--teal);
}

.card-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.restaurant-card:hover .card-image img {
  transform: scale(1.035);
}

.card-image.image-missing img {
  display: none;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 30%, var(--sun) 0 13%, transparent 13.5%),
    linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.image-fallback span {
  width: 42%;
  height: 42%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.card-badges {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 66px);
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: white;
  background: rgba(13, 55, 54, 0.82);
  backdrop-filter: blur(5px);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: 150ms ease;
}

.favorite-button:hover,
.favorite-button[aria-pressed="true"] {
  border-color: #ffcec3;
  color: #7c211a;
  background: #ffcec3;
  transform: scale(1.06);
}

.badge {
  padding: 6px 8px 5px;
  border-radius: 2px;
  color: var(--paper);
  background: rgba(13, 55, 54, 0.9);
  backdrop-filter: blur(4px);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-michelin {
  color: #4c140f;
  background: rgba(255, 206, 195, 0.94);
}

.badge-value {
  color: #4e3305;
  background: rgba(255, 221, 146, 0.95);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px 22px 19px;
}

.card-location {
  overflow: hidden;
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-location-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card-location-row .card-location {
  flex: 1;
  min-width: 0;
}

.card-distance {
  flex: 0 0 auto;
  color: var(--coral-dark);
  font-size: 0.68rem;
  font-weight: 850;
}

.card-body h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.card-body h3 a {
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--coral-dark);
}

.card-cuisine {
  min-height: 20px;
  margin: 8px 0 17px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-list {
  display: grid;
  gap: 7px;
  margin-bottom: 19px;
}

.offer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 7px 9px;
  border-left: 3px solid var(--sun);
  background: #f5efe3;
  font-size: 0.7rem;
}

.offer-meal {
  font-weight: 850;
  text-transform: uppercase;
}

.offer-days {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-price {
  color: var(--coral-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.no-offers {
  min-height: 36px;
  margin: 0 0 19px;
  padding: 9px 11px;
  color: var(--muted);
  background: #f1eee6;
  font-size: 0.72rem;
  line-height: 1.45;
}

.card-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.venue-price {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.details-link {
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.details-link:hover {
  color: var(--coral-dark);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.load-more,
.empty-state button {
  min-width: 210px;
  padding: 14px 23px;
  border: 1px solid var(--teal);
  border-radius: 2px;
  color: var(--paper);
  background: var(--teal);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.load-more:hover,
.empty-state button:hover {
  background: var(--teal-dark);
}

.load-more span {
  margin-left: 8px;
}

.empty-state {
  padding: 80px 24px;
  text-align: center;
}

.empty-state > span {
  color: var(--coral);
  font-size: 2.4rem;
}

.empty-state h3 {
  margin: 13px 0 6px;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.empty-state p {
  margin: 0 0 24px;
  color: var(--muted);
}

footer {
  padding: 70px 0;
  color: rgba(255, 255, 255, 0.8);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.footer-brand {
  color: white;
}

.footer-grid > div:first-child > p {
  max-width: 350px;
  margin: 22px 0 0;
  line-height: 1.6;
}

.footer-data .section-kicker {
  color: var(--sun);
}

.footer-data p:not(.section-kicker) {
  margin: 0 0 17px;
  line-height: 1.7;
}

.footer-data small {
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 1080px) {
  .hero {
    min-height: 540px;
    background-position: 72% center;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-stamp {
    flex-basis: 150px;
    height: 150px;
  }

  .filter-controls {
    grid-template-columns: 1fr 1fr;
  }

  .offer-controls {
    grid-template-columns: 1fr 1fr;
  }

  .offer-controls .sort-field {
    grid-column: 1 / -1;
  }

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

@media (max-width: 650px) {
  .shell {
    width: min(calc(100% - 30px), 560px);
  }

  .hero {
    min-height: 510px;
    background:
      linear-gradient(
        90deg,
        rgba(4, 42, 45, 0.94) 0%,
        rgba(4, 42, 45, 0.76) 63%,
        rgba(4, 42, 45, 0.42) 100%
      ),
      url("assets/miami-spice-cat-hero.webp") 79% center / auto 100% no-repeat,
      var(--teal-dark);
  }

  .nav {
    padding-top: 18px;
  }

  .about-link {
    display: none;
  }

  .hero-content {
    display: block;
    min-height: auto;
    padding: 88px 0 90px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 15vw, 5.1rem);
  }

  .hero-lede {
    margin-top: 26px;
    font-size: 0.96rem;
  }

  .hero-stamp {
    display: none;
  }

  .filter-wrap {
    margin-top: -26px;
  }

  .filter-card {
    padding: 25px 20px;
  }

  .filter-heading {
    align-items: flex-start;
  }

  .filter-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
  }

  .filter-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .filter-controls > *,
  .offer-controls > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .search-tools,
  .offer-controls {
    grid-template-columns: 1fr;
  }

  .personal-tools > div {
    grid-template-columns: 1fr 1fr;
  }

  .personal-tools small {
    position: static;
    display: block;
    margin-top: 6px;
  }

  .filter-extras {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .sort-field {
    grid-column: auto;
  }

  .results {
    padding-top: 54px;
    padding-bottom: 72px;
  }

  .results-heading {
    display: block;
  }

  .results-note {
    margin-top: 10px;
  }

  .restaurant-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

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