/* ============================================================
   นักทัศนมาตรใกล้ฉัน — Redesigned Stylesheet
   Font: Prompt (TH) + Inter (EN)
   Color: #041E42 (Navy Blue — PANTONE PMS 282 C)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:       #1A4B8C;
  --primary-dark:  #041E42;
  --primary-light: #3A6BB5;
  --primary-pale:  #E8EEF8;
  --primary-bg:    #F0F4FA;
  --accent:        #2B5EA7;
  --text:          #041E42;
  --text-muted:    #1A4B8C;
  --border:        #B8CEEA;
  --white:         #ffffff;
  --danger:        #dc3545;
  --warning:       #fd7e14;
  --success:       #198754;
  --info:          #0dcaf0;
  --shadow:        0 2px 12px rgba(4,30,66,.1);
  --shadow-md:     0 4px 20px rgba(4,30,66,.14);
  --shadow-lg:     0 8px 32px rgba(4,30,66,.18);
  --radius:        10px;
  --radius-lg:     16px;
  --nav-h:         96px;
  --font-th:       'Prompt', 'Sarabun', sans-serif;
  --font-en:       'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-th);
  background: var(--primary-bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================ NAVBAR */
.navbar {
  background: linear-gradient(135deg, #020F22 0%, #041E42 40%, #1A4B8C 100%);
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 20px rgba(0,0,0,.18);
}
.nav-container {
  width: 100%;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-brand {
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: .65rem;
  transition: opacity .2s;
}
.nav-brand:hover { opacity: .88; }

/* Logo image */
.nav-logo-img {
  height: 40px; width: auto;
  flex-shrink: 0; display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-main {
  font-size: 1rem; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap;
}
.nav-brand-sub {
  font-size: .6rem; font-weight: 400;
  opacity: .55; letter-spacing: .08em;
  text-transform: uppercase; font-family: var(--font-en);
}

.nav-menu {
  list-style: none; display: flex; align-items: center; gap: .2rem;
}
.nav-menu a {
  color: rgba(255,255,255,.82); text-decoration: none;
  padding: .42rem .85rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; gap: .35rem;
  transition: background .2s, color .2s;
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,.14); color: var(--white);
}
.nav-menu a.active {
  background: rgba(255,255,255,.18);
}
.nav-menu a.nav-logout { color: rgba(255,200,200,.88); }
.nav-menu a.nav-logout:hover { background: rgba(220,53,69,.28); color: #fff; }

.btn-nav-register {
  background: rgba(255,255,255,.15) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  padding: .38rem 1rem !important;
  border: 1.5px solid rgba(255,255,255,.35) !important;
}
.btn-nav-register:hover {
  background: rgba(255,255,255,.26) !important;
  border-color: rgba(255,255,255,.6) !important;
}
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.35rem; cursor: pointer; padding: .35rem;
}

/* ============================================================ MAIN */
.main-content { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 2.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }

/* ============================================================ HERO */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #C5D4EA 0%, #E8EEF8 100%);
  color: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
/* Decorative rings */
.hero-rings {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-rings svg { position: absolute; }

.hero-content { position: relative; z-index: 2; }

.hero-eyemark {
  display: block;
  margin: 0 auto 2rem;
  opacity: .92;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800; margin-bottom: .9rem;
  letter-spacing: -.02em; line-height: 1.2;
  color: var(--primary-dark);
}
.hero p {
  font-size: 1.05rem; opacity: .8;
  margin-bottom: 2.25rem; font-weight: 300;
  max-width: 520px; margin-left: auto; margin-right: auto;
  color: var(--primary-dark);
}
.hero-actions {
  display: flex; gap: .85rem;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 3rem;
}
.btn-white {
  background: var(--primary-dark); color: var(--white);
  border-color: var(--primary-dark); font-weight: 700;
}
.btn-white:hover { background: var(--primary); border-color: var(--primary); }
.btn-outline-white {
  background: transparent; color: var(--primary-dark);
  border-color: var(--primary);
}
.btn-outline-white:hover {
  background: rgba(4,30,66,.1); border-color: var(--primary-dark);
}

/* Hero Stats */
.hero-stats {
  display: inline-flex; gap: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .25rem;
  flex-wrap: wrap; justify-content: center;
  box-shadow: var(--shadow-md);
}
.stat {
  padding: 1.5rem 3rem; text-align: center;
  border-right: 1px solid var(--border);
  color: var(--primary-dark);
}
.stat:last-child { border-right: none; }
.stat-link {
  text-decoration: none; cursor: pointer;
  transition: background .2s;
  border-radius: 14px;
}
.stat-link:hover { background: var(--primary-pale); }
.stat-num { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stat-label {
  font-size: .88rem; opacity: .72; margin-top: .4rem;
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  font-weight: 500;
}

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .58rem 1.25rem; border-radius: 10px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
  transition: all .2s; white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: transparent; color: var(--primary-dark); border-color: var(--primary-light); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(4,30,66,.2); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-pale); transform: translateY(-1px); }
.btn-danger  { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #b02a37; }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #146c43; }
.btn-lg { padding: .78rem 2.2rem; font-size: 1rem; border-radius: 28px; }
.btn-sm { padding: .35rem .8rem; font-size: .82rem; border-radius: 7px; }
.btn-xs { padding: .2rem .55rem; font-size: .77rem; border-radius: 4px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================ SECTION HEADERS */
.section-title {
  text-align: center; font-size: clamp(1.35rem,3vw,1.85rem);
  font-weight: 800; color: var(--primary-dark); margin-bottom: 2.5rem;
  line-height: 1.25;
}

/* ============================================================ STATS SECTION (below role) */
.stats-section {
  padding: 2.5rem 1.5rem 3.5rem;
  background: var(--bg);
  display: flex; justify-content: center;
}

/* Dashboard layout: stats left + province panel right */
.stats-dashboard {
  display: flex; align-items: flex-start; gap: 1.5rem;
  flex-wrap: wrap;
}
.stats-dashboard-left { flex: 1; min-width: 260px; display: flex; align-items: center; }
.stats-dashboard-left .hero-stats { margin: 0; }

/* Province stats panel */
.pv-stat-panel {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow); min-width: 240px; flex: 0 0 260px;
}
.pv-stat-title {
  font-size: .8rem; font-weight: 700; color: var(--text-muted);
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: .85rem; letter-spacing: .02em;
  text-transform: uppercase;
}
.pv-stat-rows { display: flex; flex-direction: column; gap: .5rem; }
.pv-stat-row {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: inherit;
  transition: opacity .15s;
}
.pv-stat-row:hover { opacity: .75; }
.pv-name {
  font-size: .78rem; color: var(--text); min-width: 90px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: right;
}
.pv-bar-wrap {
  flex: 1; height: 8px; background: var(--primary-pale);
  border-radius: 99px; overflow: hidden;
}
.pv-bar {
  height: 100%; background: var(--primary-dark);
  border-radius: 99px; min-width: 6px;
  transition: width .4s ease;
}
.pv-count {
  font-size: .78rem; font-weight: 700; color: var(--text);
  min-width: 18px; text-align: right;
}
.pv-stat-title-link {
  text-decoration: none; display: flex; align-items: center;
  transition: opacity .2s;
}
.pv-stat-title-link:hover { opacity: .75; }

/* ============================================================ ROLE SECTION */
.role-section { padding: 4rem 1.5rem 2rem; }
.role-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; max-width: 820px; margin: 0 auto 2rem;
}
.role-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px; padding: 2.5rem 2rem;
  text-align: center; text-decoration: none; color: var(--text);
  transition: all .3s; display: flex; flex-direction: column; align-items: center; gap: .75rem;
  position: relative; overflow: hidden;
}
.role-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(4,30,66,.05));
  pointer-events: none;
}
.role-card:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(4,30,66,.18);
  transform: translateY(-6px);
}
.role-card-od { border-color: rgba(4,30,66,.25); }
.role-card-od:hover { background: #f4fbfb; }

.role-card-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .25rem;
  transition: all .3s;
}
.role-card:hover .role-card-icon { background: var(--primary); }
.role-card-icon i { font-size: 1.8rem; color: var(--primary); transition: color .3s; }
.role-card:hover .role-card-icon i { color: var(--white); }
.role-card-od .role-card-icon { background: rgba(4,30,66,.1); }

