/* ============================================================
   4ya.in Theme Stylesheet
   File: themes/4ya/css/4ya.css
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #F5F2EE;
  --ink:          #1A1714;
  --ink2:         #4A4440;
  --ink3:         #9A9390;
  --surface:      #FFFFFF;
  --surface2:     #FAF8F5;
  --border:       #E5E0D8;
  --border2:      #D0C9C0;
  --accent:       #1B4FD8;
  --accent-light: #EEF3FD;
  --gold:         #C9870A;
  --gold-bg:      #FEF7E8;
  --teal:         #0E6B64;
  --teal-bg:      #E6F6F5;
  --green:        #15803D;
  --green-bg:     #DCFCE7;
  --red:          #DC2626;
  --red-bg:       #FEE2E2;
  --purple:       #6D28D9;
  --purple-bg:    #EDE9FE;

  --radius:    10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --sh:        0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md:     0 4px 16px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.04);
  --sh-lg:     0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);

  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.2; }
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: .4; pointer-events: none; }
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover  { background: #1440B0; }
.btn-outline  { background: transparent; color: var(--ink2); border: 1px solid var(--border2); }
.btn-outline:hover  { border-color: var(--ink2); color: var(--ink); }
.btn-green    { background: var(--green-bg); color: var(--green); border: 1px solid #86EFAC; }
.btn-green:hover    { background: #BBF7D0; }
.btn-red      { background: var(--red-bg); color: var(--red); border: 1px solid #FCA5A5; }
.btn-red:hover      { background: #FCA5A5; }
.btn-gold     { background: var(--gold-bg); color: var(--gold); border: 1px solid #FDE68A; }
.btn-gold:hover     { background: #FDE68A; }
.btn-sm  { padding: 5px 12px; font-size: 12px; }
.btn-lg  { padding: 12px 28px; font-size: 15px; font-weight: 600; }
.btn-wa  { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fac57; }
.btn-call { background: var(--accent-light); color: var(--accent); }
.btn-call:hover { background: var(--accent); color: #fff; }
.btn-book { background: var(--gold-bg); color: var(--gold); border: 1px solid #FDE68A; }
.btn-book:hover { background: #FDE68A; }

/* ── TOPNAV ───────────────────────────────────────────────── */
.topnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh);
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.nav-logo .dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; margin: 0; padding: 0; }
.nav-link {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.nav-link:hover  { background: var(--surface2); color: var(--ink); }
.nav-link.active { background: var(--accent-light); color: var(--accent); }

.nav-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.nav-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink3);
  pointer-events: none;
  flex-shrink: 0;
}
.nav-search input {
  width: 100%;
  padding: 7px 14px 7px 34px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface2);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: all .2s;
}
.nav-search input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(27,79,216,.1);
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* HTMLy toolbar offset */
.htmly-bar ~ .topnav { top: 32px; }

