/* ═══════════════════════════════════════════
   LinaMap — Cyberpunk Lite
   Beyaz Zemin · Keskin Kenarlar · Canlı Renkler
   ═══════════════════════════════════════════ */
:root {
  --bg: #fafafa;
  --bg2: #fff0f3;
  --card: #fff5f7;
  --card2: #ffe4ea;
  --neon: #ff1744;
  --neon2: #d50032;
  --neon-soft: #ff6b8a;
  --white: #0f0f1a;
  --text: #1a1a2e;
  --text2: #44445e;
  --text3: #7a7a9e;
  --border: rgba(255, 23, 68, .14);
  --border2: rgba(255, 23, 68, .30);
  --glow: 0 0 16px rgba(255, 23, 68, .20), 0 0 4px rgba(255, 23, 68, .10);
  --shadow: 0 2px 12px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .04);
  --tr: .18s cubic-bezier(.4, 0, .2, 1);
  --nav-h: 64px;
  --hdr-h: 48px;
  --radius: 10px;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased
}

.hidden {
  display: none !important
}

::selection {
  background: var(--neon-soft);
  color: #fff
}

::-webkit-scrollbar {
  width: 4px
}

::-webkit-scrollbar-track {
  background: var(--bg2)
}

::-webkit-scrollbar-thumb {
  background: var(--neon);
  border-radius: 8px
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%)
  }

  to {
    transform: translateY(0)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0
  }

  100% {
    background-position: 200% 0
  }
}

.shimmer {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite
}

/* ── Loading ── */
#loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #fff5f7, #fff, #ffeef2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s
}

#loadingScreen.fade-out {
  opacity: 0;
  pointer-events: none
}

.load-inner {
  text-align: center
}

.load-logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(230, 25, 75, .15))
}

.load-sub {
  font-size: 10px;
  color: var(--text2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 10px 0 16px
}

.load-bar-wrap {
  width: 160px;
  height: 3px;
  background: var(--card2);
  margin: 0 auto 8px;
  overflow: hidden;
  border-radius: 4px
}

.load-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-soft), var(--neon));
  transition: width .3s;
  border-radius: 4px
}

.load-status {
  font-size: 10px;
  color: var(--text3)
}

/* ── App ── */
.app {
  height: 100%;
  display: flex;
  flex-direction: column
}

/* ── Header ── */
.page-header {
  height: var(--hdr-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 2px solid var(--border2);
  flex-shrink: 0
}

.header-logo {
  height: 45px;
  width: auto
}

.header-center {
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  color: var(--neon)
}

/* ── Page Body ── */
.page-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column
}

/* ── Search ── */
.search-section {
  padding: 8px 12px;
  background: #fff;
  position: relative;
  z-index: 500;
  flex-shrink: 0
}

.search-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 6px
}

.s-tab {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text3);
  font-family: 'Poppins';
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  text-transform: uppercase;
  letter-spacing: .5px
}

.s-tab:first-child {
  border-radius: 6px 0 0 6px
}

.s-tab:last-child {
  border-radius: 0 6px 6px 0
}

.s-tab.active {
  background: var(--neon);
  color: #fff;
  border-color: var(--neon)
}

.search-input-wrap {
  position: relative
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 34px 10px 34px;
  background: #fff;
  border: 2px solid var(--border2);
  color: var(--white);
  font-family: 'Poppins';
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: all var(--tr);
  border-radius: 6px
}

.search-input-wrap input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(255, 23, 68, .12), var(--glow)
}

.search-input-wrap input::placeholder {
  color: var(--text3)
}

.search-svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none
}

.clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--neon);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%
}

/* ── Search Dropdown ── */
.search-results {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 100%;
  background: #fff;
  z-index: 700;
  animation: fadeIn .12s ease;
  border: 1px solid var(--border2);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  max-height: 45vh;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  color: var(--text2);
  background: var(--card);
  flex-shrink: 0
}

.close-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--neon);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--tr)
}

.close-btn:hover {
  background: var(--neon);
  color: #fff
}

.results-list {
  flex: 1;
  overflow-y: auto;
  padding: 2px 6px
}

.result-item {
  padding: 8px 10px;
  margin-bottom: 1px;
  cursor: pointer;
  transition: all var(--tr);
  border-left: 3px solid var(--border);
  border-radius: 0 6px 6px 0;
  animation: fadeIn .12s ease backwards
}

.result-item:hover {
  background: var(--card);
  border-left-color: var(--neon)
}

.item-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--white)
}

.item-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 8px;
  font-weight: 700;
  margin-right: 4px;
  background: var(--neon);
  color: #fff;
  border-radius: 3px
}

