:root {
  --orange: #ff7a00;
  --black: #000;
  --dark: #111;
}

/* ---------- GLOBAL ---------- */

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: var(--black);
  color: white;
  min-height: 100vh;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Google Maps InfoWindow: remove white bubble ---------- */

/* Outer container */
.gm-style-iw {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-height: none !important;
}

/* Content container */
.gm-style-iw-c {
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  
}

/* Remove the little white pointer/arrow */
.gm-style-iw-t::after {
  display: none !important;
}

/* Hide default close button (we rely on click-away) */
.gm-ui-hover-effect {
  display: none !important;
}

/* Optional: fix max width clamps */
.gm-style-iw-d {
  max-height: min(52vh, 380px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---------- HEADER ---------- */

.site-header {
  text-align: center;
  padding: 20px 10px 10px;
}

.site-logo {
  max-width: 360px;      /* desktop width */
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.tagline {
  margin: 8px 0 15px;
  color: #ccc;
  font-style: italic;
}

header h1 {
  color: var(--orange);
  margin: 0;
  font-size: 3rem;
}

header p {
  margin: 8px 0 15px;
  color: #ccc;
  font-style: italic;
}

/* ---------- NAV ---------- */

nav.main-nav {
  background: var(--orange);
  width: 100%;
}

nav.main-nav .nav-inner {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative; /* allows absolute status */
  overflow: visible;
}

/* Center the menu regardless of status width */
nav.main-nav ul.nav-bar {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  justify-content: center; /* true center */
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

/* Links */
nav.main-nav a {
  text-decoration: none;
  font-weight: bold;
  color: var(--black);
  padding: 10px 0;
  display: inline-block;
  white-space: nowrap;
}

nav.main-nav a:hover {
  color: white;
}

/* Status pinned to the right edge of the nav */
nav.main-nav .nav-status {
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;                 /* ✅ span full nav height */
  display: flex;             /* ✅ center contents vertically */
  align-items: center;       /* ✅ */
  font-size: 0.8rem;
  color: #000;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: auto;
}

/* Mobile: put status below so it doesn't overlap */
@media (max-width: 1100px) {
  nav.main-nav .nav-inner {
    padding: 10px 15px;
  }

  nav.main-nav .nav-status {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 6px;
  }

  nav.main-nav ul.nav-bar {
    gap: 18px;
  }
}

/* ---------- UTIL ---------- */

.hidden {
  display: none !important;
  pointer-events: none;
}

button {
  background: var(--orange);
  border: none;
  padding: 12px 20px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* ---------- AUTH PAGE LAYOUT ---------- */

.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
}

/* ---------- AUTH BOX ---------- */

.auth-section {
  background: var(--dark);
  border: 2px solid var(--orange);
  padding: 30px;
  max-width: 420px;
  width: 100%;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.25);
  border-radius: 6px;
}

.auth-section h2 {
  text-align: center;
  color: var(--orange);
  margin-bottom: 25px;
}

/* ---------- FORMS ---------- */

.auth-section form {
  display: flex;
  flex-direction: column;
}

.auth-section label {
  margin-top: 15px;
  font-size: 0.9rem;
}

.auth-section input,
.auth-section select {
  padding: 10px;
  margin-top: 6px;
  background: #000;
  color: #fff;
  border: 1px solid var(--orange);
  border-radius: 3px;
}

.auth-section input:focus,
.auth-section select:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(255, 122, 0, 0.5);
}

/* ---------- BUTTONS ---------- */

.primary-btn {
  background: var(--orange);
  color: #000;
  padding: 12px;
  border: none;
  margin-top: 25px;
  cursor: pointer;
  border-radius: 3px;
}

.secondary-btn {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 10px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 3px;
}

.secondary-btn:hover {
  background: rgba(255, 122, 0, 0.1);
}

/* ---------- DIVIDER ---------- */

hr {
  border: 1px solid #333;
  margin: 25px 0;
}

/* ---------- CHECKBOX ---------- */

.checkbox-row {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.checkbox-row input {
  margin-right: 10px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 600px) {
  header h1 {
    font-size: 2.3rem;
  }

  .auth-page {
    padding: 40px 15px;
  }

  .auth-section {
    padding: 25px;
  }
}

/* ---------- AUTH MODAL ---------- */

.modal {
  position: fixed;
  inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.65);
  overflow-y: auto;
  z-index: 2147483647;            /* ensure above map */
}

/* Make inputs look aligned and consistent */
.modal-content input,
.modal-content select {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

/* For rows like date range or time row */
.modal-content .row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-content .row > * {
  flex: 1;
  min-width: 160px;
  max-width: 210px;
}

/* Location row: keep button on same line but centered */
.modal-content .location-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.modal-content .location-row input {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.modal-box {
  background: var(--dark);
  border: 2px solid var(--orange);
  padding: 24px 28px;
  max-width: 420px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.35);
  text-align: center;
   max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
 
}

.modal-box p {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

/* hide modal */
.modal.hidden {
  display: none;
}

/* modal content card */
.modal-content {
  width: min(520px, 100%);
  background: #111;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

body.modal-open {
  overflow: hidden;
  height: 100%;
}

.map-actions {
  display: flex;
  justify-content: center;
  padding: 16px 12px;
}

/* Map wrapper MUST have a height */
#mapWrap {
  position: relative;
  width: 100%;
  height: 60vh;      /* adjust as you like */
  z-index: 0;
  overflow: visible;  /* clips overlay to map */
}

/* Leaflet map fills wrapper */
#map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* Overlay confined to map (NOT fixed) */
#mapWrap .modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0,0,0,0.55);
  z-index: 5000;
}

/* Modal overlay fills the map area exactly */
#filterPanel.filter-modal {
  position: absolute;   /* NOT fixed */
  inset: 0;             /* top/right/bottom/left:0 */
  z-index: 6000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px;        /* breathing room on small heights */
  box-sizing: border-box;
  overflow: hidden;     /* prevent clipping artifacts */
}

#filterPanel.filter-modal .modal-content.filter-content {
  width: min(520px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#filterPanel.filter-modal .modal-content.filter-content h3 {
  flex: 0 0 auto;
}

#filterPanel.filter-modal .modal-content.filter-content .filter-actions {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  background: inherit;
  padding-top: 10px;
  margin-top: 10px;
}

#filterPanel.filter-modal .modal-content.filter-content .filter-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mapWrap .modal.hidden { display: none; }

/* ---------- DASHBOARD ---------- */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
}

