/* ---------------------------------------------------------------------------
   Twin Hills Garage Sale -- Reskinned to match twinhillstxhoa.com
   Aesthetic: traditional community, soft teal + warm cream, clean serifs
   --------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --teal:        #7aafc0;
  --teal-dark:   #5a8fa0;
  --teal-deeper: #3d6f80;
  --teal-light:  #e4f0f4;
  --teal-pale:   #f0f7f9;
  --cream:       #f5f0e8;
  --cream-light: #faf7f2;
  --white:       #ffffff;
  --charcoal:    #3a3a3a;
  --gray-700:    #555555;
  --gray-500:    #888888;
  --gray-300:    #c8c4be;
  --gray-100:    #edeae4;
  --amber:       #c8a45a;
  --amber-light: #fdf6e8;
  --red:         #b5453a;
  --red-light:   #fdecea;
  --green:       #4a8a5c;
  --green-light: #e8f2eb;
  --radius:      4px;
  --radius-lg:   6px;
  --shadow:      0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg:   0 3px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --font-body:   'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:'Lora', Georgia, 'Times New Roman', serif;
  --max-width:   720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream-light);
  line-height: 1.65;
  min-height: 100vh;
}

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.page-wrap.wide { max-width: 960px; }
.page-wrap.full { max-width: 100%; padding: 0; }

/* ---------------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; color: var(--charcoal); }

h1 {
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }

.subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Top bar -- mimics the HOA site nav style
   --------------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  background: var(--white);
  border-bottom: 2px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 900;
}
.topbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.topbar-nav { display: flex; gap: 1.5rem; }
.topbar-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}
.topbar-nav a:hover { color: var(--teal-dark); text-decoration: none; }
.topbar-nav a.active { color: var(--teal-dark); }

/* ---------------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--gray-100);
}

/* ---------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------- */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}
.form-group .hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(122, 175, 192, 0.2);
}

textarea { resize: vertical; min-height: 70px; }

.inline-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--teal-pale);
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.consent-row input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--teal-dark);
}
.consent-row label { font-size: 0.85rem; font-weight: 400; color: var(--gray-700); }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius);
}

.btn-approve  { background: var(--green-light); color: var(--green); }
.btn-approve:hover { background: var(--green); color: var(--white); }

.btn-hide     { background: var(--gray-100); color: var(--gray-700); }
.btn-hide:hover { background: var(--gray-300); }

.btn-delete   { background: var(--red-light); color: var(--red); }
.btn-delete:hover { background: var(--red); color: var(--white); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
}
.btn-outline:hover { background: var(--teal-light); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------------- */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #c2dfc9; }
.alert-error   { background: var(--red-light); color: var(--red); border: 1px solid #f5d5d2; }
.alert-info    { background: var(--amber-light); color: #8a6420; border: 1px solid #f0ddb8; }

/* ---------------------------------------------------------------------------
   Status badges
   --------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-approved     { background: var(--green-light); color: var(--green); }
.badge-pending      { background: var(--amber-light); color: #8a6420; }
.badge-needs_review { background: #fef3cd; color: #856404; }
.badge-hidden       { background: var(--gray-100); color: var(--gray-500); }

/* ---------------------------------------------------------------------------
   Admin table
   --------------------------------------------------------------------------- */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.admin-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  padding: 0.55rem 0.5rem;
  border-bottom: 2px solid var(--gray-100);
}
.admin-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.admin-table tr:hover td { background: var(--teal-pale); }
.actions-cell { display: flex; gap: 0.3rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
   Stats bar
   --------------------------------------------------------------------------- */
.stats-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  padding: 0.75rem 1rem;
  text-align: center;
  flex: 1;
  min-width: 90px;
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-deeper);
}
.stat-card .stat-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------------
   Map
   --------------------------------------------------------------------------- */
#map {
  width: 100%;
  height: calc(100vh - 48px);
  z-index: 1;
}
.map-overlay {
  position: absolute;
  top: 60px;
  left: 12px;
  z-index: 800;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  padding: 1rem 1.15rem;
  max-width: 260px;
}
.map-overlay h2 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.map-overlay .count {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
}
.map-legend {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.legend-item { display: flex; align-items: center; gap: 0.4rem; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ---------------------------------------------------------------------------
   Google Maps overrides
   --------------------------------------------------------------------------- */
.gm-style .gm-style-iw-c {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
}
.gm-style .gm-style-iw-d {
  overflow: auto !important;
}

/* Google Maps popup text */
.popup-address { font-weight: 600; margin-bottom: 0.2rem; }
.popup-notes { color: var(--gray-500); font-size: 0.78rem; }

/* ---------------------------------------------------------------------------
   Home / hero
   --------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 1.75rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.hero h1 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gray-700);
  margin-bottom: 0.3rem;
  font-style: italic;
}
.hero .subtitle {
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto 1.75rem;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Teal info strip (mimics the HOA site board-info bar) */
.info-strip {
  background: var(--teal);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 1.5rem auto 2rem;
  max-width: 580px;
}
.info-strip-item { text-align: center; }
.info-strip-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.info-strip-item .value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  padding: 1.25rem;
  text-align: center;
}
.info-card .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.6rem;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.info-card h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.info-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.45; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .hero-name { font-size: 1.8rem; }
  .hero h1 { font-size: 1.15rem; }
  .inline-row { grid-template-columns: 1fr; }
  .page-wrap { padding: 1.25rem 1rem 3rem; }
  .stats-bar { gap: 0.4rem; }
  .stat-card { padding: 0.55rem 0.6rem; }
  .stat-card .stat-num { font-size: 1.3rem; }
  .map-overlay { max-width: calc(100% - 24px); top: 56px; }
  .topbar-nav { gap: 0.85rem; }
  .topbar-nav a { font-size: 0.72rem; }
  .info-strip { gap: 1.25rem; padding: 0.85rem 1rem; }
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--white);
  border-top: 2px solid var(--teal);
  padding: 1.5rem 1.25rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: var(--teal-dark);
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.72rem; color: var(--gray-300); margin-top: 0.4rem; }
.footer-credit { font-size: 0.7rem; color: var(--gray-300); margin-top: 0.25rem; opacity: 0.85; }
.footer-credit a { color: inherit; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; color: var(--teal-dark); }

