/* Cemetery Control Base Styles */
.leaflet-control.cemetery-control,
div[id^="map_"] .cemetery-control,
.cemetery-control {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.leaflet-control-cemetery {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: white;
    border-bottom: 1px solid #ccc;
    color: #666;
}

.leaflet-control-cemetery:hover {
    background: #f4f4f6;
}

/* Cemetery Selector Button */
.cemetery-selector-btn {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    background: white;
}

.cemetery-selector-btn:hover {
    background-color: #f3f4f6;
}

/* Cemetery Dropdown */
.cemetery-selector-dropdown {
    position: absolute;
    left: 40px;
    top: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    max-width: 300px;
    z-index: 1000;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* Search Container and Input */
.search-container {
    padding: 0px;
    border-bottom: 1px solid #E5E7EB;
}

.cemetery-search {
    width: 50%!important;
    padding: 8px;
    border: 4px solid #e5e7eb;
    border-radius: 4px;
    margin: 4px 8px 4px 8px;
    font-size: 19px;
}

.cemetery-search:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cemetery-search::placeholder {
    color: #9CA3AF;
}

/* Cemetery List Styles */
.cemetery-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}

.cemetery-list::-webkit-scrollbar {
    width: 6px;
}

.cemetery-list::-webkit-scrollbar-track {
    background: #F9FAFB;
}

.cemetery-list::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 3px;
}

.cemetery-list::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
}

/* Cemetery Items */
.cemetery-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.cemetery-item:hover {
    background-color: #f3f4f6;
    border-left-color: #2563eb;
}

.cemetery-item:focus {
    outline: none;
    background-color: #f3f4f6;
}

.cemetery-item.active {
    background: #EFF6FF !important;
    border-left-color: #2563EB;
    color: #1D4ED8 !important;
}

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

.cemetery-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cemetery-item svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #6B7280;
}

.cemetery-item.active svg {
    color: #2563EB;
}

/* Street View Styles */
.streetview-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
}

.streetview-popup .leaflet-popup-content {
    margin: 12px;
}

.google-streetview-icon {
    transition: all 0.2s ease;
}

.google-streetview-icon:hover {
    background-color: #f4f4f4;
}

.google-streetview-icon.dragging {
    opacity: 0.5;
}

.streetview-drag-icon {
    cursor: grab;
}

.streetview-drag-icon.dragging {
    cursor: grabbing;
}

.streetview-preview-icon {
    cursor: grabbing;
}

/* Cemetery Icon */
.cemetery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cemetery-icon svg {
    color: #1a56db;
    background: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

