/* Driving Hub styles — loaded conditionally on /driving/* and /manejar/* pages */

/* Hero photo + CSS gradient fallback */
.driving-hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, #0A6B72 0%, #074d52 50%, #0A6B72 100%);
  background-size: 400% 400%;
  animation: subtleShift 18s ease infinite;
}
@keyframes subtleShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.driving-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.driving-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 77, 82, 0.85) 0%, rgba(7, 77, 82, 0.3) 50%, rgba(7, 77, 82, 0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  color: #fff;
}
.driving-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.driving-hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  line-height: 1.4;
}
.driving-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.driving-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.driving-hero-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
.driving-hero-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.driving-photo-credit {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.driving-photo-credit a { color: inherit; text-decoration: underline; }

/* Vehicle matrix */
.vehicle-matrix {
  margin: 24px 0;
  background: var(--color-bg-section, #f8f9fa);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--color-border);
}
.vehicle-matrix h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text);
}
.vehicle-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.vehicle-matrix th, .vehicle-matrix td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.vehicle-matrix th { font-weight: 600; color: var(--color-text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; }
.vehicle-matrix tr:last-child td { border-bottom: none; }
.vehicle-good { color: #15803d; font-weight: 600; }
.vehicle-warn { color: #a16207; font-weight: 600; }
.vehicle-bad { color: #b91c1c; font-weight: 600; }

/* Route profile widgets — grid of small data cards */
.route-profile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.route-profile-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.route-profile-card-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.route-profile-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}
.route-profile-card-meta {
  font-size: 0.78rem;
  color: var(--color-text);
  margin-top: 4px;
  line-height: 1.35;
}

/* Affiliate CTA card */
.driving-affiliate-cta {
  background: linear-gradient(135deg, #0A6B72 0%, #0d8590 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-md);
}
.driving-affiliate-cta-text { flex: 1; min-width: 220px; }
.driving-affiliate-cta-text strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.driving-affiliate-cta-text span { font-size: 0.88rem; opacity: 0.9; }
.driving-affiliate-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.driving-affiliate-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Affiliate disclosure */
.affiliate-disclosure {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  margin: 16px 0;
  border-radius: var(--radius-sm);
}

/* Brand comparison table (commercial-guide) */
.brand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 20px 0;
}
.brand-table th {
  background: var(--color-bg-section);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--color-border);
}
.brand-table td { padding: 12px; border-bottom: 1px solid var(--color-border); }
.brand-table tr:hover td { background: rgba(10,107,114,0.03); }
.brand-trust-high { color: #15803d; font-weight: 600; font-size: 0.78rem; }
.brand-trust-medium { color: #a16207; font-weight: 600; font-size: 0.78rem; }
.brand-trust-avoid { color: #b91c1c; font-weight: 700; font-size: 0.78rem; }
.brand-table-cta {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}
.brand-table-cta:hover { background: var(--color-primary-dark, #085459); color: #fff; }

/* Sticky mobile CTA (commercial-guide only) */
.sticky-mobile-cta {
  display: none;
}
@media(max-width: 600px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 100;
    background: var(--color-primary);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
}

/* Decision matrix (decision-guide) */
.decision-matrix {
  margin: 24px 0;
  display: grid;
  gap: 12px;
}
.decision-scenario {
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.decision-scenario-q { font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.decision-scenario-a { color: var(--color-text); font-size: 0.92rem; }
.decision-scenario-rec {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Last-updated stamps footer */
.last-updated-stamps {
  margin: 32px 0 16px;
  padding: 12px 16px;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.last-updated-stamps strong { color: var(--color-text); }

/* Intent-link sidebar */
.intent-links {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--color-bg-section);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
}
.intent-links-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.intent-links ul { list-style: none; padding: 0; margin: 0; }
.intent-links li { margin: 6px 0; font-size: 0.92rem; }
.intent-links a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.intent-links a:hover { text-decoration: underline; }

/* Verification badge */
.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.verification-personally-driven { background: #dcfce7; color: #166534; }
.verification-locally-verified { background: #dbeafe; color: #1e40af; }
.verification-community-reported { background: #fef3c7; color: #92400e; }
.verification-desk-researched { background: #f3e8ff; color: #6b21a8; }

/* Hub landing page */
.driving-hub-routes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.driving-hub-route-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.driving-hub-route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.driving-hub-route-card h3 { margin: 0; font-size: 1.05rem; color: var(--color-text); }
.driving-hub-route-card p { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
