/* ===================================================================
   ROVIA — Components CSS  (part 2: fleet, map, about, quote, footer)
   =================================================================== */

/* ===================== FLEET ===================== */
.fleet-section { background: var(--bg-secondary); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fleet-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}
.fleet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.fleet-head { display: flex; justify-content: space-between; align-items: center; }
.fleet-code { font-size: 12px; color: var(--brand); font-weight: 700; letter-spacing: 0.08em; }
.fleet-sheet { font-size: 10px; color: var(--text-secondary); letter-spacing: 0.12em; }
.fleet-drawing {
  background: var(--bg-tertiary);
  border: 1px solid var(--line);
  border-radius: var(--r-ui);
  margin: 18px 0 22px;
  padding: 16px 12px 8px;
}
.fleet-meta { margin-bottom: 18px; }
.fleet-name { color: var(--brand); }
.fleet-tag { color: var(--accent); margin-top: 6px; font-size: 11px; }
.fleet-specs { display: flex; flex-direction: column; gap: 12px; }
.fleet-spec { display: flex; align-items: baseline; gap: 12px; }
.fleet-spec-k { color: var(--text-secondary); font-size: 11px; white-space: nowrap; }
.fleet-spec-line { flex: 1; height: 1px; border-bottom: 1px dashed var(--line-strong); transform: translateY(-3px); }
.fleet-spec-v { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.fleet-suitable { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.fleet-suitable-title { display: block; font-size: 10px; color: var(--accent); letter-spacing: 0.14em; margin-bottom: 12px; }
.fleet-suitable-tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.fleet-suitable-tag {
  font-size: 11px;
  color: var(--brand);
  background: var(--bg-tertiary);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  letter-spacing: 0.04em;
  transition: border-color var(--dur-mid) var(--ease), background var(--dur-mid) var(--ease);
}
.fleet-card:hover .fleet-suitable-tag { border-color: rgba(217,144,65,0.4); background: rgba(217,144,65,0.06); }
@media (max-width: 920px) { .fleet-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ===================== COVERAGE MAP ===================== */
.map-section { background: var(--bg-tertiary); }
.map-frame {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.cov-canvas { position: relative; }
.cov-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  opacity: 0.5;
  /* same single warm hue as the hero map, no edge feather */
  filter: grayscale(1) sepia(0.5) saturate(0.4) brightness(1.0) contrast(0.92);
}
.cov-map img {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  max-width: none;
}
.cov-canvas > svg { position: relative; z-index: 1; display: block; }
.map-node-label { font-family: var(--font-mono); font-size: 11px; fill: var(--text-primary); letter-spacing: 0.02em; font-weight: 600; }
.map-tip-route { font-family: var(--font-head); font-size: 13px; font-weight: 700; fill: var(--brand); }
.map-tip-sub { font-family: var(--font-body); font-size: 10px; fill: var(--text-secondary); }
.map-tip-transit { font-family: var(--font-mono); font-size: 9px; fill: var(--accent); letter-spacing: 0.08em; }
.map-legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.map-leg-item { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; color: var(--text-secondary); letter-spacing: 0.06em; }
.map-leg-line { width: 24px; height: 0; border-top: 2px dashed var(--text-secondary); }
.map-leg-line.accent { border-top-color: var(--accent); }
.map-leg-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand); background: var(--surface-card); }

/* ===================== ABOUT ===================== */
.about-section { background: var(--bg-primary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy .kicker { margin-bottom: 18px; }
.about-lead { color: var(--text-primary); margin: 22px 0 18px; }
.about-text { color: var(--text-secondary); }
.about-points { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.about-point { display: flex; align-items: center; gap: 14px; }
.about-point span { color: var(--text-primary); }

.about-dash {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dash-title { font-size: 11px; color: var(--text-secondary); letter-spacing: 0.1em; }
.dash-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: #2f7d52; background: rgba(63,174,111,0.1); padding: 6px 11px; border-radius: var(--r-pill); letter-spacing: 0.08em; }
.dash-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #3fae6f; }
.dash-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; padding: 24px 0; }
.dash-metric { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dash-metric:nth-last-child(-n+2) { border-bottom: none; }
.dash-metric-num { color: var(--brand); line-height: 1; }
.dash-metric-label { color: var(--text-primary); margin-top: 8px; font-weight: 600; }
.dash-metric-sub { color: var(--text-secondary); font-size: 11px; margin-top: 3px; }
.dash-chart { padding-top: 22px; border-top: 1px solid var(--line); }
.dash-chart-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.dash-chart-head .caption { color: var(--text-secondary); font-size: 11px; }
.dash-trend { color: #2f7d52 !important; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===================== QUOTE ===================== */
.quote-section { background: var(--bg-secondary); }
.quote-card {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quote-diagram { background: var(--brand); padding: 26px 36px 22px; position: relative; }
.quote-diagram-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.quote-diagram-title { font-size: 11px; color: rgba(247,245,241,0.6); letter-spacing: 0.1em; }
.quote-progress { font-size: 11px; color: var(--accent-soft); letter-spacing: 0.08em; }
.quote-route-svg { width: 100%; height: 120px; display: block; }
.quote-route-label { font-family: var(--font-mono); font-size: 12px; fill: rgba(247,245,241,0.85); letter-spacing: 0.02em; }
.quote-route-label.accent { fill: var(--accent-soft); }
.quote-progress-bar { height: 3px; background: rgba(247,245,241,0.15); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.quote-progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width var(--dur-mid) var(--ease); }

.quote-form { padding: 38px 40px 40px; }
.q-group { margin-bottom: 26px; }
.q-group-label { font-size: 11px; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.q-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.q-row { display: flex; gap: 20px; }
.q-field { display: flex; flex-direction: column; margin-bottom: 18px; flex: 1; }
.q-field.half { flex: 1; }
.q-label { color: var(--text-secondary); font-size: 11px; margin-bottom: 8px; letter-spacing: 0.08em; }
.q-input {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--line);
  border-radius: var(--r-ui);
  padding: 14px 16px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  width: 100%;
}
.q-input:focus { outline: none; border-color: var(--accent); background: var(--surface-card); box-shadow: 0 0 0 3px rgba(217,144,65,0.12); }
.q-field.err .q-input { border-color: #d9534f; background: rgba(217,83,79,0.04); }
.q-error { color: #d9534f; margin-top: 6px; font-size: 12px; }
select.q-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.quote-submit { width: 100%; margin-top: 8px; }
.quote-note { text-align: center; color: var(--text-secondary); margin-top: 14px; }

/* estimated price panel */
.quote-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: var(--r-ui);
  margin: 4px 0 22px;
  padding: 18px 22px;
  min-height: 96px;
  box-sizing: border-box;
  transition: background var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}
.quote-estimate[data-on="1"] {
  background: rgba(217,144,65,0.08);
  border: 1px solid rgba(217,144,65,0.32);
}
.quote-estimate[data-on="0"] {
  background: var(--bg-tertiary);
  border: 1px dashed var(--line-strong);
}
.quote-est-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.quote-est-label { color: var(--accent); letter-spacing: 0.1em; }
.quote-estimate[data-on="0"] .quote-est-label { color: var(--text-secondary); }
.quote-est-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  color: var(--brand);
  line-height: 1.1;
  margin: 6px 0 4px;
  white-space: nowrap;
}
.quote-est-value-empty { color: var(--line-strong); }
.quote-est-dash { color: var(--text-secondary); font-weight: 400; margin: 0 8px; }
.quote-est-note { color: var(--text-secondary); }
.quote-est-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.quote-success { padding: 56px 40px 60px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.quote-success-icon { width: 96px; height: 96px; border-radius: 50%; background: rgba(217,144,65,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.quote-success h3 { color: var(--brand); margin-bottom: 16px; }
.quote-success-text { color: var(--text-secondary); max-width: 460px; margin-bottom: 28px; }
.quote-success-text strong { color: var(--text-primary); }
@media (max-width: 620px) {
  .q-row { flex-direction: column; gap: 0; }
  .quote-form { padding: 28px 22px 32px; }
  .quote-diagram { padding: 22px 22px 18px; }
}

/* ===================== FOOTER ===================== */
.footer { position: relative; background: var(--bg-footer); color: var(--text-on-brand); padding-top: 90px; overflow: hidden; }
.footer-route { position: absolute; top: 0; left: 0; width: 100%; height: 120px; overflow: visible; }
.footer-terminus {
  position: absolute;
  top: 26px;
  left: 8.33%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-footer);
  border: 2px solid var(--accent);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.footer-terminus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.footer-inner { position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(247,245,241,0.12); }
.footer-word { color: var(--text-on-brand); }
.footer-tag { color: rgba(247,245,241,0.6); margin-top: 18px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-soc { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(247,245,241,0.2); display: inline-flex; align-items: center; justify-content: center; color: var(--text-on-brand); text-decoration: none; font-size: 13px; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.footer-soc:hover { background: var(--accent); border-color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title { font-size: 11px; color: var(--accent-soft); letter-spacing: 0.12em; margin-bottom: 4px; }
.footer-link { color: rgba(247,245,241,0.78); text-decoration: none; font-size: 15px; transition: color var(--dur-fast) var(--ease); width: fit-content; }
.footer-link:hover { color: var(--text-on-brand); }
.footer-link.accent { color: var(--accent-soft); font-weight: 600; }
.footer-link.muted { color: rgba(247,245,241,0.5); cursor: default; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 40px; flex-wrap: wrap; }
.footer-fine { color: rgba(247,245,241,0.5); }
.footer-fine-links { display: flex; gap: 22px; }
.footer-fine-links a { color: rgba(247,245,241,0.6); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.footer-fine-links a:hover { color: var(--text-on-brand); }
.footer-coord { color: rgba(247,245,241,0.4); font-size: 11px; letter-spacing: 0.08em; }
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
