:root {
  --primary: #2A3266;
  --primary-dark: #e93f2f;
  --primary-soft: #fff1ef;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
}

button,
input,
a {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section {
  padding: 46px 0 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-section h1 {
  margin: 0;
  color: #0b1220;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-text {
  margin: 16px auto 26px;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 12px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.search-box,
.state-filter-box,
.country-filter-box {
  position: relative;
}

.search-box input,
.state-filter-box input,
.country-filter-box input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box input {
  padding: 0 20px 0 54px;
}

.state-filter-box input,
.country-filter-box input {
  height: 46px;
  padding: 0 16px 0 44px;
  box-shadow: none;
}

.search-box input:focus,
.state-filter-box input:focus,
.country-filter-box input:focus {
  border-color: rgba(255, 79, 62, 0.55);
  box-shadow: 0 0 0 5px rgba(255, 79, 62, 0.09);
}

.search-icon,
.state-filter-box span,
.country-filter-box span {
  position: absolute;
  top: 50%;
  left: 20px;
  color: var(--primary);
  font-size: 20px;
  transform: translateY(-50%);
}

.state-filter-box span,
.country-filter-box span {
  left: 15px;
  color: #687284;
  font-size: 18px;
}

.primary-btn,
.ghost-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  border-radius: var(--radius-sm);
  padding: 0 26px;
  border: 0;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 18px 28px rgba(255, 79, 62, 0.26);
}

.primary-btn:hover,
.ghost-btn:hover,
.outline-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  color: var(--primary);
  background: #ffffff;
  border: 1px solid rgba(255, 79, 62, 0.2);
  box-shadow: var(--shadow-soft);
}

.outline-btn {
  color: var(--primary);
  background: #fff8f7;
  border: 1px solid rgba(255, 79, 62, 0.35);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 34px auto 0;
  text-align: left;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(255, 79, 62, 0.18);
  font-size: 24px;
  font-weight: 800;
}

.feature-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.map-shell {
  position: relative;
  width: min(1440px, calc(100% - 40px));
  height: 470px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eaf1f8;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-status {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 500;
  max-width: min(520px, calc(100% - 40px));
  padding: 11px 15px;
  color: #273244;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.featured-card {
  position: absolute;
  top: 54px;
  right: 44px;
  z-index: 500;
  width: 300px;
  padding: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.store-image {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: start;
  height: 110px;
  margin-bottom: 12px;
  padding: 14px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(10, 18, 32, 0.1), rgba(10, 18, 32, 0.62)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0 2px, transparent 2px 36px),
    linear-gradient(135deg, #6b7280, #cbd5e1);
}

.store-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(10, 18, 32, 0.06), rgba(10, 18, 32, 0.68));
  pointer-events: none;
}

.store-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-image span {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card h3 {
  margin: 9px 0 3px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.featured-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.featured-card p .store-phone-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.featured-card p .store-phone-link:hover,
.featured-card p .store-phone-link:focus {
  text-decoration: underline;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.stars {
  color: var(--primary);
  letter-spacing: 1px;
  font-size: 13px;
}

.link-btn {
  width: 100%;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  text-align: left;
}

.custom-store-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  margin-left: -15px !important;
  margin-top: -30px !important;
  border-radius: 999px 999px 999px 3px;
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: 0 10px 20px rgba(255, 79, 62, 0.35);
  transform: rotate(-45deg);
}

.custom-store-marker::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffffff;
}

.custom-store-marker.active {
  background: #111827;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.28);
}

.custom-user-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  margin-left: -14px !important;
  margin-top: -14px !important;
  border-radius: 999px;
  background: #0ea5e9;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.16), 0 10px 24px rgba(14, 165, 233, 0.35);
}

.leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  width: 250px !important;
  margin: 16px;
}

.state-section,
.country-section {
  padding: 24px 0 0;
}

.state-section .container,
.country-section .container {
  width: min(1440px, calc(100% - 40px));
  padding: 24px 22px 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.state-filter-box,
.country-filter-box {
  width: min(280px, 100%);
}

.nearby-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  color: #334155;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
  align-items: start;
  padding-bottom: 20px;
}

