/* ============================================================
   Spoedtandarts Landing Page
   Scoped to .spoed-landing — no impact on other pages
   Platform design system: navy/teal palette (matches city-page)
   ============================================================ */

/* ── Page background on #main-wrapper ────────────── */
.path-spoedtandarts-landing #main-wrapper {
  background: #f7fafb !important;
}

/* Hide the Drupal page title — hero has its own h1 */
.path-spoedtandarts-landing .page-title,
.path-spoedtandarts-landing #block-page-title,
.path-spoedtandarts-landing .block-page-title-block,
.path-spoedtandarts-landing h1.page-title {
  display: none !important;
}

/* ── Reveal page once this stylesheet has loaded (prevents FOUC) ── */
.spoed-landing {
  opacity: 1 !important;
  transition: opacity 0.2s ease;
}

/* ── Breadcrumb (matches city-page / practice-page) ── */

.spoed-landing ul.breadcrumb {
  background: none !important;
  padding: 14px 0 16px !important;
  margin: 0 !important;
  list-style: none;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  height: auto !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.spoed-landing ul.breadcrumb li {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: #5d6b7a;
  border-left: none !important;
  position: relative;
}

.spoed-landing ul.breadcrumb li::before,
.spoed-landing ul.breadcrumb li::after {
  content: none !important;
  border: none !important;
  display: none !important;
}

.spoed-landing ul.breadcrumb li:not(:first-child):not(.first)::before {
  content: "\203A" !important;
  display: inline !important;
  position: static !important;
  margin: 0 6px;
  color: #b0bfc9;
  font-size: 0.9rem;
  border: none !important;
}

.spoed-landing ul.breadcrumb li a {
  display: inline !important;
  max-width: none !important;
  text-overflow: clip !important;
  overflow: visible !important;
  white-space: normal !important;
  color: #008ba1 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.spoed-landing ul.breadcrumb li a:hover {
  text-decoration: underline !important;
}

.spoed-landing ul.breadcrumb li.active a,
.spoed-landing ul.breadcrumb li:last-child a {
  color: #fff !important;
  font-weight: 600;
  background: #008ba1 !important;
  border-radius: 4px !important;
  padding: 3px 10px !important;
}

/* ── Root ─────────────────────────────────────────── */

.spoed-landing {
  --sp-navy: #0e2a47;
  --sp-teal: #00a9c1;
  --sp-teal-dark: #008ba1;
  --sp-teal-soft: #e6f7fa;
  --sp-ice: #f4f9fb;
  --sp-sky: #eaf4f9;
  --sp-ink: #22303e;
  --sp-muted: #5d6b7a;
  --sp-line: #e3ecf1;
  --sp-red: #e5484d;
  --sp-white: #ffffff;
  --sp-font: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sp-radius: 16px;
  --sp-radius-sm: 12px;
  --sp-shadow: 0 2px 10px rgba(14, 42, 71, 0.06);
  --sp-shadow-hover: 0 6px 24px rgba(14, 42, 71, 0.08);
  --sp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: var(--sp-font);
  color: var(--sp-ink);
  line-height: 1.6;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 2rem;
}

/* ── Hero Section ────────────────────────────────── */

.spoed-landing__hero {
  background: linear-gradient(135deg, #1dbdd4 0%, #15afc6 40%, #0ea3ba 100%);
  padding: 2.5rem 2rem 2.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
  margin: 0 0 2.5rem;
  border-radius: 0;
  /* Full viewport width breakout */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.spoed-landing__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' opacity='0.06'%3E%3Cpath d='M12 2C8 2 5 5 5 9c0 3 1 5 2 8 1 3 2 5 3 5s2-2 2-5c0 3 1 5 2 5s2-2 3-5c1-3 2-5 2-8 0-4-3-7-7-7z'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.spoed-landing__hero-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.spoed-landing__hero-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--sp-white);
  fill: none;
  stroke-width: 1.5;
}

.spoed-landing__hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--sp-red);
  color: var(--sp-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.spoed-landing__hero h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--sp-white);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.spoed-landing__hero-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.spoed-landing__hero-description {
  font-size: 0.925rem;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

/* Hero CTAs */
.spoed-landing__hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spoed-landing__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sp-font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform var(--sp-transition), box-shadow var(--sp-transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.spoed-landing__hero-cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.spoed-landing__hero-cta--primary {
  background: var(--sp-white);
  color: var(--sp-teal-dark) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.spoed-landing__hero-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: var(--sp-navy) !important;
  text-decoration: none;
}

.spoed-landing__hero-cta--secondary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--sp-white) !important;
  border: 2px solid var(--sp-white);
}

.spoed-landing__hero-cta--secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--sp-white);
  color: var(--sp-white) !important;
  text-decoration: none;
}

