/* Çekicin — Yol Ücreti Hesapla (özgün sayfa) */

.toll-page {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(11, 120, 227, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(255, 208, 0, 0.14), transparent 50%),
    linear-gradient(180deg, #eef3f9 0%, var(--bg) 42%, #e9eef6 100%);
}

.toll-hero {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
  color: #fff;
  overflow: hidden;
}

.toll-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #06101c 0%, #0a1a30 48%, #0b78e3 140%);
  z-index: 0;
}

.toll-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  animation: toll-grid 18s linear infinite;
}

.toll-hero-bg::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 140%;
  right: -8%;
  top: -20%;
  background: radial-gradient(circle at center, rgba(255, 208, 0, 0.22), transparent 68%);
  transform: rotate(12deg);
}

@keyframes toll-grid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

.toll-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.toll-eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 208, 0, 0.14);
  border: 1px solid rgba(255, 208, 0, 0.35);
  color: #ffe566;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.toll-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.toll-hero-title {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--yellow);
}

.toll-hero-lead {
  margin: 14px 0 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.toll-main {
  padding: 0 0 clamp(40px, 6vw, 72px);
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.toll-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.toll-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.toll-panel,
.toll-result,
.toll-map-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.toll-panel {
  padding: clamp(20px, 3vw, 28px);
  animation: toll-rise 0.55s ease both;
  position: relative;
  z-index: 3;
}

.toll-map-card {
  overflow: hidden;
  animation: toll-rise 0.65s ease both;
}

.toll-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.toll-map-cancel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.toll-map-cancel.is-hidden {
  display: none;
}

.toll-map {
  height: min(52vh, 420px);
  width: 100%;
  background: #dbe7f5;
  cursor: grab;
}

.toll-map.is-picking {
  cursor: crosshair;
}

.toll-map.is-picking::after {
  content: none;
}

.toll-marker {
  background: transparent;
  border: 0;
}

.leaflet-div-icon.toll-marker {
  background: transparent;
  border: 0;
}

.toll-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(8, 17, 31, 0.28);
}

.toll-marker-origin .toll-pin {
  background: var(--blue);
}

.toll-marker-dest .toll-pin {
  background: #102033;
}

.toll-pin span {
  transform: rotate(45deg);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}

.toll-result {
  padding: clamp(22px, 3vw, 30px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  animation: toll-rise 0.7s ease both;
}

@keyframes toll-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toll-panel-head h2,
.toll-result-idle h2,
.toll-result-top .toll-total {
  letter-spacing: -0.03em;
}

.toll-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.toll-panel-head p {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.toll-field {
  display: block;
  margin-bottom: 12px;
  position: relative;
}

.toll-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.toll-label-row .toll-label {
  margin-bottom: 0;
}

.toll-map-pick {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 5px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.toll-map-pick:hover,
.toll-map-pick.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--yellow);
}

.toll-map-hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.toll-map-hint.is-warn {
  color: #b45309;
}

.toll-suggest {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(8, 17, 31, 0.14);
  max-height: 280px;
  overflow: auto;
}

.toll-suggest li {
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.toll-suggest li:hover,
.toll-suggest li.is-active {
  background: var(--blue-soft);
}

.toll-suggest li strong {
  display: block;
  font-size: 0.9rem;
}

.toll-suggest li span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

.toll-suggest-empty {
  cursor: default !important;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.toll-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.toll-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.toll-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 120, 227, 0.12);
}

.toll-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

.toll-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}

.toll-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: -2px auto 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}

.toll-swap:hover {
  background: var(--blue-soft);
  border-color: #c9dff7;
  transform: rotate(180deg);
}

.toll-classes {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.toll-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toll-class {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.toll-class small {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
}

.toll-class:hover {
  border-color: #c9dff7;
  background: var(--blue-soft);
}

.toll-class.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

.toll-class.is-active small {
  color: rgba(255, 208, 0, 0.85);
}

.toll-class.is-featured:not(.is-active) {
  border-color: rgba(255, 208, 0, 0.7);
  background: linear-gradient(180deg, #fffef5, #fff);
}

.toll-submit {
  width: 100%;
  margin-top: 18px;
  padding: 15px 18px;
  font-size: 1.02rem;
  border-radius: 16px;
}

.toll-submit.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.toll-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.toll-note a {
  color: var(--blue);
  font-weight: 700;
}

.toll-result-idle {
  margin: auto;
  text-align: center;
  max-width: 34ch;
  color: var(--muted);
}

.toll-result-idle h2 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 1.25rem;
}

.toll-result-idle p {
  margin: 0;
  font-size: 0.95rem;
}

.toll-route-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toll-route-art span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  animation: toll-pulse 1.4s ease-in-out infinite;
}

.toll-route-art span:nth-child(2) {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  animation: none;
}

.toll-route-art span:nth-child(3) {
  background: var(--yellow);
  animation-delay: 0.35s;
}

@keyframes toll-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.55; }
}

.toll-result-body.is-hidden,
.toll-result-idle.is-hidden {
  display: none;
}

.toll-result-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.toll-total {
  margin: 6px 0 4px;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}

.toll-total small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.toll-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.toll-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.toll-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.94rem;
}

.toll-breakdown li span:last-child {
  white-space: nowrap;
  color: var(--navy);
}

.toll-breakdown .toll-item-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.toll-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.toll-info {
  padding: 0 0 clamp(48px, 7vw, 80px);
}

.toll-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.toll-info-grid article {
  padding: 4px 2px;
}

.toll-info-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.toll-info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 920px) {
  .toll-layout,
  .toll-info-grid {
    grid-template-columns: 1fr;
  }

  .toll-map {
    height: 320px;
  }

  .toll-page .site-nav,
  .toll-page .nav-cta .btn-outline {
    display: none;
  }
}

@media (max-width: 560px) {
  .toll-class-grid {
    grid-template-columns: 1fr;
  }

  .toll-result-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toll-panel,
  .toll-result,
  .toll-hero-bg::before,
  .toll-route-art span,
  .toll-swap:hover {
    animation: none;
    transition: none;
  }
}
