/* =========================================
   my-addresses.css - עיצוב דף הכתובות שלי
   ========================================= */

body.addresses-body { 
    background: #fdfbf5; 
    min-height: 100vh; 
    font-family: 'Rubik', sans-serif; 
}

.addresses-container { 
    padding-top: 40px; 
    max-width: 500px; 
    margin: 0 auto; 
    position: relative; 
    min-height: 100vh;
}

.top-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.page-title { 
    color: #121212; 
    font-weight: 900; 
}

.back-btn { 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 50px; 
    padding: 8px 18px; 
    color: var(--coffee-text); 
    font-weight: 700; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
}

.back-btn:hover { 
    background: var(--luxury-gold); 
    color: #fff; 
    border-color: var(--luxury-gold); 
    transform: translateX(3px); 
}

/* --- מסגרת הכרטיסייה המרכזית (Card) --- */
.addresses-main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 25px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-height: 400px;
    margin-bottom: 100px; /* משאיר מקום לכפתור הפלוס הצף למטה */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
}

/* --- כרטיסיית כתובת בודדת --- */
.address-card { 
    background: #fff; 
    padding: 20px; 
    border-radius: 20px; 
    border: 1px solid #eee; 
    margin-bottom: 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: 0.3s; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
}

.address-card:hover { 
    border-color: rgba(197, 160, 89, 0.3); 
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.08); 
}

.address-info { 
    flex: 1; 
    text-align: right; 
    margin-right: 15px; 
}

.address-title { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: #121212; 
    margin-bottom: 3px; 
}

.address-sub { 
    font-size: 0.9rem; 
    color: #888; 
}

.address-city { 
    font-size: 0.85rem; 
    color: var(--luxury-gold); 
    font-weight: 700; 
    margin-top: 5px; 
}

.address-icon { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: #fffdf5; 
    border: 1px solid var(--luxury-gold); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--luxury-gold); 
}

.address-actions { 
    display: flex; 
    gap: 10px; 
}

.action-btn { 
    background: none; 
    border: none; 
    padding: 8px; 
    border-radius: 10px; 
    transition: 0.2s; 
}

.action-btn.edit { 
    color: var(--luxury-gold); 
    background: rgba(197, 160, 89, 0.1); 
}

.action-btn.delete { 
    color: #ff4757; 
    background: rgba(255, 71, 87, 0.1); 
}

/* --- מצב ריק (אין כתובות) --- */
.empty-state { 
    text-align: center; 
    margin-top: 40px; 
    opacity: 0.7; 
}

.empty-state i { 
    font-size: 4rem; 
    color: #ccc; 
    margin-bottom: 15px; 
}

/* --- כפתור הוספת כתובת צף למטה --- */
.bottom-action-container { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%; 
    max-width: 460px; 
    padding: 0 20px; 
    z-index: 100;
}

.add-address-btn { 
    background: var(--luxury-gold); 
    color: #fff; 
    width: 100%; 
    border: none; 
    padding: 16px; 
    border-radius: 20px; 
    font-size: 1.1rem; 
    font-weight: 800; 
    transition: 0.3s; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.add-address-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4) !important; 
}

/* =========================================
   עיצוב מודל הוספת הכתובת
   ========================================= */
.address-modal { 
    border-radius: 25px; 
    background-color: #ffffff;
}

/* כפתורי הערים */
.cities-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.city-chip { 
    padding: 10px 18px; 
    border-radius: 15px; 
    border: 2px solid #eaeaea; 
    background: #fff; 
    color: #444; 
    font-size: 0.95rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.city-chip:hover {
    border-color: var(--luxury-gold);
    background: #fffdf5;
}

.city-chip.active { 
    background: #fffdf5; 
    border-color: var(--luxury-gold); 
    color: var(--luxury-gold); 
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* שדות טקסט */
.custom-input { 
    padding: 15px; 
    border-radius: 15px; 
    border: 1.5px solid #eaeaea; 
    background: #fdfdfd; 
    text-align: right; 
    font-size: 1rem;
    transition: 0.3s;
    color: #121212;
}

.custom-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.custom-input:focus { 
    border-color: var(--luxury-gold); 
    background: #fff; 
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1); 
    outline: none;
}

.btn-dark-luxury { 
    background: #121212; 
    color: #fff; 
    padding: 16px; 
    border-radius: 15px; 
    border: none; 
    font-weight: 800; 
    font-size: 1.1rem; 
    transition: 0.3s; 
}

/* השלמת רחובות */
.suggestions-dropdown { 
    position: absolute; 
    top: calc(100% + 5px); 
    left: 0; 
    right: 0; 
    background: #fff; 
    border: 1px solid #eaeaea; 
    border-radius: 15px; 
    max-height: 180px; 
    overflow-y: auto; 
    z-index: 1050; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.suggestion-item { 
    padding: 12px 15px; 
    border-bottom: 1px solid #f9f9f9; 
    cursor: pointer; 
    text-align: right; 
    color: #444; 
    font-size: 0.95rem; 
    font-weight: 500;
    transition: 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover { 
    background: #fffdf5; 
    color: var(--luxury-gold); 
    padding-right: 20px; /* אפקט תזוזה יוקרתי הצידה */
}

.address-card.unsupported {
    opacity: 0.7;
    border: 1.5px dashed #dc3545;
    background-color: #fff8f8;
}