.role-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  color: var(--primary); background: var(--primary-pale);
  border: 1px solid var(--border);
  border-radius: 20px; padding: .2rem .75rem;
  margin-bottom: .5rem; letter-spacing: .01em;
}
.role-tag-od {
  color: var(--primary-dark); background: rgba(4,30,66,.07);
  border-color: rgba(4,30,66,.15);
}
.role-card h3 { font-size: 1.15rem; font-weight: 800; }
.role-card p { font-size: .86rem; color: var(--text-muted); line-height: 1.65; }

.role-btn {
  background: var(--primary-pale); color: var(--primary);
  padding: .5rem 1.25rem; border-radius: 24px;
  font-size: .84rem; font-weight: 700; margin-top: .35rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; box-sizing: border-box;
  transition: all .25s;
}
.role-card:hover .role-btn { background: var(--primary); color: var(--white); }
.role-btn-od { background: rgba(4,30,66,.08); color: var(--primary-dark); border: 1.5px solid var(--border); display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
.role-card-od:hover .role-btn-od { background: var(--primary); color: var(--white); border-color: var(--primary); }

.report-link { text-align: center; color: var(--text-muted); font-size: .86rem; }
.report-link a { color: var(--danger); font-weight: 600; }

/* ============================================================ HOW TO */
.how-section {
  background: var(--white);
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0; max-width: 900px; margin: 0 auto;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 2.6rem; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-pale), var(--primary), var(--primary-pale));
  z-index: 0;
}
.step {
  background: transparent; padding: 0 1.5rem 1.5rem;
  text-align: center; position: relative; z-index: 1;
}
.step-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(4,30,66,.35);
  position: relative;
}
.step-icon-wrap i { font-size: 1.4rem; }
.step-num {
  position: absolute; top: -8px; right: -8px;
  background: var(--white); color: var(--primary);
  width: 22px; height: 22px; border-radius: 50%;
  font-size: .72rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary);
}
.step h4 { font-weight: 800; font-size: 1rem; margin-bottom: .45rem; color: var(--primary-dark); }
.step p { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================ AUTH */
.auth-section {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1rem;
  background: linear-gradient(160deg, var(--primary-bg) 0%, #fff 80%);
}
.auth-card {
  background: var(--white); border-radius: 20px;
  padding: 2.75rem; width: 100%; max-width: 430px;
  box-shadow: 0 12px 48px rgba(4,30,66,.14);
  border: 1px solid rgba(4,30,66,.1);
}
.auth-card-wide { max-width: 640px; }
.auth-header { text-align: center; margin-bottom: 1.75rem; }
.auth-header i { font-size: 2.5rem; color: var(--primary); display: block; margin-bottom: .5rem; }
.auth-header h2 { font-size: 1.45rem; font-weight: 800; }
.auth-form .form-group { margin-bottom: 1.1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .88rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer p + p { margin-top: .4rem; }
/* ============================================================ FORMS */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-weight: 600; font-size: .88rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: .65rem 1rem; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .93rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; background: var(--white);
  width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4,30,66,.15);
}
.input-disabled { background: #f8f9fa !important; color: var(--text-muted); cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group-grow { grid-column: span 1; }
.form-group-center { align-items: center; }
.form-group-btn { align-self: flex-end; }
.hint { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.form-divider { border: none; border-top: 1.5px solid var(--border); margin: 1.25rem 0; }
.form-section-title { font-size: 1rem; color: var(--primary-dark); margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.edit-form .form-group { margin-bottom: 1.1rem; }

/* Password toggle */
.input-password { position: relative; }
.input-password input { padding-right: 2.8rem; }
.toggle-pass { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; }

/* ============================================================ ALERTS */
.alert { padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert a { color: inherit; font-weight: 700; }

/* ============================================================ PROFILE */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.profile-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); text-align: center; position: sticky; top: calc(var(--nav-h) + 1rem); }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; border: 4px solid var(--primary-pale); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { width: 100%; height: 100%; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); }
.profile-name { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.profile-license { font-size: .88rem; color: var(--text-muted); margin-bottom: .5rem; display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.profile-phone { font-size: .88rem; color: var(--text-muted); margin-bottom: .5rem; }
.profile-bio { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; text-align: left; }
.badge-verified { background: #d4edda; color: var(--success); padding: .15rem .5rem; border-radius: 12px; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.badge-pending  { background: #fff3cd; color: #856404; padding: .15rem .5rem; border-radius: 12px; font-size: .75rem; font-weight: 700; }
.badge-info     { background: var(--primary-pale); color: var(--primary); padding: .15rem .5rem; border-radius: 12px; font-size: .75rem; font-weight: 700; }

/* Avatar Upload */
.avatar-upload { width: 120px; height: 120px; border-radius: 50%; border: 3px dashed var(--border); position: relative; overflow: hidden; cursor: pointer; margin-bottom: .5rem; }
.avatar-upload img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-btn { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(4,30,66,.75); color: var(--white); text-align: center; padding: .4rem; cursor: pointer; font-size: .9rem; }

/* Img Upload Box */
.img-upload-box { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; cursor: pointer; position: relative; transition: border-color .2s; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.img-upload-box:hover { border-color: var(--primary); }
.img-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--text-muted); }
.img-upload-placeholder i { font-size: 2rem; }
.img-upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Workplace Cards */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); display: flex; align-items: center; gap: .4rem; }
.workplace-list { display: flex; flex-direction: column; gap: 1rem; }
.workplace-item { background: var(--white); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: flex-start; }
.wp-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.wp-img-placeholder { background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); }
.wp-info { flex: 1; min-width: 0; }
.wp-header { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.wp-header h4 { font-size: 1rem; font-weight: 700; }
.wp-type { background: var(--primary-pale); color: var(--primary); padding: .15rem .55rem; border-radius: 12px; font-size: .78rem; font-weight: 600; }
.wp-addr, .wp-hours { font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: .35rem; margin-top: .25rem; }
.btn-map { display: inline-flex; align-items: center; gap: .3rem; background: #ea4335; color: var(--white); padding: .3rem .75rem; border-radius: 16px; font-size: .8rem; font-weight: 600; text-decoration: none; margin-top: .5rem; transition: background .2s; }
.btn-map:hover { background: #c5352a; }
.wp-actions { display: flex; flex-direction: column; gap: .35rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* ============================================================ SEARCH PAGE */
.page-heading { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .5rem; }
.search-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.search-form .search-row { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr auto; gap: 1.25rem; align-items: end; }
.search-btn-group { display: flex; gap: .5rem; align-items: stretch; padding-bottom: 0; }
.search-btn-group .btn { white-space: nowrap; }
.results-header { margin-bottom: 1rem; color: var(--text-muted); font-size: .9rem; }
.results-header strong { color: var(--primary-dark); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.result-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
  transition: all .25s; position: relative;
  border: 1.5px solid transparent;
}
.result-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary); }
.result-img { position: relative; height: 160px; overflow: hidden; }
.result-img img { width: 100%; height: 100%; object-fit: cover; }
.result-img-placeholder { width: 100%; height: 100%; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); }
.result-img-map {
  width: 100%; height: 100%;
  background-size: 256px 256px;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.result-img-map::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(4,30,66,.08);
}
.result-img-map-pin {
  position: relative; z-index: 1;
  font-size: 2rem; color: var(--danger);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  animation: map-pin-bounce .7s ease-in-out infinite alternate;
}
@keyframes map-pin-bounce {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-5px) scale(1.05); }
}
.result-type { position: absolute; top: .6rem; left: .6rem; background: var(--primary); color: var(--white); padding: .2rem .65rem; border-radius: 12px; font-size: .75rem; font-weight: 600; }
.result-info { padding: 1rem; }
.result-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.result-location, .result-hours { font-size: .83rem; color: var(--text-muted); display: flex; align-items: center; gap: .35rem; margin-top: .25rem; }
.result-ods { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.result-ods i { color: var(--primary-light); }
.od-chip { background: var(--primary-pale); color: var(--primary-dark); padding: .2rem .6rem; border-radius: 12px; font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: .25rem; }
.result-map-btn { position: absolute; bottom: 1rem; right: .75rem; background: #ea4335; color: var(--white); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; text-decoration: none; }
.search-prompt { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.search-prompt i { font-size: 3.5rem; margin-bottom: 1rem; display: block; color: var(--primary-pale); }

/* ============================================================ STORE DETAIL */
.store-hero { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.store-img img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.store-img-placeholder { width: 100%; height: 220px; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.store-meta { display: flex; flex-direction: column; gap: .75rem; }
.store-address, .store-hours { font-size: .93rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: .5rem; }
.od-section h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.od-cards { display: flex; flex-direction: column; gap: 1rem; }
.od-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); display: flex; gap: 1.25rem; align-items: flex-start; }
.od-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--primary-pale); }
.od-avatar img { width: 100%; height: 100%; object-fit: cover; }
.od-details h4 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.od-license, .od-schedule, .od-phone, .od-bio { font-size: .88rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: .4rem; margin-top: .3rem; }
.od-bio { line-height: 1.5; }

/* ============================================================ ADMIN */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; border-left: 4px solid var(--border); }
.stat-card i { font-size: 1.75rem; color: var(--text-muted); }
.stat-card-primary { border-color: var(--primary); }
.stat-card-primary i { color: var(--primary); }
.stat-card-success { border-color: var(--success); }
.stat-card-success i { color: var(--success); }
.stat-card-warning { border-color: var(--warning); }
.stat-card-warning i { color: var(--warning); }
.stat-card-info { border-color: var(--info); }
.stat-card-info i { color: var(--info); }
.stat-info { display: flex; flex-direction: column; }
.stat-info .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-info .stat-label { font-size: .8rem; color: var(--text-muted); }
.admin-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; }
.admin-panel { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.panel-header h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); display: flex; align-items: center; gap: .4rem; }
.pv-bar-row { display: grid; grid-template-columns: 120px 1fr 40px; gap: .5rem; align-items: center; margin-bottom: .55rem; }
.pv-name { font-size: .82rem; color: var(--text-muted); text-align: right; }
.pv-bar-wrap { background: var(--primary-pale); border-radius: 4px; height: 14px; overflow: hidden; }
.pv-bar { background: var(--primary); height: 100%; border-radius: 4px; transition: width .4s; }
.pv-cnt { font-size: .82rem; font-weight: 700; color: var(--primary); }

