:root {
  --bg: #f5f3f1;
  --card: #f8f6f4;
  --text: #151515;
  --muted: #66615c;
  --line: #d8d3ce;
  --accent: #f26a3d;
  --accent-dark: #e35728;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(0,0,0,.06);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  padding: 16px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 14px;
  color: #37322e;
}

.nav a:hover { color: var(--accent-dark); }

.nav .nav-auth {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
}

.nav .nav-auth--solid {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
}

.hero-stack {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.hero-card,
.search-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(18,18,18,.45), rgba(18,18,18,.35)),
    url("/assets/img/toshareameal-hero-banner.png") center/cover no-repeat;
  color: var(--white);
}

.hero-card__content {
  padding: 28px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 13px;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -.05em;
  font-weight: 900;
}

.hero-lead {
  margin: 0;
  font-size: 18px;
  color: rgba(255,255,255,.92);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s ease;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: rgba(255,255,255,.9);
  color: var(--text);
  border-color: rgba(255,255,255,.9);
}

.btn-secondary:hover {
  background: var(--white);
}

.hero-note {
  margin-top: 12px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.search-hero {
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.search-title {
  font-size: clamp(34px, 4vw, 56px);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 900;
  margin: 0 0 8px;
  text-shadow: 0 2px 14px rgba(0,0,0,.18);
}

.search-sub {
  margin: 0 0 18px;
  color: rgba(255,255,255,.92);
  font-size: 17px;
}

.hero-searchbar {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr 58px;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  max-width: 920px;
}

.search-field {
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  padding: 0 16px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline: none;
  width: 100%;
}

.search-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.88);
  background: var(--white);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .18s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.search-btn:hover {
  transform: translateY(-1px);
  background: #fff6f1;
}

.search-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.popular-wrap {
  padding: 26px 0 10px;
}

.popular-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.popular-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.popular-label {
  font-size: 22px;
  font-weight: 800;
  color: #5d5752;
  letter-spacing: -.03em;
  text-transform: lowercase;
}

.city-select {
  min-width: 120px;
  height: 48px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  padding: 0 14px;
  color: var(--text);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.filter-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 2px 14px;
  font-size: 18px;
  color: #7a736d;
  cursor: pointer;
}

.filter-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: .18s ease;
}

.filter-tab.is-active {
  color: var(--accent);
  font-weight: 800;
}

.filter-tab.is-active::after {
  background: var(--accent);
}

.popular-panels {
  position: relative;
}

.cards-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cards-status {
  font-size: 14px;
  color: var(--muted);
}

.cards-link {
  font-size: 14px;
  font-weight: 700;
  color: #37322e;
}

.cards-empty,
.cards-loading {
  padding: 26px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.meal-card {
  background: transparent;
  border: 0;
  border-radius: 18px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.meal-card:hover {
  transform: translateY(-4px);
}

.meal-card__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.meal-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
  display: block;
}

.meal-card:hover .meal-card__image {
  transform: scale(1.03);
}

.meal-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.05);
}

.meal-card__save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.meal-card__body {
  padding: 12px 4px 4px;
}

.meal-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #3f3a36;
  margin-bottom: 6px;
}

.meal-card__rating {
  font-weight: 700;
  white-space: nowrap;
}

.meal-card__location {
  color: #6a645e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-card__title {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
}

.meal-card__sub {
  margin: 0 0 6px;
  color: #6a645e;
  font-size: 14px;
  min-height: 20px;
}

.meal-card__price {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.meal-card__price strong {
  font-weight: 800;
}

.section {
  padding: 24px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 900;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 17px;
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.wide-card,
.faq-card {
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-card {
  padding: 20px;
}

.info-pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #5d5752;
  font-size: 12px;
  margin-bottom: 14px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.wide-card {
  padding: 24px;
}

.wide-card h3 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.04em;
}

.wide-card p,
.wide-card li {
  color: var(--muted);
  font-size: 16px;
}

.wide-card ul {
  margin: 14px 0 0 20px;
}

.host-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.faq-card {
  padding: 10px 0;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 22px;
}

details:first-child { border-top: 0; }

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

details p {
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer {
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 22px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  margin: 8px 0;
  font-size: 14px;
}

.copyright {
  margin-top: 22px;
  color: #7a736d;
  font-size: 13px;
}

.mt-14 {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-up,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-searchbar {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .search-btn {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    justify-content: center;
  }

  .hero-card__content,
  .search-hero {
    text-align: center;
    align-items: center;
  }

  .hero-actions,
  .popular-topbar,
  .popular-topbar__left,
  .filter-tabs,
  .host-card__actions {
    justify-content: center;
  }

  .hero-note,
  .hero-lead,
  .search-sub,
  .section-lead,
  .wide-card p,
  .wide-card li,
  .info-card p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-card__content {
    padding: 24px 18px;
  }

  .search-hero {
    padding: 22px 16px;
  }

  h1,
  .section h2,
  .search-title,
  .meal-card__title,
  .wide-card h3,
  .info-card h3 {
    text-align: center;
  }

  .meal-card,
  .info-card,
  .wide-card {
    text-align: center;
  }

  .meal-card__actions,
  .info-pill {
    justify-content: center;
  }
}