/* ══════════════════════════════════════════════════
   LAYANG · Bali Travel Engine
   Palette: Tegallalang — earthy, local, authentic
══════════════════════════════════════════════════ */

:root {
  --forest:    #4A5D4E;
  --forest-dk: #354340;
  --jungle:    #6B8070;
  --rice:      #A8BBA0;
  --rice-lt:   #D0DCC8;
  --offering:  #E9C46A;
  --offering-dk:#C4A040;
  --temple:    #CC7E5C;
  --soil:      #2C1F14;
  --sand:      #F9F7F2;
  --sand2:     #EDE9DC;
  --sand3:     #DDD8C8;
  --white:     #FFFFFF;
  --text1:     #1A1A0F;
  --text2:     #4A4A35;
  --text3:     #8A8A70;
  --text4:     #B8B8A0;
  --border:    #DDD8C4;
  --shadow:    rgba(74,93,78,.10);
  --shadow-md: rgba(74,93,78,.14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--sand);
  color: var(--text1);
  min-height: 100vh;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
input, select { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════
   BANNER
══════════════════════════════════════════════════ */
.banner {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 52px 0 16px;
  position: relative;
}

/* ── DESKTOP CONTENT ─────────────────────────── */
.banner-content-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 639px) {
  .banner-content-desktop { display: none; }
}

/* ── MOBILE CONTENT ──────────────────────────── */
.banner-content-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 639px) {
  .banner-content-mobile { display: flex; }
}

/* ── IMAGE BACKGROUNDS ────────────────────────── */
.banner-content-desktop.has-image,
.banner-content-mobile.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* stretch to fill the slide edge-to-edge */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 52px 0 16px;
  max-width: none;
  z-index: 1;
}
.banner-content-desktop.has-image .banner-emoji,
.banner-content-desktop.has-image .banner-text,
.banner-content-desktop.has-image .banner-cta {
  position: relative;
  z-index: 2;
}
.banner-content-mobile.has-image .banner-headline-mobile,
.banner-content-mobile.has-image .banner-cta {
  position: relative;
  z-index: 2;
}

.banner-emoji {
  font-size: 28px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-text { flex: 1; min-width: 0; }
.banner-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.banner-headline {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .banner-headline { font-size: 14px; }
}

/* ── MOBILE HEADLINE ─────────────────────────── */
.banner-headline-mobile {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.banner-cta {
  background: var(--offering);
  color: var(--soil);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
  text-decoration: none;
}
.banner-cta:hover { background: var(--offering-dk); transform: scale(1.03); }

.banner-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.bdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background .3s, transform .3s;
  padding: 0;
  cursor: pointer;
  border: none;
}
.bdot.active { background: var(--offering); transform: scale(1.3); }

@media (max-width: 639px) {
  .bdot {
    width: 8px;
    height: 8px;
  }
}

.banner-prev, .banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .15s;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.banner-prev:hover, .banner-next:hover { background: rgba(255,255,255,.32); }
.banner-prev { left: 10px; }
.banner-next { right: 10px; }

@media (max-width: 639px) {
  .banner-prev, .banner-next {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* ══════════════════════════════════════════════════
   TOP NAV
══════════════════════════════════════════════════ */
.topnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 16px;
}

.topnav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--forest);
  letter-spacing: -.5px;
  flex-shrink: 0;
  line-height: 1;
}
.logo-accent { color: var(--offering); font-style: italic; }
.logo a { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 70px; width: auto; display: block; }
.logo { padding-left: 10px; }
@media (max-width: 640px) {
  .logo-img { height: 40px; max-width: 80px; }
  .logo { padding-left: 4px; }
}

.topnav-center { flex: 1; min-width: 0; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45,80,22,.1);
  background: var(--white);
}
.search-box > i { color: var(--text3); font-size: 18px; flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text1);
  min-width: 0;
}
.search-box input::placeholder { color: var(--text4); }

.near-me-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--forest);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .15s;
  white-space: nowrap;
}
.near-me-btn:hover { background: var(--forest-dk); }
.near-me-btn i { font-size: 13px; }

.topnav-right { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text2);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--forest); color: var(--forest); }
.icon-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; }

