body {
    color: #404040;
    font: 400 15px/22px 'Source Sans Pro','Helvetica Neue',sans-serif;
    margin: 0;
    padding: 0;
}
* { box-sizing: border-box; }
  
.sidebar {
    position: absolute;
    width: 33.3333%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    border-right: 1px solid rgb(0 0 0 / 25%);
    display: flex;
    flex-direction: column;
}
  
.map {
    position: absolute;
    left: 33.3333%;
    width: 66.6666%;
    top: 0;
    bottom: 0;
}
  
.heading {
    background-color: #4b2e83;
    color: #fff;
    border-bottom: 1px solid #eee;
    min-height: 60px;
    line-height: 60px;
    padding: 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heading h1 {
    margin: 0;
}
  
.listings {
    flex: 2;
    overflow: auto;
    padding-bottom: 10px;
}
  
.listings .item {
    border-bottom: 1px solid #eee;
    padding: 10px;
}
  
.listings .item.active {
    background-color: #f8f8f8;
}
  
/* Base marker */
.marker {
    border: none;
    cursor: pointer;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ffffff, 0 0 4px rgba(0, 0, 0, 0.35);
    background-size: cover;
}
  
/* Popup styling */
.mapboxgl-popup {
    padding-bottom: 50px;
}
  
.mapboxgl-popup-close-button {
    display: none;
}
  
.mapboxgl-popup-content {
    font: 400 15px/22px 'Source Sans Pro','Helvetica Neue',sans-serif;
    padding: 0;
    width: 180px;
}
  
.mapboxgl-popup-content h3 {
    background: #4b2e83;
    color: #fff;
    margin: -15px 0 0;
    padding: 10px;
}
  
  /* Tooltip */
.item {
    position: relative;
}
  
.tooltip {
    display: none;
    position: absolute;
    left: 105%;
    top: 10px;
    background: #4b2e83;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 10;
}
  
.item:hover .tooltip {
    display: block;
}
  
/* Filters */
#filters {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    background: #fafafa;
}
  
#filters h3 {
    margin: 0 0 8px;
    font-size: 15px;
}
  
#filters label {
    display: block;
    margin-bottom: 6px;
}
  
#filters select {
    width: 100%;
    font-size: 13px;
    padding: 3px 4px;
}
  
#useLocationBtn {
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 13px;
    background: #4b2e83;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.zoom-controls {
    position: absolute;
    top: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
  
.zoom-controls button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(75, 46, 131, 0.75);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
  
.zoom-controls button:hover {
    background: rgba(75, 46, 131, 0.95);
}


.filter-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}
  
.filter-toggle-btn:hover {
    opacity: 0.8;
}
  
#filters.collapsed {
    display: none;
}
  
.type-buttons {
  margin-bottom: 8px;
}

.type-buttons button {
  margin-right: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.type-buttons button.active {
  background: #333;
  color: #fff;
}

/* Map Legend */
.map-legend {
    position: absolute;
    right: 16px;
    bottom: 24px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    min-width: 150px;
}

.map-legend h3 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.legend-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

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