/* Global: dynamic viewport unit */
:root { 
  --vh: 1vh;
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #3b82f6;
  --color-accent-light: #60a5fa;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  --color-bg-light: #f8fafc;
  --color-bg-lighter: #f1f5f9;
  --color-border: #e2e8f0;
  --color-text-muted: #64748b;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Layout shell */
#layoutSidenav_content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Main uses dynamic vh so header/footer fit */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  height: calc(1vh * 100 - 56px - 80px);
}

/* Map section */
.map-section {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  background: #eee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Map default (mobile/tablet) */
#map {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 200px;
  height: 100%;
  z-index: 1;
  transition: filter 0.3s;
}

/* Floating search controls */
.floating-controls {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 97vw;
  max-width: 600px;
  background: #3b82f6;
  border-radius: 1em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 0.5em;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Search form & suggestions */
#searchForm { position: relative; width: 100%; }
#searchInput {
  box-sizing: border-box;
  font-size: 1em;
  padding: 8px 36px 8px 12px;
  border-radius: 1.5em;
  width: 100%;
  border: none;
  background: #fff;
  color: #0f172a;
}
#searchBtn { background: none; border: none; box-shadow: none; outline: none; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: inherit; }
#searchBtn i { font-size: 1.25em; }


/* Image slider — CSS scroll-snap (1 image per swipe, always centered) */
.slider-container {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background: #1e293b;
  border-radius: 1em;
  margin-bottom: 16px;
  height: 200px;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

/* wrapper is just a flex row that lives inside the container */
.slider-wrapper {
  display: contents; /* transparent wrapper — slides become direct children of container for scroll-snap */
}

/* Each slide = exactly one page wide, snaps to start */
.slider-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  cursor: grab;
}

.slider-slide:active {
  cursor: grabbing;
}

/* Image: natural size, centered, never stretched */
.slider-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  cursor: zoom-in;
}



/* Dots and arrows removed — swipe only */

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxZoomIn 0.3s ease-out;
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* Lightbox Close Button */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.2s ease;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Lightbox Navigation Arrows */
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-arrow-left {
  left: 20px;
}

.lightbox-arrow-right {
  right: 20px;
}

/* Lightbox Counter */
.lightbox-counter {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

/* Hide arrows and counter when only one image */
.single-image .lightbox-arrow {
  display: none !important;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  
  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  
  .lightbox-arrow-left {
    left: 15px;
  }
  
  .lightbox-arrow-right {
    right: 15px;
  }
  
  .lightbox-counter {
    bottom: 20px;
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .lightbox-image {
    max-width: 95%;
    max-height: 85vh;
  }
}

/* Very small screens */
@media (max-width: 420px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .lightbox-arrow-left {
    left: 10px;
  }
  
  .lightbox-arrow-right {
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: 15px;
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* Location Warning Modal Styles */
.location-warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-warning-modal[style*="display: flex"] {
  opacity: 1;
}

.location-warning-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease-out;
  position: relative;
  z-index: 10000;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-warning-icon {
  display: inline-block;
  padding: 1rem;
  background: #fee;
  border-radius: 50%;
}

.location-warning-content h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
}

.location-warning-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.location-warning-content .btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 8px;
}

/* Hide slider arrows completely */
/* Arrows removed — swipe only */

.suggestions-panel {
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  border-top: none;
  max-height: 220px;
  overflow-y: auto;
  padding: 0;
  margin-top: -6px;
}
.suggestion-item {
  padding: 12px 16px;
  font-size: 16px;
  color: #0f172a;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  word-break: break-word;
  transition: background 0.15s;
}
.suggestion-item:hover {
  background: #f1f5f9;
}

/* Parking list panel - NOW POSITIONED BELOW SEARCH BAR (MOBILE/TABLET) */
#parkingList {
  position: fixed;
  left: 10px;
  right: 10px;
  top: 130px;
  width: calc(100vw - 20px);
  max-width: calc(100vw - 20px);
  max-height: calc(1vh * 100 - 200px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(16, 24, 40, 0.12);
  z-index: 120;
  overflow-y: auto;
  display: none;
  transition: transform 0.22s ease, opacity 0.2s;
  opacity: 1;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

/* Parking list header & items */
#parkingList .info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
#parkingList .info-header h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
#parkingList .info-header .btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  font-size: 1.5rem;
  color: #fff;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
  flex-shrink: 0;
}
#parkingList .info-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: scale(1.1);
}
#parkingList .info-header .btn-close:before {
  content: "×";
  font-size: 1.8rem;
  color: inherit;
}
#parkingList .list-group { padding: 12px; margin: 0; }
#parkingList .list-group-item {
  border: none;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  border-left: 4px solid #3b82f6;
}
#parkingList .list-group-item .w-100 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
#parkingList .list-group-item h6 { margin: 0 0 6px 0; font-size: 0.98rem; font-weight:700; color: #0f172a; }
#parkingList .list-group-item small.text-muted { display:block; color: #64748b; margin-bottom:6px; font-size:0.85rem; }
#parkingList .list-group-item .text-end { display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:8px; }
#parkingList .list-group-item .btn.btn-sm.btn-primary { 
  padding:6px 10px; 
  border-radius:8px; 
  font-weight:600; 
  background-color: #3b82f6 !important;
  border: none;
  box-shadow:0 4px 14px rgba(16,24,40,0.06);
  transition: all 0.2s;
}
#parkingList .list-group-item .btn.btn-sm.btn-primary:hover {
  background-color: #60a5fa !important;
  transform: translateY(-2px);
}
#parkingList .list-group-item .badge { font-size:0.75rem; padding:6px 8px; border-radius:8px; }
#parkingList .list-group-item:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(16,24,40,0.08); }
#parkingList .list-group-item.text-muted { background: transparent; box-shadow:none; cursor:default; }

