/* DabbaMap — Page-specific styles supplementing design-system.css */

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 9000;
  background: rgba(253, 248, 240, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(44,24,16,0.06);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1240px; margin: 0 auto; padding: 0 var(--sp-6);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text);
  text-decoration: none;
}
.nav-logo .logo-icon { font-size: 28px; }
.nav-logo span.brand { color: var(--text); }
.nav-logo span.brand em { color: var(--primary); font-style: normal; }

.nav-links {
  display: flex; align-items: center; gap: var(--sp-8);
}
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: color 0.15s; text-decoration: none;
}
.nav-links a:hover  { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }

.nav-hamburger {
  display: none; font-size: 22px; background: none; border: none; cursor: pointer;
  color: var(--text); padding: var(--sp-2);
}

.nav-mobile-menu {
  display: none; flex-direction: column;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: var(--sp-4); gap: var(--sp-2);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 16px; font-weight: 500; color: var(--text); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-btn); transition: background 0.15s;
}
.nav-mobile-menu a:hover { background: var(--primary-pale); color: var(--primary); }

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  /* Tight phones: free up the bar — "List My Dabba" stays in the hamburger menu */
  .navbar-inner { padding: 0 16px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { display: none; }
}

/* ── Cookie consent banner ── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99998;
  max-width: 720px; margin: 0 auto;
  background: #2C1810; color: rgba(255,255,255,0.92);
  border-radius: 16px; box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  animation: cookieUp 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cookieUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform:none; } }
.cookie-banner p { font-size: 13px; line-height: 1.6; margin: 0; flex: 1 1 280px; color: rgba(255,255,255,0.82); }
.cookie-banner p a { color: var(--primary-light); font-weight: 600; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner button {
  border: none; cursor: pointer; font-family: var(--font-body); font-weight: 700;
  font-size: 13px; padding: 9px 16px; border-radius: 100px; transition: transform 0.15s, background 0.15s;
}
.cookie-banner .ck-reject { background: transparent; color: rgba(255,255,255,0.7); border: 1.5px solid rgba(255,255,255,0.3); }
.cookie-banner .ck-reject:hover { background: rgba(255,255,255,0.08); }
.cookie-banner .ck-accept { background: var(--primary); color: #fff; }
.cookie-banner .ck-accept:hover { transform: translateY(-1px); }
@media (max-width: 520px) { .cookie-banner .cookie-actions { width: 100%; } .cookie-banner button { flex: 1; } }

/* ── Hamburger notification dot (mobile) ── */
.nav-ham-dot {
  position: absolute; top: 2px; right: 2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #dc2626; border: 2px solid var(--bg);
  box-shadow: 0 1px 3px rgba(220,38,38,0.5);
}

/* ── Dashboard notification badge ── */
.nav-dash-badge {
  position: absolute; top: -8px; right: -14px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: #dc2626; color: #fff; border-radius: 9px;
  font-size: 10px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 5px rgba(220,38,38,0.55);
}

/* ── Profile icon ── */
.nav-profile { position: relative; display: flex; align-items: center; }
.nav-profile-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--primary-pale); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-display);
}
.nav-profile-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,119,26,0.12); }
.nav-profile-btn svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; stroke-width: 1.8; }

