/* ============================================================
   THE LODGE – BARGEMON
   Stilark · Provence-tema
   ============================================================ */

:root {
  --teal:        #6ba6a3;
  --teal-dark:   #4a8784;
  --rose:        #f3e5e9;
  --rose-deep:   #c44569;
  --rose-deep-d: #a83555;
  --sand:        #f5efe6;
  --olive:       #8b9467;
  --ink:         #2d2a26;
  --ink-soft:    #5a5651;
  --muted:       #8c867d;
  --line:        #e7e0d3;
  --bg:          #faf7f1;
  --white:       #ffffff;
  --danger:      #c14444;
  --shadow-sm:   0 2px 8px rgba(45,42,38,.06);
  --shadow-md:   0 8px 24px rgba(45,42,38,.10);
  --shadow-lg:   0 20px 48px rgba(45,42,38,.14);
  --radius:      6px;
  --radius-lg:   12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4, .brand-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 .8em; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .5em; font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: var(--teal-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--rose-deep); }

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

/* ---------- Layout ---------- */
.container       { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow{ max-width: 820px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.brand {
  display: flex; flex-direction: column; line-height: 1; gap: 2px;
}
.brand-main {
  font-size: 1.6rem; color: var(--ink); letter-spacing: .02em;
}
.brand-sub {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .25em;
  color: var(--teal-dark);
}
.main-nav {
  display: flex; gap: 28px; align-items: center;
  font-size: .92rem;
}
.main-nav a {
  color: var(--ink-soft); font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: all .15s;
}
.main-nav a:hover { color: var(--rose-deep); border-bottom-color: var(--rose-deep); }
.nav-admin {
  padding: 8px 18px !important; border: 1px solid var(--teal) !important;
  border-radius: var(--radius); border-bottom: 1px solid var(--teal) !important;
  color: var(--teal-dark) !important;
}
.nav-admin:hover { background: var(--teal); color: white !important; border-color: var(--teal) !important; }

/* ---------- Hero ---------- */
.hero {
  min-height: 70vh;
  background:
    linear-gradient(135deg, rgba(107,166,163,.15), rgba(196,69,105,.10)),
    var(--sand);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(107,166,163,.20), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(196,69,105,.15), transparent 50%);
}
.hero-inner { position: relative; z-index: 1; padding: 80px 24px; max-width: 900px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .35em;
  font-size: .8rem; color: var(--teal-dark); margin-bottom: 16px;
}
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); font-style: italic; margin-bottom: 32px; }

.page-hero {
  padding: 70px 0 50px;
  background: linear-gradient(135deg, var(--rose), var(--sand));
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 32px; border: none;
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  font-weight: 500; cursor: pointer; text-decoration: none;
  transition: all .2s; letter-spacing: .02em;
}
.btn-primary {
  background: var(--teal-dark); color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--rose-deep); color: white;
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--white); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--sand); color: var(--ink); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #a93636; }
.btn-small  { padding: 6px 14px; font-size: .85rem; }

/* ---------- Sections ---------- */
.info-section { padding: 80px 0; }
.info-section.alt { background: var(--white); }
.info-section h2 { text-align: center; margin-bottom: 1.5em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); text-align: center; max-width: 760px; margin: 0 auto 3em; }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px; margin: 32px 0;
}
.info-grid > div {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--teal);
  transition: transform .2s, box-shadow .2s;
}
.info-grid > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-grid h3 { margin-top: 0; color: var(--rose-deep); }
.info-grid ul { padding-left: 18px; color: var(--ink-soft); }
.info-grid li { margin-bottom: 6px; }

