/* ==========================================================================
   ÖZENCAN NAKLİYAT - AKILLI ADRES & MAPBOX AUTOCOMPLETE STYLESHEET
   Uyumlu: Genel Web Sitesi (Bootstrap 4) ve Admin Paneli (Bootstrap 5)
   ========================================================================== */

.mapbox-autocomplete-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.mapbox-suggestions-box {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1070 !important;
    background: #ffffff !important;
    border: 1px solid #dbe2ea !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    padding: 0.35rem 0 !important;
    margin: 0 !important;
    list-style: none !important;
    scrollbar-width: thin !important;
}

.mapbox-suggestions-box::-webkit-scrollbar {
    width: 6px;
}

.mapbox-suggestions-box::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 8px;
}

.mapbox-suggestions-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.mapbox-suggestions-box::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.mapbox-suggestion-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 0.65rem 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #1e293b !important;
    transition: background-color 0.15s ease !important;
}

.mapbox-suggestion-item:last-child {
    border-bottom: none !important;
}

.mapbox-suggestion-item:hover,
.mapbox-suggestion-item.active {
    background-color: #f1f5f9 !important;
    text-decoration: none !important;
}

.mapbox-suggestion-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 72, 0, 0.1) !important;
    color: #FF4800 !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}

.mapbox-suggestion-item:hover .mapbox-suggestion-icon,
.mapbox-suggestion-item.active .mapbox-suggestion-icon {
    background: #FF4800 !important;
    color: #ffffff !important;
}

.mapbox-suggestion-content {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
    text-align: left !important;
}

.mapbox-suggestion-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
}

.mapbox-suggestion-title {
    color: #0f172a !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mapbox-type-pill {
    display: inline-block !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 6px !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.mapbox-suggestion-subtitle {
    color: #64748b !important;
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-top: 0.15rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mapbox-suggestion-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.45rem 1rem !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    font-size: 0.74rem !important;
    color: #64748b !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.mapbox-loading-state,
.mapbox-empty-state {
    padding: 1rem !important;
    text-align: center !important;
    color: #64748b !important;
    font-size: 0.85rem !important;
}

/* Gece Modu (Dark Mode) Uyum */
[data-bs-theme="dark"] .mapbox-suggestions-box,
[data-theme="dark"] .mapbox-suggestions-box,
html.dark-theme .mapbox-suggestions-box {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .mapbox-suggestion-item,
[data-theme="dark"] .mapbox-suggestion-item,
html.dark-theme .mapbox-suggestion-item {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .mapbox-suggestion-item:hover,
[data-bs-theme="dark"] .mapbox-suggestion-item.active,
[data-theme="dark"] .mapbox-suggestion-item:hover,
[data-theme="dark"] .mapbox-suggestion-item.active,
html.dark-theme .mapbox-suggestion-item:hover,
html.dark-theme .mapbox-suggestion-item.active {
    background: #1e293b !important;
}

[data-bs-theme="dark"] .mapbox-suggestion-title,
[data-theme="dark"] .mapbox-suggestion-title,
html.dark-theme .mapbox-suggestion-title {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .mapbox-suggestion-subtitle,
[data-theme="dark"] .mapbox-suggestion-subtitle,
html.dark-theme .mapbox-suggestion-subtitle {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .mapbox-suggestion-footer,
[data-theme="dark"] .mapbox-suggestion-footer,
html.dark-theme .mapbox-suggestion-footer {
    background: #090e1a !important;
    border-top-color: #1e293b !important;
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .mapbox-type-pill,
[data-theme="dark"] .mapbox-type-pill,
html.dark-theme .mapbox-type-pill {
    background: #1e293b !important;
    color: #94a3b8 !important;
}
