/* ==========================================================================
   PUBLIC SITE — home, about, facilities, gallery, contact
   ========================================================================== */

.pub-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(241, 242, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.pub-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--space-5); }
.pub-brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.pub-brand .mark { width: 44px; height: 44px; border-radius: var(--radius-sm); background: #FFFFFF; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; padding: 4px; }
.pub-brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.pub-brand .brand-text { line-height: 1.25; }
.pub-brand .brand-text .line1 { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-base); color: var(--color-ink-navy); }
.pub-brand .brand-text .line2 { font-size: 0.7rem; color: var(--color-text-muted); letter-spacing: 0.02em; }

/* Wrapper holds both the plain-text nav links and the auth buttons, and is
   the single unit that collapses into a dropdown on mobile. Deliberately
   never gives the auth buttons a generic "a { color }" rule to fight with —
   .pub-nav (links) and .pub-nav-actions (buttons) are styled independently. */
.pub-nav-wrapper { display: flex; align-items: center; gap: var(--space-6); flex: 1; justify-content: flex-end; min-width: 0; }
.pub-nav { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.pub-nav a { font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.pub-nav a.current { color: var(--color-ink-navy); font-weight: 700; }
.pub-nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.pub-nav-actions .btn { white-space: nowrap; }
.pub-nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-shrink: 0; }

@media (max-width: 860px) {
  .pub-nav-wrapper { position: fixed; top: 76px; left: 0; right: 0; background: var(--color-surface); flex-direction: column; align-items: stretch; padding: var(--space-5); gap: var(--space-4); border-bottom: 1px solid var(--color-border); transform: translateY(-130%); transition: transform var(--duration-base) var(--ease-standard); justify-content: flex-start; }
  .pub-nav-wrapper.open { transform: translateY(0); }
  .pub-nav { flex-direction: column; align-items: flex-start; gap: var(--space-4); width: 100%; }
  .pub-nav-actions { flex-direction: column; align-items: stretch; width: 100%; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
  .pub-nav-toggle { display: block; }
}

/* ---- Hero: the Occupancy Board as the signature element ---------------- */
.hero { padding: var(--space-9) 0 var(--space-8); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-9); align-items: center; }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } }

.hero-eyebrow { margin-bottom: var(--space-4); }
.hero h1 { font-size: clamp(2.1rem, 4vw, var(--text-5xl)); margin-bottom: var(--space-5); }
.hero .lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 46ch; margin-bottom: var(--space-6); }
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-7); }
.hero-stats { display: flex; gap: var(--space-7); flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-mono); font-size: var(--text-2xl); color: var(--color-ink-navy); font-weight: 500; }
.hero-stats .stat .lbl { font-size: var(--text-xs); color: var(--color-text-muted); }

/* The board itself: a wall-mounted room-key / register grid */
.board-frame {
  background: var(--color-ink-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.board-frame::before {
  content: "OCCUPANCY REGISTER";
  position: absolute; top: -11px; left: var(--space-6);
  background: var(--color-brass); color: #fff;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: var(--radius-sm);
}
.board-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); margin-top: var(--space-2); }
.board-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0; transform: translateY(6px);
  animation: cell-in 0.5s var(--ease-standard) forwards;
}
.board-cell .dot { width: 6px; height: 6px; border-radius: 50%; margin-bottom: 4px; }
.board-cell.st-available .dot { background: #6FCF97; }
.board-cell.st-occupied { background: rgba(169,118,47,0.22); border-color: rgba(169,118,47,0.35); }
.board-cell.st-occupied .dot { background: var(--color-brass-light); }
.board-cell.st-reserved .dot { background: #E8C468; }
.board-cell.st-maintenance { opacity: 0.35 !important; }
.board-cell.st-maintenance .dot { background: #E08585; }
@keyframes cell-in { to { opacity: 1; transform: translateY(0); } }
.board-legend { display: flex; gap: var(--space-5); margin-top: var(--space-5); flex-wrap: wrap; }
.board-legend .item { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.board-legend .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---- Sections ----------------------------------------------------------*/
.section { padding: var(--space-9) 0; }
.section-alt { background: var(--color-surface); }
.section-head { max-width: 640px; margin: 0 auto var(--space-7); text-align: center; }
.section-head .eyebrow { justify-content: center; margin-bottom: var(--space-3); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.feature-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .f-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-brass-tint); color: var(--color-brass); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.feature-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.feature-card p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* Lifecycle stepper on the public site (real sequence: request -> stay -> checkout) */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
@media (max-width: 860px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }
.lifecycle-item { position: relative; padding-top: var(--space-6); }
.lifecycle-item .step-num { font-family: var(--font-mono); color: var(--color-brass); font-size: var(--text-sm); font-weight: 600; }
.lifecycle-item h4 { margin: var(--space-2) 0; }
.lifecycle-item p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

.room-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.room-type-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.room-type-card .swatch { height: 6px; background: var(--color-brass); }
.room-type-card .rt-body { padding: var(--space-5); }
.room-type-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.room-type-card .rate { font-family: var(--font-mono); color: var(--color-ink-navy); font-size: var(--text-xl); font-weight: 500; margin: var(--space-3) 0; }
.room-type-card .rate span { font-size: var(--text-xs); color: var(--color-text-muted); font-family: var(--font-sans); }
.room-type-card ul { list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.room-type-card ul li { padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.room-type-card ul li .icon { color: var(--color-verified); width: 15px; height: 15px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.testimonial-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.testimonial-card .stars { color: var(--color-brass); font-size: var(--text-sm); margin-bottom: var(--space-3); letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--color-text); }
.testimonial-card .who { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-navy); margin-top: var(--space-3); }
.testimonial-card .who span { font-weight: 400; color: var(--color-text-muted); display: block; font-size: var(--text-xs); }

.cta-band { background: var(--color-ink-navy); border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto var(--space-6); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.gallery-grid figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.gallery-grid .ph { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--color-ink-navy-tint), var(--color-brass-tint)); display: flex; align-items: center; justify-content: center; color: var(--color-ink-navy); }
.gallery-grid .ph .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.gallery-grid figcaption { padding: var(--space-3) var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: var(--space-4); margin-bottom: var(--space-5); }
.contact-info-item .ci-icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--color-ink-navy-tint); color: var(--color-ink-navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---- Public footer ------------------------------------------------------*/
.pub-footer { background: var(--color-ink-navy-dark); color: rgba(255,255,255,0.7); padding: var(--space-8) 0 var(--space-5); }
.pub-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 760px) { .pub-footer .container { grid-template-columns: 1fr 1fr; } }
.pub-footer h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-4); }
.pub-footer a { color: rgba(255,255,255,0.7); display: block; margin-bottom: var(--space-2); font-size: var(--text-sm); }
.pub-footer a:hover { color: var(--color-brass-light); }
.pub-footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: var(--text-xs); color: rgba(255,255,255,0.5); }

.login-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .login-split { grid-template-columns: 1fr; } }
.login-side { background: var(--color-ink-navy); color: #fff; padding: var(--space-9); display: flex; flex-direction: column; justify-content: center; position: relative; }
.login-side .quote { font-family: var(--font-serif); font-size: var(--text-2xl); line-height: 1.4; max-width: 30ch; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.login-box { width: 100%; max-width: 400px; }