.item-badge.route-badge {
  background: var(--neon2)
}

.item-sub {
  font-size: 9px;
  color: var(--text3)
}

.no-results {
  text-align: center;
  padding: 16px;
  color: var(--text3);
  font-size: 11px
}

/* ── Map ── */
.map-wrap {
  position: relative;
  height: 180px;
  min-height: 180px;
  flex: none;
  border-bottom: 1px solid var(--border)
}

#map {
  width: 100%;
  height: 100%
}

.locate-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 1000;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--neon);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border-radius: 50%
}

.leaflet-popup-content-wrapper {
  background: #fff !important;
  border: 1px solid var(--border2) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow) !important
}

.leaflet-popup-tip {
  background: #fff !important
}

.leaflet-popup-content {
  font-family: 'Poppins' !important;
  font-size: 11px !important;
  color: var(--text) !important;
  margin: 8px 12px !important
}

.leaflet-popup-close-button {
  color: var(--neon) !important
}

/* ── Content Area ── */
.content-area {
  flex: 1;
  overflow-y: auto;
  background: var(--bg)
}

/* ── Recent Searches ── */
.recent-section {
  padding: 10px 12px
}

.recent-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border)
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--tr)
}

.recent-item:hover {
  border-color: var(--neon-soft);
  box-shadow: var(--glow)
}

.recent-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .4
}

.recent-item-info {
  flex: 1;
  min-width: 0
}

.recent-item-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.recent-item-sub {
  font-size: 9px;
  color: var(--text3)
}

.recent-item-badge {
  padding: 2px 8px;
  font-size: 8px;
  font-weight: 800;
  background: var(--neon);
  color: #fff;
  border-radius: 3px;
  letter-spacing: .5px;
  text-transform: uppercase
}

.recent-item-badge.route {
  background: var(--neon2)
}

.recent-empty {
  text-align: center;
  padding: 16px;
  color: var(--text3);
  font-size: 11px
}

.recent-item-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0
}

.recent-item-wrap .recent-item {
  flex: 1;
  min-width: 0
}

.recent-del {
  width: 28px;
  background: #fce7f3;
  border: 1px solid #fecdd3;
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6194b;
  transition: all var(--tr);
  flex-shrink: 0
}

.recent-del:hover {
  background: #e6194b;
  color: #fff
}

.recent-item-wrap .recent-item {
  border-radius: 8px 0 0 8px
}

/* ── Detail Area (Inline) ── */
.detail-area {
  animation: fadeIn .2s ease
}

/* Detail Header */
.detail-hdr {
  padding: 12px 14px;
  background: #fff;
  border-bottom: 2px solid var(--border2);
  display: flex;
  align-items: flex-start;
  gap: 10px
}

.detail-hdr-info {
  flex: 1;
  min-width: 0
}

.detail-hdr-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.detail-hdr-sub {
  font-size: 10px;
  color: var(--neon);
  font-weight: 600;
  margin-top: 2px
}

.detail-hdr-badges {
  display: flex;
  gap: 3px;
  margin-top: 4px;
  flex-wrap: wrap
}

.d-badge {
  padding: 2px 8px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 3px
}

.d-badge.pink {
  background: var(--neon-soft);
  color: #fff
}

.d-badge.red {
  background: var(--neon);
  color: #fff
}

.d-badge.dark {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border)
}

.detail-close {
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--border);
  color: var(--neon);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--tr)
}

.detail-close:hover {
  background: var(--neon);
  color: #fff
}

/* Detail Tabs */
.detail-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch
}

.detail-tabs::-webkit-scrollbar {
  display: none
}

.d-tab {
  flex: none;
  padding: 9px 14px;
  font-family: 'Poppins';
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--tr);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .3px
}

.d-tab.active {
  color: var(--neon);
  border-bottom-color: var(--neon)
}

/* Detail Tab Content */
.detail-panel {
  padding: 10px 12px;
  display: none;
  animation: fadeIn .15s ease
}

.detail-panel.active {
  display: block
}

/* ── Switch Control ── */
.switch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px
}

.switch-label {
  flex: 1;
  font-size: 10px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.switch-btn {
  width: 28px;
  height: 28px;
  background: var(--neon);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform .3s
}

.switch-btn:hover {
  transform: rotate(180deg)
}

.switch-label.dim {
  color: var(--text3);
  font-weight: 400
}

/* ── Day Type Selector ── */
.day-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 10px
}

.day-tab {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text3);
  font-family: 'Poppins';
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: all var(--tr);
  border-radius: 4px
}

.day-tab.active {
  background: var(--neon);
  color: #fff;
  border-color: var(--neon)
}

