:root {
  --wine: #6b1f2a;
  --wine-dark: #4a141c;
  --wine-light: #8a3744;
  --gold: #b08d57;
  --gold-light: #cdb188;
  --cream: #faf6f0;
  --cream-dark: #efe7da;
  --ink: #2b2320;
  --muted: #6f655d;
  --line: #e3d8c8;
  --shadow: 0 6px 22px rgba(74, 20, 28, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-light); text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ---- Header / hero ---- */
.site-header {
  background:
    linear-gradient(135deg, rgba(74,20,28,0.92), rgba(107,31,42,0.82)),
    radial-gradient(circle at 80% 20%, rgba(176,141,87,0.35), transparent 60%);
  color: var(--cream);
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--gold);
}
.site-header .wrap { text-align: center; }
.eyebrow {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-light);
  margin: 0 0 14px;
}
.site-header h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-header p.lede {
  margin: 0 auto;
  max-width: 620px;
  color: #f3e9dc;
  font-size: 1.08rem;
}

/* Hero with background photo */
.site-header.has-photo {
  position: relative;
  background: none;
  overflow: hidden;
}
.site-header.has-photo .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.site-header.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(74,20,28,0.86), rgba(43,35,32,0.62));
}
.site-header.has-photo .wrap { position: relative; z-index: 2; }

/* ---- Card thumbnail ---- */
.card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ---- Day photo ---- */
.day-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin: 4px 0 6px;
  box-shadow: var(--shadow);
}
figure.day-figure { margin: 0 0 6px; }
figure.day-figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

/* ---- Cost table ---- */
.cost-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.cost-table th, .cost-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cost-table th { background: var(--wine); color: #fff; font-weight: 600; }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; white-space: nowrap; }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr.total td { font-weight: 700; color: var(--wine-dark); background: var(--cream-dark); }

/* ---- Trip grid ---- */
.section-title {
  text-align: center;
  margin: 56px 0 8px;
  font-size: 1.7rem;
  color: var(--wine-dark);
}
.section-sub { text-align: center; color: var(--muted); margin: 0 0 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  padding-bottom: 64px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(74,20,28,0.16); }

.card-banner {
  height: 8px;
  background: linear-gradient(90deg, var(--wine), var(--gold));
}
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 1.32rem; color: var(--wine-dark); }
.card .region { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.card p.summary { margin: 0 0 18px; color: var(--muted); flex: 1; }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--wine-dark);
}

.card-actions { display: flex; gap: 10px; }
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--wine);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover { background: var(--cream-dark); text-decoration: none; }

/* ---- Empty state ---- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* ---- Trip detail page ---- */
.trip-main { padding: 44px 0 80px; }
.back-link { display: inline-block; margin-bottom: 22px; font-size: 0.92rem; }
.trip-main h2 { color: var(--wine-dark); border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-top: 44px; }
.trip-main h3 { color: var(--wine); margin-top: 32px; }

.day {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}
.day h3 { margin-top: 0; }

.stop { margin: 16px 0; padding-left: 4px; }
.stop .stop-name { font-weight: 600; color: var(--wine-dark); font-size: 1.08rem; }
.linklist { list-style: none; padding: 0; margin: 8px 0; }
.linklist li { margin: 6px 0; padding-left: 22px; position: relative; }
.linklist li::before { content: "🔗"; position: absolute; left: 0; font-size: 0.85rem; }

.callout {
  background: var(--cream-dark);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
  border-left: 4px solid var(--wine);
}
.callout strong { color: var(--wine-dark); }

.site-footer {
  background: var(--wine-dark);
  color: var(--gold-light);
  text-align: center;
  padding: 28px 0;
  font-size: 0.88rem;
}
.site-footer a { color: var(--cream); }
