/* Glenaarden Farm Stay (Accommodation) pages, 18 Oct 2026.
   Same blue header family as the Aarden-Hoff site, with its own logo and background. */
:root {
  --stay-blue: #1f3864;
  --stay-blue-2: #2e5395;
  --stay-ink: #26303f;
  --stay-soft: #e8eefa;
  --stay-steel: #cfd4da;
}
* { box-sizing: border-box; }
.stay-body {
  margin: 0; min-height: 100vh;
  font-family: -apple-system, Segoe UI, Roboto, sans-serif; color: var(--stay-ink); line-height: 1.55;
  background-color: var(--stay-blue); background-size: cover; background-position: center; background-attachment: fixed;
}
.stay-body.stay-lb-open { overflow: hidden; }
.stay-overlay { min-height: 100vh; background: rgba(255, 255, 255, 0.58); display: flex; flex-direction: column; }
.stay-body a { color: var(--stay-blue-2); }

/* header */
.stay-nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px;
  padding: 10px 32px; background: rgba(31, 56, 100, 0.94); position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.stay-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.stay-body .stay-brand { color: #fff; }
.stay-logo { height: 80px; width: auto; display: block; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.stay-title { color: #fff; font-weight: 800; font-size: clamp(1.4rem, 2.5vw, 2.2rem); line-height: 1.1; letter-spacing: 0.3px; }
.stay-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.stay-body .stay-links a { color: #fff; text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.stay-body .stay-links a:hover { border-bottom-color: #fff; }
.stay-body .stay-links a.is-current { border-bottom-color: #fff; }
.stay-body .stay-links a.stay-book-pill { padding: 7px 18px; background: #fff; color: var(--stay-blue); border-radius: 20px; border-bottom: 0; font-weight: 700; }
.stay-body .stay-links a.stay-book-pill:hover { background: var(--stay-soft); }
.stay-body .stay-links a.stay-back { opacity: 0.85; font-weight: 500; font-size: 0.92em; }

/* page body */
.stay-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 16px 40px; display: flex; flex-direction: column; gap: 26px; }
.stay-flash-list { max-width: 640px; }
.stay-flash { padding: 10px 16px; border-radius: 8px; font-size: 14px; margin: 0 0 8px; }
.stay-flash-success { background: #e2efda; color: #375623; }
.stay-flash-error { background: #fbe4e4; color: #7f1d1d; }
.stay-admin-bar { margin: 0; font-size: 0.9em; }
.stay-admin-note { font-size: 0.9em; color: #7f1d1d; margin: 8px 0 0; }

.stay-card { background: rgba(255, 255, 255, 0.96); border-radius: 12px; padding: 26px 30px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12); }
.stay-card h1, .stay-card h2, .stay-section h2 { color: var(--stay-blue); margin: 0 0 10px; }
.stay-card h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.stay-section > h2 { background: rgba(255, 255, 255, 0.9); display: inline-block; padding: 6px 16px; border-radius: 8px; }
.stay-small { font-size: 0.92em; color: #4a5568; }
.stay-crumbs { margin: 0; font-size: 0.95em; }
.stay-crumbs a { background: rgba(255, 255, 255, 0.85); padding: 2px 8px; border-radius: 6px; }

/* hero */
.stay-hero { position: relative; border-radius: 14px; overflow: hidden; min-height: 380px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); background: var(--stay-blue); }
.stay-hero-img { width: 100%; height: 100%; min-height: 380px; max-height: 520px; object-fit: cover; display: block; }
.stay-hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 32px 26px; color: #fff;
  background: linear-gradient(to top, rgba(18, 32, 60, 0.92) 25%, rgba(18, 32, 60, 0));
}
.stay-hero-text h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4.4vw, 2.9rem); line-height: 1.12; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.stay-hero-text p { margin: 0 0 14px; max-width: 640px; font-size: 1.08em; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.stay-body a.stay-rating { display: inline-flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.95); color: var(--stay-ink); padding: 8px 16px 8px 10px; border-radius: 12px; text-decoration: none; }
.stay-rating-score { background: var(--stay-blue); color: #fff; font-weight: 800; font-size: 1.4em; border-radius: 8px; padding: 4px 10px; }
.stay-rating-text { font-size: 0.9em; line-height: 1.3; }

/* buttons */
.stay-book-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 6px; }
.stay-body a.stay-btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; text-align: center; border: 2px solid transparent; }
.stay-body a.stay-btn-lekke { background: var(--stay-blue-2); color: #fff; }
.stay-body a.stay-btn-lekke:hover { background: var(--stay-blue); }
.stay-body a.stay-btn-airbnb { background: #fff; color: var(--stay-blue); border-color: var(--stay-blue-2); }
.stay-body a.stay-btn-airbnb:hover { background: var(--stay-soft); }
.stay-body a.stay-btn-ghost { background: #fff; color: var(--stay-blue-2); border-color: var(--stay-blue-2); padding: 8px 18px; }
.stay-body a.stay-btn-ghost:hover { background: var(--stay-soft); }

/* units */
.stay-unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.stay-unit-card { background: rgba(255, 255, 255, 0.96); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); display: flex; flex-direction: column; }
.stay-unit-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.stay-unit-body { padding: 16px 18px 18px; }
.stay-unit-body h3 { margin: 0 0 4px; font-size: 1.4em; }
.stay-unit-body h3 a { color: var(--stay-blue); text-decoration: none; }
.stay-unit-tag { margin: 0 0 6px; color: #4a5568; }
.stay-unit-sleeps { margin: 0 0 12px; font-weight: 600; color: var(--stay-blue-2); }

/* facilities */
.stay-facilities { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
.stay-facilities li { background: var(--stay-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stay-facilities strong { color: var(--stay-blue); }
.stay-facilities span { font-size: 0.93em; color: #3b4658; }

/* photo grid */
.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stay-grid-item { display: block; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); }
.stay-grid-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.25s; }
.stay-grid-item:hover img, .stay-grid-item:focus img { transform: scale(1.05); }

/* unit page */
.stay-unit-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; margin-top: 14px; }
.stay-unit-bigphoto img { width: 100%; border-radius: 10px; display: block; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.stay-facts { width: 100%; border-collapse: collapse; margin-top: 10px; }
.stay-facts th { text-align: left; width: 38%; padding: 8px 10px; background: var(--stay-soft); color: var(--stay-blue); font-weight: 700; border-bottom: 2px solid #fff; vertical-align: top; }
.stay-facts td { padding: 8px 10px; background: #f6f8fc; border-bottom: 2px solid #fff; }
.stay-unit-book { margin-top: 18px; padding-top: 14px; border-top: 1px solid #d7deea; }
.stay-unit-book h2 { margin-bottom: 0; }
.stay-others { display: flex; flex-wrap: wrap; gap: 10px; }

/* map */
.stay-map { margin: 12px 0; border-radius: 10px; overflow: hidden; border: 1px solid #c9d3e0; }
.stay-map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* footer */
.stay-footer { background: rgba(31, 56, 100, 0.94); color: #dbe5f7; text-align: center; padding: 18px 16px; font-size: 0.92em; }
.stay-footer p { margin: 2px 0; }
.stay-body .stay-footer a { color: #fff; }

/* photo viewer */
.stay-lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 18, 34, 0.94); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.stay-lb[hidden] { display: none; }
.stay-lb-figure { margin: 0; max-width: min(1100px, 82vw); text-align: center; }
.stay-lb-figure img { max-width: 100%; max-height: 78vh; border-radius: 6px; display: block; margin: 0 auto; }
.stay-lb-figure figcaption { color: #fff; margin-top: 10px; font-size: 1.05em; }
.stay-lb-close { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; }
.stay-lb-nav { background: rgba(255, 255, 255, 0.15); border: 0; color: #fff; font-size: 48px; line-height: 1; width: 56px; height: 72px; border-radius: 10px; cursor: pointer; flex: 0 0 auto; }
.stay-lb-nav:hover, .stay-lb-close:hover { background: rgba(255, 255, 255, 0.3); }

/* phones and small screens */
@media (max-width: 900px) {
  .stay-unit-grid, .stay-facilities { grid-template-columns: 1fr 1fr; }
  .stay-unit-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stay-nav { padding: 8px 14px; gap: 8px 12px; }
  .stay-logo { height: 64px; }
  .stay-links { gap: 4px 14px; font-size: 0.95em; }
  .stay-unit-grid, .stay-facilities { grid-template-columns: 1fr; }
  .stay-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stay-grid-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stay-grid-item:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
  .stay-card { padding: 20px 18px; }
  .stay-hero { min-height: 0; }
  .stay-hero-img { min-height: 0; height: 240px; }
  .stay-hero-text { position: static; padding: 18px 18px 20px; background: var(--stay-blue); }
  .stay-body a.stay-btn-lekke, .stay-body a.stay-btn-airbnb { width: 100%; }
  .stay-lb-nav { width: 40px; height: 56px; font-size: 36px; }
  .stay-map iframe { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .stay-grid-item img { transition: none; } }

/* units without a photo yet, and a hero without a picture */
.stay-nophoto { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--stay-blue-2); color: #fff; font-weight: 700; font-size: 1.4em; }
.stay-nophoto-big { display: flex; align-items: center; justify-content: center; min-height: 220px; border-radius: 10px; background: var(--stay-soft); color: var(--stay-blue); font-weight: 700; }
.stay-hero-text-plain { position: static; padding: 40px 32px; background: var(--stay-blue); }

/* 19 Oct 2026: server-role banner, shown only to a logged-in admin */
.site-banner { position: sticky; top: 0; z-index: 9999; text-align: center; font: 600 13px/1 system-ui, sans-serif; letter-spacing: .04em; padding: 7px 10px; color: #fff; }
.site-banner-dev { background: #b35c00; }
.site-banner-prod { background: #8f1d1d; }
@media print { .site-banner { display: none; } }