/* ── Bus Arrival Card ── */
.bus-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #fff;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  margin-bottom: 4px;
  animation: fadeIn .15s ease backwards;
  transition: all var(--tr)
}

.bus-card:hover {
  box-shadow: var(--glow)
}

.bus-card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: .6
}

.bus-card-info {
  flex: 1;
  min-width: 0
}

.bus-card-hat {
  font-size: 11px;
  font-weight: 800;
  color: var(--white)
}

.bus-card-dest {
  font-size: 9px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.bus-card-eta {
  text-align: right;
  flex-shrink: 0
}

.bus-card-time {
  font-size: 14px;
  font-weight: 800;
  color: var(--neon);
  letter-spacing: -.5px
}

.bus-card-dist {
  font-size: 8px;
  color: var(--text3)
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse 1.5s infinite
}

/* ── Route Stop List ── */
.stop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  cursor: pointer;
  transition: all var(--tr);
  border-radius: 6px
}

.stop-row:hover {
  background: var(--card)
}

.stop-seq {
  width: 22px;
  height: 22px;
  background: var(--bg2);
  color: var(--text2);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0
}

.stop-row:first-child .stop-seq,
.stop-row:last-child .stop-seq {
  background: var(--neon);
  color: #fff
}

.stop-row-info {
  flex: 1;
  min-width: 0
}

.stop-row-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.stop-row-code {
  font-size: 9px;
  color: var(--text3)
}

/* ── Time Chips ── */
.time-chip {
  display: inline-block;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(230, 25, 75, .08);
  color: var(--neon);
  border: 1px solid var(--border);
  margin: 1px;
  border-radius: 3px
}

.section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border)
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 11px;
  border-bottom: 1px solid rgba(0, 0, 0, .03)
}

.info-row .label {
  color: var(--text2)
}

.info-row .value {
  font-weight: 600;
  color: var(--white)
}

.empty-msg {
  text-align: center;
  padding: 20px;
  color: var(--text3);
  font-size: 11px
}

.hat-name-card {
  padding: 8px;
  background: var(--card);
  border-left: 3px solid var(--neon-soft);
  border-radius: 0 6px 6px 0;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  transition: all var(--tr)
}

.hat-name-card:hover {
  border-left-color: var(--neon);
  background: var(--card2)
}

.hat-name-card .hat-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--neon);
  margin-right: 4px
}

/* ── Popup ── */
.popup-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 3px
}

.popup-badge {
  display: inline-block;
  padding: 1px 6px;
  background: var(--neon);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  margin-bottom: 4px
}

.popup-info {
  font-size: 10px;
  color: var(--text2);
  line-height: 1.6
}

.popup-info strong {
  color: var(--white)
}

.popup-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 12px;
  background: var(--neon);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Poppins';
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 5px
}

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background-color: rgba(245, 73, 144, 0.95);
  backdrop-filter: blur(10px);
  width: 300px;
  height: 50px;
  align-items: center;
  justify-content: space-around;
  border-radius: 25px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px, rgba(245, 73, 144, 0.5) 5px 10px 15px;
  z-index: 1000;
  padding: 0 10px;
}

.nav-btn {
  outline: 0 !important;
  border: 0 !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all ease-in-out 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.nav-btn:hover, .nav-btn.active {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-btn .icon {
  font-size: 20px;
  fill: currentColor;
  stroke: currentColor;
  width: 20px;
  height: 20px;
}

/* Middle Add Button */
.nav-btn.center-add-btn {
  background: linear-gradient(135deg, #ff1744, #d50032);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transform: translateY(-20px);
  box-shadow: 0 8px 20px rgba(255, 23, 68, 0.6);
  border: 4px solid #fafafa;
}

.nav-btn.center-add-btn:hover {
  transform: translateY(-24px);
  box-shadow: 0 12px 24px rgba(255, 23, 68, 0.8);
}

.nav-btn.center-add-btn .icon {
  font-size: 26px;
  width: 26px;
  height: 26px;
}

.nav-btn span {
  display: none;
}

.nav-icon {
  width: 18px;
  height: 18px
}

.nav-icon-svg {
  width: 18px;
  height: 18px
}

.nav-btn:not(.active) .nav-icon {
  filter: grayscale(1) opacity(.4)
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none
}

.toast {
  pointer-events: auto;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--border2);
  font-size: 11px;
  color: var(--text);
  max-width: 300px;
  animation: fadeIn .2s ease;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow), var(--glow)
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-soft), var(--neon));
  border-radius: 8px 8px 0 0
}

.toast-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px
}

.toast-msg {
  font-size: 10px;
  color: var(--text2);
  line-height: 1.4
}

.toast-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 13px
}

