/*
Theme Name:   Astra Child — Incredible Chateaux
Theme URI:    https://incrediblechateaux.com
Description:  Child theme for Incredible Chateaux of France. Requires Astra parent theme.
Author:       FaniloU Tech
Author URI:   https://faniloutech.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  astra-child-chateaux
*/

/* ============================================================
   IMPORT PARENT THEME — do not remove
   ============================================================ */
@import url("../astra/style.css");

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand palette */
  --ch-navy:       #1A3A5C;
  --ch-navy-dark:  #0E2135;
  --ch-gold:       #C9A84C;
  --ch-gold-dark:  #B8943F;
  --ch-sky:        #5B9BD5;
  --ch-parchment:  #F5F0E8;
  --ch-white:      #FFFFFF;
  --ch-text:       #2C2C2C;
  --ch-mid:        #6B6B6B;
  --ch-border:     #E0D8CC;

  /* Typography */
  --ch-font-heading: 'Playfair Display', Georgia, serif;
  --ch-font-nav:     'Montserrat', Helvetica, sans-serif;
  --ch-font-body:    'Lato', Arial, sans-serif;

  /* Layout */
  --ch-max-width:  1200px;
  --ch-radius:     4px;
  --ch-radius-lg:  8px;

  /* Transitions */
  --ch-ease:       0.2s ease;
}

/* ============================================================
   GLOBAL RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--ch-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ch-text);
  background: var(--ch-parchment);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ch-sky); transition: color var(--ch-ease); }
a:hover { color: var(--ch-navy); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ch-font-heading);
  color: var(--ch-navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; font-style: italic; font-weight: 400; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--ch-gold);
  padding: 12px 20px;
  margin: 24px 0;
  font-family: var(--ch-font-heading);
  font-style: italic;
  color: var(--ch-navy);
  background: rgba(201, 168, 76, 0.06);
  border-radius: 0 var(--ch-radius) var(--ch-radius) 0;
}

/* ============================================================
   CUSTOM HEADER (header.php)
   ============================================================ */
.site-header {
  background: var(--ch-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.header-inner {
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-text { line-height: 1; }

.logo-t1 {
  font-family: var(--ch-font-nav);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  display: block;
}

.logo-t2 {
  font-family: var(--ch-font-nav);
  font-weight: 600;
  font-size: 0.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ch-gold);
  display: block;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--ch-font-nav);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 7px 13px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  margin: 0 4px;
}

.nav-flag {
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 2px;
}

.nav-lang.active {
  color: var(--ch-gold) !important;
}

/* ============================================================
   ASTRA OVERRIDES — Header (keep for Astra fallback)
   ============================================================ */
.site-header,
#masthead {
  background: var(--ch-navy) !important;
  border-bottom: none !important;
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title {
  font-family: var(--ch-font-nav);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff !important;
}

/* Primary navigation */
.ast-nav-menu > li > a,
.main-header-menu > li > a {
  font-family: var(--ch-font-nav);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 8px 14px !important;
  transition: color var(--ch-ease);
}

.ast-nav-menu > li > a:hover,
.main-header-menu > li > a:hover,
.ast-nav-menu > li.current-menu-item > a {
  color: var(--ch-gold) !important;
}

/* Language switcher pill (Polylang) */
.pll-parent-menu-item > a {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px 12px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.65rem !important;
}

/* Mobile hamburger */
.ast-mobile-menu-trigger-fill { fill: #fff; }
.ast-mobile-menu-trigger-wrap { background: rgba(255, 255, 255, 0.1); }

/* ============================================================
   ASTRA OVERRIDES — Page layout
   ============================================================ */
.ast-container { max-width: var(--ch-max-width) !important; }

.site-content { background: var(--ch-parchment); }

/* Remove default Astra page title on château pages */
.page-template-page-chateau .ast-breadcrumbs-wrapper,
.page-template-page-chateau .entry-header { display: none; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.ch-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--ch-border);
  padding: 10px 0;
}

.ch-breadcrumb-inner {
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.ch-breadcrumb a,
.ch-breadcrumb span {
  font-family: var(--ch-font-nav);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ch-mid);
  text-decoration: none;
  transition: color var(--ch-ease);
}

.ch-breadcrumb a:hover { color: var(--ch-navy); }
.ch-breadcrumb .current { color: var(--ch-navy); font-weight: 700; }
.ch-breadcrumb .sep { margin: 0 8px; color: var(--ch-border); }

/* ============================================================
   CHÂTEAU HERO CAROUSEL
   ============================================================ */
.chateau-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

/* Slides */
.ch-slides { position: absolute; inset: 0; }

.ch-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.ch-slide.active { opacity: 1; }

.ch-slide-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ch-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.0);
  transition: transform 6s ease;
}

