:root {
  --crimson: #8B0000;
  --gold: #C9A84C;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  height: 100vh;
  overflow: hidden;
  background: #1a1008;
  color: #1c1c1e;
}

#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(26, 16, 8, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.site-logo {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-star {
  width: 28px;
  height: 28px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 52px 48px 44px;
  width: min(520px, 92vw);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 168, 76, 0.3);
}

.hero-card.hidden {
  display: none;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.star-row .star {
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-row .star:nth-child(2) {
  width: 14px;
  height: 14px;
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 900;
  color: var(--crimson);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 15px;
  color: #6b5c4a;
  line-height: 1.6;
  margin-bottom: 36px;
}

.cta-btn {
  display: block;
  background: var(--crimson);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(139, 0, 0, 0.45);
}

.privacy-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.3);
}

.divider-text {
  font-size: 11px;
  color: #b0a090;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.browse-btn {
  display: block;
  background: transparent;
  color: var(--crimson);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  border: 2px solid var(--crimson);
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: background 0.2s ease, transform 0.15s ease;
}

.browse-btn:hover {
  background: rgba(139, 0, 0, 0.06);
  transform: translateY(-1px);
}

.stats-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 24px;
  background: rgba(26, 16, 8, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 100px;
  padding: 12px 28px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.privacy-link {
  position: fixed;
  bottom: 10px;
  right: 14px;
  z-index: 20;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.privacy-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.info-window {
  max-width: 260px;
  font-family: 'DM Sans', sans-serif;
}

.info-window h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  color: var(--crimson);
}

.info-window p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #333;
}

.info-window a {
  color: var(--crimson);
  font-weight: 600;
  text-decoration: none;
}

.info-window a:hover {
  text-decoration: underline;
}

/* ---------- filter bar ---------- */

.filter-bar {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(920px, 94vw);
  background: rgba(26, 16, 8, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 18px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
}

.filter-bar.active {
  display: block;
}

.filter-quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-search {
  display: flex;
  gap: 6px;
  flex: 1 1 240px;
  min-width: 220px;
}

.filter-search input {
  flex: 1;
  min-width: 0;
}

.filter-bar input[type="text"],
.filter-bar select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 10px;
}

.filter-bar input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.filter-bar select {
  cursor: pointer;
}

.filter-bar select option {
  background: #1a1008;
  color: #fff;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  cursor: pointer;
}

.filter-toggle input {
  accent-color: var(--gold);
  cursor: pointer;
}

.more-filters-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter-error {
  color: #f87171;
  font-size: 11px;
  margin-top: 4px;
  min-height: 14px;
}

.filter-drawer {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.filter-drawer.open {
  display: block;
}

.filter-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.filter-drawer-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-drawer-grid select {
  width: 100%;
}

.filter-drawer-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.filter-note {
  margin-top: 10px;
  font-size: 10.5px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}

.filter-result-count {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

/* ---------- map pin info card ---------- */

.map-info-card {
  max-width: 260px;
  font-family: 'DM Sans', sans-serif;
}

.map-info-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.map-info-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--crimson);
  text-decoration: none;
  margin-bottom: 4px;
}

.map-info-name:hover {
  text-decoration: underline;
}

.map-info-line {
  margin: 0.15rem 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #333;
}

.map-info-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.map-info-actions a {
  color: var(--crimson);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}

.map-info-actions a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .filter-bar {
    top: 70px;
    padding: 10px 12px;
  }
  .filter-quick-row {
    gap: 8px;
  }
  .more-filters-btn {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero-card {
    padding: 40px 24px 32px;
  }
  .stats-bar {
    gap: 14px;
    padding: 10px 18px;
  }
  .stat {
    font-size: 11px;
  }
}
