/* Shared styles for the two single-purpose landing pages (near me / route).
   Same look as the home page, with a single search panel per page. */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #17283e 0%, #244160 60%, #2b5077 100%);
  padding: 24px;
  color: #e8edf3;
}

/* ── HERO ── */
.hero { text-align: center; margin-bottom: 20px; }
.hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: #e8edf3;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.hero p { margin-top: 8px; font-size: 15px; color: #b0bfcc; }

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(61,142,240,0.1);
  border: 1px solid rgba(61,142,240,0.25);
  border-radius: 20px;
  color: #7ab3f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
}
.lang-toggle:hover { background: rgba(61,142,240,0.18); }

/* ── SEARCH PANEL ── */
.search-mode {
  --accent:        #3d8ef0;
  --accent-soft:   #7ab3f0;
  --btn-bg:        #22384f;
  --btn-border:    #3a5c82;
  --btn-bg-hover:  #1a3558;
  --panel-bg:      rgba(30,47,66,0.55);
  --panel-border:  #4a7cb0;
  width: 100%;
  max-width: 320px;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
}

.mode-label {
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

/* ── INPUTS ── */
.field { position: relative; margin-bottom: 8px; }
.field:last-of-type { margin-bottom: 0; }

.field input {
  width: 100%;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2d4460;
  background: #1e2f42;
  color: #e8edf3;
  outline: none;
}
.field input::placeholder { color: rgba(255,255,255,0.75); }
.field input:focus { border-color: var(--accent); }
.field input.filled { border-color: var(--accent-soft); }
.field input.missing { border-color: #e05a5a; }
.field input.has-gps-btn { padding-right: 38px; }
.field.centered input { text-align: center; }

.gps-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.gps-btn:hover { opacity: 1; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1e2f42;
  border: 1px solid #2d4460;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.city-option {
  padding: 10px 14px;
  font-size: 14px;
  color: #e8edf3;
  cursor: pointer;
}
.city-option:hover, .city-option.active { background: var(--accent); }

/* ── FUEL BUTTONS ── */
.fuel-cards {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.fuel-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 8px;
  border-radius: 12px;
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fuel-card:hover {
  border-color: var(--accent);
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
}
.fuel-card:active { transform: scale(0.97); }
.fuel-card:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.fuel-card .fuel-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.fuel-card .icon { font-size: 17px; line-height: 1; }
.fuel-card .label { font-size: 15px; font-weight: 700; color: #e8edf3; }
.fuel-card .sublabel {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-soft);
  margin-top: 2px;
}

/* ── TRUST BADGES ── */
.trust-badges {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-badges span {
  font-size: 12px;
  color: #4a8a5a;
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.2);
  border-radius: 20px;
  padding: 4px 12px;
}

/* ── QUICK LINKS ── */
.quick-links { width: 100%; max-width: 360px; margin-top: 28px; }
.quick-links-title {
  font-size: 12px;
  color: #4a6a8a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  text-align: center;
}
.quick-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.quick-links-row a {
  padding: 6px 14px;
  background: rgba(61,142,240,0.08);
  border: 1px solid rgba(61,142,240,0.2);
  border-radius: 20px;
  color: #7ab3f0;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.quick-links-row a:hover {
  background: rgba(61,142,240,0.18);
  border-color: rgba(61,142,240,0.5);
  color: #aed0f8;
}
.quick-links-row a.national {
  background: rgba(39,174,96,0.08);
  border-color: rgba(39,174,96,0.25);
  color: #5ecb8a;
}
.quick-links-row a.national:hover {
  background: rgba(39,174,96,0.16);
  border-color: rgba(39,174,96,0.5);
}

/* ── GPS NOTE ── */
.gps-note {
  font-size: 12px;
  color: #8a9bb0;
  text-align: center;
  max-width: 300px;
  margin-top: 14px;
  line-height: 1.5;
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  body { padding: 16px; justify-content: flex-start; padding-top: 28px; }
  .hero { margin-bottom: 14px; }
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 13px; }
  .search-mode { padding: 12px; }
  .quick-links { margin-top: 18px; }
}

/* ── PORTRAIT ONLY ON PHONES ──
   A browser tab cannot be orientation-locked (only an installed PWA can,
   via manifest.json), so short landscape viewports get an interstitial
   instead. Height-based so tablets and desktops are never affected. */
#rotate-overlay { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  #rotate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    background: #0f1c2e;
    color: #e8edf3;
  }
  #rotate-overlay .rotate-icon { font-size: 38px; }
  #rotate-overlay strong { font-size: 16px; }
  #rotate-overlay span { font-size: 13px; color: #b0bfcc; }
}
