@import url('https://fonts.googleapis.com/css2?family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  /* PRIMARY PALETTE - Use these most prominently */
  --sorin-blue: #192e56;
  --gold-medallion: #edb920;
  --white: #ffffff;

  /* SECONDARY PALETTE - Use for accents (10-15% of design) */
  --bluebonnet: #8bcaef;
  --red-doors: #ea4433;
  --moontower: #000000;
  --grackle: #262626;
  --bridge-bats: #595a55;
  --anchors: #b4aea3;
  --waterloo: #e2dbc4;
  --limestone: #f7f3ed;
  --sorin-tint: #e9ecf4;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: relative;
}

body {
  display: flex;
  flex-direction: column;
  color: var(--grackle);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Garamond, serif;
  color: var(--sorin-blue);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  max-width: 75ch; 
}

/* =============================================
   SKIP LINK (accessibility)
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--gold-medallion);
  color: var(--sorin-blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* =============================================
   HEADER
   ============================================= */
header {
  background: var(--sorin-blue);
  color: white;
  padding: 10px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-university {
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-medallion);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

header h1 {
  font-family: 'Playfair Display', Garamond, serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--white);
  line-height: 1.1;
}

/* =============================================
   SEARCH CONTAINER
   ============================================= */
.search-container {
  position: absolute;
  top: 68px;
  left: 8px;
  right: 8px;
  z-index: 5;
  background: white;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 400px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 20px;
  font-size: 16px;
  border: none;
  border-radius: 24px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus {
  box-shadow: 0 0 0 2px var(--sorin-blue);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--limestone);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--bridge-bats);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.search-clear-btn:hover {
  background: var(--waterloo);
  color: var(--grackle);
}

.search-clear-btn.hidden {
  display: none;
}

.search-results {
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.search-result-item:hover,
.search-result-item:active {
  background-color: #f5f5f5;
}

.search-result-item strong {
  display: block;
  color: var(--sorin-blue);
  margin-bottom: 4px;
  font-size: 14px;
}

.search-result-item .description {
  font-size: 13px;
  color: var(--bridge-bats);
  line-height: 1.4;
}

.search-no-results {
  padding: 16px;
  color: var(--bridge-bats);
  text-align: center;
  font-size: 14px;
}

.search-result-item.filter-suggestion {
  background-color: var(--limestone);
  border-left: 4px solid var(--sorin-blue);
  transition: all 0.2s ease;
}

.search-result-item.filter-suggestion:hover,
.search-result-item.filter-suggestion:active {
  background-color: var(--sorin-tint);
  transform: translateX(2px);
}

.filter-suggestion-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.filter-suggestion-content .filter-icon {
  font-size: 16px;
  margin-top: 1px;
  opacity: 0.7;
}

.filter-suggestion-content strong {
  color: var(--sorin-blue);
  font-weight: 600;
}

.search-separator {
  padding: 8px 16px;
  background-color: var(--sorin-tint);
  font-size: 12px;
  font-weight: 600;
  color: var(--sorin-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #e0e0e0;
}

/* =============================================
   MAP CONTROLS (locate me, re-center)
   ============================================= */
.map-controls {
  position: absolute;
  top: 126px;
  right: 8px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sorin-blue);
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.map-control-btn:hover {
  background: var(--sorin-tint);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.map-control-btn:active {
  transform: scale(0.93);
}

.map-control-btn:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 2px;
}


/* =============================================
   MAP CONTAINER
   ============================================= */
.map-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
}

gmp-map {
  height: 100%;
  width: 100%;
}

/* =============================================
   LOADING OVERLAY
   ============================================= */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--sorin-tint);
  border-top-color: var(--sorin-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bridge-bats);
}

/* =============================================
   CATEGORY BAR  (always visible at bottom)
   ============================================= */
.category-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
  transition: transform 0.3s ease;
}

.category-bar-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent);
  padding-right: 8px;
}

.category-bar-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 44px;
  padding: 0 16px;
  border: 1.5px solid #d4d4d4;
  background: var(--white);
  border-radius: 19px;
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--grackle);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.category-pill:hover {
  border-color: var(--sorin-blue);
  background: var(--sorin-tint);
}

.category-pill:active {
  transform: scale(0.95);
}

.category-pill:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 2px;
}