.saved-count {
  position: absolute;
  top: -3px; right: -3px;
  width: 16px; height: 16px;
  background: var(--temple);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  width: auto;
  padding: 0 10px;
  border-radius: 20px;
  height: 32px;
}

/* ══════════════════════════════════════════════════
   MAIN CONTAINER
══════════════════════════════════════════════════ */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ── AREA CHIPS ── */
.area-section {
  padding: 12px 0 0;
  position: relative;
}
.area-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--sand));
  pointer-events: none;
  z-index: 1;
}
.area-scroll {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.area-scroll::-webkit-scrollbar { display: none; }

.area-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.area-chip:hover { border-color: var(--jungle); color: var(--jungle); }
.area-chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ── BUDGET ── */
.budget-section { padding: 0 16px 12px; }
.budget-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 14px;
  display: flex;
  flex-direction: column;
}
.budget-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 0;
  min-width: 0;
}
.budget-row .budget-pills,
.budget-row .currency-pills {
  border-left: 1.5px solid var(--border);
  padding-left: 10px;
}
.budget-divider { height: 1px; background: var(--border); }
.budget-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 68px;
  width: 68px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-right: 4px;
}
.budget-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
}
.budget-pills::-webkit-scrollbar { display: none; }
.currency-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
}
.currency-pills::-webkit-scrollbar { display: none; }

.bpill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text2);
  background: var(--sand);
  transition: all .15s;
  white-space: nowrap;
}
.bpill:hover { border-color: var(--jungle); color: var(--jungle); }
.bpill.active { background: var(--forest); border-color: var(--forest); color: #fff; }

.currency-pills { border-left: 1px solid var(--border); padding-left: 8px; }
.cpill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text3);
  background: var(--white);
  transition: all .15s;
}
.cpill:hover { border-color: var(--offering); color: var(--soil); }
.cpill.active { background: var(--offering); border-color: var(--offering); color: var(--soil); }

/* ── CATEGORIES ── */
.cat-section {
  padding: 0 0 8px;
  position: relative;
}
.cat-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 8px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--sand));
  pointer-events: none;
  z-index: 1;
}
/* Mobile: single horizontal scroll */
.cat-scroll {
  display: flex;
  gap: 6px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
}
.cat-scroll::-webkit-scrollbar { display: none; }

/* Desktop: 2-row wrap */
@media (min-width: 900px) {
  .cat-section::after { display: none; }
  .cat-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 24px 8px;
  }
  .cat-item { order: 1; }
  .cat-item.cat-row2 { order: 2; }
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  transition: all .15s;
  min-width: 58px;
}
.cat-item:hover { border-color: var(--jungle); }
.cat-item.active { background: var(--forest); border-color: var(--forest); }
.cat-icon { font-size: 20px; line-height: 1; }
.cat-all-label { font-size: 16px; font-weight: 700; color: var(--forest); line-height: 1; }
.cat-item.active .cat-all-label { color: #fff; }
.cat-item span { font-size: 12px; font-weight: 700; color: var(--text3); white-space: nowrap; }
.cat-item.active span { color: rgba(255,255,255,.85); }
.cat-item.active .cat-icon { filter: none; }

/* Hide EN button and planner label on mobile to free space for search */
@media (max-width: 640px) {
  .lang-btn { display: none !important; }
  .planner-nav-btn span { display: none; }
  .planner-nav-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text2);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
}

/* ── RESULTS HEADER ── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 10px;
}
.results-count { font-size: 13px; color: var(--text3); font-weight: 700; }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text3);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  cursor: pointer;
}
.view-btn:hover { border-color: var(--jungle); color: var(--jungle); }
.view-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ══════════════════════════════════════════════════
   PLACE CARDS GRID
══════════════════════════════════════════════════ */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 0 16px 16px;
}

@media (max-width: 540px) {
  .places-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 10px 16px; }
}

.place-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-md);
}
.place-card.featured { border-color: var(--offering); }
.place-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: 10px; left: 10px;
  background: var(--offering);
  color: var(--soil);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  background: var(--sand2);
  overflow: hidden;
}
/* Subtle inner vignette for depth */
.card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(0,0,0,.06) 100%);
  pointer-events: none;
  z-index: 0;
}
.card-img > * { position: relative; z-index: 1; }
.card-img .card-open-badge,
.card-img .card-save,
.card-img .card-verified,
.card-img .card-featured-badge { position: absolute; z-index: 3; }

