body {
  background:
    radial-gradient(circle at top left, rgba(24, 166, 166, .18), transparent 30%),
    linear-gradient(180deg, #F7FBFC 0%, #F4F7F8 46%, #FFFFFF 100%);
}

.portal-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 14px 28px;
  color: var(--text-body);
}

.portal-hero {
  position: relative;
  margin: 0 -14px;
  padding: max(16px, env(safe-area-inset-top)) 14px 26px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 46, 72, .35), rgba(8, 46, 72, .72)),
    url("../img/home-hero-bg.jpg") center / cover no-repeat;
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -42px;
  height: 84px;
  border-radius: 50% 50% 0 0;
  background: #F7FBFC;
}

.portal-topbar,
.hero-copy,
.search-card {
  position: relative;
  z-index: 1;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(8, 46, 72, .2);
}

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

.brand-lockup strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-lockup small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .8);
  font-size: 11.5px;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-button,
.sheet-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button {
  background: rgba(255, 255, 255, .92);
  color: var(--ocean-800);
  box-shadow: 0 8px 22px rgba(8, 46, 72, .16);
}

.icon-button svg,
.filter-chip svg,
.text-link svg,
.campaign-cta svg {
  width: 18px;
  height: 18px;
}

.hero-copy {
  padding: 58px 8px 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #08344D;
  background: rgba(255, 255, 255, .9);
  font-size: 11px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 360px;
  margin-top: 12px;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.hero-copy p {
  max-width: 390px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .9);
  font-size: 14.5px;
  line-height: 1.58;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  margin: 0 2px;
  padding: 7px 8px 7px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(8, 46, 72, .2);
}

.search-card svg {
  width: 21px;
  height: 21px;
  color: var(--teal-700);
  flex: 0 0 auto;
}

.search-card input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 600 14.5px var(--font-sans);
  color: var(--text-strong);
}

.search-card button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: var(--teal-600);
  color: #fff;
  font: 800 13px var(--font-sans);
  cursor: pointer;
}

.campaign-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.campaign-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-radius: 8px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 46, 72, .12);
  isolation: isolate;
}

.campaign-card::before,
.campaign-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.campaign-card::before {
  background: url("../img/home-hero-bg.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.campaign-card::after {
  background: linear-gradient(90deg, rgba(6, 36, 56, .86), rgba(6, 36, 56, .28));
}

.campaign-card.sattha::after {
  background: linear-gradient(90deg, rgba(66, 37, 5, .9), rgba(153, 89, 14, .18));
}

.campaign-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}

.campaign-content {
  display: block;
  margin-top: 18px;
  max-width: 290px;
}

.campaign-content small,
.campaign-content strong,
.campaign-content span {
  display: block;
}

.campaign-content small {
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  font-weight: 800;
}

.campaign-content strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.campaign-content span {
  margin-top: 7px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.45;
}

.campaign-cta {
  width: max-content;
  min-height: 40px;
  margin-top: 14px;
  border-radius: 12px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #062438;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.quick-filter {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 18px -14px 0;
  padding: 0 14px 4px;
  scroll-snap-type: x mandatory;
}

.filter-chip {
  flex: 0 0 auto;
  height: 44px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--text-muted);
  font: 800 13px var(--font-sans);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(8, 46, 72, .06);
}

.filter-chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-600), var(--ocean-700));
}

.section-block {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 23px;
  letter-spacing: 0;
}

.section-head p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 900 12.5px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
}

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

.category-card {
  min-height: 104px;
  border: 1px solid rgba(203, 211, 218, .72);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72)),
    var(--category-bg, var(--teal-50));
  box-shadow: 0 9px 20px rgba(8, 46, 72, .06);
  cursor: pointer;
}

.category-card.active {
  border-color: var(--category-color, var(--teal-600));
  box-shadow: 0 12px 24px rgba(8, 46, 72, .11);
}

.category-card .cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--category-color, var(--teal-700));
  background: #fff;
}

.category-card strong {
  display: block;
  margin-top: 9px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.category-card small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.recommendation-list {
  display: grid;
  gap: 10px;
}

.place-card {
  border: 1px solid rgba(203, 211, 218, .72);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(8, 46, 72, .06);
  cursor: pointer;
}

.place-cover {
  position: relative;
  min-height: 112px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-50), var(--gold-50));
}

.place-cover img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.place-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--category-color, var(--teal-700));
}

.place-fallback svg {
  width: 36px;
  height: 36px;
}

.place-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.place-body h3 {
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.badge {
  width: max-content;
  max-width: 100%;
  margin-top: 7px;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--category-color, var(--teal-700));
  background: var(--category-bg, var(--teal-50));
  font-size: 11.5px;
  font-weight: 900;
}

.meta-line,
.rating-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12.5px;
}

.meta-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-line {
  color: var(--text-body);
  font-weight: 800;
}

.rating-line svg {
  color: var(--gold-500);
  fill: currentColor;
}

.empty-state,
.loading-state {
  border: 1px dashed var(--border-default);
  border-radius: 8px;
  padding: 28px 18px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .66);
  text-align: center;
}

.empty-state strong,
.loading-state strong {
  color: var(--text-body);
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 42, .46);
}

.menu-sheet {
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 12px;
  max-width: 496px;
  margin: 0 auto;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-xl);
}

.sheet-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--neutral-100);
  color: var(--text-body);
}

.menu-sheet h2 {
  margin: 0 48px 16px 0;
  font-size: 22px;
}

.menu-sheet a {
  display: flex;
  min-height: 48px;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-strong);
  font-weight: 800;
}

@media (min-width: 760px) {
  .portal-shell {
    width: min(100%, 1080px);
    padding-inline: 22px;
  }

  .portal-hero {
    margin-inline: -22px;
    padding-inline: 22px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .portal-hero::after {
    display: none;
  }

  .hero-copy {
    padding-top: 92px;
  }

  .hero-copy h1 {
    max-width: 620px;
    font-size: 46px;
  }

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

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

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

  .place-card {
    grid-template-columns: 168px minmax(0, 1fr);
  }

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

@media (max-width: 370px) {
  .brand-lockup strong {
    font-size: 19px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .place-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}