.category-pill.active {
  background: var(--sorin-blue);
  border-color: var(--sorin-blue);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(25, 46, 86, 0.25);
}

.category-pill.active:focus-visible {
  outline: 2px solid var(--gold-medallion);
  outline-offset: 2px;
}

/* Filter icon trigger */
.filter-sheet-trigger {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid #d4d4d4;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sorin-blue);
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.filter-sheet-trigger:hover {
  border-color: var(--sorin-blue);
  background: var(--sorin-tint);
}

.filter-sheet-trigger:active {
  transform: scale(0.93);
}

.filter-sheet-trigger.has-filters {
  background: var(--sorin-blue);
  border-color: var(--sorin-blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(25, 46, 86, 0.3);
}

.filter-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red-doors);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid white;
  font-family: 'Martel Sans', sans-serif;
}

.filter-badge.hidden {
  display: none;
}

.category-bar.sheet-open {
  transform: translateY(100%);
  pointer-events: none;
}

/* =============================================
   FILTER SHEET  (slides up from bottom)
   ============================================= */
.filter-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 299;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.filter-sheet-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  z-index: 300;
  max-height: 75vh;
  max-height: 75dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.filter-sheet.hidden {
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
}

.filter-sheet-handle {
  width: 36px;
  height: 4px;
  background: #d0d0d0;
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.filter-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 14px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.filter-sheet-header h2 {
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--sorin-blue);
}

.filter-sheet-close {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--limestone);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--bridge-bats);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.filter-sheet-close:hover {
  background: #e8e4dc;
}

.filter-sheet-close:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 2px;
}

.filter-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--anchors) transparent;
}

.filter-sheet-body::-webkit-scrollbar {
  width: 5px;
}

.filter-sheet-body::-webkit-scrollbar-track {
  background: transparent;
}

.filter-sheet-body::-webkit-scrollbar-thumb {
  background: var(--anchors);
  border-radius: 3px;
}

.filter-sheet-body::-webkit-scrollbar-thumb:hover {
  background: var(--bridge-bats);
}

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

.filter-section:last-child {
  margin-bottom: 12px;
}

.filter-section-label {
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--bridge-bats);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-section-label::before {
  content: '';
  display: none;
}

.popular-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.popular-card {
  flex: 1 1 calc(50% - 10px);
  min-width: 130px;
  padding: 12px 14px;
  background: var(--limestone);
  border: 1.5px solid var(--waterloo);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.popular-card:hover {
  background: var(--sorin-tint);
  border-color: var(--sorin-blue);
  box-shadow: 0 2px 8px rgba(25, 46, 86, 0.1);
}

.popular-card:active {
  transform: scale(0.97);
}

.popular-card:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 2px;
}

.popular-card-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sorin-blue);
  line-height: 1.3;
}

.popular-card-cat {
  display: block;
  font-size: 11px;
  color: var(--bridge-bats);
  margin-top: 3px;
  text-transform: capitalize;
}

/* Feature chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  background: var(--white);
  border: 1.5px solid #d4d4d4;
  border-radius: 21px;
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--grackle);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.feature-chip:hover {
  border-color: var(--sorin-blue);
  background: var(--sorin-tint);
}

.feature-chip:active {
  transform: scale(0.96);
}

.feature-chip:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 2px;
}

.feature-chip[aria-checked="true"] {
  background: var(--sorin-blue);
  border-color: var(--sorin-blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(25, 46, 86, 0.25);
}

.feature-chip[aria-checked="true"]::after {
  content: '\2713';
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
  opacity: 0.85;
}

.feature-chip[aria-checked="true"]:focus-visible {
  outline: 2px solid var(--gold-medallion);
  outline-offset: 2px;
}

.feature-chip[aria-checked="true"]:hover {
  background: #243d6a;
  border-color: #243d6a;
}

/* Footer */
.filter-sheet-footer {
  flex-shrink: 0;
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #eee;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-results-count {
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sorin-blue);
  margin: 0;
  flex: 1;
  min-height: 20px;
  display: flex;
  align-items: center;
}

.filter-results-count:empty {
  display: none;
}

.filter-section + .filter-section {
  padding-top: 20px;
  border-top: 1px solid #f0ede7;
}

