@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.1/font/bootstrap-icons.css');

html {
  height: 100%;
}
body {
  height: 100%;
  margin: 0px;
  padding: 0px;
}
#container {
  width: 100%;
  height: 100%;
}
#nav {
    z-index: 1000;
    position: absolute;
    background: #fff;
    top: 10px;
    transition: top 0.3s ease;
}
#map {
  width: 100%;
  height: 100%;
}
#toggle-panel {
  position: relative;
  transition: top 0.3s ease;
}
#toggle-panel.is_hide {
  /* panel is collapsed; toggle button peeks below nav */
}
body > svg {
    display: none;
    left: 50%;
    margin-left: -100px;
    top: 50%;
    margin-top: -100px;
    position: absolute;
    z-index: 100;
}
.iw-main { margin-left: 5px; }
.iw-body {
  max-height: 200px;
  overflow-y: auto;
}
.iw-img {
  max-width: 180px !important;
   border: 1px solid;
}

/* Accessibility: visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  box-shadow: none;
}

/* List view panel */
#list-view-panel {
  width: 320px;
}
#list-view-items {
  overflow-y: auto;
}
.lv-card {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.lv-card:hover {
  background: #f8f9fa;
}
.lv-card:last-child {
  border-bottom: none;
}
.lv-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  flex-shrink: 0;
}
.lv-info {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
}
.lv-title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.lv-desc {
  font-size: 0.78rem;
  color: #6c757d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lv-distance {
  font-size: 0.72rem;
  color: #0d6efd;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 6px;
}

/* Filter highlight */
mark.lv-highlight {
  background-color: #fff3cd;
  color: inherit;
  padding: 0;
  border-radius: 2px;
  font-weight: 600;
}

/* Filter count badge next to input */
#list-filter-count {
  font-size: 0.72rem;
  color: #6c757d;
  white-space: nowrap;
}

/* My Location button spinner */
@keyframes geo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.geo-spin {
  display: inline-block;
  animation: geo-spin 1s linear infinite;
}

/* Favorites star button */
.lv-fav-btn {
  background: none;
  border: none;
  padding: 2px 5px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  color: #ccc;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
}
.lv-card .lv-fav-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
}
.lv-fav-btn:hover,
.lv-fav-btn:focus-visible {
  color: #ffc107;
  background-color: rgba(0, 0, 0, 0.06);
  outline: none;
}
.lv-fav-btn.is-fav { color: #ffc107; }

/* Info-window inline fav button */
.iw-fav-btn {
  font-size: 1.15rem;
  padding: 1px 6px;
  flex-shrink: 0;
}
