/*
 * Snowdonia Breaks — Design System
 * Shared across all pages
 */

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --navy:     #1C2044;
  --navy-dk:  #0F1227;
  --forest:   #283D2E;
  --slate:    #4A5568;
  --cream:    #F7F3EC;
  --gold:     #B8913A;
  --gold-lt:  #D4A95A;
  --white:    #FFFFFF;
  --text:     #2A2A2A;
  --text-lt:  #6B6B6B;
  --border:   #E2DAD0;
  --error:    #C0392B;
  --success:  #27AE60;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Raleway', sans-serif;

  --radius:   2px;
  --shadow:   0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:0 12px 48px rgba(0,0,0,.18);
  --transition: .25s ease;
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────── */
.display      { font-family: var(--font-display); font-weight: 300; line-height: 1.1; }
.display-md   { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px,3.5vw,48px); line-height: 1.15; }
.display-lg   { font-family: var(--font-display); font-weight: 300; font-size: clamp(44px,5.5vw,72px); line-height: 1.05; }
.display-xl   { font-family: var(--font-display); font-weight: 300; font-size: clamp(52px,7vw,96px);   line-height: 1.00; }

.label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.label-sm {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.body-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-lt);
  line-height: 1.85;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn svg    { width: 15px; height: 15px; flex-shrink: 0; }

.btn-gold   { background: var(--gold);  color: var(--white); }
.btn-gold:hover { background: var(--gold-lt); }

.btn-navy   { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #252850; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.4);
}
.btn-outline-light:hover {
  border-color: var(--gold);
  background: rgba(184,145,58,.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* ── Link underline ──────────────────────────────────────────── */
.link-arrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 16px; }
.link-arrow svg { width: 15px; height: 15px; }

.w3w-link {
  color: var(--text-lt);
  font-size: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.w3w-link:hover { color: var(--gold); }

/* ── Layout ──────────────────────────────────────────────────── */
.container  { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.container-sm { max-width: 900px;  margin: 0 auto; padding: 0 80px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Grid helpers ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  height: 80px;
  background: #181739;
  transition: background .4s ease, box-shadow .4s ease, height .3s ease;
}
.nav.scrolled {
  background: #181739;
  box-shadow: 0 2px 24px rgba(0,0,0,.2);
  height: 68px;
  backdrop-filter: blur(10px);
}
.nav-logo img {
  height: 68px;
  width: auto;
  transition: height .3s ease;
}
.nav.scrolled .nav-logo img { height: 58px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover        { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active       { color: var(--gold-lt); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--gold-lt) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}

/* ── Page hero (non-homepage) ─────────────────────────────────── */
.page-hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: heroZoom 8s ease forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.00); }
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,32,68,.3) 0%, rgba(28,32,68,.72) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 56px;
}
.page-hero-content .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.page-hero-content .breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.page-hero-content .breadcrumb a:hover { color: var(--gold-lt); }
.page-hero-content .breadcrumb-sep { font-size: 10px; opacity: .4; }
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}
.page-hero-content h1 em { font-style: italic; color: var(--gold-lt); }
.page-hero-content p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  line-height: 1.75;
  margin-top: 14px;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group   { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-lt);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,32,68,.08);
}
.form-input.error,
.form-select.error { border-color: var(--error); }
.form-error {
  font-size: 12px;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 5px;
}
.form-textarea { min-height: 100px; resize: vertical; line-height: 1.6; }

/* ── Section header ──────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px,3.5vw,48px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
  margin-top: 12px;
}
.section-header p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-lt);
  line-height: 1.85;
  margin-top: 12px;
  max-width: 480px;
}

/* ── Amenity badge ───────────────────────────────────────────── */
.amenity-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.amenity-badge svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }

/* ── Mountain divider ────────────────────────────────────────── */
.mountain-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0;
}
.mountain-divider::before,
.mountain-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.mtn-icon { width: 48px; opacity: .2; }

/* ── Stars ───────────────────────────────────────────────────── */
.stars { color: var(--gold); letter-spacing: 3px; }

