/* ============ Alfie Lofts ============ */
:root {
  --ink: #1b1a17;
  --ink-soft: #4c463f;
  --paper: #faf7f2;
  --paper-deep: #f1ebe2;
  --brick: #a4472e;
  --brick-dark: #7e3421;
  --wood: #8a5a33;
  --line: #e2d9cc;
  --radius: 12px;
  --max: 1080px;
  font-size: 16px;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .stat-num, .rate-price, .avail-range {
  font-family: "Fraunces", Georgia, serif;
}

img { max-width: 100%; display: block; }
a { color: var(--brick); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 26, 23, 0.97);
  color: #fff;
  border-bottom: 3px solid var(--brick);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.tab {
  color: #d8d2c8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.tab.active { background: var(--brick); color: #fff; }

/* ---------- panels ---------- */
.panel {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  animation: fadein 0.35s ease;
}
.panel.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; line-height: 1.15; margin-bottom: 0.75rem; }
.panel h2 { font-size: 1.35rem; font-weight: 600; margin: 1.75rem 0 0.6rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brick);
  margin-bottom: 0.75rem;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; margin-bottom: 1.5rem; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.hero-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(27,26,23,0.18);
}
.hero-cta { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.12s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 0.85rem 1.8rem; }

/* ---------- stats ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-block: 1px solid var(--line);
  padding: 1.4rem 0;
  margin-bottom: 2.5rem;
  gap: 1rem;
  text-align: center;
}
.stat-num { font-size: 1.9rem; font-weight: 600; display: block; line-height: 1.1; }
.stat-num small { font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

/* ---------- columns & lists ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.two-col h2:first-child { margin-top: 0; }

.amenities, .loc-list { list-style: none; }
.amenities li, .loc-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.amenities li::before, .loc-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--brick);
  transform: rotate(45deg);
}

/* ---------- map ---------- */
.map-wrap { margin-top: 2.5rem; }
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(27,26,23,0.12);
}
.map-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
  cursor: zoom-in;
  box-shadow: 0 6px 18px rgba(27,26,23,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.gallery-grid figure:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27,26,23,0.15); }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-grid figcaption { padding: 0.7rem 0.9rem; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 15, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 8px; object-fit: contain; }
.lightbox-caption { color: #d8d2c8; margin-top: 1rem; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- rates ---------- */
.rate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
}
.rate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.rate-card.featured { border: 2px solid var(--brick); box-shadow: 0 10px 26px rgba(164,71,46,0.12); }
.rate-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.rate-price { font-size: 1.6rem; font-weight: 600; color: var(--brick); margin-bottom: 0.5rem; }
.rate-card p:last-child { font-size: 0.92rem; color: var(--ink-soft); }

.booking-steps { margin: 0.5rem 0 1rem 1.25rem; }
.booking-steps li { padding: 0.4rem 0; }
.fine-print { font-size: 0.88rem; color: var(--ink-soft); max-width: 68ch; }

.cta-band {
  margin-top: 2.5rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-band p { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; }

/* ---------- availability ---------- */
.avail-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
.avail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brick);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.avail-range { font-size: 1.3rem; font-weight: 600; display: block; }
.avail-meta { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- contact ---------- */
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  max-width: 560px;
}
.contact-email { margin-bottom: 1rem; }
.contact-email a {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  word-break: break-all;
}
.contact-box .btn { margin-top: 1.25rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d8d2c8;
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); row-gap: 1.25rem; }
  .rate-cards { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; }
}
