/* ═══════════════════════════════════════════════════════════
   NearStanford.com — Shared Guide Styles
   ═══════════════════════════════════════════════════════════
   All guide pages link to this one CSS file.
   Page-specific icon classes can be added in a <style> block
   on individual pages if needed.
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root{
  --lightbg:#ffffff; --lightink:#0f172a; --lightcard:#ffffff; --lightmuted:#475569;
  --bubble:#f8fafc; --stroke:#e2e8f0; --blue:#0b5cff;
  --shadow:0 2px 8px rgba(2,6,23,.06);
  --accent:#0b5cff;
}

/* ── Reset ── */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--lightbg);color:var(--lightink);font:16px/1.65 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial;-webkit-font-smoothing:antialiased}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}


/* ═══ HEADER (matches main site) ═══ */
.site-header{background:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid #e5e7eb;backdrop-filter:blur(6px);background:rgba(255,255,255,.95)}
.site-header .wrap{max-width:1200px;margin:0 auto;padding:14px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.brand:hover{text-decoration:none}
.brand .badge{width:34px;height:34px;border-radius:10px;background:#e5edf6;color:#0a1220;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.name-stack{display:flex;flex-direction:column;line-height:1.1}
.name-stack .name{font-weight:800;font-size:22px}
.name-stack .tagline{color:#475569;font-size:.85rem}
.top-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.top-nav a{color:#334155;text-decoration:none;font-size:.95rem}
.top-nav a:hover{text-decoration:underline}
.top-nav .btn{padding:10px 16px;border-radius:14px;font-weight:700;display:inline-block;text-decoration:none}
.top-nav .primary{background:#1366ff;color:#fff}
.top-nav .primary:hover{text-decoration:none;filter:brightness(.94)}


/* ═══ GUIDE LAYOUT ═══ */
.guide-container{max-width:820px;margin:0 auto;padding:32px 28px 60px}

/* Hero */
.guide-hero{margin-bottom:36px}
.guide-hero h1{font-size:2.2rem;font-weight:800;line-height:1.18;letter-spacing:-.3px;margin-bottom:12px;color:#0f172a}
.guide-hero .subtitle{font-size:1.1rem;color:var(--lightmuted);line-height:1.6;max-width:660px}
.guide-hero .breadcrumb{font-size:.88rem;color:#94a3b8;margin-bottom:14px}
.guide-hero .breadcrumb a{color:#94a3b8}
.guide-hero .breadcrumb a:hover{color:var(--blue)}

/* Table of contents */
.toc{background:var(--bubble);border:1px solid var(--stroke);border-radius:16px;padding:20px 24px;margin-bottom:36px;box-shadow:var(--shadow)}
.toc h2{font-size:1rem;font-weight:700;margin-bottom:10px;color:#334155;text-transform:uppercase;letter-spacing:.5px}
.toc ol{padding-left:20px;margin:0}
.toc li{margin:6px 0;line-height:1.5}
.toc a{color:#334155;font-weight:500}
.toc a:hover{color:var(--blue)}


/* ═══ SECTIONS ═══ */
.guide-section{margin-bottom:40px;scroll-margin-top:80px}
.guide-section h2{font-size:1.55rem;font-weight:800;line-height:1.2;margin-bottom:14px;color:#0f172a;padding-top:20px;border-top:1px solid #e5e7eb}
.guide-section h2:first-child{border-top:0;padding-top:0}
.guide-section h3{font-size:1.15rem;font-weight:700;margin:24px 0 8px;color:#1e293b}
.guide-section p{margin-bottom:14px;line-height:1.7;color:#334155}
.guide-section strong{color:#0f172a}

/* Section header with icon + back-to-top */
.section-header{display:flex;align-items:center;gap:12px;padding-top:20px;border-top:1px solid #e5e7eb;margin-bottom:14px;justify-content:space-between}
.section-header h2{border-top:none;padding-top:0;margin-bottom:0;flex:1;min-width:0}
.section-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:22px}
.back-toc{margin-left:12px;font-size:.82rem;color:#64748b;text-decoration:none;white-space:nowrap;flex:0 0 auto}
.back-toc:hover{color:var(--blue);text-decoration:underline}


/* ═══ SECTION ICON COLORS ═══ */
/* Common — add more as needed in page-specific <style> blocks */
.icon-grocery{background:#dcfce7;color:#166534}
.icon-pharmacy{background:#fce7f3;color:#9d174d}
.icon-medical{background:#fee2e2;color:#991b1b}
.icon-bank{background:#dbeafe;color:#1e40af}
.icon-gas{background:#fef3c7;color:#92400e}
.icon-cleaners{background:#ede9fe;color:#5b21b6}
.icon-mail{background:#ffedd5;color:#9a3412}
.icon-hardware{background:#f1f5f9;color:#334155}
.icon-gym{background:#ccfbf1;color:#115e59}
.icon-swim{background:#dbeafe;color:#1e40af}
.icon-carwash{background:#e0f2fe;color:#075985}
.icon-ev{background:#d1fae5;color:#065f46}
.icon-bike{background:#fef9c3;color:#854d0e}
.icon-cobbler{background:#fce7f3;color:#831843}
.icon-tailor{background:#f3e8ff;color:#6b21a8}
.icon-print{background:#e2e8f0;color:#1e293b}
.icon-vet{background:#fed7aa;color:#9a3412}
.icon-park{background:#bbf7d0;color:#14532d}
.icon-library{background:#dbeafe;color:#1e3a8a}
.icon-key{background:#fde68a;color:#78350f}
.icon-shopping{background:#e0e7ff;color:#3730a3}
.icon-convenience{background:#fef3c7;color:#78350f}
.icon-info{background:#f0f9ff;color:#0369a1}
/* Museums & Art icons */
.icon-museum{background:#ede9fe;color:#5b21b6}
.icon-gallery{background:#fce7f3;color:#9d174d}
.icon-sculpture{background:#d1fae5;color:#065f46}
.icon-history{background:#fef3c7;color:#92400e}
.icon-science{background:#dbeafe;color:#1e40af}
.icon-campus{background:#fee2e2;color:#991b1b}
.icon-public{background:#ccfbf1;color:#115e59}
.icon-tech{background:#e0f2fe;color:#075985}
.icon-sf{background:#ffedd5;color:#9a3412}
.icon-sj{background:#f1f5f9;color:#334155}
.icon-tips{background:#f0f9ff;color:#0369a1}
.icon-nature{background:#bbf7d0;color:#14532d}
.icon-north{background:#e0e7ff;color:#3730a3}


/* ═══ TIP / CALLOUT BOXES ═══ */
.tip{background:#f0f7ff;border:1px solid #d0e3ff;border-radius:12px;padding:14px 16px;margin:16px 0;font-size:.95rem;line-height:1.6;color:#1e40af}
.tip strong{color:#1e3a8a}
.tip.green{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.tip.green strong{color:#14532d}
.tip.amber{background:#fffbeb;border-color:#fde68a;color:#92400e}
.tip.amber strong{color:#78350f}


/* ═══ LISTING CARDS ═══ */
.listing{background:#fff;border:1px solid var(--stroke);border-radius:14px;padding:16px 18px;margin:14px 0;box-shadow:var(--shadow);transition:box-shadow .15s ease}
.listing:hover{box-shadow:0 4px 16px rgba(2,6,23,.1)}
.listing h4{font-size:1.05rem;font-weight:700;margin-bottom:4px;color:#0f172a}
.listing .location-tag{display:inline-block;background:#f0f7ff;color:#1e40af;font-size:.78rem;font-weight:600;border-radius:6px;padding:2px 7px;margin-left:6px;vertical-align:middle}
.listing .free-tag{display:inline-block;background:#f0fdf4;color:#166534;font-size:.78rem;font-weight:600;border-radius:6px;padding:2px 7px;margin-left:6px;vertical-align:middle}
.listing .address{font-size:.9rem;color:#64748b;margin-bottom:4px;line-height:1.4}
.listing .phone-web,
.listing .meta{font-size:.88rem;color:#475569;margin-bottom:6px;line-height:1.5}
.listing .phone-web a,
.listing .meta a{color:var(--blue)}
.listing .desc{font-size:.93rem;color:#334155;line-height:1.6;margin:0}

/* Listing grid for compact entries */
.listing-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
.listing-grid .listing{margin:0}


/* ═══ SECTION IMAGES ═══ */
.guide-img{width:100%;border-radius:14px;box-shadow:var(--shadow);margin:18px 0;object-fit:cover}
.guide-img.hero-img{max-height:280px;aspect-ratio:16/9;background:#f1f5f9}
.guide-img.section-img{max-height:340px;aspect-ratio:16/9;background:#f1f5f9}
.img-caption{font-size:.82rem;color:#94a3b8;margin:-12px 0 18px;line-height:1.4}
.img-caption a{color:#94a3b8}


/* ═══ FACT CHIPS ═══ */
.factlist{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.fact{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:8px 12px;font-size:.88rem;color:#0f172a}


/* ═══ OWNER'S PICK HIGHLIGHT ═══ */
.owner-pick{background:#f0fdf4;border:2px solid #86efac;border-radius:14px;padding:24px 24px 28px;margin:14px 0;box-shadow:0 2px 12px rgba(22,101,52,.08);transition:box-shadow .15s ease;position:relative}
.owner-pick:hover{box-shadow:0 4px 20px rgba(22,101,52,.13)}
.owner-pick h4{font-size:1.05rem;font-weight:700;margin-bottom:4px;color:#0f172a}
.owner-pick .address{font-size:.9rem;color:#64748b;margin-bottom:4px;line-height:1.4}
.owner-pick .phone-web,
.owner-pick .meta{font-size:.88rem;color:#475569;margin-bottom:6px}
.owner-pick .phone-web a,
.owner-pick .meta a{color:var(--blue)}
.owner-pick .desc{font-size:.93rem;color:#334155;line-height:1.6;margin:0}
.owner-pick-layout{display:flex;gap:24px;align-items:flex-start}
.owner-pick-text{flex:1;min-width:0;padding-right:8px}
.owner-pick-img{flex:0 0 330px;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.owner-pick-img img{width:100%;height:auto;display:block}
@media(max-width:740px){.owner-pick-layout{flex-direction:column}.owner-pick-img{flex:none;width:100%}}
.owner-badge{display:inline-flex;align-items:center;gap:5px;background:linear-gradient(135deg,#166534 0%,#15803d 100%);color:#fff;font-size:.75rem;font-weight:700;border-radius:8px;padding:4px 10px;margin-bottom:10px;letter-spacing:.3px;text-transform:uppercase}
.owner-badge svg{width:14px;height:14px;fill:currentColor}


/* ═══ SHOPPING CENTER CARDS ═══ */
.shopping-card{background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border:1px solid var(--stroke);border-radius:14px;padding:20px;margin:16px 0;box-shadow:var(--shadow)}
.shopping-card h4{font-size:1.1rem;font-weight:700;margin-bottom:6px;color:#0f172a}
.shopping-card .address{font-size:.9rem;color:#64748b;margin-bottom:8px}
.shopping-card p{font-size:.93rem;color:#334155;line-height:1.6;margin:0}


/* ═══ CTA BANNER ═══ */
.cta-banner{background:linear-gradient(135deg,#f0f7ff 0%,#e8f0fe 100%);border:1px solid #d0e3ff;border-radius:16px;padding:24px 28px;margin:32px 0;text-align:center;box-shadow:var(--shadow)}
.cta-banner h3{font-size:1.2rem;font-weight:800;margin-bottom:8px;color:#0f172a}
.cta-banner p{color:#334155;margin-bottom:14px;line-height:1.6}
.cta-banner .btn{display:inline-block;padding:12px 24px;border-radius:14px;font-weight:700;background:var(--blue);color:#fff;text-decoration:none}
.cta-banner .btn:hover{filter:brightness(.92);text-decoration:none}


/* ═══ TABLE (image credits, etc.) ═══ */
.guide-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:.9rem}
.guide-table th{text-align:left;padding:10px 12px;background:#f8fafc;border-bottom:2px solid #e2e8f0;font-weight:700;color:#334155}
.guide-table td{padding:10px 12px;border-bottom:1px solid #f1f5f9;color:#475569;vertical-align:top}
.guide-table tr:hover td{background:#fafbfd}


/* ═══ FAQ ACCORDION ═══ */
.faq-toggle-btn{display:inline-block;padding:8px 18px;border-radius:999px;border:1px solid var(--stroke);background:#fff;font-size:.9rem;font-weight:600;color:var(--lightink);cursor:pointer;margin-bottom:16px;box-shadow:var(--shadow)}
.faq-toggle-btn:hover{background:#f8fafc}
.faq-list{list-style:none;padding:0;margin:0}
.faq-list details{border-bottom:1px solid #f1f5f9;padding:12px 0}
.faq-list details:last-child{border-bottom:none}
.faq-list summary{font-weight:700;font-size:1.02rem;color:#0f172a;cursor:pointer;padding:4px 0;list-style:disclosure-closed}
.faq-list details[open] summary{list-style:disclosure-open;margin-bottom:8px}
.faq-list details p{font-size:.93rem;color:#334155;line-height:1.65;margin:0;padding:0 0 4px}


/* ═══ BACK TO TOP ═══ */
.back-top{text-align:center;margin:32px 0 0;font-size:.9rem}
.back-top a{color:var(--lightmuted)}


/* ═══ FOOTER (matches main site) ═══ */
footer{margin:40px 0 20px;color:#64748b;font-size:.9rem;max-width:820px;margin-left:auto;margin-right:auto;padding:0 28px}
footer div{margin:4px 0}
footer a{color:#64748b}
footer a:hover{color:var(--blue)}


/* ═══ RESPONSIVE ═══ */
@media (max-width:900px){
  .guide-hero h1{font-size:1.8rem}
  .listing-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .site-header .wrap{padding:10px 16px}
  .top-nav{display:none}
  .guide-container{padding:20px 16px 40px}
  .guide-hero h1{font-size:1.55rem}
  .guide-hero .subtitle{font-size:1rem}
  .toc{padding:16px 18px}
  .cta-banner{padding:20px 18px}
  .listing-grid{grid-template-columns:1fr}
  .section-icon{width:34px;height:34px;font-size:18px}
}

/* ═══ PRINT ═══ */
@media print{
  .site-header,.toc,.cta-banner,.back-top{display:none}
  body{font-size:11pt}
  .guide-container{max-width:100%;padding:0}
}