.clear-all-btn {
  padding: 10px 18px;
  border: 1.5px solid var(--red-doors);
  background: var(--white);
  border-radius: 10px;
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--red-doors);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.clear-all-btn:hover {
  background: var(--red-doors);
  color: var(--white);
}

.clear-all-btn:active {
  transform: scale(0.97);
}

.clear-all-btn.hidden {
  display: none;
}

/* =============================================
   LOCATION DETAILS BOTTOM SHEET
   ============================================= */
.location-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  z-index: 200;
  height: 50vh;
  max-height: 50vh;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.location-sheet.hidden {
  transform: translateY(calc(100% + 16px));
  visibility: hidden;
  pointer-events: none;
}

.location-sheet.expanded {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  padding-top: env(safe-area-inset-top);
}

.location-sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  margin: 12px auto 8px;
  flex-shrink: 0;
}

.location-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
  border-bottom: 1px solid #eee;
  user-select: none;
  flex-shrink: 0;
}

.expand-btn,
.close-btn {
  background: #f0f0f0;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--bridge-bats);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.expand-btn:hover,
.close-btn:hover {
  background: #e0e0e0;
}

.expand-btn:active,
.close-btn:active {
  background: #d0d0d0;
  transform: scale(0.95);
}

.expand-btn:focus-visible,
.close-btn:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 2px;
}

.close-btn {
  font-size: 28px;
  line-height: 1;
}

.location-sheet-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}

.category-bar.sheet-open {
  transform: translateY(100%);
  pointer-events: none;
}

/* =============================================
   LOCATION SHEET CONTENT STYLING
   ============================================= */
.photo-gallery {
  margin-bottom: 16px;
  position: relative;
}

.photo-gallery-container {
  position: relative;
  margin-bottom: 12px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  touch-action: manipulation;
}

.photo-gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-image.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--grackle);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  opacity: 0.5;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gallery-arrow:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 2px;
  opacity: 1;
}

.photo-gallery-container:hover .gallery-arrow {
  opacity: 1;
}

@media (pointer: coarse) {
  .gallery-arrow {
    opacity: 0.7;
  }
}

.gallery-arrow:active {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(0.93);
}

.gallery-arrow-left {
  left: 8px;
}

.gallery-arrow-right {
  right: 8px;
}

.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 10px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.gallery-dot::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.gallery-dot:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 0;
  border-radius: 4px;
}

.gallery-dot.active::after {
  background: var(--sorin-blue);
  width: 20px;
  border-radius: 4px;
}

.gallery-dot:hover::after {
  background: var(--anchors);
}

.location-detail-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.location-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--sorin-blue);
  margin: 0 0 12px 0;
}

.location-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.location-badge-row > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1;
}

.location-detail-category {
  background: var(--sorin-blue);
  color: var(--white);
}

.location-detail-access {
  background: var(--sorin-tint);
  color: var(--sorin-blue);
  border: 1.5px solid rgba(25, 46, 86, 0.18);
}

.directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  background: var(--sorin-blue);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.directions-btn:hover {
  background: #243d6a;
}

.directions-btn:focus-visible {
  outline: 2px solid var(--gold-medallion);
  outline-offset: 2px;
}

.directions-btn::before {
  content: '\27A4';
  font-size: 16px;
}

.location-detail-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--grackle);
  margin-bottom: 20px;
}

/* Hours block (replaces inline styles in app.js) */
.location-hours-block {
  background: var(--limestone);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.location-hours-block .location-contact-icon {
  padding-top: 2px;
}

.location-hours-block .detail-label {
  display: block;
  margin-bottom: 4px;
}

/* Section heading for contacts / amenities (replaces inline styles) */
.detail-section-heading {
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bridge-bats);
  margin: 0 0 12px;
  text-transform: uppercase;
}

/* Label text in detail items (replaces inline color:#00274c) */
.detail-label {
  color: var(--sorin-blue);
  font-weight: 600;
}

.location-detail-contacts {
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.location-detail-amenities {
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: 20px;
}

.location-contact-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  line-height: 1.5;
}

.location-contact-item:last-child {
  border-bottom: none;
}