.spoed-landing__hero-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.75rem;
}

/* ── Section Shared ──────────────────────────────── */

.spoed-landing__section {
  margin-bottom: 2.5rem;
}

.spoed-landing__section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sp-navy);
  text-align: center;
  margin: 0 0 1.5rem;
}

/* ── Map Section ─────────────────────────────────── */

.spoed-landing__map-section {
  margin-bottom: 2.5rem;
}

.spoed-landing__map-wrapper {
  display: flex;
  gap: 0;
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  overflow: hidden;
  box-shadow: var(--sp-shadow);
}

/* Region sidebar */
.spoed-landing__map-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--sp-white);
  border-right: 1px solid var(--sp-line);
  overflow-y: auto;
  max-height: 480px;
}

.spoed-landing__map-sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sp-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px 10px;
  margin: 0;
  border-bottom: 1px solid var(--sp-line);
}

.spoed-landing__map-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.spoed-landing__region-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 1px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: var(--sp-font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sp-ink);
  cursor: pointer;
  transition: background var(--sp-transition), color var(--sp-transition);
  text-align: left;
}

.spoed-landing__region-pill:hover {
  background: var(--sp-ice);
  color: var(--sp-teal-dark);
}

.spoed-landing__region-pill.is-active {
  background: var(--sp-teal);
  color: var(--sp-white);
  font-weight: 600;
}

.spoed-landing__region-pill-count {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--sp-ice);
  color: var(--sp-muted);
  padding: 2px 7px;
  border-radius: 50px;
  min-width: 22px;
  text-align: center;
}

.spoed-landing__region-pill.is-active .spoed-landing__region-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--sp-white);
}

/* Map canvas */
.spoed-landing__map-canvas {
  flex: 1;
  min-height: 480px;
  position: relative;
}

#spoed-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

/* Map loading skeleton */
.spoed-landing__map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--sp-ice);
  gap: 10px;
}

.spoed-landing__map-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--sp-line);
  border-top-color: var(--sp-teal);
  border-radius: 50%;
  animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin {
  to { transform: rotate(360deg); }
}

.spoed-landing__map-loading-text {
  font-size: 0.85rem;
  color: var(--sp-muted);
}

/* Geolocation button */
.spoed-landing__map-locate {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--sp-shadow);
  transition: box-shadow var(--sp-transition);
  z-index: 1;
}

.spoed-landing__map-locate:hover {
  box-shadow: var(--sp-shadow-hover);
}

.spoed-landing__map-locate svg {
  width: 18px;
  height: 18px;
  stroke: var(--sp-teal);
  fill: none;
  stroke-width: 2;
}

/* Mobile region pills (horizontal scroll) */
.spoed-landing__map-pills-mobile {
  display: none;
  gap: 5px;
  padding: 8px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--sp-white);
  border-bottom: 1px solid var(--sp-line);
}

.spoed-landing__map-pills-mobile::-webkit-scrollbar {
  display: none;
}

.spoed-landing__map-pills-mobile .spoed-landing__region-pill {
  white-space: nowrap;
  padding: 5px 10px;
  margin-bottom: 0;
  background: var(--sp-ice);
  border: 1px solid var(--sp-line);
  border-radius: 50px;
  font-size: 0.72rem;
}

.spoed-landing__map-pills-mobile .spoed-landing__region-pill.is-active {
  background: var(--sp-teal);
  border-color: var(--sp-teal);
  color: var(--sp-white);
}