.card {
  background: var(--dark);
  border: 2px solid var(--orange);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid .full { grid-column: 1 / -1; }
textarea { width: 100%; resize: vertical; }

.map-box {
  height: 260px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255,122,0,0.7);
  overflow: hidden;
}

.hint {
  margin-top: 6px;
  color: #ccc;
  font-size: 0.85rem;
}

.photo-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.photo-row img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,122,0,0.6);
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.event-item {
  border: 1px solid rgba(255,122,0,0.5);
  border-radius: 6px;
  padding: 12px;
  background: rgba(0,0,0,0.35);
}
.event-row {
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.event-actions {
  display:flex;
  gap: 8px;
}
.small-btn {
  padding: 8px 10px;
  font-size: 0.85rem;
}

/* modal width */
.modal-wide { max-width: 720px; }

/* Recurrence panel */
#recurrencePanel select,
#recurrencePanel input[type="date"],
#recurrencePanel input[type="number"] {
  padding: 10px;
  margin-top: 6px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,122,0,0.6);
  border-radius: 6px;
}

/* ---------- DASHBOARD SHELL (SIDEBAR + CONTENT) ---------- */
.dashboard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  padding: 16px;
  min-height: calc(100vh - 220px);
}

.dash-sidebar {
  background: var(--dark);
  border: 2px solid var(--orange);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.12);
  position: sticky;
  top: 12px;
  height: fit-content;
}