/* Scrollbar for panel */
#parkingList::-webkit-scrollbar { width: 10px; }
#parkingList::-webkit-scrollbar-track { background: transparent; }
#parkingList::-webkit-scrollbar-thumb {
  background: rgba(15,23,42,0.08);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
#parkingList::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,0.14); }

.slider-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  gap: 6px;
  z-index: 3;
  justify-content: center;
  display: flex;
}
.slider-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.3);
  display: inline-block;
  cursor: pointer;
  opacity: 0.7;
  border: none;
  transition: background 0.2s;
}
.slider-indicator-dot.active {
  background: #3b82f6;
  opacity: 1;
}

/* Modal (parking modal & directions panel) */
.parking-modal-custom,
.directions-panel {
  z-index: 1060;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 1.5em;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 96vw);
  max-width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.18s ease, opacity 0.18s ease;
  box-sizing: border-box;
  padding: 0;
}

.parking-modal-custom .modal-content,
.directions-panel .modal-content { 
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 0;
  border-radius: 1.2em;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.parking-modal-custom .modal-header {
  padding: 1.25rem 1rem;
  box-sizing: border-box;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 1.2em 1.2em 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.parking-modal-custom .modal-body { 
  padding: 1rem;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.parking-modal-custom .scrollable-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.parking-modal-custom .modal-footer { 
  padding: 1rem;
  box-sizing: border-box;
  background: #f8fafc;
  border-radius: 0 0 1.2em 1.2em;
  flex-shrink: 0;
}

.parking-modal-custom .modal-title { 
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  flex: 1;
  word-break: break-word;
}

.parking-modal-custom .modal-footer .btn { 
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  background-color: #3b82f6 !important;
  border: none;
  transition: all 0.2s;
}

.parking-modal-custom .modal-footer .btn:hover {
  background-color: #60a5fa !important;
  transform: translateY(-2px);
}

/* Close buttons styling (consistent across modal, list, directions) */
.parking-modal-custom .btn-close,
.directions-panel .btn-close {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  font-size: 1.5em;
  color: #ffffff;
  width: 2em;
  height: 2em;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  opacity: 1;
  position: relative;
  z-index: 2;
  transition: all 0.2s;
  border-radius: 6px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.parking-modal-custom .btn-close:before,
.directions-panel .btn-close:before {
  content: "×";
  font-size: 1.8rem;
  color: inherit;
  line-height: 1;
}

.parking-modal-custom .btn-close:hover,
.directions-panel .btn-close:hover { 
  background: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: scale(1.15);
}

/* Directions layout */
.directions-panel h5 { margin-bottom: 15px; font-weight:700; color: #0f172a; }
.directions-panel .btn-close { position:absolute; right:14px; top:12px; }
#routeDetails { padding: 8px 12px 18px 12px; font-size:0.95rem; color: #0f172a; }
.route-summary { margin-bottom:12px; font-weight:600; color: #0f172a; }
.route-actions a.btn { margin-right:6px; margin-bottom:8px; }
.directions-steps { max-height:40vh; overflow-y:auto; padding:0; margin:0; list-style:none; }
.directions-steps li { 
  background: #f8fafc;
  margin-bottom: 0.6em;
  border-radius: 0.8em;
  padding: 0.7em 1em;
  box-shadow: 0 2px 8px rgba(33,150,243,0.06);
  font-size: 1em;
  display: flex;
  align-items: center;
  color: #0f172a;
  border-left: 3px solid #3b82f6;
}

/* Route top handle inline styling */
.route-top-handle-inline {
  top: 10px !important;
}

/* Hide default routing UI if present */
.hide-default-routing-panel,
.leaflet-routing-container { display: none !important; }

/* === PRICING SECTION - HORIZONTAL LAYOUT === */
.pricing-box {
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-box .row {
  display: flex;
  gap: 12px;
  min-width: min-content;
  width: 100%;
}

.pricing-box .col-4 {
  flex: 0 0 calc(33.333% - 8px);
  min-width: 140px;
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-box .col-4:hover {
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
}

.pricing-box .col-4 strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3b82f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-box .col-4 .mt-1 {
  margin-top: 8px;
}

.pricing-box .col-4 small {
  display: block;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  white-space: nowrap;
}

.pricing-box .price {
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex-wrap: wrap;
}

.pricing-box .currency {
  font-size: 0.75rem;
  color: #3b82f6;
  font-weight: 700;
  line-height: 1;
}

.pricing-box .price span:last-child {
  font-size: 1.2rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
}

.pricing-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  flex-grow: 0;
}

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

.pricing-box .time-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.pricing-box .hours-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1;
}

.pricing-box .time-value span:first-child {
  font-size: 1.2rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
}

/* Scrollbar styling for horizontal pricing */
.pricing-box::-webkit-scrollbar {
  height: 6px;
}

.pricing-box::-webkit-scrollbar-track {
  background: transparent;
}

.pricing-box::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 3px;
}

.pricing-box::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.2);
}

/* === HOURS OF OPERATION - VERTICAL LAYOUT === */
.hours-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  margin: 16px 0;
}

.hours-section h6 {
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  line-height: 24px;
}

.hours-section h6:before {
  content: "🕐";
  font-size: 1.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
}

#parkingHoursList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#parkingHoursList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  transition: box-shadow 0.2s;
  min-height: 24px;
  height: 24px;
}

#parkingHoursList li:hover {
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.1);
}

