:root {
  --primary: #ff7a00;
  --primary-hover: #e86d00;
  --primary-soft: #fff1e2;
  --secondary: #cfeeb3;
  --secondary-strong: #71b34a;
  --secondary-soft: #f3faea;
  --bg-light: #fffdfa;
  --bg-muted: #f7f8f2;
  --surface: #ffffff;
  --surface-alt: #fffaf4;
  --border: #ece6dc;
  --border-strong: #ddd3c4;
  --text-dark: #172033;
  --text-muted: #667085;
  --text-soft: #8c94a6;
  --petrol-color: #ef4444;
  --cng-color: #2f9cf4;
  --success: #22a05a;
  --shadow-sm: 0 10px 30px rgba(23, 32, 51, 0.06);
  --shadow-md: 0 18px 48px rgba(23, 32, 51, 0.1);
  --shadow-lg: 0 24px 70px rgba(23, 32, 51, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shell-width: 1180px;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-devanagari: "Noto Serif Devanagari", "Nirmala UI", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(207, 238, 179, 0.45), transparent 24%),
    linear-gradient(180deg, #fffcf8 0%, #ffffff 34%, #f8fbf4 100%);
  line-height: 1.6;
  padding-top: 94px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(var(--shell-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(207, 238, 179, 0.5));
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 230, 220, 0.9);
  box-shadow: 0 8px 26px rgba(23, 32, 51, 0.05);
}

.nav-shell {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-dark);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-links > a {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--text-dark);
  background: rgba(255, 122, 0, 0.08);
}

.btn-login,
.header-action-btn,
.filter-btn,
.btn-plan-trip,
.popup-nav-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--text-dark);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.14);
}

.btn-login:hover {
  transform: translateY(-1px);
  background: #111827;
}

.nav-login-link {
  margin-left: 0.35rem;
}

#authSection {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#profileBox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.12);
  cursor: pointer;
}

#userPhoto {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.14);
}

#userName {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

#dropdownMenu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 170px;
  padding: 0.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(236, 230, 220, 0.95);
  box-shadow: var(--shadow-md);
}

#dropdownMenu .btn-login {
  width: 100%;
}

.btn-logout {
  background: #ef4444;
}

.btn-logout:hover {
  background: #dc2626;
}

.hero-strip,
.about-hero {
  padding: 1rem 0 1.75rem;
}

.hero-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hero-copy,
.hero-banner-card,
.about-hero-card,
.map-card,
.about-card,
.value-card,
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(236, 230, 220, 0.95);
  box-shadow: var(--shadow-sm);
}

.hero-copy,
.hero-banner-card,
.about-hero-card {
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 2rem 2.2rem;
}

.hero-copy h1,
.about-hero-card h1,
.map-heading h2,
.panel-heading h2,
.about-brand h2,
.founder-content h2,
.value-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 11.5ch;
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.hero-copy p {
  max-width: 60ch;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-banner-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  min-height: 170px;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(255, 255, 255, 0.94)),
    linear-gradient(180deg, rgba(207, 238, 179, 0.3), rgba(255, 255, 255, 0.9));
}

.hero-banner-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(23, 32, 51, 0.08);
  color: var(--text-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-banner-card p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-banner-card span:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
}

.map-card {
  padding: 1.5rem;
  border-radius: 30px;
}

.map-panel-header,
.panel-heading,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map-panel-header {
  margin-bottom: 1.2rem;
}

.map-heading p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.map-heading h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.map-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-action-btn {
  min-height: 44px;
  padding: 0.75rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.header-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(23, 32, 51, 0.08);
}

.header-action-btn.accent {
  background: linear-gradient(135deg, var(--primary), #ff962f);
  border-color: transparent;
  color: #ffffff;
}

.map-stats-grid,
.feature-cards,
.values-section {
  display: grid;
  gap: 1rem;
}

.map-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.15rem;
}

.stat-card {
  min-height: 108px;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(236, 230, 220, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.stat-card-primary {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.14), rgba(255, 255, 255, 0.96));
}

.stat-card-ev {
  background: linear-gradient(135deg, rgba(113, 179, 74, 0.14), rgba(255, 255, 255, 0.98));
}

.stat-card-petrol {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(255, 255, 255, 0.98));
}

.stat-card-cng {
  background: linear-gradient(135deg, rgba(47, 156, 244, 0.1), rgba(255, 255, 255, 0.98));
}

