/* Marker Modal Styles - Matching website theme */
.marker-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.marker-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.marker-modal {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.marker-modal-overlay.active .marker-modal {
    transform: scale(1);
}

.marker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #555555;
}

.marker-modal-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.marker-modal-close {
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.marker-modal-close:hover {
    color: #ffffff;
}

.marker-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marker-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.marker-modal-label {
    color: #aaaaaa;
    font-size: 0.85rem;
    font-weight: 500;
}

.marker-modal-input {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    border: 1px solid #555555;
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    color: #cccccc;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s ease;
}

.marker-modal-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: linear-gradient(135deg, #4a4a4a 0%, #373737 100%);
    color: #ffffff;
}

.marker-modal-input::placeholder {
    color: #666666;
}

.marker-modal-color-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.marker-modal-color-input {
    width: 60px;
    height: 40px;
    border: 1px solid #555555;
    border-radius: 4px;
    cursor: pointer;
    background: #cccccc;
}

.marker-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #555555;
}

.marker-modal-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.marker-modal-btn-cancel {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    border-color: #555555;
    color: #cccccc;
}

.marker-modal-btn-cancel:hover {
    background: linear-gradient(135deg, #4a4a4a 0%, #373737 100%);
    border-color: #666666;
    color: #ffffff;
}

.marker-modal-btn-save {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
    color: #ffffff;
}

.marker-modal-btn-save:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

.marker-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.marker-modal-loading {
    color: #4CAF50;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
}

.marker-modal-select {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    border: 1px solid #555555;
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    color: #cccccc;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s ease;
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cccccc' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.marker-modal-select:focus {
    outline: none;
    border-color: #4CAF50;
    background: linear-gradient(135deg, #4a4a4a 0%, #373737 100%);
    color: #ffffff;
}

.marker-modal-select:hover {
    border-color: #666666;
}

.marker-modal-select option {
    background: #2d2d2d;
    color: #cccccc;
    padding: 0.5rem;
}

/* Custom Dropdown Styles */
.marker-modal-custom-dropdown {
    position: relative;
    width: 100%;
}

.marker-modal-dropdown-trigger {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    border: 1px solid #555555;
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    color: #cccccc;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s ease;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.marker-modal-dropdown-trigger:hover {
    border-color: #666666;
}

.marker-modal-custom-dropdown.open .marker-modal-dropdown-trigger {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #4a4a4a 0%, #373737 100%);
    color: #ffffff;
}

.marker-modal-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.marker-modal-dropdown-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marker-modal-dropdown-arrow {
    font-size: 0.7rem;
    color: #cccccc;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.marker-modal-custom-dropdown.open .marker-modal-dropdown-arrow {
    transform: rotate(180deg);
}

.marker-modal-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    border: 1px solid #555555;
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.marker-modal-custom-dropdown.open .marker-modal-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.marker-modal-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    color: #cccccc;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(85, 85, 85, 0.3);
}

.marker-modal-dropdown-item:last-child {
    border-bottom: none;
}

.marker-modal-dropdown-item:hover {
    background: linear-gradient(135deg, #4a4a4a 0%, #373737 100%);
    color: #ffffff;
}

.marker-modal-dropdown-item.selected {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
}

.marker-modal-dropdown-item.selected:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.marker-modal-dropdown-image {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: pixelated;
}