.dash-title {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 1.25rem;
  text-align: left;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-link {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,122,0,0.55);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.dash-link:hover {
  background: rgba(255,122,0,0.12);
}

.dash-link.active {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

.dash-content {
  min-width: 0;
}

.dash-panel {
  display: block;
}

/* Mobile: sidebar becomes top row */
@media (max-width: 900px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dash-link {
    flex: 1;
    text-align: center;
  }
}

/* ---------- INFO PANEL WIDTH CONTROL ---------- */

/* Desktop / large screens */
@media (min-width: 1100px) {
  /* Target only the Info panel card */
  #infoPanel .card {
    max-width: 820px;          /* narrower, readable width */
  }
}

/* Medium screens (laptops / tablets landscape) */
@media (max-width: 1099px) {
  #infoPanel .card {
    max-width: 100%;
  }
}

/* Mobile / tablet portrait */
@media (max-width: 900px) {
  #infoPanel .card {
    max-width: 100%;
  }
}

#bizLocationBlock {
  margin-top: 12px;
}

/* ---------- ICON BUTTON ---------- */
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,122,0,0.55);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.icon-btn:hover {
  background: rgba(255,122,0,0.12);
}

/* ---------- BUSINESS VIEW MODE ---------- */
.biz-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.biz-view-row.full {
  grid-column: 1 / -1;
}
.biz-view-row {
  border: 1px solid rgba(255,122,0,0.25);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.25);
}
.biz-k {
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.biz-v {
  color: #fff;
  font-size: 1rem;
  word-break: break-word;
}

.biz-v a {
  color: var(--orange);
  text-decoration: none;
  word-break: break-word;
}

.biz-v a:hover {
  text-decoration: underline;
}

/* Hide edit block when needed */
.biz-edit.hidden,
.biz-view.hidden {
  display: none !important;
}

/* --- Filter overlay style: no box, just controls over dimmed map --- */
.filter-modal {
  background: rgba(0,0,0,0.55);   /* dim map */
  backdrop-filter: blur(1px);      /* optional: subtle blur */
}

/* Remove the "card" look for filter controls */
.filter-content {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: min(560px, 100%);
  text-align: center;
}

/* Make inputs look clean while floating */
.filter-content input,
.filter-content select {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,122,0,0.35);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

/* Labels/hints centered */
.filter-content .hint {
  text-align: center;
}

/* Button row */
.filter-content .filter-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

/* ✅ Audience checkbox rows: perfectly aligned */
.check-row,
.filter-content label.check-row,
.filter-content .audience-row label {
  display: flex;
  align-items: center;    /* key */
  gap: 10px;
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
}

/* Make checkbox sit cleanly */
.check-row input[type="checkbox"],
.filter-content input[type="checkbox"] {
  margin: 0;              /* key */
  transform: translateY(0); /* keep stable */
}

/* If you use spans for text */
.check-row span {
  display: inline-block;
}

/* ---------- EVENTS CARD LAYOUT ---------- */
/* Toolbar */
.events-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* Row: search left, toggle right */
.events-search-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ✅ Search: fixed width, top-left */
.events-search {
  width: 320px;           /* fixed */
  max-width: 100%;
  padding: 10px 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 122, 0, 0.7);
  border-radius: 999px;   /* pill */
}

.events-search:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(255, 122, 0, 0.5);
}

.events-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  user-select: none;
  white-space: nowrap;
}

.events-toggle input {
  transform: scale(1.15);
}

/* Create button sits on its own line; centered */
.events-toolbar .primary-btn {
  align-self: center;
}

/* ---------- GRID LIST ---------- */
.events-list-stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .events-list-stacked {
    grid-template-columns: 1fr 1fr; /* 2 columns desktop */
  }
}

/* ---------- EVENT POST CARD ---------- */

/* default (upcoming/today) */
.event-box {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 122, 0, 0.65);
  border-radius: 10px;
  overflow: hidden; /* lets image flush edge-to-edge like a post */
}

