/* StashNGo — Quick, fun, simple */

/* Self-hosted Inter — Latin + Vietnamese subsets */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular-Vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-Bold-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-Bold-Vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-Bold-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #E8590C;
  --orange-dark: #C74808;
  --teal: #0D9488;
  --bg: #FAFAF7;
  --ink: #1A1A1A;
  --muted: #777;
  --border: #eee;
  --card-bg: #fff;
  --radius: 10px;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 80px 24px 48px;
  background: var(--bg);
}
.hero-inner {
  max-width: 600px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--orange);
}
.hero-n {
  color: var(--ink);
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.1s, box-shadow 0.15s;
  font-family: var(--font);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(232, 89, 12, 0.3);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--muted);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 0 24px 48px;
  max-width: 800px;
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  padding: 16px 8px;
}
.step-num {
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.step p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── Browse Section ─── */
.browse-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* City pills */
.city-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pill {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: white;
  color: var(--muted);
  transition: all 0.15s;
  font-family: var(--font);
}
.pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.pill.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* Browse layout: map + cards side by side */
.browse-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Map */
.map-wrapper {
  position: relative;
}
.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e5e0;
}
.map-toggle-btn {
  display: none;
}

/* ─── Cards ─── */
.listings-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 4px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  outline: none;
}
.card:hover, .card:focus-visible {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--orange);
}
.card-header {
  margin-bottom: 4px;
}
.card-name {
  font-size: 0.95rem;
  font-weight: 700;
  display: inline;
}
.card-loc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1px;
}
.card-details {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}
.card-hours {
  font-size: 0.72rem;
  color: var(--muted);
}
.card-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
}

/* Badge */
.badge {
  display: inline-block;
  background: #e6f7f5;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 6px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}
.empty-state a {
  color: var(--orange);
  text-decoration: underline;
}

/* ─── Detail View ─── */
.detail-view {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}
.detail-view-visible {
  max-height: 800px;
  opacity: 1;
}
.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 12px;
  position: relative;
}
.detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.detail-close:hover { color: var(--ink); }
.detail-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
}
.detail-photos img {
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.detail-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
}
.detail-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
.detail-description {
  font-size: 0.9rem;
  color: #444;
  margin-top: 10px;
  line-height: 1.6;
}
.detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tag {
  background: #f5f3ef;
  color: #666;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.detail-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: 10px;
}
.detail-address {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.contact-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.contact-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: opacity 0.15s;
}
.contact-btn:hover { opacity: 0.9; }
.whatsapp { background: #25D366; }
.zalo { background: #0068FF; }

/* ─── Trust Bar ─── */
.trust-bar {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 32px 24px;
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.trust-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink);
}

/* ─── Footer ─── */
.site-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}
.footer-inner a:hover { color: var(--orange); }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 36px; }

  .steps { grid-template-columns: 1fr; gap: 16px; }

  .browse-layout {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 200px;
  }
  .map-container.map-expanded {
    height: 400px;
  }
  .map-toggle-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font);
  }
  .map-toggle-btn:hover { color: var(--orange); }

  .card-list {
    max-height: none;
  }

  .contact-row {
    flex-direction: column;
  }
  .contact-btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ─── Leaflet pin overrides ─── */
.stashngo-pin {
  background: none !important;
  border: none !important;
}
