/* =====================================================================
   Location Picker — Yerel Pazar konum seçici
   Design system: Brand Green #1A6355, Accent #b9475e, radius 3px
   ===================================================================== */

/* ---- Header pill ---- */
.header-location-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 24px;
    padding: 6px 12px;
    margin: 0 10px;
    cursor: pointer;
    font-family: 'Fira Sans', sans-serif;
    color: #1A6355;
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
    max-width: 220px;
}
.header-location-pill:hover {
    border-color: #1A6355;
    box-shadow: 0 0 3px 0 rgba(26,99,85,.25);
}
.header-location-pill:active { transform: scale(.98); }
.header-location-pill .loc-pin-icon { width: 20px; height: 20px; flex: 0 0 20px; color: #b9475e; }
.header-location-pill .loc-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; overflow: hidden; }
.header-location-pill .loc-caption { font-size: 10px; color: #818181; text-transform: uppercase; letter-spacing: .3px; }
.header-location-pill .loc-value {
    font-size: 13px; font-weight: 600; color: #1A6355;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.header-location-pill .loc-caret { width: 16px; height: 16px; flex: 0 0 16px; color: #7d91a3; }

@media (max-width: 750px) {
    .header-location-pill .loc-text { display: none; }
    .header-location-pill { padding: 6px; margin: 0 4px; border-radius: 50%; }
    .header-location-pill .loc-caret { display: none; }
}

/* ---- Overlay + modal ---- */
.lp-overlay {
    position: fixed; inset: 0; z-index: 10050;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.lp-overlay.lp-open { opacity: 1; visibility: visible; }

.lp-modal {
    background: #fff; border-radius: 8px; width: 100%; max-width: 440px;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    overflow: hidden;
    transform: translateY(16px) scale(.98);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    font-family: 'Fira Sans', sans-serif;
}
.lp-overlay.lp-open .lp-modal { transform: translateY(0) scale(1); }

.lp-header {
    background: #1A6355; color: #fff; padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.lp-header h3 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 600; }
.lp-header .lp-sub { font-size: 12px; opacity: .85; margin-top: 2px; display: block; }
.lp-close {
    background: transparent; border: 0; color: #fff; cursor: pointer;
    font-size: 26px; line-height: 1; padding: 0 4px; opacity: .85; transition: opacity .2s;
}
.lp-close:hover { opacity: 1; }

.lp-body { padding: 20px; }

.lp-geo-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #FFF3E5; color: #1A6355; border: 1px dashed #1A6355;
    border-radius: 3px; padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    margin-bottom: 16px;
}
.lp-geo-btn:hover { background: #ffe9cf; }
.lp-geo-btn:active { transform: scale(.99); }
.lp-geo-btn svg { width: 18px; height: 18px; }
.lp-geo-btn.lp-loading { opacity: .7; pointer-events: none; }

.lp-divider { text-align: center; color: #b0b0b0; font-size: 12px; margin: 4px 0 16px; position: relative; }
.lp-divider::before, .lp-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #e6e6e6;
}
.lp-divider::before { left: 0; } .lp-divider::after { right: 0; }

.lp-field { margin-bottom: 14px; }
.lp-field label { display: block; font-size: 12px; color: #595959; margin-bottom: 5px; font-weight: 600; }
.lp-field select {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d7dc; border-radius: 3px;
    font-size: 14px; color: #4D4D4D; background: #fff; font-family: inherit;
    transition: border-color .2s ease;
}
.lp-field select:focus { outline: none; border-color: #1A6355; }
.lp-field select:disabled { background: #f3f3f3; color: #a0a0a0; }

.lp-actions { display: flex; gap: 10px; margin-top: 6px; }
.lp-btn {
    flex: 1; border: 0; border-radius: 3px; padding: 11px 16px; font-size: 15px;
    font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s ease, opacity .2s;
}
.lp-btn-primary { background: #b9475e; color: #fff; }
.lp-btn-primary:hover { background: #e79275; }
.lp-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.lp-btn-ghost { background: #fff; color: #7d91a3; border: 1px solid #e6e6e6; flex: 0 0 auto; }
.lp-btn-ghost:hover { color: #b9475e; border-color: #e79275; }

.lp-msg { font-size: 12px; margin-top: 10px; min-height: 16px; }
.lp-msg.lp-err { color: #d63e2e; }
.lp-msg.lp-ok { color: #1A6355; }
