/* Dream Lands — Dark theme redesign, hero, explore toolbar, unified hero, filters sheet */
/* =====================================================================
   DARK THEME REDESIGN — header dropdown, hero, sections, reel cards,
   explore toolbar, and dark-surface overrides for existing components
   ===================================================================== */

/* ── Header: Explore dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-explore .nav-caret {
  transition: transform .2s;
}

.nav-dropdown.open .nav-explore .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background: rgba(18, 27, 22, .96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .8rem;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: background .15s, color .15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(95, 208, 122, .14);
  color: var(--acid);
}

.nav-dropdown-menu .nav-dropdown-map {
  margin-top: 2px;
  border-top: 1px solid var(--border);
  color: var(--acid);
}

.nav-dropdown-menu .nav-dropdown-map svg {
  color: var(--acid);
}

/* ── Hero ── */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(6, 10, 8, .35), rgba(6, 10, 8, .55) 60%, rgba(6, 10, 8, .82));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--acid);
  background: rgba(95, 208, 122, .12);
  border: 1px solid rgba(95, 208, 122, .3);
  border-radius: 2rem;
  padding: .35rem .9rem;
}

.hero-eyebrow svg {
  color: var(--acid);
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(12, 18, 14, .55);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: .35rem .25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .55rem 1.4rem;
  text-align: center;
}

.hero-stat+.hero-stat {
  border-left: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.hero-stat-num .acid {
  color: var(--acid);
}

.hero-stat-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

@media (max-width: 480px) {
  .hero-stat {
    padding: .5rem .8rem;
  }

  .hero-stat-num {
    font-size: 1.2rem;
  }
}

.hunt-primary {
  background: var(--acid);
  color: #08130b;
}

.hunt-primary:hover {
  background: var(--acid-strong);
  box-shadow: 0 10px 30px rgba(95, 208, 122, .35);
}

.hunt-reels {
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .25);
  color: #fff;
  text-transform: none;
}

.hunt-reels:hover {
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.hunt-list {
  background: transparent;
  border: none;
  color: #fff;
  text-transform: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .85rem .75rem;
}

.hunt-list:hover {
  opacity: .8;
  box-shadow: none;
}

/* Desktop hero pills */
.hero-pills {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: .25rem;
}

/* Desktop hero headline */
.hero-dt-headline {
  font-family: 'Inconsolata', monospace;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #fff;
  margin: .5rem 0;
}

/* Desktop hero subtext */
.hero-dt-subtext {
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
  margin-bottom: .25rem;
}

/* Desktop stats bar */
.hero-stats-bar {
  display: flex;
  position: relative;
  z-index: 2;
  background: rgba(12, 18, 14, .65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: -75px;
}

.hero-stats-bar-inner {
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 1.1rem 2.5rem;
}

.hsb-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hsb-item svg {
  flex-shrink: 0;
}

.hsb-item div {
  display: flex;
  flex-direction: column;
}

.hsb-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.hsb-lbl {
  font-size: .72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .3px;
}

.hsb-phrase {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ── Section scaffold ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0;
  scroll-margin-top: 70px;
}

#explore {
  padding-bottom: 1rem;
}

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

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--text);
}

.section-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .15rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  color: var(--acid);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: gap .15s;
}

.section-link:hover {
  gap: .6rem;
}

/* ── Popular Categories ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  position: relative;
  height: 185px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  background: #0a0f0c;
  display: flex;
  align-items: flex-end;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 208, 122, .5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.cat-card:hover .cat-card-img {
  transform: scale(1.05);
}

.cat-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 12, 9, .94) 0%, rgba(7, 12, 9, .35) 55%, rgba(7, 12, 9, .04) 100%);
}

.cat-card-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: .9rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.cat-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.cat-card-icon svg {
  width: 21px;
  height: 21px;
}

.cat-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cat-card-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.cat-card-sub {
  font-size: .78rem;
  color: rgba(255, 255, 255, .82);
}

@media (max-width: 860px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .cat-card {
    height: 150px;
  }
}

/* ── Reel-style cards (Latest + Explore) ── */
.reel-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  padding-bottom: .85rem;
}

.reel-row::-webkit-scrollbar {
  height: 7px;
}

.reel-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 4px;
}

.reel-row .reel-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
}

/* ── Latest Properties: infinite right-to-left marquee ── */
.reel-carousel {
  overflow: hidden;
  /* fade the edges so cards don't hard-cut at the section boundary */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.reel-row-carousel {
  overflow: visible;
  scroll-snap-type: none;
  width: max-content;
  animation: reel-marquee var(--marquee-duration, 90s) linear infinite;
}

.reel-carousel:hover .reel-row-carousel,
.reel-row-carousel:has(.reel-card:focus-visible) {
  animation-play-state: paused;
}

@keyframes reel-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-row-carousel {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.reel-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #0a0f0c;
  border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.reel-card:hover,
.reel-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(95, 208, 122, .45);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .5);
  outline: none;
}