#parkingHoursList li strong {
  color: #0f172a;
  font-weight: 600;
  min-width: 80px;
  display: flex;
  align-items: center;
  height: 24px;
  line-height: 24px;
}

#parkingHoursList li span {
  color: #3b82f6;
  font-weight: 600;
  display: flex;
  align-items: center;
  height: 24px;
  line-height: 24px;
}

#parkingHoursList li.closed strong {
  color: #64748b;
}

#parkingHoursList li.closed span {
  color: #ef4444;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Scrollbar styling for hours section */
.hours-section::-webkit-scrollbar {
  width: 6px;
}

.hours-section::-webkit-scrollbar-track {
  background: transparent;
}

.hours-section::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 3px;
}

.hours-section::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.2);
}

/* === LOADING OVERLAY: PARKEASE word spinner === */
#loadingOverlay.loading-overlay {
  display: none;
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Centered word container */
#loadingOverlay .loader-word {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(240,72,217,0.12), rgba(255,214,0,0.06));
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  -webkit-font-smoothing: antialiased;
}

/* Letters styling */
#loadingOverlay .loader-word span {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  color: #ffffff;
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  opacity: 0.95;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
  -webkit-text-stroke: 0px rgba(0,0,0,0.12);
  animation: letter-spin 1.2s cubic-bezier(.2,.9,.2,1) infinite;
}

/* Slightly smaller on small screens */
@media (max-width: 420px) {
  #loadingOverlay .loader-word span {
    font-size: 32px;
  }
}

/* Stagger each letter to create spinning wave */
#loadingOverlay .loader-word span:nth-child(1) { animation-delay: 0s; }
#loadingOverlay .loader-word span:nth-child(2) { animation-delay: 0.08s; }
#loadingOverlay .loader-word span:nth-child(3) { animation-delay: 0.16s; }
#loadingOverlay .loader-word span:nth-child(4) { animation-delay: 0.24s; }
#loadingOverlay .loader-word span:nth-child(5) { animation-delay: 0.32s; }
#loadingOverlay .loader-word span:nth-child(6) { animation-delay: 0.40s; }
#loadingOverlay .loader-word span:nth-child(7) { animation-delay: 0.48s; }
#loadingOverlay .loader-word span:nth-child(8) { animation-delay: 0.56s; }