.card-featured-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .05em;
  background: var(--offering, #e8c547);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
}

@media (max-width: 540px) { .card-img { height: 120px; font-size: 40px; } }

.card-open-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.card-open-badge.open { background: #e8f5e9; color: #2e7d32; }
.card-open-badge.closed { background: #fce4ec; color: #c62828; }

.card-save {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--text4);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  z-index: 2;
  border: none;
  cursor: pointer;
}
.card-save.saved { color: var(--temple); }
.card-save:hover { transform: scale(1.12); color: var(--temple); }

.card-body { padding: 10px 12px 12px; }
.card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--temple);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}
.card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.card-area {
  font-size: 11px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
}
.card-area i { font-size: 11px; color: var(--temple); flex-shrink: 0; }
.card-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text3);
}
.stars { color: var(--offering); font-size: 11px; letter-spacing: -1px; }

/* list view */
.places-grid.list-view {
  grid-template-columns: 1fr;
  gap: 8px;
}
.places-grid.list-view .place-card {
  display: grid;
  grid-template-columns: 80px 1fr;
}
.places-grid.list-view .card-img { height: 88px; font-size: 34px; }
.places-grid.list-view .card-body { padding: 8px 12px; }
.places-grid.list-view .card-name { font-size: 13px; }

/* ── ITINERARY STRIP ── */
.itin-strip {
  margin: 4px 16px 0;
}
.itin-strip-inner {
  background: var(--forest);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.itin-strip-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.itin-strip-text { flex: 1; min-width: 0; }
.itin-strip-text h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.itin-strip-text p { font-size: 11px; color: rgba(255,255,255,.65); }
.itin-strip-btn {
  background: var(--offering);
  color: var(--soil);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.itin-strip-btn:hover { background: var(--offering-dk); transform: scale(1.02); }

/* ══════════════════════════════════════════════════
   MODAL BASE
══════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,15,.55);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(2px);
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn .2s ease;
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 20px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .28s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: var(--sand3) transparent;
}

@media (min-width: 640px) {
  .modal { border-radius: 20px; }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sand2);
  color: var(--text2);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .15s;
}
.modal-close:hover { background: var(--sand3); }

/* ── DETAIL MODAL ── */
.modal-hero {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: var(--sand2);
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.modal-body { padding: 16px 20px 24px; }
.modal-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.modal-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--temple);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.modal-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.modal-status.open { background: #e8f5e9; color: #2e7d32; }
.modal-status.closed { background: #fce4ec; color: #c62828; }

.modal-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--text1);
  margin-bottom: 5px;
  line-height: 1.2;
}
.modal-area {
  font-size: 13px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}
.modal-area i { color: var(--temple); }

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mstat {
  background: var(--sand);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.mstat-val {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 2px;
}
.mstat-lbl { font-size: 10px; color: var(--text3); }

.modal-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 14px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.mtag {
  font-size: 11px;
  color: var(--jungle);
  background: #f0f7e8;
  border: 1px solid var(--rice-lt);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.crowd-row {
  background: var(--sand);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.crowd-info { flex: 1; min-width: 0; }
.crowd-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 2px;
  display: block;
}
.crowd-sub { font-size: 11px; color: var(--text3); display: block; }
.crowd-meter { display: flex; gap: 3px; }
.cbar { width: 14px; height: 8px; border-radius: 2px; background: var(--border); }
.cbar.fill { background: var(--jungle); }
.cbar.fill.busy { background: var(--temple); }

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.action-btn {
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity .15s, transform .1s;
}
.action-btn:hover { opacity: .88; transform: scale(.98); }
.btn-wa { background: #25D366; color: #fff; }
.btn-call { background: var(--forest); color: #fff; }
.btn-map { background: var(--sand2); color: var(--text1); border: 1px solid var(--border); }

.btn-primary {
  width: 100%;
  background: var(--forest);
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--forest-dk); transform: scale(.99); }

/* ══════════════════════════════════════════════════
   ITINERARY MODAL
══════════════════════════════════════════════════ */
.modal-itin { max-width: 540px; }

.itin-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.itin-header-icon {
  width: 48px; height: 48px;
  background: var(--forest);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.itin-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--text1); margin-bottom: 2px; }
.itin-subtitle { font-size: 12px; color: var(--text3); }

.itin-steps-nav {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.istep {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text4);
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
}
.istep span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.istep.active { color: var(--forest); }
.istep.active span { background: var(--forest); color: #fff; }
.istep.done span { background: var(--jungle); color: #fff; }
.istep-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; }

.itin-step { padding: 18px 20px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.form-group select, .form-group input[type=text] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text1);
  background: var(--white);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A70' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color .2s;
}
.form-group select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(45,80,22,.08); }

.range-slider {
  width: 100%;
  height: 4px;
  accent-color: var(--forest);
  margin: 10px 0 4px;
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text4);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.style-opt {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.style-opt:hover { border-color: var(--jungle); }
.style-opt.active { border-color: var(--forest); background: #f0f7e8; }
.style-icon { font-size: 22px; margin-bottom: 5px; }
.style-label { font-size: 11px; font-weight: 700; color: var(--text2); }
.style-opt.active .style-label { color: var(--forest); }

/* Itinerary result */
.itin-day-block { margin-bottom: 20px; }
.itin-day-hd {
  background: var(--forest);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.itin-day-hd h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.itin-day-hd p { font-size: 11px; opacity: .7; }

.itin-stops { position: relative; padding-left: 4px; }
.itin-stop {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  position: relative;
}
.itin-stop::before {
  content: '';
  position: absolute;
  left: 15px; top: 30px;
  width: 1px;
  height: calc(100% + 4px);
  background: var(--rice);
  z-index: 0;
}
.itin-stop:last-child::before { display: none; }

.stop-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--rice-lt);
  border: 2px solid var(--rice);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  z-index: 1;
}
.stop-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  flex: 1;
}
.stop-time { font-size: 10px; font-weight: 700; color: var(--temple); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.stop-name { font-size: 13px; font-weight: 700; color: var(--text1); margin-bottom: 3px; }
.stop-meta { display: flex; align-items: center; gap: 10px; }
.stop-dist { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 3px; }
.stop-price { font-size: 11px; font-weight: 700; color: var(--jungle); }

.itin-total-row {
  background: var(--sand2);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.itin-total-row span { font-size: 12px; color: var(--text2); font-weight: 700; }
.itin-total-row strong { font-size: 16px; font-weight: 700; color: var(--forest); }

.itin-export-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 20px 20px;
}
.btn-export {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}
.btn-export:hover { border-color: var(--forest); color: var(--forest); background: #f0f7e8; }

/* ══════════════════════════════════════════════════
   SAVED DRAWER
══════════════════════════════════════════════════ */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,15,.5);
  z-index: 1000;
  justify-content: flex-end;
}
.drawer-overlay.open { display: flex; animation: fadeIn .2s ease; }

.drawer {
  background: var(--white);
  width: min(360px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  animation: slideRight .25s cubic-bezier(.4,0,.2,1);
}
@keyframes slideRight { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-header h3 { font-size: 16px; font-weight: 700; color: var(--text1); }
.drawer-header button { color: var(--text2); font-size: 20px; display: flex; align-items: center; }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-footer { padding: 12px 20px 20px; border-top: 1px solid var(--border); }

.saved-empty { text-align: center; padding: 40px 0; color: var(--text3); font-size: 13px; }

.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.saved-item:last-child { border-bottom: none; }
.saved-item-icon { font-size: 24px; width: 40px; height: 40px; background: var(--sand); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.saved-item-name { font-size: 13px; font-weight: 700; color: var(--text1); margin-bottom: 2px; }
.saved-item-meta { font-size: 11px; color: var(--text3); }
.saved-item-remove { margin-left: auto; color: var(--text4); font-size: 16px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--soil);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ══════════════════════════════════════════════════
   DESKTOP LAYOUT ADJUSTMENTS
══════════════════════════════════════════════════ */
@media (min-width: 900px) {
  .banner { height: 88px; }
  .banner-slide { padding: 0 72px; }
  .banner-emoji { width: 52px; height: 52px; font-size: 32px; }
  .banner-headline { font-size: 16px; }
  .places-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; padding: 0 24px 20px; }
  .area-scroll, .cat-scroll { padding-left: 24px; padding-right: 24px; }
  .budget-section { padding: 0 24px 14px; }
  .results-header { padding: 4px 24px 12px; }
  .itin-strip { margin: 4px 24px 0; }
}

/* ══════════════════════════════════════════════════
   SOCIAL PROOF STRIP
══════════════════════════════════════════════════ */
.social-strip {
  padding: 0 16px 16px;
}
.social-strip-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  flex-wrap: wrap;
}
.sstat { text-align: center; }
.sstat-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
}
.sstat-lbl {
  display: block;
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}
.sstat-div {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .sstat-div { display: none; }
  .social-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    justify-items: center;
    padding: 16px;
  }
}

/* ══════════════════════════════════════════════════
   GRADIENT CARD IMAGE BACKGROUNDS
══════════════════════════════════════════════════ */
.card-img {
  position: relative;
}
.card-img.grad {
  background: var(--sand2);
}

/* ══════════════════════════════════════════════════
   INVESTOR POLISH — FEATURED CARD SHINE
══════════════════════════════════════════════════ */
.place-card.featured .card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,197,71,.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Verified badge */
.card-verified {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255,255,255,.92);
  color: var(--forest);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

/* ══════════════════════════════════════════════════
   DESKTOP 24px PADDING UPDATES
══════════════════════════════════════════════════ */
@media (min-width: 900px) {
  .social-strip { padding: 0 24px 20px; }
}

/* ══════════════════════════════════════════════════
   FAB — FLOATING PLAN MY DAY
══════════════════════════════════════════════════ */
.fab-planner {
  position: fixed;
  bottom: 28px;
  right: 16px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: #fff;
  border-radius: 28px;
  padding: 0 18px;
  height: 46px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(74,93,78,.35);
  transition: background .15s, transform .2s, box-shadow .2s, opacity .3s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.fab-planner.visible { opacity: 1; pointer-events: auto; }
.fab-planner:hover { background: var(--forest-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(74,93,78,.45); }
.fab-planner i { font-size: 18px; }
@media (min-width: 900px) { .fab-planner { display: none !important; } }

/* ── SPIN ANIMATION ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════
   SUB-MENU CHIPS
══════════════════════════════════════════════════ */
.submenu-section {
  padding: 0 0 8px;
  animation: fadeSlideDown .2s ease;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.submenu-scroll {
  display: flex;
  gap: 7px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ══════════════════════════════════════════════════
   OPEN NOW FILTER TOGGLE
══════════════════════════════════════════════════ */
.filter-section {
  padding: 6px 16px 2px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}
.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 7px;
}
.filter-label i { font-size: 16px; color: var(--forest); }

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--forest);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ══════════════════════════════════════════════════
   RECENTLY VIEWED BAR
══════════════════════════════════════════════════ */
.recent-bar {
  padding: 4px 16px 8px;
  animation: fadeSlideDown .2s ease;
}
.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.recent-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.recent-title i { font-size: 14px; }
.recent-clear {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color .15s;
  font-family: inherit;
}
.recent-clear:hover { color: var(--accent); }
.recent-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.recent-scroll::-webkit-scrollbar { display: none; }
.recent-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  white-space: nowrap;
}
.recent-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--sand);
}
.recent-chip-emoji { font-size: 16px; }
.recent-chip-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════════════
   DISTANCE BADGE ON CARDS
══════════════════════════════════════════════════ */
.dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--forest);
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ── RESPONSIVE ── */
@media (min-width: 900px) {
  .filter-section { padding-left: 24px; padding-right: 24px; }
  .recent-bar { padding-left: 24px; padding-right: 24px; }
}
.submenu-scroll::-webkit-scrollbar { display: none; }
.sub-chip {
  flex-shrink: 0;
  height: 30px;
  padding: 0 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sub-chip:hover { border-color: var(--forest); color: var(--forest); }
.sub-chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }
@media (min-width: 900px) {
  .submenu-scroll { padding-left: 24px; padding-right: 24px; }
}
