:root {
  color-scheme: light;
  --bg: #eef6f1;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #183127;
  --muted: #5d7267;
  --line: rgba(24, 49, 39, 0.12);
  --accent: #0d7f5f;
  --shadow: 0 20px 60px rgba(12, 44, 33, 0.16);
}




body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 127, 95, 0.18), transparent 30%),
    radial-gradient(circle at right top, rgba(242, 169, 0, 0.15), transparent 28%),
    linear-gradient(180deg, #f7fcf8 0%, var(--bg) 100%);
}


.main-contain.daily .wrapper {
  max-width: 100%;
      padding-top: 0;
}


button,
select {
  font: inherit;
}

.app-shell {
  margin: 0 auto;
  padding: 28px 0 0;
}

.hero {
  gap: 16px;
  max-width: var(--main-max-width);
    margin: 0 auto 22px;
    padding: 30px 0 40px;
}
.hero .primary-button {
    margin-top: 20px;
    display: none;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 2rem, 3.8rem);
  line-height: 1.03;
}

.hero-copy {
  margin: 12px 0 0;
      color: #555;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.map-panel,
.modal-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.map-panel,
.result-panel {
  border-radius: 28px;
  overflow: hidden;
}

.map-panel {
      left: -10px;
    width: calc(100% + 20px);
        background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.result-panel {
  padding-bottom: 48px;
  margin: 30px auto 0;
  max-width: var(--main-max-width);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    align-items: start;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px 0;
}

.panel-header h2,
.modal-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.map-panel .panel-header {
    position: absolute;
    left: 60px;
    top: 15px;
       z-index: 1000;
    background-color: #fff;
    display: block;
        border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
        border-radius: 10px;
            padding: 15px;
            width: 100%;
            max-width: 320px;
}
.map-panel .panel-header .map-header-text h6 {
    font-size: 15px;
    letter-spacing: 0;
}
.map-panel .panel-header .map-header-text p {
font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #555;
}
.map-panel .panel-header .map-actions {
  margin-top: 12px;
}
.map-panel .panel-header .map-actions #mapNearestButton {
       width: 100%;
    border-radius: 6px;
    background: var(--primary-btn-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
}
.map-panel .panel-header .map-actions #resetButton {
  display: none;
}

.map-actions,
.modal-actions,
.results-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #0d7f5f, #10956c);
  box-shadow: 0 12px 30px rgba(13, 127, 95, 0.26);
}

.ghost-button {
  background: rgba(13, 127, 95, 0.08);
  color: var(--accent);
}

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

.map-stage .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
    border-radius: 0;
}
.map-stage .leaflet-touch .leaflet-bar {
    border: none;
}

.map-canvas {
  width: 100%;
  height: min(78vh, 500px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.leaflet-container {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background: #dff2ec;
}

.leaflet-control-zoom a {
  border-radius: 12px !important;
}

.region-label {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 127, 95, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(12, 44, 33, 0.12);
}

.map-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
      max-width: var(--main-max-width);
    margin: 15px auto 0;
    padding: 0 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.available {
  background: #0d7f5f;
}

.legend-dot.nearest {
  background: #f2a900;
}


.result-count {
      font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}

.filters {
  padding: 18px 18px 0;
}

.filters label {
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
  padding:  5px 0;
}

.filters label span {
  font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    padding: 0 8px;
}
.filters select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

.filters select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.55);
}

.panel-filter {
      background: #108b65;
    backdrop-filter: blur(16px);
        border-radius: 28px;
  border: 1px solid #f1f1f1;
  color: #fff;
}


.results-actions {
  padding: 18px 22px;
      justify-content: space-between;
      font-size: 14px;
    font-weight: 500;
    line-height: 16px;
}
.results-actions #resultsNearestButton {
    background: #fff;
        color: #000;
}
.results-actions .ghost-button {
       color: #fff;
    background: transparent;
    outline: none;
}

.dealer-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 0 18px 12px;
  max-height: min(100vh, 760px);
  overflow: auto;
}

.dealer-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
  display: grid;
  gap: 10px;
  cursor: context-menu;
}

.dealer-card.nearest {
  border-color: rgba(242, 169, 0, 0.55);
  box-shadow: 0 16px 28px rgba(242, 169, 0, 0.12);
}

.dealer-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #000;
}

.dealer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.dealer-meta div span {
font-size: 12px;
    line-height: 20px;
    color: var(--primary-heading-color);
    font-weight: 500;
    text-decoration: underline;
}

.pill {
      display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-heading-color);
    color: #fff;
    width: 36px;
    height: 36px;
    margin-right: 4px;
        font-size: 12px;
    font-weight: 400;
    line-height: 14px;
}
.pill.nearest {
  background-color: #f2a900;
    width: unset;
    border-radius: 10px;
    padding: 0 10px;
}

.panel-count {
      padding: 12px 24px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.panel-count .panel-kicker,
.panel-count .result-count {
  margin: 0;
}

.dealer-card p {
  margin: 0;
      font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}
.dealer-position {
  font-size: 13px;
    font-style: italic;
    text-decoration: underline;
        display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}
.dealer-position svg {
      color: var(--primary-heading-color);
}

.marker {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.marker:hover {
  transform: translateY(-2px);
}

.map-pin {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: #0d7f5f;
  transform: rotate(-45deg);
  border: 4px solid #ffffff;
}

.map-pin span {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.marker.nearest .map-pin {
  fill: #f2a900;
  background: #f2a900;
}

.map-pin.nearest {
  background: #f2a900;
}

.marker-float {
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9, 24, 18, 0.56);
  padding: 18px;
  z-index: 999999;
}

.modal-backdrop[aria-hidden="true"] {
  display: none;
}

.modal-card {
  width: min(92vw, 520px);
  border-radius: 28px;
  padding: 24px;
}
 
.modal-card p {
  margin: 12px 0 0;
}
.modal-card p.panel-kicker{
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
}
.modal-card p.modal-description {
      font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #333;
}

.modal-actions {
  margin-top: 22px;
  justify-content: flex-end;
  font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
.modal-actions .ghost-button {
      color: #333;
    font-weight: 400;
}


@media (max-width: 820px) {
  .hero,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding-top: 18px;
  }

  .map-canvas {
    height: min(66vh, 400px);
  }
}