/* ── Alert / notice ──────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  border-left: 3px solid;
}
.alert-success { background: #eafaf1; color: #1e8449; border-color: var(--success); }
.alert-error   { background: #fdedec; color: #922b21; border-color: var(--error); }
.alert-info    { background: #eaf2fb; color: #1a5276; border-color: #2980b9; }

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible              { opacity: 1; transform: translateY(0); }
.reveal.delay-1              { transition-delay: .15s; }
.reveal.delay-2              { transition-delay: .30s; }
.reveal.delay-3              { transition-delay: .45s; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.6);
  padding: 72px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img  { height: 44px; width: auto; margin-bottom: 20px; }
.footer-brand p    { font-size: 13px; font-weight: 300; line-height: 1.85; max-width: 280px; margin-bottom: 20px; }
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-contact-link:hover { color: var(--gold-lt); }
.footer-contact-link svg   { width: 14px; height: 14px; flex-shrink: 0; }
.footer-col h5 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul              { list-style: none; }
.footer-col ul li           { margin-bottom: 10px; }
.footer-col ul li a         { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-col ul li a:hover   { color: var(--gold-lt); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,.3);
}
.footer-bottom-links a      { color: rgba(255,255,255,.3); margin-left: 20px; transition: color var(--transition); }
.footer-bottom-links a:hover{ color: rgba(255,255,255,.6); }

/* ── Availability calendar ────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-nav-btn {
  background: none;
  border: 1px solid var(--border);
  width: 32px; height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}
.cal-nav-btn:hover         { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cal-nav-btn svg           { width: 14px; height: 14px; }
.cal-month-label           { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--navy); text-transform: uppercase; }
.cal-grid                  { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day-header            { text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--text-lt); text-transform: uppercase; padding: 6px 0; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.cal-day:hover:not(.unavailable):not(.other-month):not(.past):not(.checkin-boundary):not(.checkout-boundary) {
  background: var(--cream);
}
.cal-day.today             { font-weight: 600; color: var(--navy); }
.cal-day.selected-start,
.cal-day.selected-end      { background: var(--navy) !important; color: var(--white) !important; font-weight: 500; }
.cal-day.in-range          { background: rgba(28,32,68,.08); }
.cal-day.unavailable       { background: #fdf0ee; color: #ccc; cursor: not-allowed; text-decoration: line-through; }
.cal-day.past              { color: #ccc; cursor: not-allowed; }
.cal-day.other-month       { opacity: 0; pointer-events: none; }
.cal-day.restricted        { background: #fff8e6; color: #b8913a; cursor: not-allowed; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .container, .container-sm { padding: 0 48px; }
  .nav { padding: 0 48px; }
  .page-hero-content { padding: 0 48px 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container, .container-sm { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: rgba(28,32,68,.98);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 20px; letter-spacing: 3px; }
  .nav-toggle { display: flex; z-index: 1001; }
  .section { padding: 64px 0; }
  .section-header { flex-direction: column; gap: 20px; align-items: flex-start; }
  .page-hero { height: 380px; }
  .page-hero-content { padding: 0 24px 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .footer-bottom-links a { margin-left: 0; }
}

/* ── Legal pages (terms, privacy-policy, cookies) ────────────── */
.legal-page {
  background: var(--cream);
  padding: 80px 0 100px;
}
.legal-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.15;
}
.legal-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-lt);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-intro {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 48px;
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: rgba(184, 145, 58, 0.06);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--navy);
  margin-top: 52px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  font-weight: 600;
}
.legal-page h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-page p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 16px;
}
.legal-page ul {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  margin: 12px 0 20px 20px;
}
.legal-page li { margin-bottom: 6px; }
.legal-page a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 145, 58, 0.4);
  transition: border-color var(--transition);
}
.legal-page a:hover { border-color: var(--gold); }

/* terms.php */
.legal-callout {
  background: var(--navy);
  color: var(--cream);
  padding: 22px 28px;
  border-radius: 4px;
  margin: 28px 0;
}
.legal-callout p { color: var(--cream); margin: 0; font-size: 0.92rem; }
.legal-callout p + p { margin-top: 12px; }
.legal-callout strong { color: var(--gold); }
.legal-warn {
  background: rgba(184, 145, 58, 0.1);
  border: 1px solid rgba(184, 145, 58, 0.3);
  padding: 18px 22px;
  border-radius: 4px;
  margin: 20px 0;
}
.legal-warn p { margin: 0; font-size: 0.92rem; }

/* privacy-policy.php */
.legal-page address {
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 2;
  margin-top: 8px;
}
.legal-rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.legal-right-item {
  background: var(--white);
  border: 1px solid rgba(28, 32, 68, 0.1);
  border-radius: 4px;
  padding: 14px 16px;
}
.legal-right-item strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 4px;
}
.legal-right-item span {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-lt);
  line-height: 1.5;
}
@media (max-width: 560px) { .legal-rights-grid { grid-template-columns: 1fr; } }

/* cookies.php */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 4px;
  border: 1px solid rgba(28, 32, 68, 0.12);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.88rem;
}
.cookie-table th {
  background: var(--navy);
  color: var(--cream);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cookie-table td {
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(28, 32, 68, 0.08);
  vertical-align: top;
  line-height: 1.6;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table tr:nth-child(even) td { background: rgba(247, 243, 236, 0.6); }
.cookie-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-essential { background: rgba(28, 32, 68, 0.1); color: var(--navy); }
.badge-pending {
  background: rgba(184, 145, 58, 0.1);
  color: var(--text-lt);
  border: 1px dashed var(--gold);
}
.browser-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 24px;
}
.browser-list a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid rgba(28, 32, 68, 0.1);
  border-radius: 4px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: none;
  transition: border-color var(--transition), background var(--transition);
}
.browser-list a:hover { border-color: var(--gold); background: rgba(184, 145, 58, 0.04); }
@media (max-width: 480px) { .browser-list { grid-template-columns: 1fr; } }