/* Spinning & scaling animation */
@keyframes letter-spin {
  0% {
    transform: rotateX(0deg) translateY(0) scale(1);
    opacity: 0.6;
  }
  35% {
    transform: rotateX(180deg) translateY(-6px) scale(1.15);
    opacity: 1;
  }
  70% {
    transform: rotateX(360deg) translateY(0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: rotateX(360deg) translateY(0) scale(1);
    opacity: 0.6;
  }
}

/* utility class to show overlay */
#loadingOverlay.visible {
  display: flex !important;
  align-items: center;
  justify-content: center;
  
}

/* ---- Responsive adjustments ---- */

/* Small screens <=600px: compact floating bar */
@media (max-width: 600px) {
  .floating-controls {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.45em 0.6em;
    border-radius: 0.75em;
    gap: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: 0 auto;
  }
  #searchForm { flex: 1 1 auto; min-width: 0; width: auto; order: 1; margin-right: 6px; }
  #searchInput { width: 100%; min-width: 0; padding: 8px 36px 8px 12px; font-size:1em; }
  .btn-group { order: 2; flex: 0 0 auto; display: flex !important; gap: 6px; margin-left: 0; justify-content: flex-end; align-items: center; white-space: nowrap; width: auto !important; }
  .btn-group > button { 
    font-size: 0.95em; 
    padding: 0.45em 0.75em; 
    min-width: auto; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    border-radius: 0.6rem;
    background-color: #fff !important;
    color: #3b82f6 !important;
    font-weight: 600;
    border: none;
  }
  .suggestions-panel { width: 90vw; font-size: 15px; min-width: 0; left:0; right:0; }
  .suggestion-item { font-size: 15px; padding: 11px 12px; }
  
  /* Parking list positioned below search and full-width on small screens */
  #parkingList {
    position: fixed;
    top: 115px;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(1vh * 100 - 185px - 64px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(16,24,40,0.12);
    display: none;
    z-index: 200;
    opacity: 1;
    padding: 0;
    background: #fff;
  }
  
  .show-list #parkingList { display: block !important; transform: translateY(0); }
  .show-list .map-section #map { filter: blur(2px) brightness(0.95); pointer-events: none; }
  .btn-group { display: flex !important; gap: 5px; margin-left: 8px; justify-content: center; width: 100%; }
  #closeListBtn { display: inline-block; }
  #parkingList .list-group { max-height: calc(1vh * 100 - 260px); overflow-y: auto; padding: 12px; }
  #parkingList .list-group-item { padding: 12px; }
  
  /* MOBILE: Make parking modal full-width at bottom */
  .parking-modal-custom, 
  .directions-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(0);
    width: 100vw;
    max-width: 100vw;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }
  
  .parking-modal-custom .modal-content,
  .directions-panel .modal-content {
    width: 100%;
  }
  
  .parking-modal-custom .modal-header {
    padding: 1rem;
    border-radius: 16px 16px 0 0;
  }
  
  .parking-modal-custom .modal-body {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .parking-modal-custom .modal-footer {
    padding: 1rem;
    border-radius: 0 0 0 0;
  }
  
  .parking-modal-custom .modal-title {
    font-size: 1.1rem;
  }
  
  .slider-container {
    min-height: 140px;
    padding: 6px;
    gap: 6px;
  }

  .slider-image {
    height: 140px;
    border-radius: 10px;
  }
  
  .pricing-box .col-4 { 
    flex: 0 0 calc(50% - 6px);
    min-width: 100px;
    padding: 10px;
  }
  .pricing-box .col-4 strong { font-size: 0.8rem; }
  .pricing-box .col-4 small { font-size: 0.55rem; }
  .pricing-box .price span:last-child,
  .pricing-box .time-value span:first-of-type { font-size: 1rem; }
  
  .min-time-box .col-4 {
    flex: 0 0 calc(50% - 6px);
    min-width: 100px;
    padding: 10px;
  }
  .min-time-box .col-4 strong { font-size: 0.8rem; }
  .min-time-box .col-4 small { font-size: 0.55rem; }
  .min-time-box .time-value span:first-of-type { font-size: 1rem; }
  
  #parkingHoursList li {
    padding: 10px 12px;
    font-size: 0.85rem;
    height: 24px;
  }
  #parkingHoursList li strong { font-size: 0.85rem; }
}