.ch-slide.active .ch-slide-img img { transform: scale(1.05); }

/* Gradient overlay */
.ch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.14) 52%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Navigation arrows */
.ch-arrow {
  position: absolute;
  top: calc(50% - 25px);
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  transition: background var(--ch-ease), border-color var(--ch-ease);
  padding: 0;
}

.ch-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
}

.ch-prev { left: 20px; }
.ch-next { right: 20px; }

/* Bottom bar: view label + dots */
.ch-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(3px);
}

.ch-view {
  display: none;
  font-family: var(--ch-font-nav);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.ch-view.active { display: block; color: rgba(255, 255, 255, 0.9); }

.ch-dots-row { display: flex; gap: 8px; align-items: center; }

.ch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
  padding: 0;
}

.ch-dot.active {
  background: var(--ch-gold);
  transform: scale(1.4);
}

/* Hero caption (H1 + meta) — always visible */
.hero-caption {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 0 28px 20px;
}

.hero-region-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201, 168, 76, 0.22);
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: var(--ch-gold);
  font-family: var(--ch-font-nav);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.hero-h1 {
  font-family: var(--ch-font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--ch-font-nav);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.hero-stars { color: var(--ch-gold); font-size: 0.9rem; }

/* ============================================================
   ARTICLE LAYOUT — 70/30 grid
   ============================================================ */
.chateau-wrap {
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.chateau-intro {
  max-width: 760px;
  margin: 32px auto 0;
  border-left: 4px solid #C9A84C;
  padding: 16px 20px;
  background: rgba(201,168,76,.07);
  margin-bottom: 32px;
  border-radius: 0 6px 6px 0;
}

.chateau-intro p {
  font-size: 1.15rem;
  font-style: italic;
  color: #1A3A5C;
  line-height: 1.8;
  margin: 0;
}

/* AdSense leaderboard — after intro */
.ad-leaderboard {
  margin: 32px auto;
  max-width: 728px;
  padding-top: 20px;
  position: relative;
}

.ad-leaderboard::before {
  content: 'Advertisement';
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--ch-font-nav);
  font-size: 0.55rem;
  color: var(--ch-mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ad-leaderboard-slot {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: var(--ch-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content grid */
.chateau-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  margin-top: 36px;
  align-items: start;
}

/* Article body */
.chateau-article h2 {
  font-size: 1.6rem;
  color: var(--ch-navy);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ch-gold);
  display: inline-block;
}

.chateau-article h2:first-child { margin-top: 0; }

.chateau-article h3 {
  font-size: 1.2rem;
  color: var(--ch-navy);
  margin: 24px 0 10px;
}

.chateau-article p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ch-text);
  margin-bottom: 1em;
}

/* Facts table in article body */
.facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 0.88rem;
}

.facts-table tr { border-bottom: 1px solid var(--ch-border); }
.facts-table tr:last-child { border-bottom: none; }

.facts-table th {
  font-family: var(--ch-font-nav);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ch-mid);
  padding: 10px 14px;
  text-align: left;
  background: var(--ch-parchment);
  width: 36%;
}

.facts-table td {
  padding: 10px 14px;
  color: var(--ch-text);
  background: #fff;
}

.facts-table tr:nth-child(even) th { background: #ede9e1; }
.facts-table tr:nth-child(even) td { background: #faf8f5; }

/* Transport block */
.transport-block {
  margin: 36px 0;
}

.transport-block h2 {
  border-bottom: none !important;
  display: block !important;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.transport-card {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-lg);
  padding: 20px;
  text-align: center;
  transition: border-color var(--ch-ease), box-shadow var(--ch-ease);
}

.transport-card:hover {
  border-color: var(--ch-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.transport-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 58, 92, 0.06);
  border-radius: 50%;
}

.transport-icon svg { width: 30px; height: 30px; fill: var(--ch-navy); }

.transport-mode {
  font-family: var(--ch-font-nav);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ch-gold);
  margin-bottom: 4px;
}

.transport-title {
  font-family: var(--ch-font-heading);
  font-size: 1rem;
  color: var(--ch-navy);
  margin-bottom: 7px;
}

.transport-detail {
  font-size: 0.8rem;
  color: var(--ch-mid);
  line-height: 1.55;
}

.transport-time {
  display: inline-block;
  background: var(--ch-parchment);
  font-family: var(--ch-font-nav);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--ch-navy);
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 8px;
}

