/* Address Book Styles */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.address-item {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out backwards;
}

.address-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.address-info {
    flex: 1;
}

.address-label {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-label i {
    color: var(--primary-color);
}

.address-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.address-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.address-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.address-action-btn.delete:hover {
    background: #ef4444;
}

.map-wrapper {
    position: relative;
    width: 100%;
}

.locate-me-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.locate-me-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.locate-me-btn i {
    font-size: 1.2rem;
}

/* Map Picker Styles */
.map-selection-container {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

#addressMap {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Leaflet Overrides for RTL and Dark Mode */
.leaflet-container {
    font-family: 'Cairo', sans-serif !important;
}

.dark-mode .leaflet-tile-pane {
    filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.leaflet-bar a {
    background-color: var(--glass-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New classes to replace inline styles */
.address-header-title {
    margin: 0;
    font-size: 1.2rem;
}

.address-add-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.address-form-container {
    display: none;
    padding: 20px;
}

.address-form-title {
    font-size: 1.1rem;
}

.address-map-info-text {
    font-size: 0.8rem;
    text-align: center;
}

.address-map-wrapper {
    position: relative;
}

#addressMap {
    height: 250px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}