/* ── ADMIN TOOLBAR COMPAT ─────────────────────────────────── */
#htmly-toolbar { font-size: 12px !important; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 40px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-family: var(--font-display); font-size: 18px; color: #fff; }
.footer-logo .dot { color: #F59E0B; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,.35); transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); }

/* ── PILLS / BADGES ───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.pill-green  { background: var(--green-bg);   color: var(--green);  border: 1px solid #86EFAC; }
.pill-red    { background: var(--red-bg);     color: var(--red);    border: 1px solid #FCA5A5; }
.pill-amber  { background: var(--gold-bg);    color: var(--gold);   border: 1px solid #FDE68A; }
.pill-blue   { background: var(--accent-light); color: var(--accent); border: 1px solid #BFDBFE; }
.pill-teal   { background: var(--teal-bg);    color: var(--teal);   border: 1px solid #99F6E4; }
.pill-purple { background: var(--purple-bg);  color: var(--purple); border: 1px solid #C4B5FD; }

/* Tier badges */
.tier-badge-free    { background: #F1EFE8; color: var(--ink2); }
.tier-badge-silver  { background: #F1F5F9; color: #334155; }
.tier-badge-gold    { background: var(--gold-bg); color: var(--gold); }
.tier-badge-platinum { background: var(--purple-bg); color: var(--purple); }
.tier-badge-diamond { background: #E0F7FA; color: #006064; }

/* ── HERO PARALLAX ────────────────────────────────────────── */
.listing-hero {
  height: 320px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a6b, #0d2140);
}
.hero-cover-wrap { position: absolute; inset: 0; }
.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a3a6b, #0d2140);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.65) 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 32px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.listing-logo {
  width: 88px; height: 88px;
  border-radius: 14px;
  border: 3px solid rgba(255,255,255,.9);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  margin-bottom: 4px;
}
.listing-logo img { width: 100%; height: 100%; object-fit: cover; }
.listing-logo-placeholder {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
}
.hero-info { flex: 1; min-width: 0; }
.hero-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}
.badge-tier     { background: rgba(201,135,10,.9);  color: #fff; }
.badge-verified { background: rgba(14,107,100,.9);  color: #fff; }
.badge-new      { background: rgba(27,79,216,.9);   color: #fff; }
.listing-name {
  font-family: var(--font-display);
  font-size: 30px;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.listing-tagline { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.stars { color: #F59E0B; font-size: 14px; letter-spacing: -1px; }
.rating-val { font-size: 13px; font-weight: 600; color: #fff; }
.rating-count { font-size: 12px; color: rgba(255,255,255,.55); }
.hero-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  margin-bottom: 4px;
}

/* ── GALLERY STRIP ────────────────────────────────────────── */
.gallery-strip {
  background: var(--ink);
  padding: 8px 32px;
}
.gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-inner::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 80px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: all .2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: rgba(255,255,255,.4); transform: scale(1.04); }
.gallery-more {
  width: 80px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  cursor: pointer;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 32px;
  font-size: 12px;
  color: var(--ink3);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── LISTING MAIN LAYOUT ──────────────────────────────────── */
.listing-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px 72px;
}
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* ── STATUS BANNERS ───────────────────────────────────────── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  font-size: 13px;
  font-weight: 500;
}
.status-closed { background: var(--red-bg); color: var(--red); }
.status-soon   { background: var(--gold-bg); color: var(--gold); }

/* ── TABS ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 0;
  margin-right: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink3);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: all .15s;
  white-space: nowrap;
}
.tab:hover { color: var(--ink2); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-count { font-size: 11px; color: var(--ink3); margin-left: 4px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── ABOUT TAB ────────────────────────────────────────────── */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.area-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--teal-bg);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
}
.about-text {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-text p    { margin-bottom: 14px; }
.about-text h2   { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin: 22px 0 10px; }
.about-text h3   { font-size: 17px; font-weight: 700; color: var(--ink); margin: 18px 0 8px; }
.about-text ul, .about-text ol { padding-left: 20px; margin-bottom: 14px; }
.about-text li   { margin-bottom: 5px; }
.about-text strong { color: var(--ink); }
.about-text a    { color: var(--accent); text-decoration: underline; }

.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-chip {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--ink3);
  transition: all .15s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ── ITEMS GRID (services / products) ─────────────────────── */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all .2s;
  box-shadow: var(--sh);
}
.item-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(27,79,216,.08); }
.item-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 8px;
  letter-spacing: .05em;
}
.badge-svc { background: var(--teal-bg); color: var(--teal); }
.badge-prd { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }
.item-name  { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.item-desc  { font-size: 12px; color: var(--ink3); line-height: 1.5; margin-bottom: 8px; }
.item-price { font-size: 14px; font-weight: 700; color: var(--ink); }
.item-meta  { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--ink3); }

/* ── POSTS (inside listing) ───────────────────────────────── */
.posts-list { display: flex; flex-direction: column; gap: 12px; }
.post-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--sh);
}
.post-item:hover { border-color: var(--accent); box-shadow: var(--sh-md); }
.post-item-title  { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.post-item-excerpt { font-size: 12px; color: var(--ink3); line-height: 1.55; }
.post-item-date   { font-size: 11px; color: var(--ink3); margin-top: 8px; }
.posts-link-notice { padding: 20px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.posts-link-notice p { font-size: 13px; color: var(--ink3); margin-bottom: 14px; }

/* ── REVIEWS TAB ──────────────────────────────────────────── */
.reviews-empty { font-size: 13px; color: var(--ink3); padding: 20px; text-align: center; }
.post-comments { margin-top: 24px; }

/* ── SIDEBAR WIDGETS ──────────────────────────────────────── */
.listing-sidebar { display: flex; flex-direction: column; gap: 14px; }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh);
}
.widget-head {
  padding: 11px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
}
.widget-body { padding: 16px; }