/* ---------- Fact bar ---------- */
.fact-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 16px; margin-top: 60px; padding: 32px;
  background: var(--rose); border-radius: var(--radius-lg);
  text-align: center;
}
.fact-bar > div { display: flex; flex-direction: column; }
.fact-bar strong {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  color: var(--rose-deep); line-height: 1;
}
.fact-bar span { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Price table ---------- */
.price-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th {
  background: var(--teal-dark); color: white; font-weight: 500;
  padding: 16px; text-align: left; letter-spacing: .03em;
}
.price-table td { padding: 16px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover td { background: var(--sand); }
.note { color: var(--ink-soft); font-size: .92rem; margin-top: 24px; text-align: center; }

/* ---------- Slideshow ---------- */
.slideshow-wrap {
  padding: 60px 0; background: var(--white);
}
.slideshow-wrap h2 { text-align: center; margin-bottom: 32px; }
.empty-slides {
  text-align: center; padding: 60px; background: var(--sand);
  border-radius: var(--radius-lg); color: var(--muted);
}
.slideshow {
  position: relative; max-width: 1000px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000;
  aspect-ratio: 16/10;
}
.slides { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: white; padding: 60px 32px 24px; font-size: 1.1rem;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); border: none;
  width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem; color: var(--ink);
  transition: background .15s; display: flex; align-items: center; justify-content: center;
}
.slide-btn:hover { background: white; }
.slide-btn.prev { left: 16px; }
.slide-btn.next { right: 16px; }
.slide-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid white; background: transparent;
  cursor: pointer; padding: 0;
  transition: background .15s;
}
.dot.active { background: white; }

/* ---------- Booking form ---------- */
.booking-card {
  background: var(--white); padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 32px;
  border-top: 3px solid var(--teal);
}
.booking-card.success { border-top-color: #4caf50; text-align: center; }
.booking-card h2 { margin-top: 0; }

.date-row {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px;
  align-items: end; margin-bottom: 24px;
}
.date-row .btn { padding: 12px 24px; }

label {
  display: block; font-size: .88rem; color: var(--ink-soft);
  margin-bottom: 14px; font-weight: 500;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"], input[type="password"],
textarea, select {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  background: var(--white); transition: border-color .15s, box-shadow .15s;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(107,166,163,.15);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) {
  .form-row, .date-row { grid-template-columns: 1fr; }
}

.form-actions { margin-top: 24px; }

.info-box {
  padding: 16px 20px; border-radius: var(--radius);
  margin: 16px 0; font-size: .95rem;
}
.info-box.available { background: #e8f4e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.info-box.unavailable { background: #fde8e8; color: #c14444; border-left: 4px solid #c14444; }
.info-box.error { background: #fde8e8; color: #c14444; border-left: 4px solid #c14444; }

.price-summary {
  background: var(--sand); padding: 24px;
  border-radius: var(--radius); margin-top: 24px;
}
.price-summary h3 { margin-top: 0; }
.price-summary ul { list-style: none; padding: 0; margin: 0 0 12px; }
.price-summary li {
  display: flex; justify-content: space-between;
  padding: 6px 0; color: var(--ink-soft); font-size: .9rem;
}
.price-line {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.price-line.total {
  font-size: 1.2rem; font-weight: 600;
  border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 8px;
}

.muted { color: var(--muted); }
.muted.small { font-size: .85rem; }

/* Fødselsdato-gruppe (3 dropdowns) */
.birthdate-group {
  display: grid;
  grid-template-columns: 70px 1fr 90px;
  gap: 8px;
  margin-top: 6px;
}
.birthdate-group select {
  margin: 0;
  width: 100%;
  padding: 10px 8px;
}
@media (max-width: 480px) {
  .birthdate-group { grid-template-columns: 60px 1fr 80px; gap: 6px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px; margin-bottom: 40px;
}
.contact-card {
  background: var(--white); padding: 28px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--rose-deep);
}
.contact-card h3 { margin-top: 0; color: var(--rose-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cfc8bd; padding: 60px 0 24px; margin-top: 80px;
}
.site-footer h4 {
  color: white; font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; margin: 0 0 12px;
}
.site-footer a { color: var(--rose); }
.site-footer a:hover { color: white; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.copy {
  text-align: center; margin-top: 24px; font-size: .85rem; opacity: .6;
}
