/* Route 66 guide — France-USA-Net.Com */

body.route66-page {
  --r66-text-on-light: #14110e;
  --r66-text-muted-on-light: #3d3834;
  --r66-accent: #b45309;
  --r66-accent-dark: #92400e;
  --r66-link-on-light: #1d4ed8;
  --r66-surface-light: linear-gradient(145deg, #fffbf5 0%, #ffffff 100%);
}

.route66-toc {
  margin: 18px 0;
}

.route66-links-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

@media (min-width: 520px) {
  .route66-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .route66-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.route66-links-grid a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  background: var(--r66-surface-light);
  color: var(--r66-link-on-light);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route66-links-grid a:hover,
.route66-links-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 35, 30, 0.1);
  color: var(--r66-accent-dark);
}

.route66-links-grid a .r66-link-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--r66-text-muted-on-light);
}

.route66-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 14px;
  border: 1px solid rgba(180, 83, 9, 0.2);
  background: var(--r66-surface-light);
  -webkit-overflow-scrolling: touch;
}

.route66-table-wrap .data-table {
  margin: 0;
  min-width: 720px;
  font-size: 0.86rem;
}

.route66-table-wrap .data-table caption {
  color: var(--r66-accent-dark);
  padding: 12px 16px 0;
}

.route66-table-wrap .data-table thead th {
  background: rgba(180, 83, 9, 0.12);
  color: var(--r66-accent-dark);
}

.route66-table-wrap .data-table tbody td,
.route66-table-wrap .data-table tbody th {
  color: var(--r66-text-muted-on-light);
}

.route66-table-wrap .data-table a {
  color: var(--r66-link-on-light);
  font-weight: 600;
}

.route66-itinerary-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}

@media (min-width: 760px) {
  .route66-itinerary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.route66-itinerary-card {
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--r66-surface-light);
  color: var(--r66-text-on-light);
}

.route66-itinerary-card h3 {
  margin: 0 0 4px;
  color: var(--r66-accent-dark);
  font-size: 1.05rem;
}

.route66-itinerary-card .r66-itin-meta {
  font-size: 0.82rem;
  color: var(--r66-text-muted-on-light);
  margin-bottom: 10px;
}

.route66-itinerary-card ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--r66-text-muted-on-light);
}

.route66-itinerary-card li {
  margin-bottom: 6px;
}

.route66-checklist-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  background: var(--r66-surface-light);
}

.route66-checklist-box .checklist-preview {
  flex: 1 1 260px;
}

.route66-checklist-box p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--r66-text-muted-on-light);
}

.route66-checklist-box ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--r66-text-muted-on-light);
}

.route66-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--r66-accent), var(--r66-accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route66-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.35);
}

.route66-download-btn:focus-visible {
  outline: 2px solid var(--r66-accent);
  outline-offset: 3px;
}

.route66-download-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.route66-source-note {
  font-size: 0.82rem;
  color: var(--text-300);
  margin-top: 8px;
}

.route66-source-note a {
  color: var(--gold);
  font-weight: 600;
}

/* Images — hauteur naturelle, sans rognage (aspect ratio préservé) */
body.route66-page .travel-hero-media img {
  width: 100%;
  height: auto;
  max-height: min(420px, 52vw);
  object-fit: contain;
  object-position: center;
  background: #0b1020;
}

body.route66-page .r66-emblem img {
  width: auto;
  height: min(297px, 42vw); /* 99 px × 3 — écusson agrandi */
  max-width: min(300px, 90vw);
}

body.route66-page .r66-map img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Galerie : même hauteur visuelle (ratio Santa Monica 640×360) */
body.route66-page .r66-gallery .r66-card {
  display: flex;
  flex-direction: column;
}

body.route66-page .r66-gallery .r66-card img {
  width: 100%;
  aspect-ratio: 640 / 360;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #0b1020;
}

body.route66-page .r66-card:hover img {
  transform: none;
}
