/* =====================================================
   NEWPLACESHOT.COM - BRIGHT THEME LAYER
   Light-first palette + shared components used by all
   public pages. Load AFTER shared.css.
   Dark mode stays available via the header toggle:
   every override is scoped to html[data-theme="light"].
   ===================================================== */

/* -------- BRIGHT PALETTE (default): warm porcelain + rose + gold -------- */
html[data-theme="light"] {
  --primary:        #E8185A;
  --primary-dark:   #C2114B;
  --primary-light:  #D91450;
  --primary-soft:   rgba(232,24,90,0.08);
  --primary-mid:    rgba(232,24,90,0.22);

  --gold:           #F5B301;
  --gold-bright:    #E09600;
  --gold-soft:      rgba(245,179,1,0.15);
  --gold-mid:       rgba(245,179,1,0.32);

  --bg:             #FDF8F6;
  --bg-card:        #FFFFFF;
  --bg-card-2:      #F8F1F3;
  --bg-input:       rgba(43,27,46,0.045);
  --bg-dark:        #FFFFFF;
  --bg-dark-2:      #F8F1F3;
  --bg-dark-3:      rgba(43,27,46,0.07);

  --text:           #2B1B2E;
  --text-secondary: #5D4A5F;
  --text-muted:     #8D7A8F;
  --text-light:     #AC9BAE;
  --text-on-dark:   #2B1B2E;

  --border:         rgba(43,27,46,0.10);
  --border-strong:  rgba(43,27,46,0.18);

  --shadow-xs:    0 1px 3px rgba(43,27,46,0.08);
  --shadow-sm:    0 2px 10px rgba(43,27,46,0.08);
  --shadow-md:    0 6px 24px rgba(43,27,46,0.10);
  --shadow-lg:    0 12px 48px rgba(43,27,46,0.16);
  --shadow-card:  0 4px 20px rgba(232,24,90,0.08);
  --shadow-hover: 0 14px 44px rgba(232,24,90,0.16);
}