.nav-profile-drop {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 48px rgba(44,24,16,0.22); min-width: 240px;
  padding: 8px; z-index: 99999;
  opacity: 0; transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-profile-drop.open { opacity: 1; transform: none; pointer-events: all; }

.npd-header { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.npd-name  { font-weight: 700; font-size: 14px; color: var(--text); }
.npd-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.npd-btn {
  display: block; width: 100%; padding: 9px 12px; border-radius: 8px;
  text-align: left; font-size: 14px; font-weight: 500;
  border: none; background: none; cursor: pointer; font-family: var(--font-body);
  color: var(--text); transition: background 0.15s;
}
.npd-btn:hover { background: var(--primary-pale); }
.npd-btn.danger { color: #dc2626; }
.npd-btn.danger:hover { background: #fef2f2; }
.npd-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Footer ── */
.footer {
  background: var(--text); color: rgba(255,255,255,0.8);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
.footer-brand .nav-logo { color: #fff; margin-bottom: var(--sp-3); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: var(--sp-4); }
.footer-col ul li { margin-bottom: var(--sp-2); }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-6);
  font-size: 13px; color: rgba(255,255,255,0.35); text-align: center;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: var(--sp-8); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Hero ── */
.hero { padding: var(--sp-20) 0 var(--sp-16); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-pale); color: var(--primary-dark);
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; margin-bottom: var(--sp-6);
  border: 1px solid rgba(200,119,26,0.2);
}
.hero-title    { margin-bottom: var(--sp-4); }
.hero-subtitle { font-size: 18px; color: var(--text-muted); max-width: 520px; margin-bottom: var(--sp-8); line-height: 1.7; }
.hero-search   { max-width: 600px; margin-bottom: var(--sp-8); }

.hero-stats {
  display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap;
}
.hero-stat strong { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.hero-stat span   { font-size: 13px; color: var(--text-muted); display: block; }
.stat-divider     { width: 1px; height: 36px; background: var(--border); }

/* ── Section Headers ── */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-8);
}
.section-header-centre { text-align: center; margin-bottom: var(--sp-10); }
.section-header-centre p { font-size: 16px; color: var(--text-muted); margin-top: var(--sp-3); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--primary-pale); border-top: 1px solid rgba(200,119,26,0.15);
  border-bottom: 1px solid rgba(200,119,26,0.15);
  padding: var(--sp-6) 0;
}
.trust-items {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-10); flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 14px; font-weight: 500; color: var(--primary-dark);
}
.trust-icon { font-size: 18px; }

/* ── Provider CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, #2C1810 0%, #4A2010 100%);
  border-radius: var(--radius-card); padding: var(--sp-12);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -60px; right: 80px; width: 220px; height: 220px;
  background: rgba(245,166,35,0.08); border-radius: 50%;
}
.cta-section h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-section p  { color: rgba(255,255,255,0.7); margin-bottom: var(--sp-6); font-size: 16px; }
.cta-emoji      { font-size: 80px; opacity: 0.85; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── How it works bg ── */
.hiw-section { background: var(--secondary-pale); }

/* ── Mobile overflow hardening (let flex/grid children shrink to fit) ── */
.search-bar { min-width: 0; }
.search-bar input { min-width: 0; }
.map-search { min-width: 0; }
.map-search input { min-width: 0; }
.discover-layout > * { min-width: 0; }
.results-grid { min-width: 0; }

/* ── Discover Page ── */
.discover-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-8); align-items: start; min-width: 0;
}
.filter-panel {
  position: sticky; top: 88px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: var(--sp-6); box-shadow: var(--shadow-card);
}
.filter-panel-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-6);
}
.filter-section { margin-bottom: var(--sp-6); }
.filter-section label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: var(--sp-2); }

.view-toggle {
  display: inline-flex; border: 1.5px solid var(--border); border-radius: var(--radius-pill); overflow: hidden;
}
.view-toggle-btn {
  padding: 8px 18px; font-size: 14px; font-weight: 600; border: none; background: #fff;
  color: var(--text-muted); cursor: pointer; transition: all 0.15s; font-family: var(--font-body);
}
.view-toggle-btn.active { background: var(--primary); color: #fff; }

.results-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6);
  flex-wrap: wrap; gap: var(--sp-2);
}
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }

#leaflet-map { height: 460px; border-radius: var(--radius-card); border: 1px solid var(--border); overflow: hidden; }

@media (max-width: 1024px) {
  .discover-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}
@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* ── List Dabba ── */
.step-panel { display: none; }
.step-panel.active { display: block; }

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 480px) { .form-2col { grid-template-columns: 1fr; } }

.list-form-card {
  max-width: 680px; margin: 0 auto;
  background: var(--card-bg); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
}

/* ── Provider Profile ── */
.profile-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-8); align-items: start;
}
.sidebar-sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--sp-4); }

.price-block {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-4); background: var(--primary-pale); border-radius: var(--radius-btn);
}
.price-item { text-align: center; }
.price-item .amount { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--primary); }
.price-item .label  { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.price-divider { width: 1px; height: 40px; background: var(--border-dark); }

.desc-accent {
  padding-left: var(--sp-4); border-left: 3px solid var(--primary);
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
}

.details-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.detail-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-1); }
.detail-item .icon  { font-size: 22px; }
.detail-item .value { font-weight: 700; font-size: 15px; }
.detail-item .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.sidebar-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--sp-6); box-shadow: var(--shadow-card); }
.sidebar-card h3 { margin-bottom: var(--sp-3); }