/* Maps section */
.maps-section { margin: 36px 0; }

.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.map-embed-wrap { border-radius: var(--ch-radius-lg); overflow: hidden; }

.map-embed-wrap iframe {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
}

.map-link {
  margin-top: 6px;
  font-family: var(--ch-font-nav);
  font-size: 0.62rem;
  text-align: center;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.chateau-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Sticky wrapper */
.sidebar-sticky { position: sticky; top: 84px; }

/* AdSense rectangle */
.ad-rectangle {
  padding-top: 20px;
  position: relative;
}

.ad-rectangle::before {
  content: 'Advertisement';
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--ch-font-nav);
  font-size: 0.55rem;
  color: var(--ch-mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ad-rectangle-slot {
  width: 300px;
  height: 250px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: var(--ch-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar widgets */
.sb-widget {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-lg);
  overflow: hidden;
}

.sb-widget-title {
  background: var(--ch-navy);
  color: #fff;
  font-family: var(--ch-font-nav);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 16px;
}

.sb-widget-body { padding: 14px 16px; }

.sb-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--ch-border);
  font-size: 0.84rem;
}

.sb-fact-row:last-child { border-bottom: none; }
.sb-fact-label { color: var(--ch-mid); font-size: 0.68rem; font-family: var(--ch-font-nav); text-transform: uppercase; letter-spacing: 0.3px; }
.sb-fact-value { color: var(--ch-navy); font-weight: 700; font-size: 0.84rem; }

.sb-nearby-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ch-border);
  text-decoration: none;
}

.sb-nearby-item:last-child { border-bottom: none; }
.sb-nearby-item:hover .sb-nearby-name { color: var(--ch-sky); }