/* -------- Light harmonisation for shared components -------- */
html[data-theme="light"] .site-header { box-shadow: 0 2px 18px rgba(232,24,90,0.10); }
html[data-theme="light"] .loc-browser-top { background: var(--bg-card-2); }
html[data-theme="light"] .site-footer { background: #FFFFFF; color: var(--text-secondary); }
html[data-theme="light"] .footer-counties-section h4 { color: var(--primary); }
html[data-theme="light"] .county-link { border-bottom-color: rgba(43,27,46,0.08); }
html[data-theme="light"] .awareness-card { background: #FFF6F8; border-color: rgba(43,27,46,0.08); }
html[data-theme="light"] .awareness-card h5 { color: var(--text); }
html[data-theme="light"] .footer-bottom { color: var(--text-muted); }
html[data-theme="light"] .hotline { color: #9A6B00; }

/* City-page hero: calm, bright, editorial (replaces the dark block) */
html[data-theme="light"] .city-hero {
  background: linear-gradient(165deg, #FFF1F5 0%, #FDF8F6 48%, #FFF8EC 100%);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .area-pill {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
/* Area pills are clickable filters: hover, focus and active states */
.area-pill { cursor: pointer; transition: var(--t); }
button.area-pill { font-family: inherit; }
.area-pill:hover { border-color: var(--primary); color: var(--primary-light); transform: translateY(-1px); }
.area-pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.area-pill.active,
.area-pill.active:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
/* Small control fixes */
html[data-theme="light"] .filter-reset { background: var(--bg-card-2); color: var(--text-secondary); }
html[data-theme="dark"] .filter-group input:focus { background: var(--bg-input); }

/* -------- Reusable section header -------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-eyebrow { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary-light); margin-bottom: 5px; }
.section-head h2 { font-size: 1.28rem; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 9px; }
.section-head h2 i { color: var(--primary); font-size: 1.02rem; }
.section-sub { font-size: 0.83rem; color: var(--text-muted); margin-top: 4px; }
.section-link { flex: 0 0 auto; font-size: 0.76rem; font-weight: 700; color: var(--primary-light); white-space: nowrap; padding: 8px 16px; border: 1px solid var(--primary-mid); border-radius: var(--r-full); transition: var(--t); }
.section-link:hover { background: var(--primary-soft); }

/* -------- Featured Spa & Massage -------- */
.spa-section { margin: 28px 0 6px; }
.spa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.spa-ad-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: var(--t); }
.spa-ad-card:hover { border-color: var(--primary-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.spa-ad-img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-card-2); overflow: hidden; }
.spa-ad-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.spa-ad-card:hover .spa-ad-img img { transform: scale(1.04); }
.spa-ad-flag { position: absolute; top: 10px; left: 10px; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-sm); background: rgba(20,12,18,0.55); color: #fff; backdrop-filter: blur(4px); }
.spa-ad-flag.is-featured { background: #FFC72E; color: #2B1B03; }
.spa-ad-price { position: absolute; bottom: 10px; right: 10px; background: #FFC72E; color: #2B1B03; font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: var(--r-full); }
.spa-ad-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.spa-ad-title { font-size: 0.9rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spa-ad-title .verified { color: #16A34A; font-size: 0.76rem; margin-left: 3px; }
.spa-ad-loc { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-top: 6px; }
.spa-ad-loc i { color: var(--primary-light); font-size: 0.68rem; }
.spa-ad-loc.is-link { color: var(--primary-light); border-bottom: 1px dashed var(--primary-mid); cursor: pointer; text-decoration: none; }
.spa-ad-loc.is-link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.spa-ad-desc { font-size: 0.76rem; color: var(--text-muted); line-height: 1.45; margin: 8px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spa-ad-actions { display: flex; gap: 8px; margin-top: auto; }
.spa-ad-actions .spa-btn { padding: 9px 0; font-size: 0.76rem; border-radius: var(--r); }

/* Mobile: 2 spa cards side-by-side + stacked section head (matches landing page) */
@media (max-width: 480px) {
  .spa-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .spa-ad-body { padding: 11px 11px 12px; }
  .spa-ad-title { font-size: 0.82rem; }
}

/* -------- Collapsible town lists (SEO content stays in DOM) -------- */
.towns-grid.collapsible,
.popular-towns-grid.collapsible { max-height: 118px; overflow: hidden; position: relative; }
.towns-grid.collapsible::after,
.popular-towns-grid.collapsible::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(transparent, var(--bg-card)); pointer-events: none; }
.towns-grid.expanded,
.popular-towns-grid.expanded { max-height: none; }
.towns-grid.expanded::after,
.popular-towns-grid.expanded::after { display: none; }
.towns-toggle { margin-top: 12px; background: none; border: none; color: var(--primary-light); font-size: 0.78rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px; }
.towns-toggle i { font-size: 0.66rem; transition: transform 0.2s ease; }
.towns-toggle.open i { transform: rotate(180deg); }

/* -------- Empty town/city: guide visitors to active pages -------- */
.grid-end-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; padding: 26px 16px; font-size: 0.84rem; color: var(--text-muted); text-align: center; }
.empty-town-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.empty-town-link { display: inline-block; padding: 6px 14px; border: 1px solid var(--primary-mid); border-radius: var(--r-full); font-size: 0.76rem; font-weight: 700; color: var(--primary-light); background: var(--bg-card); transition: var(--t); }
.empty-town-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* -------- Mobile bottom quick-nav -------- */
.mobile-bottom-nav { display: none; background: rgba(255,255,255,0.94); }
html[data-theme="dark"] .mobile-bottom-nav { background: rgba(13,9,23,0.97); }
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 290;
    border-top: 1px solid var(--border-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  body { padding-bottom: 64px; }
  .mbn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; color: var(--text-muted); font-size: 0.62rem; font-weight: 600; padding: 5px 0 3px; text-decoration: none; cursor: pointer; }
  .mbn-item i { font-size: 1.05rem; }
  .mbn-item.active, .mbn-item:hover { color: var(--primary-light); }
}