/* past */
.event-box.past {
  border-color: rgba(180, 180, 180, 0.55);
  opacity: 0.88;
}

/* Header area (like post header) */
.event-post-header {
  padding: 14px 14px 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

/* Left info fills width */
.event-post-left {
  min-width: 0;
  flex: 1;
}

/* Top line: date - title */
.event-topline {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.25;
}

/* Time line */
.event-time {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #ccc;
}

/* Description (full width) */
.event-desc {
  padding: 0 14px 12px;
  color: #fff;
  line-height: 1.35;
}

/* ✅ Big photo block like a Facebook post */
.event-media {
  width: 100%;
  display: block;
  background: #000;
}

.event-media img {
  width: 100%;
  height: 260px;          /* big image */
  object-fit: cover;
  display: block;
}

/* If two photos, show side-by-side like a post */
.event-media.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.event-media.two img {
  height: 240px;
}

/* Actions on right */
.event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Optional: slightly tighter small buttons inside posts */
.event-actions .small-btn {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.hours-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.hours-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.hours-day {
  color: #fff;
  font-weight: 700;
}

/* ---------- UPCOMING (PUBLIC PREVIEW) ---------- */
.upcoming-title {
  margin: 0 0 14px 0;
  font-size: 1.15rem;
  color: #fff;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .upcoming-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .upcoming-grid {
    grid-template-columns: 1fr;
  }
}

/* Uses your existing "Facebook post" vibe, but no action buttons */
.upcoming-card {
  border: 2px solid rgba(255,122,0,0.65);
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  overflow: hidden;
}

.upcoming-card-inner {
  padding: 12px;
}

.upcoming-topline {
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
}

.upcoming-time {
  margin-top: 6px;
  font-size: 0.92rem;
  color: #ccc;
}

.upcoming-desc {
  margin-top: 10px;
  color: #fff;
  line-height: 1.35;
  font-size: 0.95rem;
}

.upcoming-media.one img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-top: 1px solid rgba(255,122,0,0.25);
}

.upcoming-media.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.upcoming-media.two img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-top: 1px solid rgba(255,122,0,0.25);
}

/* =========================
   UPCOMING "PUBLIC DISPLAY" MODE
   ========================= */

/* Big centered title */
.upcoming-title {
  text-align: center;
  font-weight: 900;
  font-size: 1.7rem;
  margin: 10px 0 18px;
  color: #fff;
}

/* When Upcoming is active, hide nav + sidebar */
body.upcoming-mode .main-nav {
  display: none !important;
}

body.upcoming-mode .dash-sidebar {
  display: none !important;
}

/* Make dashboard content fill the page */
body.upcoming-mode .dashboard-shell {
  /* remove the left column spacing from sidebar layouts */
  grid-template-columns: 1fr !important;
  padding-top: 0;
}

/* Ensure content stretches full width */
body.upcoming-mode .dash-content {
  width: 100%;
  max-width: 100%;
}

/* Remove card look so it feels like a full-page display */
body.upcoming-mode #upcomingPanel .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Full-page grid (3x3) */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

/* Make it fill available height (minus header) */
body.upcoming-mode main.dashboard-shell {
  min-height: calc(100vh - 110px); /* adjust if your header is taller/shorter */
}

/* Upcoming event tiles */
.upcoming-tile {
  border-radius: 12px;
  border: 2px solid rgba(255,122,0,0.65);
  background: rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Tile text */
.upcoming-tile .tile-topline {
  padding: 12px 12px 6px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.upcoming-tile .tile-time {
  padding: 0 12px 10px;
  color: #ddd;
  font-size: 0.95rem;
}

.upcoming-tile .tile-desc {
  padding: 0 12px 12px;
  color: #fff;
  line-height: 1.35;
  flex: 1;
}

/* Big image like a post */
.upcoming-tile .tile-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
}

.upcoming-tile .tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- BUSINESS VIEW PHOTOS ---------- */
.biz-view .photo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

/* When there are 2 photos → split evenly */
.biz-view .photo-row:has(img:nth-child(2)) {
  grid-template-columns: 1fr 1fr;
}

.biz-view .photo-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,122,0,0.5);
  background: #000;
}