.map-wrapper {
  position: relative;
  min-height: 460px;
  height: min(66vh, 640px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(236, 230, 220, 0.95);
  background: #eef2e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.map-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 122, 0, 0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.locate-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(236, 230, 220, 0.9);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.locate-btn:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

/* ── City Selector (floating on map) ── */
.city-selector {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 1000;
  display: flex;
  gap: 5px;
  padding: 5px 6px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.city-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.22s ease;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.city-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.city-btn.active {
  background: linear-gradient(135deg, var(--primary), #ff9330);
  color: #fff;
  box-shadow: 0 3px 12px rgba(255, 122, 0, 0.35);
}

.city-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.city-selector.loading {
  animation: selectorPulse 1.2s ease-in-out infinite;
}

@keyframes selectorPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 4px 24px rgba(255, 122, 0, 0.35); }
}

.user-marker {
  width: 20px;
  height: 20px;
  background: #2f9cf4;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47, 156, 244, 0.18);
}

.toast-notification {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 1001;
  min-width: 220px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(23, 32, 51, 0.92);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map-controls {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  width: min(230px, calc(100% - 2.5rem));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(236, 230, 220, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.filter-btn {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(221, 211, 196, 0.8);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.filter-btn:hover,
.filter-btn:focus {
  color: var(--text-dark);
  border-color: rgba(255, 122, 0, 0.35);
  outline: none;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #ff9a32);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(255, 122, 0, 0.2);
}

.filter-btn[data-type="EV"]:focus {
  background: rgba(113, 179, 74, 0.14);
  border-color: rgba(113, 179, 74, 0.4);
}

.filter-btn[data-type="petrol"]:focus {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.filter-btn[data-type="CNG"]:focus {
  background: rgba(47, 156, 244, 0.12);
  border-color: rgba(47, 156, 244, 0.35);
}

.map-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.summary-chip {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(236, 230, 220, 0.85);
}

.summary-chip span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-chip strong {
  margin-top: 0.18rem;
  display: block;
  color: var(--text-dark);
  font-size: 1.22rem;
  font-weight: 800;
}

.panel-heading h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}

.feature-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.card {
  position: relative;
  padding: 1.5rem;
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.1), transparent 70%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 0, 0.2);
  box-shadow: var(--shadow-md);
}

.interactive-card {
  cursor: pointer;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.15), rgba(207, 238, 179, 0.55));
  color: var(--primary);
}

.card-label {
  display: block;
  margin-top: 1.2rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--text-dark);
}

.card p {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-card-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.btn-plan-trip {
  min-height: 50px;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), #ff9330);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(255, 122, 0, 0.2);
}

.btn-plan-trip:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 122, 0, 0.28);
}

.feature-card-btn {
  width: 100%;
}

.feature-card-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.2);
}

.feature-card-danger:hover {
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.26);
}

.future-grid .future-card .card-icon {
  color: var(--secondary-strong);
}

.thank-you-section {
  padding: 1.5rem 0 0.65rem;
}

.thank-you-content {
  width: min(var(--shell-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(207, 238, 179, 0.42));
  border: 1px solid rgba(236, 230, 220, 0.95);
  text-align: center;
}

.thank-you-content h2 {
  font-family: var(--font-devanagari);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--primary);
  line-height: 1.1;
}

.thank-you-content p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-weight: 600;
}

.thank-you-compact {
  padding-top: 0;
}

.app-footer {
  padding: 0.75rem 0 2.4rem;
}

.footer-content {
  padding: 1.4rem 1.6rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(236, 230, 220, 0.95);
  box-shadow: var(--shadow-sm);
}

.footer-left h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.footer-left h4 span {
  color: var(--primary);
}

.footer-left p,
.footer-right p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-center a {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.footer-center a:hover {
  color: var(--text-dark);
  background: rgba(255, 122, 0, 0.08);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(23, 32, 51, 0.32);
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: min(560px, 100%);
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(236, 230, 220, 0.95);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.25s ease;
}

.modal-overlay.hidden .modal-content {
  transform: translateY(18px) scale(0.98);
}

.modal-content-compact {
  width: min(420px, 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.35rem 1.45rem;
  border-bottom: 1px solid rgba(236, 230, 220, 0.95);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(207, 238, 179, 0.2));
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.close-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
  font-size: 1.4rem;
}

.close-btn:hover {
  color: var(--text-dark);
}

.modal-body {
  display: grid;
  gap: 1.1rem;
  padding: 1.45rem;
}

.modal-copy {
  text-align: center;
  color: var(--text-muted);
}

.form-group label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.service-options,
.start-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.service-options label,
.start-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(247, 248, 242, 0.95);
  border: 1px solid rgba(236, 230, 220, 0.9);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

input[type="radio"] {
  accent-color: var(--primary);
}

.trip-input {
  width: 100%;
  min-height: 50px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(221, 211, 196, 0.95);
  background: #ffffff;
  color: var(--text-dark);
}

.trip-input:focus {
  outline: none;
  border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.08);
}

