:root {
  --navy: #0b1f3a;
  --navy-2: #122b4f;
  --navy-3: #1b3a66;
  --red: #b3202a;
  --red-2: #d12f3a;
  --gold: #d4a843;
  --gold-hover: #b88d2d;
  --cream: #f8f6f0;
  --ink: #1c2430;
  --muted: #5f6b7a;
  --border-light: #e5ded3;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11,31,58,.10);
  --shadow-lg: 0 16px 40px rgba(11,31,58,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.eyebrow {
  font-family: 'Oswald', sans-serif;
  color: var(--red);
  letter-spacing: .18em;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .95rem;
  line-height: 1.25;
  text-align: center;
  transition: .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  max-width: 100%;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); color: #fff; }
.btn-facebook { background: #1877f2; color: #fff; font-size: .85rem; padding: .6rem 1.2rem; }
.btn-facebook:hover { background: #1464cc; }

/* Site Alert Banner */
.site-alert {
  padding: .65rem 0;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
}
.alert-urgent { background: #d12f3a; color: #fff; }
.alert-warning { background: #e07a14; color: #fff; }
.alert-info { background: #1b3a66; color: #fff; }

/* Topbar */
.topbar { background: var(--red); color: #fff; font-size: .85rem; }
.topbar-flex { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; flex-wrap: wrap; gap: .5rem 1rem; }
.topbar-left { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; align-items: center; }
.topbar-right { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.bingo-badge {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  letter-spacing: .05em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.badge-open { background: #1e7e34; }
.badge-closed { background: #343a40; }
.officer-link { color: rgba(255,255,255,.88); font-size: .8rem; text-decoration: underline; white-space: nowrap; }
.officer-link:hover { color: #fff; }

/* Modular Admin Portal Navigation */
.admin-topbar {
  background: #081628;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: .6rem 0;
}
.admin-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
}
.admin-brand-group {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.admin-user-group {
  display: flex;
  align-items: center;
  gap: .5rem .75rem;
  font-size: .85rem;
  color: #ccc;
  flex-wrap: wrap;
}
.admin-user-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-nav-bar {
  background: #0f2444;
  border-bottom: 2px solid #d4af37;
}
.admin-nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0 .2rem;
  font-size: .88rem;
}
.admin-tab {
  display: inline-block;
  padding: .7rem .85rem;
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.admin-tab.active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: #d4af37;
  background: rgba(212, 175, 55, 0.15);
}

/* Admin Page Layout Helpers */
.admin-main { padding: 2.5rem 0; }
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.admin-page-head h1,
.admin-h1 {
  color: var(--navy);
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  margin: .25rem 0;
}
.admin-actions-row {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.admin-split-venues {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}
.admin-split-posts {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}

/* Subtabs & Modals (Bookings / Admin) */
.subtab-bar {
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.booking-subtab {
  padding: .6rem 1rem;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  color: #555;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.booking-subtab.active {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  padding: 2rem;
}

/* Public Navigation */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.98);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand-text strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1.2rem; letter-spacing: .05em; line-height: 1.1; }
.brand-text small { display: block; font-size: .72rem; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; align-items: center; font-family: 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.nav-links a { opacity: .85; transition: .2s; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links .nav-cta { background: var(--gold); color: var(--navy); padding: .45rem 1rem; border-radius: 999px; font-weight: 600; opacity: 1; }
.nav-links .nav-cta:hover { background: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; padding: .2rem .4rem; line-height: 1; flex-shrink: 0; }

/* Hero & Page Sub-Heroes */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(115deg, rgba(11,31,58,.97) 0%, rgba(11,31,58,.90) 50%, rgba(179,32,42,.75) 100%),
              repeating-linear-gradient(180deg, #1b3a66 0 40px, #122b4f 40px 80px);
  padding: 6rem 0 7rem;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); margin: .6rem 0 1.2rem; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: 1.1rem; max-width: 540px; opacity: .9; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 1rem; }
.hero-card .row { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); align-items: center; }
.hero-card .row:last-child { border: 0; }
.hero-card .ico { font-size: 1.3rem; width: 30px; text-align: center; flex-shrink: 0; }
.hero-card small { display: block; opacity: .7; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-top: .5rem;
}
.page-hero p {
  max-width: 650px;
  opacity: .9;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-top: 1rem;
}

.stripe { height: 8px; background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 66%, var(--navy-3) 66%); }

/* Stats Bar */
.stats { margin-top: -3.5rem; position: relative; z-index: 2; margin-bottom: 3rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 1.8rem 1rem; text-align: center; border-right: 1px solid var(--border-light); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

/* Sections & Generic Split Grids */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.85rem, 4.5vw, 2.8rem); color: var(--navy); margin: .4rem 0 .8rem; }
.section-head p { color: var(--muted); }

.split-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.split-grid-2-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.bingo-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }

/* About split */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.about-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.about-gallery img { border-radius: var(--radius); height: 180px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.checks { list-style: none; margin: 1.2rem 0 1.8rem; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 1.6rem; display: block; line-height: 1.6; }
.checks li::before { content: "★"; color: var(--red); font-size: 1rem; position: absolute; left: 0; top: 0; line-height: 1.6; }

/* Grid Cards (Rentals & Events) */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,31,58,.14); }
.card-img-wrap { height: 190px; overflow: hidden; background: #e0ded8; position: relative; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-body h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .6rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; flex: 1; }
.card-price { font-family: 'Oswald', sans-serif; font-size: 1.3rem; color: var(--red); margin-bottom: 1rem; }

/* Social Feed / Events Split */
.events-social-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
.calendar-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow); background: #fff; width: 100%; }
.facebook-box { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border-light); box-shadow: var(--shadow); width: 100%; min-width: 0; }

/* Availability & Admin Calendars */
.cal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.cal-controls h2,
.cal-controls h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  text-align: center;
  flex: 1;
  min-width: 0;
}
.pub-cal-grid-head,
.pub-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  background: #cbd5e1;
  border: 1px solid #cbd5e1;
}
.pub-cal-grid { border-top: none; }
.pub-cal-day-head {
  background: #0b1f3a;
  color: #fff;
  text-align: center;
  padding: 6px 2px;
  font-weight: 600;
  font-size: .82rem;
}
.pub-cal-cell {
  min-height: 72px;
  padding: 6px;
  font-size: .8rem;
  min-width: 0;
  overflow: hidden;
}
.admin-cal-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-cal-inner {
  min-width: 620px;
}
.calendar-day-cell {
  border: none;
  min-height: 85px;
  padding: 6px;
  background: #fff;
  font-size: .8rem;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.calendar-day-header {
  background: #0b1f3a;
  color: #fff;
  text-align: center;
  padding: 6px;
  font-weight: 600;
  font-size: .85rem;
}
.event-tag {
  display: block;
  margin-top: 3px;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: .7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* Forms */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  min-width: 0;
}
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; min-width: 0; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.form-control {
  width: 100%;
  max-width: 100%;
  padding: .8rem .95rem;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--cream);
  transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--navy-3); background: #fff; }
textarea.form-control { min-height: 120px; resize: vertical; }

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.info-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.info-table th, .info-table td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--border-light); font-size: .92rem; }
.info-table th { font-family: 'Oswald', sans-serif; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; background: rgba(0,0,0,.02); white-space: nowrap; }

/* Footer */
.site-footer { background: #07152a; color: rgba(255,255,255,.75); padding: 4.5rem 0 2rem; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand { margin-bottom: 1rem; color: #fff; }
.foot-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.foot-col ul { list-style: none; display: grid; gap: .6rem; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
.crisis-badge { display: inline-block; background: var(--red); color: #fff; padding: .35rem .85rem; border-radius: 999px; font-weight: 600; }

/* =========================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .events-social-split,
  .foot-grid,
  .split-grid-2,
  .split-grid-2-wide,
  .bingo-split,
  .admin-split,
  .admin-split-venues,
  .admin-split-posts {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border-light); }
  .form-card { padding: 1.75rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 4%;
    gap: .35rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .55rem .25rem; }
  .nav-links .nav-cta { text-align: center; margin-top: .35rem; }
  .menu-btn { display: block; }
}

@media (max-width: 640px) {
  .container { width: 92%; }
  section { padding: 3rem 0; }
  .section-head { margin-bottom: 2rem; }
  .hero { padding: 3.25rem 0 4.75rem; }
  .hero-card { padding: 1.25rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .page-hero { padding: 2.5rem 0; }
  .admin-main { padding: 1.5rem 0; }

  .topbar { font-size: .78rem; }
  .topbar-flex { justify-content: center; text-align: center; padding: .4rem 0; }
  .topbar-left, .topbar-right { justify-content: center; width: 100%; }

  .card-grid-3,
  .form-grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .stat { padding: 1.25rem .75rem; }
  .stat b { font-size: 1.75rem; }
  .stat span { font-size: .74rem; }

  .about-gallery { gap: .65rem; }
  .about-gallery img { height: 140px; }

  .form-card,
  .facebook-box,
  .card-body {
    padding: 1.25rem;
  }
  .modal-overlay { padding: .6rem; }
  .modal-box { padding: 1.25rem; max-height: 92vh; }

  .btn { padding: .7rem 1.15rem; font-size: .88rem; }

  /* Compact Public Availability Calendar on Mobile */
  .pub-cal-day-head { font-size: .72rem; padding: 5px 1px; }
  .pub-cal-cell {
    min-height: 52px;
    padding: 4px 2px !important;
    font-size: .75rem !important;
    text-align: center;
  }
  .pub-cal-status {
    font-size: .6rem !important;
    line-height: 1.15;
    margin-top: 2px !important;
  }

  .info-table th, .info-table td { padding: .6rem .65rem; font-size: .84rem; }
  .admin-user-name { max-width: 140px; }
  .site-footer { padding: 3rem 0 1.5rem; }
  .foot-bottom { justify-content: center; text-align: center; }
}