/* Contact CTAs in sidebar */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-bottom: 8px;
  transition: all .15s;
  font-family: var(--font-body);
}
.cta-btn:last-child { margin-bottom: 0; }
.cta-call { background: var(--accent); color: #fff; }
.cta-call:hover { background: #1440B0; }
.cta-wa   { background: #25D366; color: #fff; }
.cta-wa:hover { background: #1fac57; }
.cta-book { background: var(--gold-bg); color: var(--gold); border: 1.5px solid #FDE68A; }
.cta-book:hover { background: #FDE68A; }
.contact-item {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  align-items: baseline;
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.ci-label { color: var(--ink3); width: 60px; flex-shrink: 0; }
.ci-value { color: var(--ink2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-value a { color: var(--accent); }

/* Branch selector */
.branch-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.branch-tabs::-webkit-scrollbar { display: none; }
.btab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink3);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .15s;
}
.btab:hover { color: var(--ink2); }
.btab.active { color: var(--ink); border-bottom-color: var(--accent); }
.branch-pane { padding: 14px 16px; display: none; }
.branch-pane.active { display: block; }
.branch-row {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--ink2);
  margin-bottom: 6px;
  line-height: 1.45;
}
.branch-row a { color: var(--accent); }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 5px 0; font-size: 12px; }
.day-col    { color: var(--ink3); width: 40px; font-weight: 500; }
.hours-col  { text-align: right; color: var(--ink2); }
.hours-open { color: var(--green); }
.hours-closed { color: var(--red); }

/* Map */
.map-static-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  background: var(--surface2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 10px;
  transition: opacity .2s;
}
.map-placeholder:hover { opacity: .8; }
.map-link { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); font-weight: 500; }
.map-link:hover { text-decoration: underline; }

/* Aggregate rating */
.agg-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ar-number { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.ar-stars  { font-size: 20px; color: #F59E0B; letter-spacing: -1px; }
.ar-count  { font-size: 12px; color: var(--ink3); }
.ar-source { font-size: 11px; color: var(--ink3); }
.ar-link   { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); font-weight: 500; }
.ar-link:hover { text-decoration: underline; }

/* Referrer */
.referrer-widget .widget-body {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: var(--accent-light);
}
.referrer-label { color: var(--ink3); }
.referrer-link  { color: var(--accent); font-weight: 600; }
.referrer-link:hover { text-decoration: underline; }

/* Claim CTA */
.claim-widget .widget-body {
  text-align: center;
  background: var(--surface2);
}
.claim-widget p { font-size: 12px; color: var(--ink3); margin-bottom: 12px; }

/* Related listings */
.related-section { max-width: 1200px; margin: 40px auto 0; padding: 0 40px 60px; }
.related-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
  text-align: center;
}

/* ── BLOG POST ────────────────────────────────────────────── */
.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 72px;
}
.post-biz-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--accent-light);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  font-size: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pbb-label   { color: var(--ink3); }
.pbb-link    { color: var(--accent); font-weight: 600; }
.pbb-link:hover { text-decoration: underline; }
.pbb-sep     { color: var(--ink3); }
.pbb-archive { color: var(--accent); font-size: 11px; }
.pbb-archive:hover { text-decoration: underline; }

.post-header { margin-bottom: 28px; }
.post-category { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-category a { color: inherit; }
.post-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.3px;
  margin-bottom: 14px;
}
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink3); }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.author-name { color: var(--ink2); font-weight: 500; }
.author-name:hover { color: var(--accent); }
.post-sep { color: var(--border2); }
.post-date { color: var(--ink3); }

.post-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--sh-md);
}
.post-image img { width: 100%; }

.post-body {
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.8;
  margin-bottom: 32px;
}
.post-body p  { margin-bottom: 18px; }
.post-body h2 { font-family: var(--font-display); font-size: 26px; color: var(--ink); margin: 32px 0 12px; }
.post-body h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 24px 0 10px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 18px; }
.post-body li { margin-bottom: 7px; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 24px 0;
  color: var(--ink2);
  font-style: italic;
}
.post-body img { border-radius: var(--radius); margin: 20px 0; }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body code { font-family: var(--font-mono); font-size: 13px; background: var(--surface2); padding: 2px 6px; border-radius: 4px; }
.post-body pre { background: var(--ink); color: #e5e7eb; padding: 20px; border-radius: var(--radius); overflow-x: auto; margin: 20px 0; }
.post-body pre code { background: none; padding: 0; color: inherit; font-size: 14px; }
.post-body strong { color: var(--ink); }

.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.post-tags a {
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--ink3);
  transition: all .15s;
}
.post-tags a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.post-nav-prev, .post-nav-next { font-size: 13px; color: var(--accent); font-weight: 500; }
.post-nav-prev:hover, .post-nav-next:hover { text-decoration: underline; }