/* Table */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { background: var(--primary-pale); color: var(--primary-dark); padding: .65rem .85rem; text-align: left; font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--border); }
.data-table td { padding: .65rem .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: var(--primary-bg); }
.data-table .text-center { text-align: center; padding: 2rem; color: var(--text-muted); }
.table-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.table-avatar-placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-pale); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--primary); }
.od-name-cell { display: flex; align-items: center; gap: .6rem; }

/* Filter Bar */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.filter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.filter-input { padding: .5rem .85rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: .88rem; min-width: 220px; }
.filter-input:focus { outline: none; border-color: var(--primary); }
.total-count { font-size: .85rem; color: var(--text-muted); }
.action-btns { display: flex; gap: .35rem; }

/* Pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.page-btn { padding: .4rem .75rem; border: 1.5px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); font-size: .88rem; transition: all .2s; }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Misc */
.page-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.page-title h2 { font-size: 1.4rem; font-weight: 700; }
.back-link { color: var(--primary); font-size: 1.2rem; text-decoration: none; display: flex; align-items: center; }
code { background: var(--primary-pale); color: var(--primary-dark); padding: .1rem .4rem; border-radius: 4px; font-size: .85em; }

/* ============================================================ FOOTER */
.footer {
  background: linear-gradient(135deg, #020F22 0%, var(--primary-dark) 100%);
  color: rgba(255,255,255,.65);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}
.footer-container { max-width: 700px; margin: 0 auto; text-align: center; }
.footer-brand {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; margin-bottom: .6rem;
}
.footer-logo-mark { opacity: .9; }
.footer-text { font-size: .86rem; margin-bottom: .3rem; }
.footer-copy { font-size: .78rem; opacity: .45; font-family: var(--font-en); }

/* ============================================================ FORM PAGE HEADER */
.form-page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.form-back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text-muted); text-decoration: none; font-size: .83rem;
  font-weight: 600; margin-bottom: .5rem;
  transition: color .2s;
}
.form-back-link:hover { color: var(--primary); }
.form-page-title {
  font-size: 1.35rem; font-weight: 800; color: var(--primary-dark);
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .2rem;
}
.form-page-sub { font-size: .84rem; color: var(--text-muted); margin: 0; }

