@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

html, body {
  margin: 0;
  height: 100%;
  font-family: 'Crimson Text', Georgia, serif;
}

#container {
  display: flex;
  height: 100vh;
}

/* ---------- SIDEBAR ---------- */
#sidebar {
  width: 230px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(0,0,0,0.012) 40px,
      rgba(0,0,0,0.012) 41px
    ),
    linear-gradient(180deg, #ede7db 0%, #e2d9cc 100%);
  padding: 20px 16px 0 16px;
  flex-shrink: 0;
  overflow-y: auto;
  box-shadow: 3px 0 12px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  border-right: 2px solid #c0b49e;
}

/* ---------- LOGO ---------- */
#sidebar-logo {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #c0b49e;
  margin: -20px -16px 4px -16px;
}

#sidebar-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- SIDEBAR SECTIONS ---------- */
.sidebar-section {
  margin-bottom: 16px;
  margin-top: 14px;
}

.sidebar-section h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a7055;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-section h3::before {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #c0b49e);
}

.sidebar-section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, #c0b49e);
}

.sidebar-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3a2e1e;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: 'Crimson Text', serif;
}

.sidebar-section label:hover {
  color: #6b4c2a;
}

/* ---------- SEASON BUTTONS ---------- */
#season-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.season-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.season-btn {
  background: linear-gradient(135deg, #d8d0c4, #ccc4b8);
  border: 1px solid #b0a898;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: 'Crimson Text', serif;
  color: #3a2e1e;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  width: 100%;
  font-weight: 600;
}

.season-btn:hover {
  background: linear-gradient(135deg, #ccc4b4, #bfb8ac);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.season-btn.active {
  background: linear-gradient(135deg, #7a5530, #5c3d1e);
  color: #f5ead6;
  border-color: #4e3620;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* ---------- FRUIT DROPDOWN ---------- */
.fruit-dropdown {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding-left: 10px;
  border-left: 2px solid #c0b49e;
  margin-bottom: 2px;
}

.fruit-dropdown.open {
  display: flex;
}

.fruit-filter-btn {
  background: none;
  border: none;
  padding: 3px 6px;
  font-size: 13px;
  font-family: 'Crimson Text', serif;
  color: #5a4a35;
  cursor: pointer;
  text-align: left;
  border-radius: 3px;
  transition: background 0.12s, color 0.12s;
}

.fruit-filter-btn:hover {
  background: #d4cdc4;
}

.fruit-filter-btn.active {
  background: #a07850;
  color: #f0ead6;
}

/* ---------- MAP ---------- */
#map-wrapper {
  flex: 1;
  position: relative;
}

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

/* Decorative vignette overlay on map edges */
#map-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.35);
  z-index: 500;
}

.leaflet-grab {
}

.leaflet-dragging .leaflet-grab {
  cursor: grabbing !important;
}



/* ---------- SEARCH ---------- */
#search-wrapper {
  position: relative;
}

#search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  font-size: 13px;
  font-family: 'Crimson Text', serif;
  border: 1px solid #b0a898;
  border-radius: 5px;
  background: #f5f0e8;
  color: #3a2e1e;
  outline: none;
}

#search-input:focus {
  border-color: #6b4c2a;
  background: #fffdf8;
  box-shadow: 0 0 0 2px rgba(107,76,42,0.12);
}

#search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #f5f0e8;
  border: 1px solid #b0a898;
  border-top: none;
  border-radius: 0 0 5px 5px;
  z-index: 2000;
  max-height: 220px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #3a2e1e;
  border-bottom: 1px solid #e0d8ce;
  font-family: 'Crimson Text', serif;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #e2d9ce;
}

.search-result-label {
  font-family: 'Crimson Text', serif;
}

.search-result-category {
  font-size: 11px;
  color: #7a6a55;
  background: #d4cdc4;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ---------- MAP CREDIT ---------- */
#map-credit {
  margin-top: auto;
  padding: 12px 16px;
  font-size: 11px;
  color: #9a8a75;
  text-align: center;
  border-top: 1px solid #c0b49e;
  font-family: 'Crimson Text', serif;
  letter-spacing: 0.03em;
}

#map-credit strong {
  color: #6b4c2a;
}

/* ---------- HOME ICON ---------- */
.home-icon {
  font-size: 20px;
  line-height: 1;
  text-align: center;
  background: none;
  border: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}
