/* ─── LOCATIONS / INVENTORY PAGE ────────────────────────────── */
.locations-page-body {
  background-color: #fafbfc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* stretch main to fill the flex body so the footer is always pinned to the bottom */
.locations-page-body .site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.inventory-section {
  padding: 120px 0 80px 0;
  flex: 1;
}

.inventory__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.inventory__top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.inventory__title-wrap {
  flex: 1;
  min-width: 300px;
}

.inventory__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  color: #0b1a30;
  margin-top: 12px;
  margin-bottom: 8px;
}

.inventory__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #64748b;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
}

.inventory__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
  width: 320px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-box svg {
  color: #94a3b8;
  margin-right: 10px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1e293b;
  background: transparent;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 84, 252, 0.15);
}

.view-toggle {
  display: flex;
  background-color: #f1f5f9;
  border-radius: 8px;
  padding: 4px;
}

.toggle-btn {
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.toggle-btn svg {
  transition: transform 0.25s ease;
}

.toggle-btn.active {
  background-color: #ffffff;
  color: var(--blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.toggle-btn:hover:not(.active) {
  color: #0b1a30;
}

.type-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.type-filter-bar::-webkit-scrollbar {
  height: 4px;
}

.type-filter-bar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.tab-btn {
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.tab-btn.active {
  background-color: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 84, 252, 0.2);
}

.tab-btn:hover:not(.active) {
  border-color: #cbd5e1;
  color: #0b1a30;
}

.inventory__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-sidebar {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ─── Sidebar title block ─────────────────────────────────── */
.sidebar-title-block {
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 22px;
}

.sidebar-main-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #0b1a30;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sidebar-main-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Filter label ────────────────────────────────────────── */
.filter-label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ─── Location dropdown ───────────────────────────────────── */
.select-wrap {
  position: relative;
}

.filter-dropdown {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d6d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center;
  background-size: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-dropdown:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 84, 252, 0.1);
}

/* ─── Billboard type toggles ─────────────────────────────── */
.type-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.type-toggle-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.type-toggle-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.type-toggle-btn:hover:not(.active) {
  border-color: var(--blue);
  color: var(--blue);
}

/* ─── Map status bar ──────────────────────────────────────── */
.map-status-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 53, 162, 0.88);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 22px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ─── Card / List toggle tooltips ────────────────────────── */
.grid-view-btn {
  position: relative;
}

.grid-view-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #1b1b1b;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

.grid-view-btn:hover::after {
  opacity: 1;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-header h3 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0b1a30;
}

.clear-btn {
  background: none;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  cursor: pointer;
}

.clear-btn:hover {
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h4 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #0b1a30;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #475569;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox:hover input~.checkmark {
  background-color: #e2e8f0;
}

.custom-checkbox input:checked~.checkmark {
  background-color: var(--blue);
  border-color: var(--blue);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked~.checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sort-dropdown {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #475569;
  outline: none;
  cursor: pointer;
}

.sort-dropdown:focus {
  border-color: var(--blue);
}

.reset-sidebar-btn {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.reset-sidebar-btn:hover {
  background-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 84, 252, 0.15);
}

.inventory-content-area {
  min-height: 600px;
}

.map-view-wrapper {
  display: none;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.map-view-wrapper.active {
  display: block;
}

#map {
  height: 600px;
  width: 100%;
}

.map-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid #e2e8f0;
}

.map-legend h5 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #0b1a30;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-available {
  background-color: var(--blue);
}

.dot-occupied {
  background-color: #ef4444;
}

/* Custom Marker Pins */
.custom-marker-pin {
  display: flex;
  justify-content: center;
  align-items: center;
}

.marker-pin-wrapper {
  position: relative;
  width: 32px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pin-svg {
  width: 32px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s ease;
}

.pin-available .pin-svg {
  fill: var(--blue);
}

.pin-occupied .pin-svg {
  fill: #ef4444;
}

.pin-pulse {
  position: absolute;
  top: 9px;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 10;
}

.pin-available:hover .pin-svg,
.pin-occupied:hover .pin-svg {
  transform: scale(1.1);
}

/* Custom Popup Style */
.custom-leaflet-popup .leaflet-popup-close-button {
  width: 28px !important;
  height: 28px !important;
  background: #1D232B !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  top: 10px !important;
  right: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  line-height: 1 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.custom-leaflet-popup .leaflet-popup-close-button:hover {
  background: #000 !important;
}

.custom-leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
}

.custom-leaflet-popup .leaflet-popup-content {
  margin: 0;
  width: 280px;
}

.map-popup-card {
  width: 280px;
}

.popup-image-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.popup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 8px;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.badge-available {
  background-color: var(--blue);
}

.badge-occupied {
  background-color: #ef4444;
}

.popup-info {
  padding: 16px;
}

.popup-code {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 9px;
  color: var(--blue);
  background-color: rgba(23, 84, 252, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.popup-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0b1a30;
  margin: 8px 0 4px 0;
  line-height: 1.2;
}

.popup-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 12px;
}

.popup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background-color: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.popup-stats span {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #64748b;
  display: block;
}

.popup-stats strong {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #0b1a30;
}

.popup-btn {
  display: block;
  text-align: center;
  padding: 11px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-popup-inquire {
  background-color: var(--blue);
  color: #ffffff !important;
}

.btn-popup-inquire:hover {
  background-color: var(--blue-dk);
}

.btn-popup-disabled {
  background-color: #e2e8f0;
  color: #94a3b8;
  pointer-events: none;
}

/* ─── CARD ACTION ROW ───────────────────────────────────────── */
.site-card__action-row {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.site-card__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.site-card__action-btn:hover {
  background: rgba(23, 84, 252, 0.85);
}

.site-card__img.lightbox-trigger {
  cursor: zoom-in;
}

.site-list-row__img.lightbox-trigger {
  cursor: zoom-in;
}

/* ─── LIGHTBOX ──────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

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

.no-results-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.no-results-msg.show {
  display: flex;
}

.no-results-msg svg {
  color: #94a3b8;
  margin-bottom: 16px;
}

.no-results-msg h4 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0b1a30;
  margin-bottom: 8px;
}

.no-results-msg p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #64748b;
}

/* Leaflet Overrides */
.leaflet-container {
  font-family: 'Inter', sans-serif;
}

.leaflet-bar a {
  border-bottom: 1px solid #e2e8f0;
}

.leaflet-bar a:hover {
  background-color: #f8fafc;
}

/* Slider & Section Extras */
.filter-group__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-group__title-row h4 {
  margin-bottom: 0;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background-color: #cbd5e1;
  color: #475569;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  cursor: help;
}

.range-slider-wrap {
  padding: 10px 0;
}

.custom-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  margin-bottom: 12px;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23, 84, 252, 0.3);
  transition: transform 0.1s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #64748b;
}

.inventory-section-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 60px 0;
}

.inventory__grid-section {
  margin-top: 10px;
}

.grid-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.grid-section-title-wrap .inventory__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.grid-section-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  color: #0b1a30;
  margin-bottom: 4px;
}