/* ============================================================ RESPONSIVE */
@media (max-width: 992px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .store-hero { grid-template-columns: 1fr; }
  .store-img img { height: 200px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--primary-dark); padding: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { justify-content: center; padding: .75rem; font-size: .95rem; border-radius: 8px; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps::before { display: none; }
  .role-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .search-form .search-row { grid-template-columns: 1fr; }
  .search-btn-group { width: 100%; }
  .search-btn-group .btn { flex: 1; justify-content: center; }
  .results-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-main { padding: 0; }
  .workplace-item { flex-direction: column; }
  .wp-img { width: 100%; height: 160px; }
  .od-card { flex-direction: column; align-items: center; text-align: center; }
  .od-details h4 { justify-content: center; }
  .section-pad { padding: 1.75rem 1rem; }
  .hero-stats { flex-direction: column; gap: 0; width: 100%; max-width: 300px; }
  .stat { border-right: none; border-bottom: 1px solid rgba(4,30,66,.2); }
  .stat:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-form { flex-direction: column; }
  .filter-input { min-width: unset; }
  .btn-lg { padding: .68rem 1.4rem; font-size: .95rem; }
  .auth-card { padding: 2rem 1.25rem; }
}

/* ============================================================ ADMIN LAYOUT (Sidebar) */
.admin-body { background: #f4f6f9; }

/* Top Bar */
.admin-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: 56px;
  background: linear-gradient(135deg, #020F22 0%, #041E42 40%, #1A4B8C 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.admin-topbar-left { display: flex; align-items: center; gap: .75rem; }
.admin-topbar-right { display: flex; align-items: center; gap: .5rem; }

.admin-sidebar-toggle {
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .2s;
}
.admin-sidebar-toggle:hover { background: rgba(255,255,255,.22); }

.admin-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.admin-brand-name { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.admin-brand-badge {
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.8);
  font-size: .65rem; font-weight: 600; padding: .1rem .45rem;
  border-radius: 20px; letter-spacing: .04em; text-transform: uppercase;
  font-family: var(--font-en);
}

.admin-topbar-btn {
  background: rgba(255,255,255,.1); border: none; color: rgba(255,255,255,.82);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; text-decoration: none; transition: background .2s, color .2s;
}
.admin-topbar-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.admin-logout-btn:hover { background: rgba(220,53,69,.4); color: #fff; }

.admin-user-chip {
  display: flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.1); border-radius: 20px;
  padding: .28rem .75rem .28rem .42rem; color: rgba(255,255,255,.88);
  font-size: .8rem; font-weight: 500;
}
.admin-user-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: #fff;
}

/* Layout Wrapper */
.admin-layout-wrap {
  display: flex; min-height: 100vh;
  padding-top: 56px; /* topbar height */
}

/* Sidebar */
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 56px; left: 0; bottom: 0;
  overflow-y: auto; z-index: 900;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 2px 0 12px rgba(0,0,0,.06);
}

.admin-sidebar-nav { flex: 1; padding: 1rem .75rem; }
.admin-sidebar-section { margin-bottom: 1.5rem; }

.admin-nav-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0 .5rem; margin-bottom: .4rem;
}
.admin-nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .75rem; border-radius: 10px;
  text-decoration: none; color: var(--text);
  font-size: .88rem; font-weight: 500;
  transition: all .18s; position: relative; margin-bottom: .15rem;
}
.admin-nav-item:hover { background: var(--primary-bg); color: var(--primary); }
.admin-nav-item.active {
  background: var(--primary-pale); color: var(--primary);
  font-weight: 700;
}
.admin-nav-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0;
  background: var(--primary-bg); color: var(--text-muted);
  transition: all .18s;
}
.admin-nav-item:hover .admin-nav-icon,
.admin-nav-item.active .admin-nav-icon {
  background: var(--primary); color: #fff;
}
.admin-nav-text { flex: 1; }
.admin-nav-badge {
  background: var(--warning); color: #fff;
  font-size: .7rem; font-weight: 700; padding: .1rem .45rem;
  border-radius: 20px; min-width: 20px; text-align: center;
}
.admin-nav-ext { font-size: .7rem; color: var(--text-muted); opacity: .6; }