.trip-input.hidden {
  display: none;
}

.submit-btn {
  width: 100%;
}

.custom-marker {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid #ffffff;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.22);
}

.marker-ev {
  background: var(--secondary-strong);
}

.marker-petrol {
  background: var(--petrol-color);
}

.marker-cng {
  background: var(--cng-color);
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
}

.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  border: none !important;
  color: var(--text-dark) !important;
}

.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 22px !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
}

.leaflet-popup-tip {
  box-shadow: var(--shadow-sm) !important;
}

.station-popup {
  min-width: 220px;
  padding: 1.2rem;
  text-align: center;
}

.popup-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.popup-badge {
  display: inline-flex;
  margin: 0 0.2rem 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.popup-badge.EV {
  background: var(--secondary-strong);
}

.popup-badge.petrol {
  background: var(--petrol-color);
}

.popup-badge.CNG {
  background: var(--cng-color);
}

.smart-confidence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.smart-confidence-high {
  background: #16a34a;
}

.smart-confidence-medium {
  background: #f59e0b;
}

.smart-confidence-low {
  background: #ef4444;
}

.smart-explanation {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.popup-nav-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #ff9a32);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.popup-nav-btn:hover {
  transform: translateY(-1px);
}

.about-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 260px);
  gap: 2.5rem;
  align-items: center;
  padding: 2.4rem;
}

.about-hero-card h1 {
  max-width: 15ch;
  margin-top: 1rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.about-hero-card p {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--text-muted);
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding-bottom: 3rem;
}

.about-card {
  padding: 1.8rem;
  border-radius: 30px;
}

.founder-section {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.founder-image {
  width: 100%;
  height: 320px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.founder-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.subtitle {
  margin-top: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
}

.subtitle span {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.founder-content p,
.about-brand p,
.value-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.founder-content p + p,
.about-brand p + p {
  margin-top: 1rem;
}

.about-brand h2 {
  margin-top: 0.95rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.brand-logo-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: contain;
  border: 4px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  padding: 18px; /* frames the logo beautifully as a circular badge */
  transition: transform 0.3s ease;
}

.about-hero-card:hover .brand-logo-img {
  transform: scale(1.03) rotate(3deg);
}

@media (max-width: 900px) {
  .about-hero-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  /* On mobile, place the logo on TOP of the text column for better structural hierarchy */
  .about-hero-card .hero-content {
    order: 2;
  }
  
  .about-hero-card .brand-logo-img {
    order: 1;
  }
}

.values-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-card {
  padding: 1.7rem;
  border-radius: 26px;
}

.value-card h3 {
  margin-top: 0.9rem;
  font-size: 1.35rem;
}

@media (max-width: 1100px) {
  .hero-strip-inner,
  .feature-cards,
  .map-stats-grid,
  .map-summary-strip,
  .values-section,
  .founder-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1,
  .about-hero-card h1 {
    max-width: none;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 88px;
  }

  .nav-shell {
    min-height: 88px;
  }

  .hero-strip-inner,
  .feature-cards,
  .map-stats-grid,
  .map-summary-strip,
  .values-section,
  .founder-section {
    grid-template-columns: 1fr;
  }

  .map-panel-header,
  .panel-heading,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-center {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(var(--shell-width), calc(100% - 1rem));
  }

  .nav-shell {
    gap: 0.8rem;
  }

  .logo {
    font-size: 1.45rem;
  }

  .nav-links {
    gap: 0.35rem;
  }

  .nav-links > a {
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }

  .btn-login,
  .header-action-btn {
    min-height: 42px;
    padding: 0.68rem 0.95rem;
  }

  #userName {
    max-width: 92px;
  }

  .hero-copy,
  .hero-banner-card,
  .about-hero-card,
  .map-card,
  .about-card,
  .card,
  .value-card,
  .footer-content {
    border-radius: 22px;
  }

  .hero-copy,
  .about-hero-card,
  .map-card,
  .about-card,
  .card,
  .value-card {
    padding: 1.2rem;
  }

  .map-wrapper {
    min-height: 420px;
    height: 58vh;
    border-radius: 22px;
  }

  .map-controls {
    right: 0.85rem;
    bottom: 0.85rem;
    width: calc(100% - 1.7rem);
  }

  .locate-btn,
  .toast-notification {
    top: 0.85rem;
  }

  .toast-notification {
    width: calc(100% - 1.7rem);
    min-width: 0;
  }

  .service-options,
  .start-options {
    flex-direction: column;
  }
}