.author-bio {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.author-bio-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.author-bio-desc { font-size: 13px; color: var(--ink3); line-height: 1.6; }

/* ── DIRECTORY INDEX PAGE ─────────────────────────────────── */
.dir-hero {
  background: var(--ink);
  padding: 52px 40px 60px;
  position: relative;
  overflow: hidden;
}
.dir-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(27,79,216,.2), transparent 60%);
}
.dir-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.dir-title {
  font-family: var(--font-display);
  font-size: 40px;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.dir-sub { font-size: 16px; color: rgba(255,255,255,.55); margin-bottom: 28px; }
.dir-search-form { max-width: 640px; margin: 0 auto; }
.dir-search-row {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 8px;
}
.dir-search-row input {
  flex: 1;
  padding: 8px 14px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.dir-search-row select {
  padding: 8px 28px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink2);
  background: var(--surface2);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A39E98' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.btn-search {
  padding: 9px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.btn-search:hover { background: #1440B0; }

.dir-filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  position: sticky;
  top: 56px;
  z-index: 90;
}
.dir-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}
.dir-filter-inner::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink3);
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
}
.filter-chip:hover  { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.dir-main { max-width: 1200px; margin: 0 auto; padding: 28px 40px 72px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dir-empty { padding: 60px; text-align: center; color: var(--ink3); font-size: 14px; }

/* Listing card (used on directory index + recently added) */
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--sh);
}
.listing-card:hover { border-color: var(--border2); box-shadow: var(--sh-md); transform: translateY(-2px); }
.lc-link { display: block; }
.lc-cover {
  height: 120px;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}