/* ---------------------------------------------------------------------------
   Email modal (admin)
   --------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
}
.modal-box h3 { margin-bottom: 1rem; }
.modal-box .form-group:last-of-type { margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

/* ---------------------------------------------------------------------------
   Day-of-event UI: badges, filter buttons, signup checkboxes, legend split dot
   --------------------------------------------------------------------------- */

/* Color tokens for the two days */
:root {
  --day30: #0891b2;        /* teal — Saturday May 30 */
  --day31: #ec4899;        /* pink — Sunday May 31 */
  --day30-pale: #cffafe;
  --day31-pale: #fce7f3;
}

/* Signup form: which-days checkbox row */
.day-checkbox-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.day-checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.day-checkbox:hover {
  border-color: var(--gray-300);
}
.day-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  cursor: pointer;
  accent-color: var(--teal);
  margin: 0;
  flex-shrink: 0;
}
.day-checkbox-swatch {
  width: 14px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}
.day-checkbox-30 .day-checkbox-swatch { background: var(--day30); }
.day-checkbox-31 .day-checkbox-swatch { background: var(--day31); }
.day-checkbox-text {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  line-height: 1.3;
}
.day-checkbox-text strong {
  font-weight: 600;
  color: var(--charcoal);
}
.day-checkbox-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Visual highlight when checked */
.day-checkbox-30:has(input:checked) {
  border-color: var(--day30);
  background: var(--day30-pale);
}
.day-checkbox-31:has(input:checked) {
  border-color: var(--day31);
  background: var(--day31-pale);
}
.day-checkbox:has(input:checked) {
  border-color: var(--event-day-color, var(--teal));
  background: var(--event-day-pale, var(--teal-pale));
}

/* Browse + map page: day filter button row */
.day-filter-wrap {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.day-filter-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 500;
}
.day-filter-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.day-filter-btn {
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-pill, 999px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
  font-family: inherit;
}
.day-filter-btn:hover {
  border-color: var(--gray-300);
  background: var(--gray-50, #f7f5f1);
}
.day-filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.day-filter-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.day-filter-dot-30 { background: var(--day30); }
.day-filter-dot-31 { background: var(--day31); }
.day-filter-btn.active .day-filter-dot { box-shadow: 0 0 0 2px white; }

/* Browse cards: day badges */
.sale-card-days {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  padding-left: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.day-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  color: white;
  text-transform: uppercase;
}
.day-badge-30 { background: var(--day30); }
.day-badge-31 { background: var(--day31); }
.day-badge-both {
  background: linear-gradient(90deg, var(--day30) 50%, var(--day31) 50%);
  position: relative;
}

/* Map overlay: day filter (compact, sits inside the overlay box) */
.map-day-filter {
  margin: 0.5rem 0 0.7rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-100);
}
.map-day-filter-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.map-day-filter-buttons {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.map-day-filter-btn {
  padding: 0.32rem 0.65rem;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-pill, 999px);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.map-day-filter-btn:hover {
  border-color: var(--gray-300);
}
.map-day-filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

/* Map legend: split-color dot for "both days" */
.legend-dot-split {
  background: linear-gradient(90deg, var(--day30) 50%, var(--day31) 50%);
}


/* ===========================================================================
   Event card (replaces .info-strip on the homepage)
   Two big calendar-page-style date blocks, color-coded by day
   =========================================================================== */
.event-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 50, 60, 0.08), 0 2px 6px rgba(15, 50, 60, 0.04);
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 0 auto 1.5rem;
  max-width: 560px;
  position: relative;
  overflow: hidden;
}
/* subtle accent gradient at the top */
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--day30, #0891b2) 0%, var(--day30, #0891b2) 50%, var(--day31, #ec4899) 50%, var(--day31, #ec4899) 100%);
}

