/* ─── CARTE PAGE ─── */

.carte-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Hero (compact) ── */
.carte-hero {
  background: var(--teal);
  color: white;
  padding: 14px 80px;
  flex-shrink: 0;
}
.carte-hero-inner {
  max-width: 900px;
}
.carte-hero-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.carte-hero-sub {
  font-size: 13px;
  opacity: 0.85;
  margin: 0;
}

/* ── Layout ── */
.carte-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ── Sidebar ── */
.carte-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--cream);
  border-right: 1px solid var(--cream-dark);
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 10;
}
.carte-sidebar-inner {
  padding: 20px 18px;
}

.carte-filter-group {
  margin-bottom: 22px;
}
.carte-filter-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin-bottom: 10px;
}

.carte-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
}
.carte-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
  cursor: pointer;
}
.carte-check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.carte-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.carte-toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

/* ── Price slider ── */
.carte-slider {
  width: 100%;
  accent-color: var(--teal);
  margin: 8px 0 4px;
}
.carte-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mist);
}

/* ── Count badge ── */
.carte-count {
  margin-top: 4px;
  padding: 10px 14px;
  background: var(--cream-dark);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-align: center;
}

/* ── Map container ── */
.carte-map-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
#carteMap {
  width: 100%;
  height: 100%;
  background: #e8f0e8;
}

/* ── Mobile filter toggle button ── */
.carte-filter-toggle {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  gap: 8px;
}

/* ── Leaflet popup ── */
.carte-popup {
  font-family: 'DM Sans', sans-serif;
  min-width: 200px;
}
.carte-popup-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--cream-dark);
}
.carte-popup-img-placeholder {
  width: 100%;
  height: 110px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.carte-popup-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.carte-popup-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.carte-popup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.carte-popup-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}
.carte-popup-rating {
  font-size: 12px;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 3px;
}
.carte-popup-rating .star { color: #F4722B; }
.carte-popup-btn {
  display: block;
  width: 100%;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.carte-popup-btn:hover { background: var(--teal-light); }

/* ── Active nav link ── */
.site-nav-link--active {
  color: var(--teal) !important;
  background: var(--cream-dark);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .carte-hero { padding: 14px 20px; }
  .carte-hero-title { font-size: 18px; }

  .carte-sidebar {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    min-width: 0;
    border-right: none;
    border-top: 2px solid var(--cream-dark);
    border-radius: 16px 16px 0 0;
    max-height: 65vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 500;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  }
  .carte-sidebar.open {
    transform: translateY(0);
  }
  .carte-filter-toggle {
    display: flex !important;
  }
  #carteMap {
    height: 100%;
  }
}

@media (max-width: 600px) {
  .carte-hero { padding: 12px 16px; }
  .carte-hero-sub { display: none; }
}