/* ── Regional Cards Grid ─────────────────────────── */

.spoed-landing__regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.spoed-landing__region-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  text-decoration: none;
  color: var(--sp-navy);
  transition: transform var(--sp-transition), box-shadow var(--sp-transition), border-color var(--sp-transition);
  box-shadow: var(--sp-shadow);
}

.spoed-landing__region-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-hover);
  border-color: var(--sp-teal);
  text-decoration: none;
  color: var(--sp-navy);
}

.spoed-landing__region-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--sp-teal-soft);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spoed-landing__region-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--sp-teal);
  fill: none;
  stroke-width: 2;
}

.spoed-landing__region-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
}

.spoed-landing__region-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--sp-line);
  fill: none;
  transition: stroke var(--sp-transition), transform var(--sp-transition);
}

.spoed-landing__region-card:hover .spoed-landing__region-arrow {
  stroke: var(--sp-teal);
  transform: translateX(3px);
}

/* ── Emergency Tips Accordion ────────────────────── */

.spoed-landing__accordion-section {
  margin-bottom: 2.5rem;
}

.spoed-landing__accordion-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* Override accordion number badge to teal (platform color) */
.spoed-landing .info-page__accordion-number {
  background: var(--sp-teal) !important;
  color: var(--sp-white) !important;
}

.spoed-landing__accordion-footer {
  text-align: center;
  margin-top: 1.25rem;
}

.spoed-landing__accordion-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sp-teal);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--sp-transition);
}

.spoed-landing__accordion-link:hover {
  color: var(--sp-teal-dark);
  text-decoration: underline;
}

.spoed-landing__accordion-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/* ── Info Section ────────────────────────────────── */

.spoed-landing__info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 1.5rem;
}

.spoed-landing__info-card {
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  padding: 20px;
  box-shadow: var(--sp-shadow);
  transition: box-shadow var(--sp-transition), transform var(--sp-transition);
}

.spoed-landing__info-card:hover {
  box-shadow: var(--sp-shadow-hover);
  transform: translateY(-2px);
}

.spoed-landing__info-icon {
  width: 44px;
  height: 44px;
  background: var(--sp-teal-soft);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.spoed-landing__info-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--sp-teal);
  fill: none;
  stroke-width: 2;
}

.spoed-landing__info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sp-navy);
  margin: 0 0 0.35rem;
}

.spoed-landing__info-card p {
  font-size: 0.85rem;
  color: var(--sp-muted);
  margin: 0;
  line-height: 1.6;
}

/* Callout banner */
.spoed-landing__callout {
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  border-left: 4px solid var(--sp-teal);
  border-radius: 0 var(--sp-radius-sm) var(--sp-radius-sm) 0;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.spoed-landing__callout-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--sp-teal-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spoed-landing__callout-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--sp-teal);
  fill: none;
  stroke-width: 2;
}

.spoed-landing__callout-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sp-navy);
  margin: 0 0 0.25rem;
}

.spoed-landing__callout-content p {
  font-size: 0.85rem;
  color: var(--sp-muted);
  margin: 0;
  line-height: 1.6;
}

.spoed-landing__callout-content a {
  color: var(--sp-teal);
  font-weight: 600;
  text-decoration: none;
}

.spoed-landing__callout-content a:hover {
  text-decoration: underline;
}

/* ── Map Info Card (complete, self-contained) ────── */

.spoed-landing .map-info-card {
  padding: 12px;
  min-width: 220px;
  max-width: 300px;
  font-family: var(--sp-font);
}

.spoed-landing .map-info-card .title {
  margin-bottom: 4px;
}

.spoed-landing .map-info-card .title a {
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-navy) !important;
  text-decoration: none;
  line-height: 1.3;
}

.spoed-landing .map-info-card .title a:hover {
  color: var(--sp-teal) !important;
}

.spoed-landing .map-info-card .address {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 6px;
}

.spoed-landing .map-info-card .phone {
  margin-bottom: 8px;
}