.location-contact-icon {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.location-contact-item a {
  color: var(--sorin-blue);
  text-decoration: none;
  font-weight: 500;
}

.location-contact-item a:hover {
  text-decoration: underline;
}

.location-contact-item a:focus-visible {
  outline: 2px solid var(--sorin-blue);
  outline-offset: 2px;
}

.location-contact-item span {
  color: var(--bridge-bats);
}

.location-contact-hours {
  color: var(--bridge-bats);
  font-size: 14px;
  line-height: 1.5;
}

/* =============================================
   MAP MARKER PINS
   ============================================= */
.marker-wrapper {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.marker-pin-container {
  position: relative;
  width: 30px;
  height: 40px;
  margin: 0 auto;
}

.marker-pin-bg {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.marker-pin-bg.hovered {
  transform: rotate(-45deg) scale(1.1);
}

.marker-pin-icon {
  font-size: 16px;
  transform: rotate(45deg);
  z-index: 1;
}

.marker-label {
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #ccc;
  font-size: 12px;
  font-weight: bold;
  color: var(--moontower);
  white-space: nowrap;
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.marker-label.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1.05);
}

/* =============================================
   ACTIVE FILTER SUMMARY BAR
   ============================================= */
.active-filter-summary {
  position: fixed;
  bottom: 68px;
  bottom: calc(68px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--limestone);
  border-top: 1px solid var(--waterloo);
  padding: 8px 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  animation: slideUpSummary 0.2s ease;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.active-filter-summary::-webkit-scrollbar {
  display: none;
}

.active-filter-summary.hidden {
  display: none;
}

@keyframes slideUpSummary {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--sorin-blue);
  color: var(--white);
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.summary-tag button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0 0 2px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.summary-tag button:hover {
  opacity: 1;
}

.summary-tag button:focus-visible {
  outline: 2px solid var(--gold-medallion);
  outline-offset: 1px;
  border-radius: 2px;
}

/* =============================================
   EMPTY STATE OVERLAY
   ============================================= */
.empty-state-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  pointer-events: none;
}

.empty-state-overlay.hidden {
  display: none;
}

.empty-state-content {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 32px 28px;
  text-align: center;
  max-width: 300px;
  pointer-events: auto;
}

.empty-state-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.empty-state-title {
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--sorin-blue);
  margin: 0 0 6px;
}

.empty-state-desc {
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--bridge-bats);
  margin: 0 0 16px;
  line-height: 1.4;
}

.empty-state-clear-btn {
  padding: 10px 20px;
  background: var(--sorin-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Martel Sans', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.empty-state-clear-btn:hover {
  background: #243d6a;
}

.empty-state-clear-btn:focus-visible {
  outline: 2px solid var(--gold-medallion);
  outline-offset: 2px;
}

.active-filter-summary.sheet-open {
  display: none;
}

/* =============================================
   TABLET AND DESKTOP
   ============================================= */
@media (min-width: 768px) {
  header {
    padding: 12px 24px;
  }

  .header-university {
    font-size: 12px;
  }

  header h1 {
    font-size: 22px;
  }

  .search-container {
    top: 78px;
    left: 16px;
    right: auto;
    max-width: 400px;
  }

  .map-controls {
    top: 136px;
    right: 16px;
  }

  .location-sheet {
    right: auto;
    left: 16px;
    width: 420px;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    bottom: 16px;
    border-radius: 12px;
  }
  
  .location-sheet.expanded {
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    border-radius: 12px;
  }
  
  .category-bar.sheet-open {
    transform: none;
    pointer-events: all;
  }

  .active-filter-summary.sheet-open {
    display: flex;
  }

  .filter-sheet {
    top: 74px;
    right: 16px;
    bottom: auto;
    left: auto;
    width: 380px;
    max-height: calc(100vh - 110px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  }

  .filter-sheet-handle {
    display: none;
  }

  .filter-sheet.hidden {
    transform: translateX(120%);
  }

  .filter-sheet:not(.hidden) {
    transform: translateX(0);
  }

  .popular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .popular-card {
    flex: none;
    min-width: 0;
  }

  .feature-chip {
    height: 40px;
  }

  .active-filter-summary {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .search-container {
    left: 24px;
    top: 96px;
  }

  .map-controls {
    right: 24px;
    top: 154px;
  }
  
  header {
    padding: 14px 32px;
  }
  
  header h1 {
    font-size: 26px;
  }

  .header-university {
    font-size: 13px;
  }
}