.toast.exit {
  opacity: 0;
  transform: translateX(100%);
  transition: all .3s ease
}

/* ── Güzergâh Planlayıcı ── */
.route-planner {
  padding: 12px
}

.planner-card {
  background: #fff;
  padding: 14px;
  display: flex;
  gap: 10px;
  position: relative;
  border: 2px solid var(--border2);
  border-radius: 8px;
  box-shadow: var(--shadow)
}

.planner-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%
}

.dot-start {
  background: var(--neon-soft)
}

.dot-end {
  background: var(--neon)
}

.dot-line {
  width: 2px;
  height: 28px;
  background: var(--border2);
  border-radius: 2px
}

.planner-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.planner-field label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
  display: block
}

.planner-field input {
  width: 100%;
  padding: 9px;
  border: 1.5px solid var(--border2);
  background: #fff;
  font-family: 'Poppins';
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  outline: none;
  transition: all var(--tr);
  border-radius: 6px
}

.planner-field input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(230, 25, 75, .06)
}

.swap-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--neon);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%
}

.plan-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  color: #fff;
  border: none;
  font-family: 'Poppins';
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 6px;
  transition: all var(--tr);
  box-shadow: 0 4px 12px rgba(255, 23, 68, .25)
}

.plan-btn:hover {
  box-shadow: 0 6px 20px rgba(255, 23, 68, .35);
  transform: translateY(-1px)
}

#planMap {
  width: 100%;
  height: 220px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: none;
  border-radius: 8px
}

.plan-steps {
  margin-top: 10px
}

.step-card {
  padding: 8px;
  background: #fff;
  border: 1.5px solid var(--border2);
  margin-bottom: 4px;
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-radius: 6px;
  animation: fadeIn .15s ease backwards
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--neon);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%
}

.step-text {
  flex: 1;
  line-height: 1.4;
  color: var(--text)
}

.step-text strong {
  color: var(--neon)
}

.step-stop {
  font-weight: 600;
  color: var(--white)
}

.step-time {
  font-size: 9px;
  color: var(--neon);
  font-weight: 600
}

.step-meta {
  font-size: 9px;
  color: var(--text3)
}

.route-options-title,
.route-steps-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px
}

.route-steps-title {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border)
}

.route-option {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1.5px solid var(--border2);
  margin-bottom: 4px;
  cursor: pointer;
  transition: all var(--tr);
  border-radius: 6px
}

.route-option.active {
  border-color: var(--neon);
  box-shadow: var(--glow)
}

.ro-left {
  display: flex;
  align-items: center
}

.ro-color {
  width: 3px;
  height: 100%;
  min-height: 24px;
  border-radius: 2px
}

.ro-body {
  flex: 1
}

.ro-dur {
  font-size: 12px;
  color: var(--white)
}

.ro-dur strong {
  color: var(--white)
}

.ro-dist {
  font-size: 9px;
  color: var(--text3);
  margin-left: 4px
}

.ro-lines {
  font-size: 10px;
  font-weight: 600;
  color: var(--neon)
}

.ro-addr {
  font-size: 9px;
  color: var(--text3)
}

/* ── Favoriler ── */
.fav-tabs {
  display: flex;
  padding: 0 12px;
  margin-top: 8px;
  border-bottom: 1px solid var(--border)
}

.fav-tab {
  flex: 1;
  padding: 8px;
  border: none;
  font-family: 'Poppins';
  font-size: 10px;
  font-weight: 600;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--tr);
  text-transform: uppercase
}

.fav-tab.active {
  color: var(--neon);
  border-bottom-color: var(--neon)
}

.fav-content {
  padding: 12px
}

.empty-state {
  text-align: center;
  padding: 40px 16px
}

.empty-icon {
  width: 36px;
  height: 36px;
  opacity: .3;
  margin-bottom: 8px
}

.empty-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 3px
}

.empty-sub {
  font-size: 10px;
  color: var(--text3);
  line-height: 1.4
}

/* Google Autocomplete */
.pac-container {
  background: #fff !important;
  border: 1px solid var(--border2) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow) !important;
  font-family: 'Poppins' !important;
  z-index: 10000 !important
}

.pac-item {
  padding: 6px 10px !important;
  font-size: 11px !important;
  cursor: pointer !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important
}

.pac-item:hover {
  background: var(--card) !important
}

.pac-icon {
  display: none !important
}

.pac-item-query {
  font-weight: 600 !important;
  color: var(--white) !important
}

.pac-matched {
  color: var(--neon) !important;
  font-weight: 700 !important
}

@media(min-width:768px) {
  .page-body {
    max-width: 480px;
    margin: 0 auto;
    width: 100%
  }
}