/* ---------- Legacy no-ops (safe) ---------- */
.events-card-header { display: none; }
.events-grid { display: none; }
.event-meta { display: none; }
.event-tags { display: none; }
.event-title { display: none; }
.event-when { display: none; }
.event-photos { display: none; }

#loginStatus {
  position: fixed;
  top: 90px;            /* adjust if your header height differs */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  max-width: 90%;
}

/* Match regular text inputs */
gmp-place-autocomplete {
  display: block;
  width: 100%;
  box-sizing: border-box;

  /* Match your input styles */
  height: 42px;                /* match inputs */
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #000;  

  font-size: 14px;
  font-family: inherit;

  /* Visual consistency */
  line-height: 42px;
}

gmp-place-autocomplete::placeholder {
  color: rgba(0,0,0,0.55);
}

/* Focus state (match inputs :focus) */
gmp-place-autocomplete:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255,122,0,0.18);
}

/* Disabled state if needed */
gmp-place-autocomplete[disabled] {
  background: #f5f5f5;
  color: #999;
}

/* Larger input for key identity fields */
#bizName,
#bizAddress {
  height: 40px;          /* default inputs are usually ~40–42px */
  font-size: 16px;       /* slightly bigger text */
  padding: 0 14px;       /* more breathing room */
}

.search-area-btn {
  position: absolute;
  color: #ff7a00;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* Audience grid layout */
.filter-content .audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 8px;
}

/* Keep each option anchored at the left of its grid cell */
.filter-content .audience-grid .audience-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  /* Make sure all options start at same x-position */
  justify-self: start;

  /* Don’t use gap for spacing */
  gap: 0;

  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 0;
}

/* Make checkbox consistent (removes baseline weirdness) */
.filter-content .audience-grid .audience-option input[type="checkbox"] {
  appearance: auto;
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
}

/* Fixed spacing: identical for every row */
.filter-content .audience-grid .audience-option span {
  display: block;
  margin-left: 10px;   /* ✅ exact same distance every time */
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- Favourites page --------- */
.fav-toolbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin: 10px 0 14px;
}

.fav-toggle{
  display:flex;
  gap:10px;
  align-items:center;
  color:#fff;
  font-size:14px;
  user-select:none;
}

.fav-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

@media (max-width: 1000px){
  .fav-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px){
  .fav-grid{ grid-template-columns:1fr; }
}

.fav-card{
  position:relative;
  border-radius:14px;
  padding:12px 14px;
  background: rgba(18,18,18,0.96);
  color:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.fav-card.is-upcoming{
  border: 1px solid rgba(255,122,0,0.55); /* orange */
}

.fav-card.is-past{
  border: 1px solid rgba(180,180,180,0.45); /* grey */
  opacity: 0.92;
}

.fav-star{
  position:absolute;
  top:10px;
  right:10px;
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,122,0,0.35);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:16px;
}

.fav-title{ font-weight:850; font-size:15px; line-height:1.2; padding-right:40px; }
.fav-sub{ margin-top:4px; opacity:0.85; font-size:13px; }
.fav-when{ margin-top:8px; font-size:13px; }

.fav-desc{ margin-top:10px; font-size:13px; line-height:1.45; opacity:0.92; }

.fav-section{ margin-top:10px; font-size:12.8px; opacity:0.9; }
.fav-label{ font-weight:750; margin-bottom:4px; opacity:1; }
.fav-line a{ color: rgba(255,122,0,0.95); text-decoration:none; font-weight:750; }

.fav-remove{
  margin-top:12px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color:#fff;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
}

/* Nav Menu bar dropdown */

/* Keep the whole nav above the map */
.site-header {
  position: static;   /* default */
  z-index: auto;
}
nav.main-nav {
  position: sticky;      /* or 'fixed' if you prefer */
  top: 0;
  z-index: 2147483647;
}