.lc-cover img { width: 100%; height: 100%; object-fit: cover; }
.lc-cover-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface2), var(--border)); }
.lc-tier-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.lc-logo {
  position: absolute;
  bottom: -18px; left: 14px;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--surface);
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  overflow: hidden;
}
.lc-logo img { width: 100%; height: 100%; object-fit: cover; }
.lc-body { padding: 26px 14px 14px; }
.lc-name     { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.lc-type     { font-size: 12px; color: var(--ink3); }
.lc-city     { font-size: 12px; color: var(--ink3); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.lc-rating   { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.lc-rating .stars { font-size: 12px; color: #F59E0B; }
.lc-rating .rating-val { font-size: 12px; font-weight: 600; color: var(--ink); }
.lc-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-bg);
  padding: 1px 7px;
  border-radius: 8px;
  margin-top: 6px;
}
.lc-new-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 1px 7px;
  border-radius: 8px;
  margin-top: 6px;
  margin-left: 4px;
}

/* ── SUBMIT FORM ──────────────────────────────────────────── */
.submit-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.submit-header { margin-bottom: 32px; }
.submit-title {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.submit-sub { font-size: 15px; color: var(--ink3); line-height: 1.6; }

.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--sh);
}
.form-sec-head {
  padding: 12px 20px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink2);
}
.form-sec-body { padding: 20px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; gap: 14px; margin-bottom: 16px; }
.field-row.c2 { grid-template-columns: 1fr 1fr; }
.field-row:last-child { margin-bottom: 0; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-req   { color: var(--red); }
.field-hint  { font-size: 11px; color: var(--ink3); margin-top: 2px; }

input[type=text], input[type=email], input[type=url], input[type=tel],
input[type=number], select, textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 9px 13px;
  width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,79,216,.1);
}
input.valid   { border-color: #86EFAC; }
input.invalid { border-color: #FCA5A5; }
textarea { resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A39E98' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.char-count {
  font-size: 11px;
  color: var(--ink3);
  text-align: right;
  font-family: var(--font-mono);
}
.char-count.warn { color: var(--gold); }
.char-count.over { color: var(--red); }

.submit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.submit-legal { font-size: 11px; color: var(--ink3); line-height: 1.6; flex: 1; }
.submit-legal a { color: var(--accent); }

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── NOTICE / ALERT ───────────────────────────────────────── */
.notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  line-height: 1.55;
}
.notice-icon { flex-shrink: 0; margin-top: 1px; }
.notice-info    { background: var(--accent-light); color: #1e3a8a; border: 1px solid #BFDBFE; }
.notice-success { background: var(--green-bg);    color: #14532D;  border: 1px solid #86EFAC; }
.notice-warn    { background: var(--gold-bg);      color: #78350F;  border: 1px solid #FDE68A; }
.notice-error   { background: var(--red-bg);       color: #7F1D1D;  border: 1px solid #FCA5A5; }

/* ── PARALLAX SCROLL ──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-cover { transition: transform .1s linear; }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .listing-layout { grid-template-columns: 1fr 280px; }
}

/* ── MOBILE NAV HAMBURGER ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink2);
  border-radius: 2px;
  transition: all .2s;
}
.nav-mobile-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-mobile-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 52px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-md);
  z-index: 99;
  padding: 12px 0;
}
.nav-mobile-drawer a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.nav-mobile-drawer a:last-child { border-bottom: none; }
.nav-mobile-drawer a:hover { background: var(--surface2); color: var(--ink); }

@media (max-width: 800px) {
  .topnav { padding: 0 16px; height: 52px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-search { max-width: 180px; }
  .nav-right .btn-outline { display: none; }
  .nav-mobile-open .nav-mobile-drawer { display: block; }

  .listing-hero { height: 260px; }
  .hero-content { padding: 14px 18px; }
  .listing-name { font-size: 22px; }
  .hero-actions { display: none; }

  .gallery-strip { padding: 6px 18px; }

  .breadcrumb { padding: 7px 18px; }

  .listing-wrap { padding: 18px 18px 56px; }
  .listing-layout { grid-template-columns: 1fr; }

  .items-grid { grid-template-columns: 1fr 1fr; }

  .post-article { padding: 24px 18px 56px; }
  .post-title { font-size: 26px; }
  .post-body { font-size: 15px; }

  .dir-hero { padding: 36px 18px 44px; }
  .dir-title { font-size: 28px; }
  .dir-filter-bar { padding: 0 18px; }
  .dir-main { padding: 20px 18px 56px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dir-search-row { flex-wrap: wrap; }
  .dir-search-row select { width: 100%; }

  .submit-page { padding: 24px 18px 60px; }
  .submit-title { font-size: 26px; }
  .field-row.c2 { grid-template-columns: 1fr; }

  .site-footer { padding: 28px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .items-grid { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }
}

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
  .topnav, .site-footer, .listing-sidebar, .tabs, .hero-actions { display: none !important; }
  .listing-layout { grid-template-columns: 1fr; }
  .listing-wrap { padding: 0; }
  .tab-pane { display: block !important; }
}

/* ═══════════════════════════════════════════════════════════════
   STATIC PAGES — shared styles for /about /pricing /contact etc.
   ═══════════════════════════════════════════════════════════════ */

.static-page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}
.static-page-inner { max-width: 720px; }
.static-page-nav { display:flex; justify-content:space-between; margin-top:32px; padding-top:20px; border-top:1px solid var(--border); font-size:13px; }
.static-page-nav a { color:var(--accent); font-weight:500; }
.static-page-nav a:hover { text-decoration:underline; }

.sp-title {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  color: var(--ink);
  margin: 14px 0 10px;
  letter-spacing: -.4px;
  line-height: 1.15;
}

.sp-lead {
  font-size: 18px;
  color: var(--ink2);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 640px;
}

.sp-effective {
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 24px;
}

.sp-body {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.75;
}

.sp-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--ink);
  margin: 32px 0 10px;
  letter-spacing: -.2px;
}

.sp-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 8px;
}

.sp-body p { margin-bottom: 16px; }

.sp-body ul, .sp-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.sp-body li { margin-bottom: 7px; }

.sp-body a { color: var(--accent); }
.sp-body a:hover { text-decoration: underline; }

.sp-body strong { color: var(--ink); font-weight: 600; }

/* Legal pages */
.sp-legal h2 { font-size: 18px; }
.sp-legal p, .sp-legal li { font-size: 14px; }

/* Input fields in static pages (contact form) */
.static-page-wrap input[type=text],
.static-page-wrap input[type=email],
.static-page-wrap select,
.static-page-wrap textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.static-page-wrap input:focus,
.static-page-wrap select:focus,
.static-page-wrap textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,79,216,.1);
}

@media (max-width: 640px) {
  .static-page-wrap { padding: 24px 16px 56px; }
  .sp-title         { font-size: 28px; }
  .sp-lead          { font-size: 16px; }
}