.anon-bullets { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.anon-bullets li { display: flex; gap: var(--sp-2); font-size: 14px; color: var(--text-muted); }
.anon-bullets li::before { content: '→'; color: var(--primary); flex-shrink: 0; }

@media (max-width: 1024px) {
  .profile-layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
}

/* ── Dashboard ── */
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
@media (max-width: 768px) { .dashboard-stats { grid-template-columns: repeat(2, 1fr); } }

.status-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.status-indicator { display: flex; align-items: center; gap: var(--sp-2); font-size: 15px; font-weight: 600; color: var(--success); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.7;transform:scale(1.2)} }

.confirm-banner {
  background: var(--secondary-pale); border: 1px solid var(--secondary-light);
  border-radius: var(--radius-btn); padding: var(--sp-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.confirm-banner p { font-size: 14px; color: var(--secondary); font-weight: 500; }

.dashboard-tab-container { background: var(--card-bg); border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; }
.dashboard-tab-container .tab-nav { padding: 0 var(--sp-6); }
.dashboard-tab-container .tab-content { padding: var(--sp-6); }

.unread-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--error);
  color: #fff; font-size: 10px; font-weight: 700; margin-left: 4px;
}

/* ── Card animation ── */
.card-anim { opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.35s ease; }
.card-anim.visible { opacity: 1; transform: translateY(0); }

/* ── About page ── */
.about-hero { padding: var(--sp-16) 0 var(--sp-12); }
.about-section { padding: var(--sp-10) 0; border-bottom: 1px solid var(--border); }
.about-section:last-child { border-bottom: none; }
.about-step { display: flex; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.about-step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 4px;
}
.about-step-body h3 { margin-bottom: var(--sp-1); }
.about-step-body p  { font-size: 15px; color: var(--text-muted); }

.anon-feature-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.anon-feature { display: flex; gap: var(--sp-4); padding: var(--sp-4); border-radius: var(--radius-btn); background: var(--bg); border: 1px solid var(--border); }
.anon-feature .icon { font-size: 28px; flex-shrink: 0; }
.anon-feature h4 { font-size: 15px; font-weight: 700; margin-bottom: var(--sp-1); }
.anon-feature p  { font-size: 14px; color: var(--text-muted); }

.safety-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.safety-item { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 15px; }
.safety-check { color: var(--success); font-weight: 700; margin-top: 2px; }

/* ── 404 ── */
.page-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-404 .emoji { font-size: 72px; margin-bottom: var(--sp-6); }

/* ── Page header (discover, list, etc.) ── */
.page-header {
  padding: var(--sp-10) 0 var(--sp-8); border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-8);
}
.page-header h1 { margin-bottom: var(--sp-2); }
.page-header p  { font-size: 16px; color: var(--text-muted); }

/* ── Success state ── */
.success-state { text-align: center; padding: var(--sp-12) var(--sp-6); }
.success-state .emoji { font-size: 64px; margin-bottom: var(--sp-6); }
.success-state h2 { margin-bottom: var(--sp-4); }
.success-state p  { color: var(--text-muted); margin-bottom: var(--sp-8); }

/* ── Map area note ── */
.map-note { font-size: 12px; color: var(--text-muted); margin-top: var(--sp-2); display: flex; align-items: center; gap: 6px; }

/* ── Review card ── */
.review-table { display: flex; flex-direction: column; gap: 0; }
.review-row { display: flex; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; }
.review-key { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); min-width: 140px; }
.review-val { font-size: 15px; color: var(--text); }

/* ── Share URL blocks ── */
.url-block { background: var(--primary-pale); border-radius: var(--radius-btn); border: 1px dashed var(--primary); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.url-block .url-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark); margin-bottom: var(--sp-2); }
.url-block .url-text { font-family: 'Courier New', monospace; font-size: 13px; color: var(--primary-dark); word-break: break-all; margin-bottom: var(--sp-3); }
.url-block-amber { background: #FEF3E2; border-color: var(--primary); }