.nav-status { position: absolute; z-index: 2147483647 !important; }

.nav-status-btn {
  pointer-events: auto;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-caret { pointer-events: none; } /* optional: ensures click lands on button */

.nav-menu{
  position: fixed;              /* ✅ key: not absolute */
  background: rgba(18,18,18,0.98);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 220px;
  z-index: 2147483647;          /* ✅ top */
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.nav-menu-item{
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.nav-menu-item:first-child {
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu-item:hover{ background: rgba(255,255,255,0.06); }
.nav-menu-item.danger{ color: #ffb3b3; }

/* ------- Footer ------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
  width: 100%;
  color: #ffffff;
  text-align: center;
  padding: 12px 20px;
  font-size: 10px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: inline-block;
  margin-left: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links a:hover {
  text-decoration: none;
}

.divider {
  margin: 0 6px;
  opacity: 0.8;
}

/* ------ Cookie Banner ------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #000;
  color: #fff;
  border-top: 3px solid #ff7a00;
  z-index: 9999;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-content a {
  color: #ff7a00;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Social modal layout */
.social-modal { max-width: 980px; }
.social-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.icon-btn{
  border:0;
  background:transparent;
  color:rgba(255,255,255,0.85);
  font-size:18px;
  cursor:pointer;
  padding:6px 10px;
  border-radius:8px;
}
.icon-btn:hover{ background: rgba(255,255,255,0.08); }

.social-modal-body{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:16px;
}
@media (max-width: 900px){
  .social-modal-body{ grid-template-columns: 1fr; }
}

body.modal-open { overflow: hidden; }

#socialModal .modal-box{
  max-height: 90vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.social-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:14px;
}

.input-like{
  width:100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 10px;
  color: rgba(255,255,255,0.92);
  outline: none;
}
.input-like:focus{
  border-color: rgba(255,122,0,0.65);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.15);
}

/* Facebook-ish preview card */
.fb-card{
  background:#fff;
  color:#111;
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.fb-head{
  display:flex;
  gap:10px;
  padding:14px 14px 10px 14px;
  align-items:center;
}
.fb-avatar{
  width:42px;height:42px;border-radius:999px;
  background: linear-gradient(135deg,#d7dbe0,#f4f5f7);
  border: 1px solid rgba(0,0,0,0.08);
}
.fb-meta{ line-height:1.15; }
.fb-page{ font-weight: 700; font-size: 14px; }
.fb-sub{ font-size: 12px; color: #606770; margin-top:2px; }

.fb-text{ padding: 0 14px 12px 14px; }
.fb-title{ font-size: 18px; font-weight: 800; margin: 6px 0 6px; }
.fb-when{ font-size: 13px; color:#1c1e21; margin-bottom:8px; }
.fb-desc{ font-size: 14px; color:#1c1e21; white-space: pre-wrap; }

.fb-photos{
  display:grid;
  grid-template-columns: 1fr;
  gap:0;
  background:#f0f2f5;
}
.fb-photos.two{
  grid-template-columns: 1fr 1fr;
}
.fb-photos img{
  width:100%;
  height: 260px;
  object-fit: cover;
  display:block;
}
@media (max-width: 900px){
  .fb-photos img{ height: 220px; }
}

/* ✅ Footer in the preview card */
.fb-footer{
  width: 100%;                   /* full width of card */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 14px;
  box-sizing: border-box;

  background: #000;              /* ✅ solid black */
  color: #fff;                   /* ✅ white text */
  font-size: 13px;
}

/* Ensure text inside is white */
.fb-footer span{
  color: #fff;
}

.fb-hotspots-link img{
  height: 22px;
  width: auto;
  display:block;
}

.fb-hotspots-link{
  display:inline-flex;
  align-items:center;
  padding: 4px 6px;
  border-radius: 8px;
}

.fb-hotspots-link:hover{
  background: rgba(0,0,0,0.05);
}