.spoed-landing .map-info-card .phone a {
  font-size: 13px;
  color: var(--sp-teal) !important;
  text-decoration: none;
}

.spoed-landing .map-info-card .phone--call-tracking a {
  display: inline-flex;
  align-items: center;
}

.spoed-landing .map-info-card .well {
  background: #f8f9fa;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
  min-height: unset !important;
}

.spoed-landing .map-info-card .totals {
  text-align: center;
  font-size: 13px;
  color: #555;
}

.spoed-landing .map-info-card .totals .user span {
  font-weight: 600;
  color: var(--sp-teal) !important;
  font-size: 14px;
}

.spoed-landing .map-info-card .go_to_practice {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  margin-top: 8px;
  background: var(--sp-teal) !important;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-family: var(--sp-font);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.spoed-landing .map-info-card .go_to_practice:hover {
  background: var(--sp-teal-dark) !important;
  color: #fff !important;
  text-decoration: none;
}

.spoed-landing .map-info-card--basic .go_to_practice {
  background: #8a929a !important;
}

.spoed-landing .map-info-card--basic .go_to_practice:hover {
  background: #5d6470 !important;
}

.spoed-landing .map-info-card .map-info-loading {
  padding: 6px 0;
  font-size: 12px;
  color: #888;
  font-style: italic;
}

.spoed-landing .gm-style-iw-c {
  border-radius: 10px !important;
  padding: 0 !important;
}

.spoed-landing .gm-style-iw-d {
  overflow: auto !important;
  max-height: none !important;
  padding: 0 !important;
}

.spoed-landing .gm-style-iw {
  padding: 0 !important;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 992px) {
  .spoed-landing__regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spoed-landing__hero h1 {
    font-size: 1.65rem;
  }

  .spoed-landing__map-sidebar {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .spoed-landing {
    padding: 0 16px 2rem;
  }

  .spoed-landing__hero {
    padding: 2rem 1.5rem 1.75rem;
  }

  .spoed-landing__hero h1 {
    font-size: 1.45rem;
  }

  .spoed-landing__hero-description {
    font-size: 0.875rem;
  }

  .spoed-landing__hero-ctas {
    flex-direction: column;
    gap: 10px;
  }

  .spoed-landing__hero-cta {
    width: 100%;
    justify-content: center;
  }

  .spoed-landing__section-title {
    font-size: 1.2rem;
  }

  .spoed-landing__info-grid {
    grid-template-columns: 1fr;
  }

  .spoed-landing__callout {
    flex-direction: column;
    gap: 10px;
  }

  /* Map: hide sidebar, show mobile pills */
  .spoed-landing__map-sidebar {
    display: none;
  }

  .spoed-landing__map-pills-mobile {
    display: flex;
  }

  .spoed-landing__map-wrapper {
    flex-direction: column;
  }

  .spoed-landing__map-canvas {
    min-height: 380px;
  }

  #spoed-map {
    min-height: 380px;
  }
}

@media (max-width: 576px) {
  .spoed-landing {
    padding: 0 12px 1.5rem;
  }

  .spoed-landing__hero {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .spoed-landing__hero h1 {
    font-size: 1.3rem;
  }

  .spoed-landing__hero-icon {
    width: 52px;
    height: 52px;
  }

  .spoed-landing__hero-icon svg {
    width: 26px;
    height: 26px;
  }

  .spoed-landing__hero-cta {
    font-size: 0.875rem;
    padding: 10px 20px;
  }

  .spoed-landing__regions-grid {
    grid-template-columns: 1fr;
  }

  .spoed-landing__region-card {
    padding: 12px 14px;
  }

  .spoed-landing__section-title {
    font-size: 1.1rem;
  }

  .spoed-landing__map-canvas {
    min-height: 320px;
  }

  #spoed-map {
    min-height: 320px;
  }
}

/* ── Reduced Motion ──────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .spoed-landing__region-card,
  .spoed-landing__info-card,
  .spoed-landing__hero-cta,
  .spoed-landing__region-arrow,
  .spoed-landing__region-pill,
  .spoed-landing__map-loading-spinner {
    transition: none;
    animation: none;
  }
}