.reel-card-media {
  position: absolute;
  inset: 0;
}

.reel-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card .badge {
  top: .6rem;
  left: .6rem;
  right: auto;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.reel-card-newtag {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 3;
  background: var(--acid);
  color: #08130b;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .5px;
  padding: .15rem .5rem;
  border-radius: 4px;
}

.reel-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 14, 10, .55);
  border: 1.5px solid rgba(255, 255, 255, .65);
  color: #fff;
  transition: background .15s, transform .15s;
}

.reel-card-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  fill: #fff;
}

.reel-card:hover .reel-card-play {
  background: var(--acid);
  border-color: var(--acid);
  transform: translate(-50%, -50%) scale(1.08);
}

.reel-card:hover .reel-card-play svg {
  stroke: #08130b;
}

/* Save (heart) button on cards */
.save-btn {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 4;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(8, 14, 10, .45);
  backdrop-filter: blur(2px);
  transition: background .15s, transform .15s, color .15s;
}

.save-btn:hover {
  background: rgba(8, 14, 10, .7);
  transform: scale(1.08);
}

.save-btn.saved {
  color: #ff4d6d;
}

.save-btn svg {
  width: 20px;
  height: 20px;
}

.save-btn.saved {
  animation: save-pop .25s ease;
}

@keyframes save-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* Push heart below the NEW tag when both are present */
.reel-card-newtag~.save-btn {
  top: 2.5rem;
}

.reel-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2.4rem .8rem .8rem;
  background: linear-gradient(to top, rgba(6, 10, 8, .96) 8%, rgba(6, 10, 8, .72) 55%, rgba(6, 10, 8, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.reel-card-title {
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .6rem;
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}

.reel-card-loc {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  min-width: 0;
}

.reel-card-loc svg {
  width: .85em;
  height: .85em;
  flex-shrink: 0;
  color: var(--acid);
}

.reel-card-size {
  padding: .05rem .4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
}

.reel-card-price {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--acid);
  margin-top: .1rem;
}

/* ── Explore toolbar ── */
.explore-views {
  display: inline-flex;
  gap: .25rem;
  padding: .25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2rem;
}

.explore-view-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border: none;
  border-radius: 2rem;
  background: none;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  transition: background .15s, color .15s;
}

.explore-view-btn.active {
  background: var(--acid);
  color: #08130b;
}

.explore-page .explore-main {
  padding-top: 72px;
  min-height: 100vh;
}