.grid-section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #64748b;
}

.grid-section-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.grid-view-toggle {
  display: flex;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}

.grid-view-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #94a3b8;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.grid-view-btn.active {
  background: var(--blue);
  color: #fff;
}

.grid-view-btn:hover:not(.active) {
  background: #f1f5f9;
  color: var(--text);
}

.grid-section-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-section-sort .sort-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── CAROUSEL NAV ──────────────────────────────────────────── */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #cbd5e1;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-indicator {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #64748b;
  min-width: 50px;
  text-align: center;
}

/* ─── LIST VIEW ROWS ────────────────────────────────────────── */
.inventory-grid.list-mode {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-list-row {
  display: grid;
  grid-template-columns: 190px 1fr auto auto;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-list-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.site-list-row__img {
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.site-list-row__img .site-card__code {
  font-size: 0.55rem;
  padding: 4px 10px;
}

.site-list-row__main {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-list-row__main h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
  margin: 0;
  line-height: 1.25;
}

.site-list-row__meta {
  display: flex;
  gap: 32px;
  padding: 16px 20px;
}

.site-list-row__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 12px 20px;
  margin-right: 16px;
  border-radius: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
}

.site-list-row__cta:hover {
  background: var(--blue-dk);
}

.site-list-row__cta.disabled {
  background: #94a3b8;
  pointer-events: none;
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination-btn {
  border: none;
  background-color: #f1f5f9;
  color: var(--blue);
  padding: 10px 16px;
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination-btn:hover:not(.active) {
  background-color: #e2e8f0;
}

.pagination-btn.active {
  background-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(23, 84, 252, 0.25);
}

.pagination-btn.arrow-btn {
  background-color: var(--blue);
  color: #ffffff;
}

.pagination-btn.arrow-btn:hover:not([disabled]) {
  background-color: var(--blue-dk);
}

.pagination-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

/* ── Mobile filter toggle button (hidden on desktop) ─────────── */
.filter-toggle-btn {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #0b1a30;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}
.filter-toggle-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-toggle-btn.is-open {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(23, 84, 252, 0.04);
}

/* ── Tablet (≤ 1024px): sidebar flattens above the map ───────── */
@media (max-width: 1024px) {
  .inventory__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    align-items: start;
  }

  .sidebar-title-block {
    grid-column: 1 / -1;
    padding-bottom: 14px;
    margin-bottom: 4px;
  }

  .reset-sidebar-btn,
  .clear-btn {
    grid-column: 1 / -1;
  }

  .filter-group {
    margin-bottom: 0;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #map {
    height: 460px;
  }
}

/* ── Mid-tablet: 2-col filter grid ───────────────────────────── */
@media (max-width: 860px) {
  .filter-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile (≤ 768px): collapsible sidebar ───────────────────── */
@media (max-width: 768px) {
  .inventory-section {
    padding: 100px 0 60px;
  }

  .inventory__title {
    font-size: 24px;
  }

  .inventory__subtitle {
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  .inventory__top-bar {
    margin-bottom: 20px;
  }

  /* Show toggle button */
  .filter-toggle-btn {
    display: flex;
  }

  /* Sidebar collapsed by default on mobile */
  .filter-sidebar {
    grid-template-columns: 1fr;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    box-shadow: none;
    margin-bottom: 0;
    transition: max-height 0.35s ease, padding 0.3s ease, border-color 0.15s ease 0.2s;
  }

  .filter-sidebar.is-open {
    max-height: 1400px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    transition: max-height 0.35s ease, padding 0.3s ease, border-color 0.1s ease;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  #map {
    height: 360px;
  }

  .inventory-section-divider {
    margin: 40px 0;
  }

  .grid-section-header {
    margin-bottom: 20px;
  }

  /* List row: hide meta column, shrink image */
  .site-list-row {
    grid-template-columns: 130px 1fr auto;
  }

  .site-list-row__meta {
    display: none;
  }

  .site-list-row__cta {
    padding: 10px 14px;
    font-size: 0.7rem;
    margin-right: 12px;
  }

  .carousel-nav {
    gap: 12px;
  }

  .carousel-arrow {
    padding: 10px 14px;
    font-size: 0.75rem;
  }
}

/* ── Small mobile (≤ 520px) ──────────────────────────────────── */
@media (max-width: 520px) {
  .inventory-section {
    padding: 90px 0 48px;
  }

  .inventory__container {
    padding: 0 16px;
  }

  .inventory__title {
    font-size: 20px;
    margin-top: 8px;
  }

  .section-label {
    font-size: 0.85rem;
  }

  .section-underline {
    width: 72px;
    height: 3px;
  }

  .inventory__layout {
    gap: 0;
  }

  .inventory-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #map {
    height: 300px;
  }

  .map-status-bar {
    font-size: 10px;
    padding: 6px 14px;
    bottom: 12px;
  }

  /* List row: fully stacked */
  .site-list-row {
    grid-template-columns: 1fr;
  }

  .site-list-row__img {
    height: 180px;
  }

  .site-list-row__cta {
    margin: 0 16px 16px;
    border-radius: 8px;
    padding: 12px 16px;
    justify-content: center;
  }

  .grid-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .carousel-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .carousel-arrow {
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }

  .inventory-section-divider {
    margin: 32px 0;
  }

  .pagination-wrap {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
  }
}

/* ── No-photo placeholder ────────────────────────────────────── */
.no-img-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}

.popup-img--placeholder {
  width: 100%;
  height: 140px;
  background: #e8ecf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
