/**
 * Map-based Address Picker Styles
 */

/* ===== MAP BASE STYLES MOVED TO shared.css ===== */

/* Base map styles now live in shared.css */

/* Single column modal styles */
.modal-row.single-column {
    display: block;
    padding: 20px;
}

.modal-form-column.full-width {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* Search input and suggestions */
.map-search-input {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    background: white;
}

.search-suggestions {
    position: absolute;
    top: 45px;
    left: 50px;
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.search-suggestion-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-suggestion-item:hover {
    background-color: #f5f5f5;
}

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

/* Loading indicator for search */
.search-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.search-loading::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-search-input {
        width: 200px;
    }

    .search-suggestions {
        width: 200px;
    }
}

/* Address search input group */
.input-group {
    display: flex;
    margin-bottom: 15px;
}

.input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    display: flex;
}

.input-group-append button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
}

/* Address suggestions */
#address-suggestions {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    display: none;
}

.address-suggestion-item {
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address-suggestion-item:hover {
    background-color: #f5f5f5;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-instructions,
    .map-marker-info {
        font-size: 12px;
    }
} 