/* Medium screens <=768px: mobile sheet behavior and toggles */
@media (max-width: 768px) {
  main { height: calc(1vh * 100 - 56px - 64px); }
  
  /* Parking list positioned below search bar on medium screens */
  #parkingList {
    position: fixed;
    top: 115px;
    left: 15px;
    right: 15px;
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    max-height: calc(1vh * 100 - 140px);
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(16,24,40,0.12);
    display: none;
    z-index: 200;
    opacity: 1;
    padding: 0;
    background: #fff;
  }
  
  .show-list #parkingList { display: block !important; transform: translateY(0); }
  .show-list .map-section #map { filter: blur(2px) brightness(0.95); pointer-events: none; }
  .btn-group { display: flex !important; gap: 5px; margin-left: 8px; justify-content: center; width: 100%; }
  #closeListBtn { display: inline-block; }
  #parkingList .list-group { max-height: calc(1vh * 100 - 270px); overflow-y: auto; padding: 12px; }
  #parkingList .list-group-item { padding: 12px; }
  
  .parking-modal-custom, 
  .directions-panel {
    top: auto; 
    left: 50%; 
    right: auto; 
    bottom: 0; 
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1); 
    max-height: 75vh;
  }
  
  .parking-modal-custom .modal-content,
  .directions-panel .modal-content {
    width: 100%;
  }
  
  .parking-modal-custom .modal-body { 
    padding: 1rem;
  }
  
  .parking-modal-custom .modal-header {
    padding: 1rem;
    border-radius: 16px 16px 0 0;
  }
  
  .parking-modal-custom .modal-footer {
    padding: 1rem;
  }
}

/* Desktop >=900px: fullscreen map and floating list panel - RIGHT SIDEBAR */
@media (min-width: 900px) {
  .map-section {
    width: 100vw;
    height: calc(1vh * 100);
    position: relative;
    overflow: hidden;
    flex-direction: unset;
  }
  #map {
    position: absolute;
    left: 0; top: 0;
    width: 100vw;
    height: calc(1vh * 100);
    z-index: 1;
    min-width: 0; min-height: 0; margin: 0;
    flex: unset;
  }
  /* Desktop: Return parking list to right sidebar position */
  #parkingList {
    position: fixed;
    top: 140px;
    right: 32px;
    left: auto;
    width: 400px;
    max-width: 90vw;
    max-height: calc(1vh * 100 - 200px - 64px);
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 120;
    overflow-y: auto;
    display: block !important;
    transition: right 0.3s, opacity 0.3s;
    opacity: 1;
    background: #fff;
    padding: 1rem;
  }
  #closeListBtn { display: none !important; }
  /* hide the floating toggle buttons on wide screens */
  .btn-group { display: none !important; }
  
  /* Desktop pricing - horizontal but with better spacing */
  .pricing-box .col-4 {
    flex: 0 0 calc(33.333% - 8px);
    min-width: 160px;
  }
  
  /* Desktop minimum time */
  .min-time-box .col-4 {
    flex: 0 0 calc(33.333% - 8px);
    min-width: 160px;
  }
  
  /* Desktop parking modal - centered in screen with improved width */
  .parking-modal-custom,
  .directions-panel {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(1000px, 92vw);
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 1.5em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  .parking-modal-custom .modal-body {
    max-height: calc(85vh - 140px);
  }
  
  /* Desktop hours - vertical comfortable spacing */
  #parkingHoursList li {
    padding: 12px 16px;
    font-size: 0.95rem;
    height: 24px;
  }
}