.contact-page header {
  position: fixed;
  background: rgba(8, 14, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-page-main {
  padding-top: 72px;
  min-height: 100vh;
}

.contact-page-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.explore-page header {
  position: fixed;
  background: rgba(8, 14, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.explore-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.explore-types {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.explore-type-btn {
  padding: .45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  background: var(--card-bg);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  transition: all .15s;
}

.explore-type-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.explore-type-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.explore-selects {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.explore-select {
  appearance: none;
  -webkit-appearance: none;
  padding: .5rem 2rem .5rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background-color: var(--card-bg);
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb0a5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
}

.explore-select:focus {
  outline: none;
  border-color: var(--acid);
}

.explore-select option {
  background: #16201b;
  color: var(--text);
}

@media (max-width: 600px) {
  .explore-page .explore-main {
    padding-top: 53px;
  }

  .contact-page-main {
    padding-top: 53px;
    padding-bottom: 70px;
  }

  .explore-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .explore-types {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }

  .explore-types::-webkit-scrollbar {
    display: none;
  }

  .explore-type-btn {
    flex-shrink: 0;
  }

  .explore-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .explore-selects #exp-sort {
    grid-column: 1 / -1;
  }

  .explore-select {
    min-width: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ── Dark-surface overrides for existing components ── */
.results-meta {
  color: var(--muted);
}

#map-view {
  padding: 0;
  margin: 0;
}

.map-split {
  background: var(--card-bg);
  border-color: var(--border);
}

.cat-page {
  background: var(--bg);
}

.cat-page-header {
  background: var(--bg-2);
  border-bottom-color: var(--border);
}

.cat-page-title,
.cat-back-btn {
  color: var(--text);
}

.chip-location,
.chip-area {
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
}

.card-price {
  color: var(--acid);
}

.card {
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .reel-row {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .reel-row .reel-card {
    flex-basis: 60vw;
    max-width: 230px;
  }

  .reel-row-carousel {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    width: auto;
  }
}

/* =====================================================
   UNIFIED HERO STYLES
   ===================================================== */

/* ---- Pill ---- */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 2rem;
  padding: .4rem .9rem;
  font-size: .72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.hero-pill-stars {
  color: #facc15;
  font-size: .8rem;
  letter-spacing: 1px;
}

/* ---- Headline ---- */
.hero-headline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.3rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  text-align: center;
}

/* ---- Subtext ---- */
.hero-subtext {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  margin: 0;
  line-height: 1.55;
  text-align: center;
}

.hero-subtext strong {
  color: rgba(255, 255, 255, .9);
}

/* ---- CTA button ---- */
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 2.4rem;
  background: var(--acid);
  color: #08130b;
  border: none;
  border-radius: 3rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 30px rgba(95, 208, 122, .35);
  transition: transform .15s, box-shadow .15s;
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  background: var(--acid-strong);
  box-shadow: 0 12px 40px rgba(95, 208, 122, .45);
}

/* ---- Browse chips ---- */
.hero-browse-for {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-browse-label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
}

.hero-browse-icon {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2rem;
  padding: .3rem .65rem;
  cursor: pointer;
}

.hero-browse-icon svg {
  opacity: .7;
}

.hero-browse-sep {
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
}

.header-bell {
  display: none;
  background: none;
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.section-view-all {
  display: none;
  background: none;
  border: none;
  color: var(--acid);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.value-props-section {
  display: none;
}

#whatsapp-banner {
  display: none;
}

.bottom-nav {
  display: none;
}

.reels-topbar {
  display: none;
}

.reels-right-actions {
  display: none;
}

.reels-mobile-bottom {
  display: none;
}

.filters-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: #1a2420;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.filters-sheet.open {
  transform: translateY(0);
}

.filters-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2999;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.filters-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {

  /* ---- Body padding for bottom nav ---- */
  body {
    padding-bottom: 72px;
  }

  /* ---- Header ---- */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(14, 21, 18, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    z-index: 1500;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: 52px;
    padding: 0 12px;
    gap: 0;
  }

  .brand {
    order: 2;
    justify-self: center;
    font-size: 1rem;
    flex-direction: row;
    gap: .4rem;
    align-items: center;
  }

  .header-logo {
    height: 28px;
    width: 28px;
  }

  /* .header-nav is an off-canvas drawer on mobile (rules in the earlier
     max-width:768px block); it must NOT be display:none or the drawer
     can never slide in. It's position:fixed so it stays out of the grid flow. */
  .nav-hamburger {
    display: none;
  }

  .header-bell {
    display: none;
  }

  .header-right-actions {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  /* ---- Hero ---- */
  .hero {
    background: var(--bg);
    padding-top: 52px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem 2rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    padding: 0;
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
    gap: 1rem;
    display: flex;
    flex-direction: column;
  }

  .hero-dt-headline {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    line-height: 1.25;
  }

  .hero-dt-subtext {
    font-size: .82rem;
    margin-top: .5rem;
  }

  .hero-new-pill {
    font-size: .72rem;
    padding: .35rem .9rem;
  }

  .hunt-primary {
    padding: .7rem 1.6rem;
    font-size: .88rem;
  }

  /* ---- Section headers ---- */
  .section-view-all {
    display: block;
  }

  .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ---- Category grid (2×2, square cards filling the row) ---- */
  .category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cat-card {
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-height: 0;
  }

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

  /* stack icon over text and left-align so the label has the full width — no clipping */
  .cat-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .7rem .7rem .75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  }

  .cat-card-icon {
    width: 32px;
    height: 32px;
  }

  .cat-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .cat-card-label {
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
  }

  .cat-card-sub {
    font-size: .62rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, .78);
  }

  /* ---- Latest reel cards ---- */
  .reel-row .reel-card {
    flex-basis: 44vw;
    max-width: 180px;
    aspect-ratio: 9/16;
  }

  .reel-row .reel-card-img {
    aspect-ratio: 9/16;
  }

  /* ---- Explore list cards: same desktop card style, 2 per row ---- */
  .reel-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* ---- Value props & WhatsApp banner — hidden on mobile ---- */
  .value-props-section,
  #whatsapp-banner {
    display: none !important;
  }

  .value-props-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .value-prop {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    text-align: center;
  }

  .value-prop-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .vp-green {
    background: rgba(46, 125, 50, .2);
    color: var(--acid);
  }

  .vp-blue {
    background: rgba(33, 150, 243, .2);
    color: #64b5f6;
  }

  .vp-orange {
    background: rgba(255, 111, 0, .2);
    color: #ffb74d;
  }

  .vp-whatsapp {
    background: rgba(37, 211, 102, .2);
    color: #25d366;
  }

  .value-prop strong {
    font-size: .75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
  }

  .value-prop span {
    font-size: .67rem;
    color: var(--muted);
    line-height: 1.3;
  }

  /* ---- WhatsApp banner ---- */
  #whatsapp-banner {
    display: block;
  }

  .whatsapp-banner-inner {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    gap: .9rem;
    text-decoration: none;
    color: inherit;
  }

  .whatsapp-banner-icon {
    width: 48px;
    height: 48px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .whatsapp-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
  }

  .whatsapp-banner-text strong {
    font-size: .85rem;
    font-weight: 800;
    color: var(--text);
  }

  .whatsapp-banner-text span {
    font-size: .72rem;
    color: var(--muted);
  }

  .whatsapp-banner-arrow {
    color: var(--muted);
    flex-shrink: 0;
  }

  /* ---- Bottom navigation ---- */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    z-index: 2100;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(58px + env(safe-area-inset-bottom));
    align-items: flex-start;
  }


  .bnav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    padding: 8px 0;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    transition: color .18s;
    min-height: 54px;
  }

  .bnav-tab span {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .3px;
  }

  .bnav-tab.bnav-active {
    color: var(--acid);
  }

  body:has(.reels-overlay.open) .bottom-nav {
    background: #000;
    border-top-color: rgba(255, 255, 255, .08);
  }

  body:has(.reels-overlay.open) .bnav-tab {
    color: #fff;
  }

  body:has(.reels-overlay.open) .bnav-tab[data-tab="reels"] {
    color: var(--acid);
  }

  .reels-overlay {
    bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .bnav-tab[data-tab="saved"] {
    position: relative;
  }

  .bnav-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ff4d6d;
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }

  .bnav-reels {
    position: relative;
  }

  /* ---- Reels top bar ---- */
  .reels-topbar {
    display: none;
  }

  .reels-topbar-left {
    position: relative;
  }

  .reels-cat-dropdown {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
  }

  .reels-cat-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(18, 27, 22, .95);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    min-width: 160px;
    z-index: 400;
    display: none;
    backdrop-filter: blur(12px);
  }

  .reels-cat-menu.open {
    display: block;
  }

  .reels-cat-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    padding: .7rem 1rem;
    font-size: .88rem;
    cursor: pointer;
    font-family: inherit;
  }

  .reels-cat-menu button:hover {
    background: rgba(255, 255, 255, .08);
  }

  /* Bottom cat menu opens upward */
  .reels-cat-menu-bottom {
    top: auto;
    bottom: calc(100% + 8px);
    pointer-events: auto;
  }

  .reels-topbar-search {
    display: none;
  }

  /* ---- Reels right actions ---- */
  .reels-right-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 200;
  }

  .reels-right-actions::before {
    content: '';
    position: absolute;
    inset: -20px -16px;
    background: radial-gradient(ellipse at right, rgba(0, 0, 0, .35) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
  }

  .reels-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
  }

  .reels-action-item:has(.reels-action-avatar),
  .reels-action-item:has([aria-label="Comments"]),
  .reels-action-item:has([aria-label="Share"]) {
    display: none;
  }

  .reels-action-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--acid);
    background: var(--card-bg);
  }

  .reels-action-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .reels-action-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
  }

  .reels-action-btn.saved svg {
    fill: #ff4d6d;
    stroke: #ff4d6d;
  }

  .reels-action-call {
    color: #fff;
  }

  .reels-action-whatsapp {
    color: #fff;
  }

  .reels-action-count {
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  }

  .reels-action-lbl {
    font-size: .65rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  }

  .ryc-scrim {
    opacity: 0 !important;
  }

  .reels-cat-wrap {
    position: relative !important;
    z-index: 200;
    pointer-events: auto;
  }

  /* ---- Reels mobile bottom info ---- */
  .reels-mobile-bottom {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 40px 16px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .15) 50%, transparent 100%);
    z-index: 150;
    pointer-events: none;
  }

  .reels-mobile-bottom button {
    pointer-events: auto;
  }

  .reels-cat-dropdown-bottom {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    margin-bottom: .55rem;
    pointer-events: auto;
  }

  .reels-mobile-title-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .25rem;
    overflow: hidden;
  }

  .reels-mobile-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
    flex-shrink: 0;
  }

  .reels-mobile-location-inline {
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reels-mobile-meta {
    display: flex;
    align-items: center;
    gap: .28rem;
    font-size: .8rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
    overflow: hidden;
  }

  .reels-mobile-desc-text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reels-meta-sep {
    color: rgba(255, 255, 255, .6);
    flex-shrink: 0;
  }

  .reels-details-link {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
  }

  .reels-details-link:active {
    color: #fff;
  }

  #reels-mobile-location-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .reels-thumb-count {
    font-size: .7rem;
    color: rgba(255, 255, 255, .75);
    font-weight: 700;
    margin-left: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  }

  /* Hide controls bar in mobile reels — mobile uses swipe + right-actions */
  .ryc-controls-bg {
    display: none;
  }

  /* Close button not needed — bottom nav covers this */
  .ryc-float-bar {
    display: none;
  }

  .ryc-settings-fab {
    display: none !important;
  }

  /* Black strips removed — portrait videos fill edge-to-edge and the bottom nav
     already covers YouTube's footer chrome naturally */
  .ryc-slide-wrap::before,
  .ryc-slide-wrap::after {
    display: none;
  }

  /* Captions won't be visible behind the bottom overlay — hide the toggle */
  .ryc-settings-section:has(#ryc-caption-options) {
    display: none;
  }

  /* Default: portrait fill (before detection resolves) */
  #reels-yt-player {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    transform: none;
  }

  /* Portrait 9:16 — sized by JS (_ytSizePortrait) to overflow header/footer */
  #reels-yt-player.yt-portrait {
    inset: auto;
  }

  /* Landscape 16:9 — sized by JS (_ytSizeIframe) to overflow header/footer */
  #reels-yt-player.yt-landscape {
    inset: auto;
  }


  /* ---- Filters sheet (always in DOM, mobile-only) ---- */
  .filters-sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, .2);
    border-radius: 2px;
    margin: 12px auto 0;
  }

  .filters-sheet-header {
    display: flex;
    align-items: center;
    padding: 12px 16px 8px;
    gap: .5rem;
    border-bottom: 1px solid var(--border);
  }

  .filters-sheet-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
  }

  .filters-sheet-reset {
    background: none;
    border: none;
    color: var(--acid);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 0 4px;
  }

  .filters-sheet-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    margin-left: .25rem;
  }

  .filters-sheet-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .filters-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .filters-section-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
  }

  .filters-select {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: .65rem .9rem;
    font-size: .88rem;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb0a5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    padding-right: 2.2rem;
  }

  .filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filters-chip {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    color: var(--muted);
    border-radius: 20px;
    padding: .42rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
  }

  .filters-chip.active {
    background: var(--acid);
    border-color: var(--acid);
    color: #06120a;
    font-weight: 800;
  }

  .filters-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .filters-range-input {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: .62rem .75rem;
    font-size: .85rem;
    font-family: inherit;
    min-width: 0;
  }

  .filters-range-input::placeholder {
    color: var(--muted);
  }

  .filters-range-sep {
    font-size: .78rem;
    color: var(--muted);
    flex-shrink: 0;
  }

  .filters-sheet-footer {
    padding: 12px 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .filters-apply-btn {
    width: 100%;
    background: var(--acid);
    color: #06120a;
    border: none;
    border-radius: 12px;
    padding: .9rem;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
  }

  .filters-count-text {
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
    margin: 0;
  }
}