.sb-nearby-num {
  font-family: var(--ch-font-heading);
  font-size: 1.2rem;
  color: var(--ch-gold);
  font-weight: 700;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sb-nearby-info { flex: 1; min-width: 0; }

.sb-nearby-name {
  font-family: var(--ch-font-heading);
  font-size: 0.88rem;
  color: var(--ch-navy);
  display: block;
  transition: color var(--ch-ease);
}

.sb-nearby-dist {
  font-family: var(--ch-font-nav);
  font-size: 0.58rem;
  color: var(--ch-mid);
  display: block;
}

.sb-nearby-arrow { color: var(--ch-sky); font-size: 0.8rem; }

/* ============================================================
   CHÂTEAU CARDS (homepage grid + region pages)
   ============================================================ */
.ch-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ch-card {
  background: #fff;
  border-radius: var(--ch-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.ch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.ch-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.ch-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ch-card:hover .ch-card-img img { transform: scale(1.06); }

.ch-card-region {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 58, 92, 0.78);
  color: #fff;
  font-family: var(--ch-font-nav);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
}

.ch-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ch-card-era {
  font-family: var(--ch-font-nav);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ch-gold);
  margin-bottom: 5px;
}

.ch-card-title {
  font-family: var(--ch-font-heading);
  font-size: 1.08rem;
  color: var(--ch-navy);
  margin-bottom: 8px;
  line-height: 1.25;
}

.ch-card-excerpt {
  font-size: 0.82rem;
  color: var(--ch-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.ch-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ch-card-stars { color: var(--ch-gold); font-size: 0.78rem; }

.ch-card-link {
  font-family: var(--ch-font-nav);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ch-sky);
}

.ch-card:hover .ch-card-link { color: var(--ch-navy); }

/* ============================================================
   BADGES
   ============================================================ */
.badge-region {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ch-font-nav);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(26, 58, 92, 0.15);
  background: rgba(26, 58, 92, 0.07);
  color: var(--ch-navy);
}

.badge-gold   { background: rgba(201,168,76,.1); color:#8a6e1e; border-color:rgba(201,168,76,.28); }
.badge-sky    { background: rgba(91,155,213,.1); color:#2a6fa0; border-color:rgba(91,155,213,.28); }
.badge-green  { background: rgba(60,130,60,.08); color:#2d6b2d; border-color:rgba(60,130,60,.22); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-ch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ch-font-nav);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--ch-radius);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--ch-ease);
}

.btn-ch-primary { background: var(--ch-navy); color: #fff; border-color: var(--ch-navy); }
.btn-ch-primary:hover { background: var(--ch-navy-dark); color: #fff; }

.btn-ch-gold { background: var(--ch-gold); color: var(--ch-navy); border-color: var(--ch-gold); }
.btn-ch-gold:hover { background: var(--ch-gold-dark); color: var(--ch-navy); }

.btn-ch-outline { background: transparent; color: var(--ch-navy); border-color: var(--ch-navy); }
.btn-ch-outline:hover { background: var(--ch-navy); color: #fff; }

/* ============================================================
   NEARBY CHÂTEAUX — bottom section
   ============================================================ */
.nearby-section {
  background: #fff;
  padding: 48px 0;
  margin-top: 48px;
  border-top: 1px solid var(--ch-border);
}

.nearby-inner {
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nearby-title {
  font-family: var(--ch-font-heading);
  font-size: 1.7rem;
  color: var(--ch-navy);
  margin-bottom: 24px;
  text-align: center;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon,
.site-footer {
  background: var(--ch-navy-dark) !important;
  color: #fff;
  padding: 52px 32px 28px !important;
  border-top: none !important;
}

.footer-inner {
  max-width: var(--ch-max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-about p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--ch-font-nav);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ch-gold);
  margin-bottom: 14px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--ch-ease);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.52);
}

.footer-legal { display: flex; gap: 16px; }

.footer-legal a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  transition: color var(--ch-ease);
}

.footer-legal a:hover { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   COOKIES BANNER (GDPR)
   ============================================================ */
.ch-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ch-navy-dark);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.ch-cookie-bar.hidden { transform: translateY(100%); }

.ch-cookie-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  flex: 1;
}

.ch-cookie-text a { color: var(--ch-gold); }
.ch-cookie-buttons { display: flex; gap: 10px; }

/* ============================================================
   FOOTER — col title (custom header.php footer)
   ============================================================ */
.footer-col-title {
  font-family: var(--ch-font-nav);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ch-gold);
  margin-bottom: 14px;
}

/* ============================================================
   ARCHIVE — château list + region taxonomy
   ============================================================ */
.ch-archive-wrap { background: var(--ch-parchment); }

.ch-archive-header {
  background: var(--ch-navy);
  padding: 48px 0 40px;
}

.ch-archive-header-inner {
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.ch-archive-label {
  font-family: var(--ch-font-nav);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ch-gold);
  display: block;
  margin-bottom: 8px;
}

.ch-archive-title {
  font-family: var(--ch-font-heading);
  font-size: 2.4rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 8px;
}

.ch-archive-count {
  font-family: var(--ch-font-nav);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.ch-archive-back {
  font-family: var(--ch-font-nav);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.ch-archive-back:hover { color: #fff; }

.ch-archive-content {
  max-width: var(--ch-max-width);
  margin: 0 auto;
  padding: 48px 28px 72px;
}

/* Archive card grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ch-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: block;
}

.ch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-img {
  height: 170px;
  position: relative;
  overflow: hidden;
}

.card-region {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 58, 92, 0.78);
  color: #fff;
  font-family: var(--ch-font-nav);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

.card-body { padding: 16px 18px 18px; }

.card-era {
  font-family: var(--ch-font-nav);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ch-gold);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--ch-font-heading);
  font-size: 1.05rem;
  color: var(--ch-navy);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--ch-mid);
  line-height: 1.55;
  margin-bottom: 12px;
}

.card-foot {
  display: flex;
  justify-content: flex-end;
}

.card-link {
  font-family: var(--ch-font-nav);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ch-navy);
  border-bottom: 1.5px solid var(--ch-gold);
  padding-bottom: 1px;
  transition: color 0.2s;
}

/* Archive pagination */
.ch-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.ch-pagination ul {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ch-pagination ul li a,
.ch-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  font-family: var(--ch-font-nav);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid #ddd;
  color: var(--ch-navy);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ch-pagination ul li.current span,
.ch-pagination ul li a:hover {
  background: var(--ch-navy);
  color: #fff;
  border-color: var(--ch-navy);
}

/* Region image photo overlay */
.ch-region-img-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .chateau-grid { grid-template-columns: 1fr; }
  .chateau-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .sidebar-sticky { position: static; }
  .ad-rectangle-slot { width: 100%; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ch-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .nearby-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  .chateau-hero { height: 400px; }
  .hero-h1 { font-size: 1.6rem; }

  .transport-grid { grid-template-columns: 1fr; gap: 12px; }
  .maps-grid { grid-template-columns: 1fr; }

  .chateau-sidebar { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-about p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .ch-cards-grid,
  .nearby-grid,
  .cards-grid { grid-template-columns: 1fr; }

  .ch-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .ch-prev { left: 10px; }
  .ch-next { right: 10px; }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .chateau-wrap { padding: 0 16px 40px; }
  .hero-caption { padding: 0 16px 16px; }
  .ch-bar { padding: 8px 16px; }
}