.state-card {
  align-self: start;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.state-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  padding: 0 16px;
  color: var(--text);
  background: #ffffff;
  border: 0;
  text-align: left;
}

.state-title {
  display: flex;
  align-items: center;
  min-width: 0;
}

.state-title > span:last-child {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--primary);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 900;
}

.state-title strong {
  font-size: 17px;
  line-height: 1.2;
}

.state-title small {
  color: #697386;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.chevron {
  color: #697386;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.state-card.open .chevron {
  transform: rotate(180deg);
}

.location-list {
  display: none;
  border-top: 1px solid var(--border);
}

.state-card.open .location-list {
  display: block;
}

.location-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #eef2f7;
}

.location-item:last-child {
  border-bottom: 0;
}

.location-name {
  display: flex;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.pin-small {
  color: var(--primary);
  font-weight: 900;
}

.location-name strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.location-name small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.view-location {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
}


.country-heading {
  margin-bottom: 24px;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 18px;
  align-items: start;
}

.country-card {
  align-self: start;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
}

.country-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--text);
  background: #ffffff;
  border: 0;
  text-align: left;
}

.country-title {
  display: flex;
  align-items: center;
  min-width: 0;
}

.country-title > span:last-child {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.country-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.country-title strong {
  font-size: 16px;
  line-height: 1.2;
}

.country-title small {
  color: #697386;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.country-card.open .chevron {
  transform: rotate(180deg);
}

.country-location-list {
  display: none;
  border-top: 1px solid var(--border);
}

.country-card.open .country-location-list {
  display: block;
}

.country-location-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #eef2f7;
}

.country-location-item:last-child {
  border-bottom: 0;
}

.country-location-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #383f4b;
  font-size: 14px;
}

.country-location-item .view-location {
  font-size: 13px;
}

.cta-section {
  padding: 28px 0 60px;
}

.cta-card {
  display: grid;
  grid-template-columns: 180px 1fr auto auto;
  align-items: center;
  gap: 26px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff2ee, #ffffff 48%, #ffe7e3);
  box-shadow: var(--shadow-soft);
}

.cta-visual {
  height: 94px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 36%, rgba(255,255,255,0.95) 0 9px, transparent 10px),
    radial-gradient(circle at 64% 36%, rgba(255,255,255,0.95) 0 9px, transparent 10px),
    linear-gradient(135deg, #94a3b8, #334155);
  overflow: hidden;
}

.cta-copy h2 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.cta-copy p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.cta-btn {
  min-width: 218px;
}

@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(2) {
    border-right: 0;
  }

  .states-grid,
  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    grid-template-columns: 120px 1fr;
  }

  .cta-btn {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .container,
  .map-shell {
    width: min(100% - 24px, 1200px);
  }

  .hero-section {
    padding-top: 34px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-card {
    min-height: auto;
    padding: 14px;
    border: 1px solid var(--border) !important;
    border-radius: 14px;
    background: #ffffff;
  }

  .map-shell {
    height: 610px;
  }

  .featured-card {
    top: auto;
    right: 12px;
    bottom: 70px;
    left: 12px;
    width: auto;
  }

  .map-status {
    bottom: 16px;
    left: 12px;
    max-width: calc(100% - 24px);
    border-radius: 14px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .state-filter-box,
  .country-filter-box {
    width: 100%;
  }

  .states-grid,
  .countries-grid {
    grid-template-columns: 1fr;
  }

  .location-item,
  .country-location-item {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .view-location {
    text-align: left;
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-visual {
    width: 180px;
    margin: 0 auto;
  }
}

/* Google Map version */
.map-error {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  color: #334155;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.72)),
    repeating-linear-gradient(45deg, #edf2f7 0 14px, #e5edf5 14px 28px);
  font-weight: 800;
}

.google-user-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0ea5e9;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.16), 0 10px 24px rgba(14, 165, 233, 0.35);
}

.gm-style-iw-chr {
  min-height: 0;
}
