
@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

h1,
h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500!important;
  text-transform: none;
  letter-spacing: 0em;
}

html,
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  height: 100%;
  overflow: hidden;
  font-size: 20px;
}
strong {
  font-family: "Oswald", sans-serif;
  font-weight: 500!important;
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0em;
}
.filter-btn {
  font-family: "Oswald", sans-serif;
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

header {
  backdrop-filter: blur(12px);
  text-align: center;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-bottom: #000000;
}

#container {
  display: flex;
  width: 100vw;
  height: calc(100vh - 80px);
}

#map-section {
  flex: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#map {
  flex: 1;
  height: 100%;
}

#sidebar {
  width: 550px;
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid #000000;
  padding: 20px;
}

#location-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#location-list::after {
  content: "";
  display: block;
  height: 50px; 
}

#location-list li {
  background: white;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

#location-list li:hover,
#location-list li:focus {
  background: #fcf2df;
  transform: scale(1.01);
  outline: 2px solid #f2cf66;
  outline-offset: 2px;
}

.marker-icon {
  width: 30px;
}

.highlighted-item {
  border: 3px solid #f2cf66 !important;
  border-radius: 0.5rem !important;
  overflow: visible !important;
}

/* Category Buttons */
.filter-btn,
.mobile-filter-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  background: #ffffff;
  border: 2px solid #e4e4e4;
  color: #4b5563;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

/* Hover and focus states */
.filter-btn:hover,
.mobile-filter-btn:hover,
.filter-btn:focus,
.mobile-filter-btn:focus {
  background: #fcf2df;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
  outline: 2px solid #f2cf66;
  outline-offset: 2px;
}

/* Active selected state */
.filter-btn.bg-selected,
.mobile-filter-btn.bg-selected {
  background: #f2cf66 !important;
  border-color: #f2cf66 !important;
  color: rgb(0, 0, 0) !important;
  box-shadow: 0 4px 10px rgba(164, 42, 40, 0.4);
  transform: translateY(-1px);
}

/* Clear search button */
#clear-search-btn,
#mobile-clear-search-btn {
  transition: all 0.2s ease;
}

#clear-search-btn:hover,
#mobile-clear-search-btn:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

#clear-search-btn:active,
#mobile-clear-search-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* Recenter button focus state */
#recenter-btn:focus {
  outline: 3px solid #f2cf66;
  outline-offset: 2px;
}

/* ---------------------- */
/* NOTIFICATION SYSTEM    */
/* ---------------------- */
.notification {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 10000;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  max-width: 400px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  background: #10b981;
  color: white;
}

.notification-error {
  background: #ef4444;
  color: white;
}

.notification-warning {
  background: #f59e0b;
  color: white;
}

.notification-info {
  background: #3b82f6;
  color: white;
}

/* ---------------------- */
/* MOBILE BOTTOM SHEET    */
/* ---------------------- */

#mobile-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: 40vh;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);

  display: none;

  transition: height 0.25s ease;
  overflow: hidden;
  z-index: 9999;
}

#sheet-handle {
  width: 45px;
  height: 5px;
  background: #ccc;
  border-radius: 100px;
  margin: 10px auto;
  cursor: grab;
  /* Allow touch events only on handle */
  touch-action: pan-y;
}

#sheet-handle:active {
  cursor: grabbing;
}

#mobile-sheet-content {
  height: calc(100% - 20px);
  overflow-y: auto;
  padding-bottom: 50px;
  /* Allow normal scrolling in content */
  touch-action: pan-y;
}

.font-bold {
  font-weight: 500!important;
}

/* MOBILE ONLY */
@media (max-width: 768px) {

  #sidebar {
    display: none;
  }

  #mobile-sheet {
    display: block;
  }

  #container {
    flex-direction: column;
    height: calc(100vh - 64px);
  }

  #map-section {
    width: 100%;
    height: calc(100vh - 60px);
  }

  #map {
    height: 100%;
  }
  
  /* Adjust notification position on mobile */
  .notification {
    top: 70px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}