/* ============================================
   NauticMall Supply Radar â€” Styles
   ============================================ */

:root {
    --navy: #0F1923;
    --navy-light: #1B2A4A;
    --orange: #F37324;
    --orange-hover: #e0621a;
    --green: #1A8A7D;
    --purple: #9B59B6;
    --bg: #F0F4F8;
    --card: #FFFFFF;
    --text: #1a1a2e;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(27,42,74,0.08);
    --shadow-lg: 0 12px 48px rgba(27,42,74,0.15);
    --glass: rgba(255,255,255,0.85);
    --glass-border: rgba(255,255,255,0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 72px;
    --filter-h: 48px;
    --panel-w: 400px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ============ HEADER ============ */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: linear-gradient(180deg, #0a1420 0%, #0F1923 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    padding: 0 28px;
    z-index: 1000;
    gap: 20px;
}

.header-left { flex-shrink: 0; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 65px; width: auto; filter: brightness(0) invert(1); }
.logo-divider { color: rgba(255,255,255,0.2); font-size: 24px; font-weight: 100; }
.logo-sub { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 3px; text-transform: uppercase; }

.header-center { flex: 1; max-width: 480px; margin: 0 auto; }

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    padding: 0 18px;
    transition: var(--transition);
}
.search-box:focus-within { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
.search-icon { width: 16px; height: 16px; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.search-box input {
    flex: 1; border: none; outline: none; background: none;
    padding: 11px 14px; font-size: 13px; font-family: inherit; color: rgba(255,255,255,0.9);
    letter-spacing: 0.2px;
}
.search-box input::placeholder { color: rgba(255,255,255,0.3); font-weight: 400; }

.search-results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 320px; overflow-y: auto;
    display: none; z-index: 10;
}
.search-results.active { display: block; }
.search-result-item {
    padding: 10px 16px; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.search-result-item:hover { background: var(--bg); }
.search-result-item:last-child { border-bottom: none; }
.search-result-icon { font-size: 18px; }
.search-result-text { font-size: 13px; font-weight: 500; }
.search-result-sub { font-size: 11px; color: var(--text-secondary); }

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.stat-pills { display: flex; gap: 8px; }
.stat-pill {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 12px; font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.stat-val { font-weight: 700; color: rgba(255,255,255,0.95); font-size: 13px; }
.stat-label { color: rgba(255,255,255,0.4); font-size: 11px; }

.btn-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%; cursor: pointer;
    transition: var(--transition);
    color: rgba(255,255,255,0.45);
}
.btn-icon:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.18); }
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon.active { background: var(--orange); color: #fff; border-color: var(--orange); }
#btn-lang { font-size: 11px; font-weight: 700; font-family: inherit; color: rgba(255,255,255,0.45); letter-spacing: 0.5px; }

.mobile-search-toggle { display: none; }

/* ============ MOBILE SEARCH BAR ============ */
.mobile-search-bar {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    padding: 8px 12px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    z-index: 999;
    gap: 8px; align-items: center;
}
.mobile-search-bar.active { display: flex; }
.mobile-search-bar input {
    flex: 1; border: 1.5px solid var(--border);
    border-radius: 8px; padding: 10px 14px;
    font-size: 15px; font-family: inherit; outline: none;
    background: var(--card);
}
.mobile-search-bar input:focus { border-color: var(--navy); }
.mobile-search-bar button {
    width: 40px; height: 40px;
    background: none; border: none;
    font-size: 20px; cursor: pointer;
    color: var(--text-secondary);
}

/* ============ FILTER BAR ============ */
.filter-bar {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: var(--filter-h);
    background: var(--glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 20px; gap: 16px;
    z-index: 998;
}

.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.filter-group select {
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    font-size: 13px; font-family: inherit;
    cursor: pointer; outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2364748b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.filter-group select:focus { border-color: var(--navy); }

.filter-reset {
    padding: 6px 14px;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 500;
    cursor: pointer; color: var(--text-secondary);
    font-family: inherit;
    transition: var(--transition);
}
.filter-reset:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============ MAP ============ */
#map {
    position: fixed;
    top: calc(var(--header-h) + var(--filter-h));
    left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* Custom markers */
.port-marker {
    width: 32px; height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    border: 2px solid #fff;
    transition: transform 0.2s;
}
.port-marker:hover { transform: rotate(-45deg) scale(1.2); }
.port-marker-inner {
    transform: rotate(45deg);
    font-size: 14px;
    line-height: 1;
    color: #fff;
}
.port-marker-inner svg { stroke: #fff; }
.port-marker.liman { background: var(--navy); }
.port-marker.tersane { background: var(--orange); }
.port-marker.marina { background: var(--green); }
.port-marker.ticaret { background: var(--purple); }

.supplier-marker {
    width: 32px; height: 32px;
    background: #fff;
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.supplier-marker svg { stroke: var(--navy); }
.supplier-marker.verified svg { stroke: #fff; }
.supplier-marker:hover { 
    transform: scale(1.3) translateY(-4px); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.3); 
    z-index: 1000 !important;
}
.supplier-marker.verified { 
    background: #1A8A7D;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(26, 138, 125, 0.5);
}

.port-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.9), -1px -1px 2px rgba(255,255,255,0.9);
}

/* Cluster */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
    background: rgba(27,42,74,0.15) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
    background: var(--navy) !important;
    color: #fff !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* ============ INFO PANEL ============ */
.info-panel {
    position: fixed;
    top: calc(var(--header-h) + var(--filter-h));
    right: -440px;
    width: var(--panel-w);
    bottom: 0;
    background: var(--card);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    transition: right var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}
.info-panel.active { right: 0; }

.panel-drag-handle { display: none; }

.panel-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    background: var(--bg); border: none;
    border-radius: 50%; cursor: pointer;
    font-size: 16px; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.panel-close:hover { background: var(--navy); color: #fff; }

.panel-content { padding: 20px; }

/* Panel components */
.panel-port-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.panel-port-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.panel-port-name { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.panel-port-desc { font-size: 13px; color: var(--text-secondary); }
.panel-port-meta {
    display: flex; gap: 12px; margin-top: 10px;
    font-size: 12px; color: var(--text-secondary);
}
.panel-port-meta span { display: flex; align-items: center; gap: 4px; }

.panel-section-title {
    font-size: 14px; font-weight: 700; color: var(--navy);
    margin: 20px 0 10px;
    display: flex; align-items: center; gap: 6px;
}

.supplier-card {
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.supplier-card:hover { border-color: var(--navy); transform: translateX(4px); }

.supplier-card-header { display: flex; justify-content: space-between; align-items: center; }
.supplier-card-name { font-size: 14px; font-weight: 600; color: var(--text); }
.supplier-card-badge {
    font-size: 10px; font-weight: 600; padding: 2px 8px;
    border-radius: 10px;
}
.badge-verified { background: #d1fae5; color: #065f46; }
.badge-unverified { background: #fef3c7; color: #92400e; }

.supplier-card-cat { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.supplier-card-rating { font-size: 12px; color: var(--orange); margin-top: 4px; }

/* Supplier detail panel */
.supplier-detail-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.supplier-detail-name { font-size: 20px; font-weight: 700; color: var(--navy); }
.supplier-detail-cat { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.supplier-detail-rating {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px; font-size: 14px;
}
.stars { color: var(--orange); letter-spacing: 2px; }
.rating-num { font-weight: 600; color: var(--text); }

.supplier-actions {
    display: flex; gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 10px 20px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    flex: 1; min-width: 120px;
    text-align: center;
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    flex: 1; min-width: 120px;
    text-align: center;
}
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }

.btn-whatsapp {
    padding: 10px 20px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
}
.btn-whatsapp:hover { background: #1fb855; }

.btn-favorite {
    padding: 10px 20px;
    background: #fff0f0;
    color: #e74c3c;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: var(--transition);
    width: 100%;
}
.btn-favorite:hover { background: #e74c3c; color: #fff; }
.btn-favorite.active { background: #e74c3c; color: #fff; border-color: #e74c3c; }

.product-list { margin-top: 8px; }
.product-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 13px;
}
.product-name { font-weight: 500; }
.product-impa { font-size: 11px; color: var(--text-secondary); }
.product-price { font-weight: 600; color: var(--navy); font-size: 12px; text-align: right; }
.product-price-range { font-size: 10px; color: var(--text-secondary); }

.claim-banner {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    text-align: center;
}
.claim-banner p { font-size: 12px; color: #92400e; margin-bottom: 8px; }
.btn-claim {
    padding: 8px 16px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.btn-claim:hover { background: var(--orange-hover); }

/* ============ FAVORITES OVERLAY ============ */
.favorites-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.favorites-overlay.active { display: flex; }

.favorites-panel {
    background: var(--card);
    border-radius: var(--radius);
    width: 90%; max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.favorites-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.favorites-header h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.favorites-list { padding: 12px; }
.favorites-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============ LEGEND ============ */
.map-legend {
    position: fixed;
    bottom: 24px; left: 16px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    z-index: 500;
    box-shadow: var(--shadow);
}
.legend-title { font-size: 11px; font-weight: 700; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; color: var(--text-secondary); }
.legend-item:last-child { margin-bottom: 0; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.supplier-dot { background: #fff; border: 2px solid var(--orange); width: 10px; height: 10px; }

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--card);
    border-radius: var(--radius);
    width: 90%; max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.modal-body { padding: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit;
    outline: none; transition: var(--transition);
    background: var(--card);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,74,0.08); }
.form-group textarea { resize: vertical; }

.claim-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

.modal-body .btn-primary { width: 100%; margin-top: 4px; }

/* Toast */
.toast {
    position: fixed; bottom: 24px; right: 24px;
    padding: 14px 24px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    :root { --header-h: 52px; --filter-h: 44px; --panel-w: 100%; }

    .header { padding: 0 12px; gap: 8px; }
    .header-center { display: none; }
    .header-right .stat-pills { display: none; }

    .mobile-search-toggle {
        display: flex;
        align-items: center; justify-content: center;
        width: 36px; height: 36px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 50%;
        cursor: pointer;
        margin-left: auto;
        color: var(--text-secondary);
    }
    .mobile-search-toggle svg { width: 18px; height: 18px; }

    .filter-bar {
        padding: 0 12px; gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-group label { display: none; }

    /* Bottom Sheet */
    .info-panel {
        top: auto;
        right: 0; left: 0;
        bottom: -100%;
        width: 100%;
        height: 70vh;
        border-left: none;
        border-top: 1px solid var(--border);
        border-radius: 16px 16px 0 0;
        transition: bottom var(--transition);
    }
    .info-panel.active { bottom: 0; }

    .panel-drag-handle {
        display: block;
        width: 40px; height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: 10px auto 0;
    }

    .map-legend { bottom: 12px; left: 8px; padding: 8px 12px; }
    .legend-title { font-size: 10px; }
    .legend-item { font-size: 11px; }

    .toast { left: 12px; right: 12px; bottom: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .logo-sub, .logo-divider { display: none; }
    .filter-group select { font-size: 12px; padding: 5px 24px 5px 8px; }
}

/* Leaflet overrides */
.leaflet-top.leaflet-left {
    top: auto !important;
    left: auto !important;
    bottom: 24px !important;
    right: 24px !important;
}
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    color: var(--navy) !important;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(8px) !important;
    border: none !important;
    transition: background 0.2s ease !important;
}
.leaflet-control-zoom a:hover {
    background: rgba(255,255,255,1) !important;
    color: #0F1923 !important;
}
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm) !important; box-shadow: var(--shadow) !important; }

/* ============ DARK/LIGHT MAP TOGGLE (Feature #1) ============ */
.map-style-toggle {
    position: fixed;
    bottom: 24px; left: 190px;
    width: 40px; height: 40px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 500;
    box-shadow: var(--shadow);
    font-size: 18px;
    transition: var(--transition);
}
.map-style-toggle:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); }

/* ============ SUPPLIER PROFILE EXPANSION (Feature #2) ============ */
.supplier-logo {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}
.supplier-detail-top {
    display: flex; gap: 14px; align-items: flex-start;
}
.supplier-info-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-secondary);
    margin-top: 6px; line-height: 1.4;
}
.supplier-info-row svg {
    width: 14px; height: 14px; flex-shrink: 0; opacity: 0.6;
}
.sales-area-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 10px;
}
.sales-area-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(26, 138, 125, 0.08);
    color: var(--green);
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    border: 1px solid rgba(26, 138, 125, 0.15);
}

/* ============ SEARCH HIGHLIGHT & IMPA (Feature #4) ============ */
.search-highlight {
    background: rgba(243, 115, 36, 0.18);
    color: var(--orange);
    font-weight: 700;
    border-radius: 2px;
    padding: 0 1px;
}
.impa-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--navy);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ============ INLINE STYLES MOVED TO CLASSES (Feature #5b) ============ */
.supplier-desc {
    font-size: 13px; color: var(--text-secondary);
    margin-top: 12px; line-height: 1.5;
}
.supplier-port-meta {
    margin-top: 12px;
}
.product-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px; background: var(--bg-primary, #fff);
    border-radius: 8px; margin-bottom: 8px;
    border: 1px solid var(--border);
    gap: 12px; transition: all 0.2s;
    cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.product-item:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.product-item-img {
    width: 48px; height: 48px; object-fit: cover;
    border-radius: 6px; border: 1px solid #e2e8f0; flex-shrink: 0;
}
.product-item-placeholder {
    width: 48px; height: 48px; background: var(--bg);
    border-radius: 6px; display: flex;
    align-items: center; justify-content: center;
    font-size: 20px; border: 1px solid var(--border); flex-shrink: 0;
}
.product-item-info { flex: 1; }
.product-item .product-name {
    font-weight: 600; color: var(--text); font-size: 12px;
    line-height: 1.3; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-item .product-impa {
    font-size: 11px; color: var(--text-secondary); margin-top: 2px;
}
.product-item .product-price {
    text-align: right; white-space: nowrap; flex-shrink: 0;
}
.product-price-val {
    font-weight: 700; color: var(--orange); font-size: 13px;
}
.product-view-link {
    font-size: 11px; color: var(--navy); text-decoration: none;
    display: inline-block; margin-top: 4px; font-weight: 600;
    transition: color 0.2s;
}
.product-view-link:hover { color: var(--orange); }

/* Claim Banner classes */
.claim-banner {
    background: linear-gradient(135deg, #0F1923 0%, #1B2A4A 100%);
    padding: 20px; border-radius: 12px;
    margin-top: 20px; text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.claim-banner-icon { font-size: 24px; margin-bottom: 8px; color: #fff; }
.claim-banner-icon svg { stroke: #fff; }
.claim-banner-title {
    color: #FFF; margin: 0 0 8px 0; font-size: 15px;
}
.claim-banner-text {
    color: rgba(255,255,255,0.8); font-size: 13px;
    margin: 0 0 16px 0; line-height: 1.4;
}
.claim-banner .btn-claim-cta {
    display: block; text-decoration: none;
    background: #1A8A7D; border: none; border-radius: 6px;
    padding: 10px; font-weight: 600; font-size: 14px;
    color: #FFF; transition: all 0.2s; cursor: pointer;
    width: 100%; text-align: center;
}
.claim-banner .btn-claim-cta:hover { background: #158575; transform: translateY(-1px); }

/* Action buttons classes */
.btn-store-link {
    flex: 1; text-align: center; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-rfq {
    background: #1A8A7D; border-color: #1A8A7D; flex: 1;
}
.btn-rfq:hover { background: #158575; }
.btn-whatsapp-row {
    margin-top: 8px; display: flex;
    align-items: center; justify-content: center; gap: 8px;
}

@media (max-width: 768px) {
    .map-style-toggle { bottom: 12px; left: 140px; width: 36px; height: 36px; font-size: 16px; }
    .leaflet-top.leaflet-left {
        bottom: 16px !important;
        right: 16px !important;
    }
    .leaflet-control-zoom a {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
    }
}
/* ============ CITY CLOUD WIDGET ============ */
.city-cloud {
    position: fixed;
    top: calc(var(--header-h) + var(--filter-h) + 14px);
    left: 14px;
    width: 190px;
    max-height: calc(100vh - var(--header-h) - var(--filter-h) - 80px);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 500;
    overflow: hidden;
}
.city-cloud-content {
    overflow-y: auto;
    max-height: calc(100vh - var(--header-h) - var(--filter-h) - 82px);
    padding: 4px 0;
}
.city-cloud-content::-webkit-scrollbar { width: 3px; }
.city-cloud-content::-webkit-scrollbar-track { background: transparent; }
.city-cloud-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 3px; }

/* City list items */
.cloud-city-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    user-select: none;
}
.cloud-city-item:last-child { border-bottom: none; }
.cloud-city-item:hover { background: rgba(26,138,125,0.06); }
.cloud-city-item:active { background: rgba(26,138,125,0.12); transform: scale(0.98); }
.cloud-city-name {
    font-size: 13px;
    font-weight: 600;
    color: #1B2A4A;
    letter-spacing: 0.2px;
}
.cloud-city-count {
    font-size: 10px; font-weight: 700;
    color: rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.04);
    padding: 2px 7px;
    border-radius: 8px;
    min-width: 18px; text-align: center;
}
.cloud-city-item:hover .cloud-city-count {
    background: rgba(26,138,125,0.1);
    color: #1A8A7D;
}
.cloud-city-chevron {
    font-size: 9px; color: rgba(0,0,0,0.2); margin-left: 4px;
}

/* Back button (port view) */
.cloud-back-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 12px; font-weight: 600;
    color: #1A8A7D;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.15s;
    user-select: none;
    background: rgba(26,138,125,0.03);
}
.cloud-back-btn:hover { background: rgba(26,138,125,0.08); }

/* Port list items */
.cloud-port-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.cloud-port-item:last-child { border-bottom: none; }
.cloud-port-item:hover { background: rgba(26,138,125,0.06); }
.cloud-port-item.active { background: rgba(26,138,125,0.10); }
.cloud-port-icon { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; color: #1A8A7D; }
.cloud-port-icon svg { stroke: #1A8A7D; }
.cloud-port-info { flex: 1; min-width: 0; }
.cloud-port-name {
    font-size: 11.5px; font-weight: 500; color: #2c3e50;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.cloud-port-item:hover .cloud-port-name,
.cloud-port-item.active .cloud-port-name { color: #1A8A7D; font-weight: 600; }
.cloud-port-cap { font-size: 9px; color: rgba(0,0,0,0.3); margin-top: 1px; }
.cloud-port-badge { font-size: 9px; color: rgba(0,0,0,0.25); flex-shrink: 0; }

/* No map offset needed â€” widget floats on top */
.sidebar-mobile-toggle { display: none; }

@media (max-width: 768px) {
    .city-cloud {
        top: auto; bottom: 80px; left: 10px;
        width: 170px; max-height: 260px;
        border-radius: 12px;
    }
    .sidebar-mobile-toggle { display: flex !important; }
    .city-cloud.mobile-hidden { display: none; }
}