/* Small tweaks for very narrow screens */
@media (max-width: 420px) {
  #parkingList { 
    width: calc(100vw - 20px); 
    left: 10px; 
    right: 10px;
    top: 115px;
    max-height: calc(1vh * 110 - 170px - 64px);
  }
  #parkingList .list-group-item { padding: 10px; margin-bottom: 8px; border-radius: 10px; }
  #loadingOverlay .loader-word span { font-size: 32px; }
  
  /* Extra wide modal on tiny screens */
  .parking-modal-custom, 
  .directions-panel {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: 88vh;
  }
  
  .parking-modal-custom .modal-header {
    padding: 0.75rem;
  }

  .parking-modal-custom .modal-body {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .parking-modal-custom .modal-title {
    font-size: 1rem;
  }

  .parking-modal-custom .modal-footer {
    padding: 0.75rem;
  }
  
  .slider-container {
    height: 150px;
  }
  
  /* Pricing - narrower cards for tiny screens */
  .pricing-box { 
    padding: 12px;
    margin: 12px 0;
  }
  
  .pricing-box .col-4 { 
    flex: 0 0 calc(50% - 6px);
    min-width: 90px;
    padding: 8px;
  }
  
  .pricing-box .col-4 strong { 
    font-size: 0.75rem;
    margin-bottom: 6px;
  }
  
  .pricing-box .col-4 small { 
    font-size: 0.5rem;
  }
  
  .pricing-box .price span:last-child,
  .pricing-box .time-value span:first-of-type { 
    font-size: 0.9rem;
  }
  
  /* Minimum time - narrower cards for tiny screens */
  .min-time-box .col-4 { 
    flex: 0 0 calc(50% - 6px);
    min-width: 90px;
    padding: 8px;
  }
  
  .min-time-box .col-4 strong { 
    font-size: 0.75rem;
    margin-bottom: 6px;
  }
  
  .min-time-box .col-4 small { 
    font-size: 0.5rem;
  }
  
  .min-time-box .time-value span:first-of-type { 
    font-size: 0.9rem;
  }
  
  #parkingHoursList li {
    padding: 6px 8px;
    font-size: 0.75rem;
    height: 24px;
  }
}

/* === SITE CTA / TOP NAV === */

/* Top-nav z-index */
.sb-topnav {
  z-index: 2200;
  position: relative;
  min-height: 56px;
}

/* Logo image in navbar */
.nav-logo {
  height: 28px !important;
  width: 28px !important;
  min-height: 28px !important;
  min-width: 28px !important;
  max-height: 28px !important;
  max-width: 28px !important;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(59,130,246,0.35));
  transition: transform 0.2s, filter 0.2s;
}

.navbar-brand:hover .nav-logo,
.navbar-brand:focus .nav-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 8px rgba(59,130,246,0.55));
}

/* Ensure navbar items stay aligned right with no excess gap */
.sb-topnav .navbar-nav {
  z-index: 3000;
  display: flex;
  align-items: center;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

.sb-topnav .navbar-nav .nav-item {
  display: flex;
  align-items: center;
}

/* Primary CTA button — compact, pill-shaped */
.btn-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background-color: #3b82f6 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 22px !important;
  /* tighter padding so it doesn't stretch wide */
  padding: 0.35rem 0.85rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(59,130,246,0.25) !important;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
  position: relative !important;
  z-index: 3000 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: #60a5fa !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(59,130,246,0.35) !important;
  color: #fff !important;
}

.btn-cta:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(59,130,246,0.2) !important;
}

/* CTA icon */
.btn-cta .bi {
  color: #fff !important;
  opacity: 1 !important;
  font-size: 1rem;
  line-height: 1;
}

/* Brand text next to logo */
.nav-brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

/* On very small screens: icon-only (hide text label, keep icon) */
@media (max-width: 360px) {
  .btn-cta .cta-label { display: none !important; }
  .btn-cta { padding: 0.4rem 0.6rem !important; border-radius: 50% !important; }
}

/* Small phones */
@media (max-width: 480px) {
  .btn-cta {
    font-size: 0.82rem !important;
    padding: 0.32rem 0.75rem !important;
    gap: 5px !important;
  }
  .sb-topnav {
    min-height: 48px !important;
    max-height: 52px !important;
  }
}

/* === Utility === */

/* Utility */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.text-muted-small { color: #64748b; font-size: 0.85rem; }

/* Keep leaflet controls above map overlays if needed */
.leaflet-control-container { z-index: 1300 !important; }

/* ---- Modal visible state & backdrop ---- */
.parking-modal-custom.active {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  z-index: 3200 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  flex-direction: column !important;
}

@media (max-width: 600px) {
  .parking-modal-custom.active {
    align-items: center !important;
    justify-content: flex-start !important;
  }
}

/* optional subtle backdrop behind the card while keeping card's rounded corners */
.parking-modal-custom.active::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  border-radius: 0;
}

/* ensure the modal content remains on top within the modal */
.parking-modal-custom.active .modal-content {
  position: relative;
  z-index: 1;
}