/* =====================================================
   SAVED VIEW OVERLAY
   ===================================================== */
.saved-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: var(--bg);
  display: none;
  flex-direction: column;
}

.saved-overlay.open {
  display: flex;
}

/* Header mirrors the Explore section header (same .section-title typography). */
.saved-head {
  flex-shrink: 0;
  margin: 0;
  padding: 1.25rem 1.25rem .85rem;
  background: var(--bg);
  border-bottom: none;
}

.saved-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  cursor: pointer;
}

.saved-close-btn:hover {
  background: rgba(255, 255, 255, .06);
}

.saved-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.saved-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .4rem;
  padding: 4rem 1.5rem;
  color: var(--muted);
}

.saved-empty-icon {
  color: #ff4d6d;
  opacity: .6;
  margin-bottom: .4rem;
}

.saved-empty-icon svg {
  width: 44px;
  height: 44px;
}

.saved-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.saved-empty-sub {
  margin: 0;
  font-size: .82rem;
}

.saved-count {
  color: var(--muted);
  font-weight: 700;
}

/* The collapsible "Filters" toggle is a mobile-only affordance. On desktop the
   selects are always visible, so the wrapper is transparent to layout and the
   button is hidden. */
.explore-types-row {
  display: contents;
}

.explore-filters-toggle {
  display: none;
}

