/* ============================================================
   Shared styles for all pages
   Colors are deliberately earthy/outdoorsy — easy to change
============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1a1a1a;
  --bg-card: #232323;
  --text: #e8dfc8;
  --text-dim: #999;
  --accent: #e8a030;
  --accent-hover: #f4b450;
  --border: #333;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  background: #0f0f0f;
  border-bottom: 2px solid var(--border);
  padding: 18px 0;
}
.site-header h1 {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.site-header nav { display: flex; gap: 18px; }
.site-header nav a {
  font-size: 0.88rem;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.15s;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Hero ── */
.hero {
  margin: 30px 0 40px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  /* Fallback if image is missing */
  background: linear-gradient(135deg, #2a3a2a 0%, #1a2a1a 100%);
  min-height: 280px;
  object-fit: cover;
}
.hero-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 30px 24px 20px;
}
.hero-text h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 6px;
}
.hero-text p {
  font-size: 1rem;
  color: var(--text);
}

/* ── Card grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 24px;
  transition: all 0.18s;
  display: block;
  color: var(--text);
}
.card:hover {
  background: #2a2a2a;
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}
.card h3 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Year list (for PCT page) ── */
.year-list {
  margin: 30px 0;
}
.year-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
  transition: all 0.15s;
}
.year-item.available {
  border-left-color: var(--accent);
  cursor: pointer;
}
.year-item.available:hover {
  background: #2a2a2a;
  transform: translateX(4px);
}
.year-item h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.year-item .miles {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.year-item .description {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 6px;
  font-style: italic;
}
.year-item .status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.year-item.available .status {
  background: rgba(232,160,48,0.15);
  color: var(--accent);
}
.year-item.future .status {
  background: rgba(150,150,150,0.1);
  color: #777;
}

/* ── Page intro ── */
.page-intro {
  margin: 30px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-intro h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #fff;
}
.page-intro p {
  color: var(--text-dim);
  max-width: 700px;
  font-size: 0.95rem;
}

/* ── Tab buttons (year detail page) ── */
.view-tabs {
  display: flex;
  gap: 0;
  margin: 24px 0 0;
  border-bottom: 1px solid var(--border);
}
.view-tabs button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 12px 22px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.view-tabs button:hover { color: var(--text); }
.view-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Embedded view container ── */
.view-container {
  margin-top: 0;
  border: 1px solid var(--border);
  border-top: none;
  background: #0a0a0a;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.view-container iframe {
  width: 100%;
  height: calc(100vh - 280px);
  min-height: 600px;
  border: none;
  display: block;
}

/* ── Footer ── */
.site-footer {
  margin-top: 50px;
  padding: 24px 0;
  background: #0f0f0f;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-text h2 { font-size: 1.5rem; }
  .hero-text p { font-size: 0.88rem; }
  .site-header h1 { font-size: 1.15rem; }
  .year-item { flex-direction: column; gap: 8px; }
  .view-tabs button { padding: 10px 14px; font-size: 0.82rem; }
}