.admin-sidebar-footer {
  padding: .75rem; border-top: 1px solid var(--border);
}
.admin-sidebar-logout {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-radius: 8px;
  color: var(--danger); text-decoration: none; font-size: .86rem; font-weight: 600;
  transition: background .2s;
}
.admin-sidebar-logout:hover { background: #fff0f0; }

/* Main Content */
.admin-main-content {
  flex: 1; margin-left: 240px;
  min-height: calc(100vh - 56px);
  background: #f4f6f9;
}

/* Overlay (mobile) */
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 850;
}
.admin-sidebar-overlay.show { display: block; }

/* Responsive */
@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.2);
  }
  .admin-main-content { margin-left: 0; }
  .admin-user-chip span { display: none; }
}
@media (max-width: 480px) {
  .admin-brand-badge { display: none; }
}

/* ============================================================ DEV PANEL */


/* ============================================================ GOOGLE OAUTH */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  width: 100%; padding: .65rem 1.2rem;
  background: var(--white); color: #3c4043;
  border: 1.5px solid #dadce0; border-radius: 10px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: all .2s; box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin-bottom: 1rem; font-family: inherit;
}
.btn-google:hover { background: #f8f9fa; border-color: #bdc1c6; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.btn-google img { width: 20px; height: 20px; }
.btn-google-lg { padding: .9rem 1.5rem; font-size: 1.05rem; border: 2px solid #dadce0; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.btn-google-lg img { width: 24px; height: 24px; }
.btn-google-lg:hover { box-shadow: 0 4px 16px rgba(0,0,0,.16); transform: translateY(-1px); }

.google-primary-block { background: #f0f8f9; border: 1.5px solid #c8e6e8; border-radius: 12px; padding: 1.2rem 1.25rem 1rem; margin-bottom: 1.25rem; text-align: center; }
.google-primary-label { font-size: .8rem; font-weight: 700; color: #1A4B8C; margin-bottom: .65rem; letter-spacing: .3px; }
.google-primary-block .btn-google { margin-bottom: .6rem; }
.google-primary-hint { font-size: .78rem; color: #6c757d; margin: 0; line-height: 1.5; }

.email-form-toggle { text-align: center; margin: .25rem 0; }
.btn-text-toggle { background: none; border: none; color: var(--text-muted); font-size: .85rem; cursor: pointer; padding: .35rem .5rem; display: inline-flex; align-items: center; gap: .4rem; border-radius: 6px; transition: color .2s, background .2s; font-family: inherit; }
.btn-text-toggle:hover { color: var(--primary); background: var(--primary-pale); }
.btn-text-toggle i { transition: transform .25s; }

.divider { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--text-muted); font-size: .82rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-alt { color: #adb5bd; font-size: .78rem; }
.divider-alt::before, .divider-alt::after { background: #e9ecef; }

.google-setup-hint { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: .65rem 1rem; font-size: .83rem; color: #5d4037; display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.google-setup-hint i { color: #ea4335; }
.google-setup-hint a { color: var(--primary); font-weight: 600; }

/* ============================================================ MAP PICKER */
.map-picker { height: 320px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); margin-top: .5rem; }
.link-row { display: flex; gap: .5rem; align-items: center; }
.link-row input { flex: 1; }
.hint-inline { font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.coords-display { display: flex; align-items: center; gap: .5rem; background: var(--primary-pale); border-radius: 6px; padding: .5rem .75rem; font-size: .83rem; color: var(--primary-dark); margin-top: .5rem; }
.map-search-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .25rem; }
.map-search-row input { flex: 1; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-light); color: var(--text); border-color: var(--text-muted); }

/* ============================================================ SEARCH VIEW TOGGLE */
.results-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.results-count { color: var(--text-muted); font-size: .9rem; }
.results-count strong { color: var(--primary-dark); }
.view-toggle { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-btn { padding: .4rem .9rem; text-decoration: none; color: var(--text-muted); font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: .3rem; transition: all .2s; }
.view-btn:hover { background: var(--primary-pale); color: var(--primary); }
.view-btn.active { background: var(--primary); color: var(--white); }
.view-btn + .view-btn { border-left: 1.5px solid var(--border); }

.map-results-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; margin-top: .5rem; }
.results-map { height: 520px; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); }
.map-no-coords { background: #fff3cd; border-radius: 8px; padding: .75rem 1rem; font-size: .85rem; color: #856404; display: flex; align-items: center; gap: .5rem; }
.map-side-list { overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: .5rem; }
.map-side-item { background: var(--white); border-radius: var(--radius); padding: .85rem 1rem; border: 1.5px solid var(--border); }
.map-side-item.has-coord { cursor: pointer; transition: all .2s; }
.map-side-item.has-coord:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.map-side-name { font-weight: 700; font-size: .93rem; margin-bottom: .25rem; }
.map-side-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; }
.map-side-link { font-size: .8rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.map-side-link:hover { text-decoration: underline; }

/* Custom Leaflet marker */
.map-marker-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; border: 3px solid var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.map-marker-icon i { transform: rotate(45deg); color: var(--white); font-size: .9rem; }
.map-marker-store { background: #ea4335; width: 40px; height: 40px; }
.map-popup { min-width: 180px; }
.map-popup strong { font-size: .95rem; display: block; margin-bottom: .3rem; }
.map-popup-type { background: var(--primary-pale); color: var(--primary); padding: .1rem .4rem; border-radius: 10px; font-size: .75rem; font-weight: 600; }
.popup-btn { background: var(--primary); color: var(--white); padding: .3rem .7rem; border-radius: 6px; font-size: .78rem; text-decoration: none; font-weight: 600; display: inline-block; }
.popup-btn-map { background: #ea4335; }

/* ============================================================ STORE DETAIL MAP */
.store-map-section { margin-bottom: 2rem; background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.store-map-section h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; }
.store-map { height: 350px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); }
.store-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }

/* ============================================================ RESPONSIVE MAP */
@media (max-width: 768px) {
  .map-results-wrap { grid-template-columns: 1fr; }
  .results-map { height: 350px; }
  .map-side-list { max-height: 300px; }
  .map-picker { height: 240px; }
  .store-map { height: 260px; }
  .results-toolbar { flex-direction: column; align-items: flex-start; }
}
