/**
 * Location Modal Styles
 * Konum seçimi modal ve ilgili bileşenler için stiller
 * Kurumsal Renk: #253928
 */

:root {
    --brand-primary: #253928;
    --brand-primary-light: #3a5a3e;
    --brand-primary-dark: #1a2a1c;
    --brand-gradient: linear-gradient(135deg, #253928 0%, #3a5a3e 100%);
}

/* Modal Genel */
#addressModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#addressModal .modal-body {
    padding: 2rem;
}

/* Kapatma Butonu */
#addressModal .btn-exit-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

#addressModal .btn-exit-modal:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* Konum İkonu */
.location-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon-large i {
    color: var(--brand-primary) !important;
}

/* Otomatik Konum Butonu */
#getLocationBtn {
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--brand-gradient);
    border: none;
}

#getLocationBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 57, 40, 0.35);
    background: var(--brand-primary-light);
}

#getLocationBtn:disabled {
    opacity: 0.7;
    transform: none;
}

/* Ayırıcı Çizgi */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider-with-text span {
    padding: 0 15px;
    background: white;
    color: #9e9e9e;
}

/* Arama Input */
#addressModal .form-control {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    padding-left: 45px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#addressModal .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(37, 57, 40, 0.1);
}

#addressModal .form-control::placeholder {
    color: #9e9e9e;
}

/* Temizle Butonu */
#addressModal .btn-exit {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

#addressModal .btn-exit:hover i {
    color: #666 !important;
}

/* Arama Sonuçları */
.search-results-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

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

.search-result-item:hover {
    background: #e8f5e9;
}

.search-result-item i {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--brand-primary);
}

.search-result-item span {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.no-results {
    text-align: center;
    color: #9e9e9e;
}

/* Popüler Bölgeler */
.city_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.city_list li,
.location-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 25px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.city_list li:hover,
.location-item:hover {
    background: #e8f5e9;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.city_list li i,
.location-item i {
    font-size: 14px;
    color: var(--brand-primary);
}

/* Mevcut Konum Badge */
.current-location-badge {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 25px;
    font-size: 14px;
    gap: 8px;
}

.current-location-badge span {
    flex: 1;
    color: var(--brand-primary);
    font-weight: 500;
}

.current-location-badge .btn-link {
    padding: 0;
    font-size: 13px;
    text-decoration: none;
    color: var(--brand-primary);
}

.current-location-badge .btn-link:hover {
    text-decoration: underline;
}

/* Header Konum */
.header-location-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 10px;
    min-width: 180px;
}

.header-location-wrapper:hover {
    border-color: var(--brand-primary);
    background: #f8fff9;
}

.header-location-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-location-icon i {
    color: white;
    font-size: 16px;
}

.header-location-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.header-location-label {
    font-size: 11px;
    color: #888;
    line-height: 1.2;
}

.header-location-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.header-location-arrow {
    color: #888;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.header-location-wrapper:hover .header-location-arrow {
    transform: rotate(180deg);
}

/* Loading */
#locationLoading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 576px) {
    #addressModal .modal-body {
        padding: 1.5rem;
    }
    
    .location-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .location-icon-large i {
        font-size: 2rem !important;
    }
    
    .city_list li {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    #getLocationBtn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* =====================================================
   YAKIN ÇİÇEKÇİ KARTLARI
   ===================================================== */

#nearbyFloristsContainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.florist-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.florist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-primary);
}

.florist-card.florist-closed {
    opacity: 0.7;
    background: #f9f9f9;
}

.florist-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.florist-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.florist-info {
    flex: 1;
    min-width: 0;
}

.florist-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.florist-address {
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.florist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.florist-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.florist-rating {
    color: #333;
    font-weight: 500;
}

.florist-distance {
    color: #666;
}

.florist-status {
    font-weight: 500;
}

.florist-action {
    flex-shrink: 0;
}

.florist-action .btn {
    white-space: nowrap;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Çiçekçi Grid Layout */
.florists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.florists-grid .florist-card {
    flex-direction: column;
    text-align: center;
}

.florists-grid .florist-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.florists-grid .florist-meta {
    justify-content: center;
}

.florists-grid .florist-action {
    margin-top: 12px;
    width: 100%;
}

.florists-grid .florist-action .btn {
    width: 100%;
}

/* Responsive Florist Cards */
@media (max-width: 576px) {
    .florist-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .florist-logo {
        margin: 0 auto;
    }
    
    .florist-meta {
        justify-content: center;
    }
    
    .florist-action {
        width: 100%;
    }
    
    .florist-action .btn {
        width: 100%;
    }
}