.event-dates {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.event-date-block {
  flex: 1 1 0;
  max-width: 180px;
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 14px;
  padding: 0.75rem 0.5rem 0.85rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-date-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.event-date-30::before { background: var(--day30, #0891b2); }
.event-date-31::before { background: var(--day31, #ec4899); }

.event-date-30 { border-color: var(--day30-pale, #cffafe); }
.event-date-31 { border-color: var(--day31-pale, #fce7f3); }

.event-date-dow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
}
.event-date-30 .event-date-dow { color: var(--day30, #0891b2); }
.event-date-31 .event-date-dow { color: var(--day31, #ec4899); }

.event-date-num {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin: 0.1rem 0;
}

.event-date-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray-500);
}

.event-date-amp {
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--gray-300);
  font-weight: 400;
  padding: 0 0.15rem;
  user-select: none;
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--gray-100);
}
.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--gray-700);
  font-weight: 500;
}
.event-meta-item svg { color: var(--teal); flex-shrink: 0; }
.event-meta-divider {
  width: 1px;
  height: 18px;
  background: var(--gray-100);
}

/* Tablet/mobile tweaks */
@media (max-width: 560px) {
  .event-card {
    padding: 1.1rem 0.85rem 1rem;
    border-radius: 14px;
  }
  .event-dates { gap: 0.35rem; }
  .event-date-block { padding: 0.6rem 0.3rem 0.7rem; border-radius: 11px; }
  .event-date-num { font-size: 2.8rem; }
  .event-date-dow { font-size: 0.66rem; letter-spacing: 0.1em; }
  .event-date-month { font-size: 0.62rem; letter-spacing: 0.12em; }
  .event-date-amp { font-size: 1.3rem; padding: 0; }
  .event-meta { gap: 0.5rem; padding-top: 0.7rem; }
  .event-meta-item { font-size: 0.78rem; gap: 0.35rem; }
  .event-meta-divider { display: none; }
}

/* ===========================================================================
   Day filter dot variants (added Both Days swatch)
   =========================================================================== */
.day-filter-dot-both {
  background: linear-gradient(90deg, var(--day30, #0891b2) 50%, var(--day31, #ec4899) 50%);
}

/* ===========================================================================
   Map page mobile UX
   - Collapsible overlay (full controls on desktop, summary + toggle on mobile)
   - Wider zoom range on small screens so the map starts more zoomed out
   =========================================================================== */
@media (max-width: 720px) {
  /* Move the overlay to the bottom and make it horizontal-friendly */
  .page-wrap.full {
    height: calc(100vh - 56px); /* subtract topbar */
  }
  .map-overlay {
    /* Reposition: bottom of the screen, full-width, slide-up drawer feel */
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 0.85rem 1rem 1rem !important;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.12) !important;
    max-height: 45vh;
    overflow-y: auto;
  }
  .map-overlay h2 {
    font-size: 1rem !important;
    margin: 0 0 0.25rem !important;
  }
  .map-overlay .count { font-size: 0.85rem !important; margin-bottom: 0.5rem !important; }

  /* Collapsible behavior on mobile */
  .map-overlay.collapsed {
    max-height: 64px;
    overflow: hidden;
    padding-bottom: 0.85rem !important;
  }
  .map-overlay-toggle {
    display: block !important;
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--gray-50, #f7f5f1);
    color: var(--gray-700);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .map-overlay-toggle svg { transition: transform 0.2s; }
  .map-overlay.collapsed .map-overlay-toggle svg { transform: rotate(180deg); }

  /* Map filter buttons get tighter on small screens */
  .map-day-filter-btn { font-size: 0.7rem; padding: 0.28rem 0.55rem; }
  .map-day-filter-buttons { gap: 0.25rem; }

  /* Stack legend more efficiently */
  .map-legend {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.6rem !important;
  }
  .legend-item { font-size: 0.75rem !important; }
}
/* Hide the toggle button on desktop */
.map-overlay-toggle { display: none; }

/* ===========================================================================
   Browse page mobile polish
   =========================================================================== */
@media (max-width: 540px) {
  .day-filter-buttons { gap: 0.3rem; }
  .day-filter-btn { font-size: 0.74rem; padding: 0.4rem 0.7rem; }
  .day-filter-label { font-size: 0.78rem; }
  .browse-header h1 { font-size: 1.4rem; }
  .sale-card { padding: 0.95rem 1rem; }
}

/* ===========================================================================
   Topbar / nav mobile cleanup (smaller pages, tighter spacing)
   =========================================================================== */
@media (max-width: 480px) {
  .topbar { padding: 0.5rem 0.85rem; }
  .topbar-nav { gap: 0.6rem; }
  .topbar-nav a { font-size: 0.84rem; }
  .hero h1 { font-size: 1.85rem !important; }
  .hero .subtitle { font-size: 0.92rem !important; }
  .hero-name { font-size: 0.78rem !important; }
}


.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
