/* ==========================================================================
   TOKİ 3D TÜRKİYE PROJE & YÖN PORTALI - MINIMALIST VECTOR MAP & MOBILE SHEET
   ========================================================================== */

:root {
    --bg-base: #060b14;
    --bg-surface: rgba(13, 22, 38, 0.92);
    --bg-surface-hover: rgba(21, 35, 60, 0.95);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(0, 210, 255, 0.4);
    
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.4);
    --accent: #3a7bd5;
    --accent-red: #ff4757;
    --accent-green: #2ed573;
    --accent-gold: #ffa502;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-arabic: 'Tajawal', 'Plus Jakarta Sans', sans-serif;
    --header-height: 70px;
    --sidebar-width: 360px;
    --drawer-width: 480px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.theme-light {
    --bg-base: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-surface-hover: rgba(241, 245, 249, 0.98);
    --border-subtle: rgba(0, 0, 0, 0.1);
    --border-focus: rgba(0, 150, 220, 0.4);
    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.3);
    --accent: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
}

[dir="rtl"] {
    font-family: var(--font-arabic);
}

.portal-wrapper {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.portal-header {
    height: var(--header-height);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    gap: 20px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateX(-2px);
}

.brand-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* HEADER SEARCH */
.header-search {
    position: relative;
    flex: 1;
    max-width: 440px;
}

.header-search i.fa-magnifying-glass {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

[dir="rtl"] .header-search i.fa-magnifying-glass {
    left: auto;
    right: 14px;
}

.header-search input {
    width: 100%;
    padding: 10px 38px 10px 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

[dir="rtl"] .header-search input {
    padding: 10px 40px 10px 38px;
}

.header-search input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

[dir="rtl"] .clear-btn {
    right: auto;
    left: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.mobile-filter-trigger .badge-count {
    background: var(--primary);
    color: #060b14;
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 0.75rem;
}

/* LANG SELECTOR */
.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.lang-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: #060b14;
}

/* ==========================================================================
   MAIN LAYOUT & LEAFLET MAP
   ========================================================================== */
.portal-main {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
    height: calc(100vh - var(--header-height));
}

/* LEFT SIDEBAR */
.sidebar-panel {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 500;
    flex-shrink: 0;
    transition: var(--transition);
}

[dir="rtl"] .sidebar-panel {
    border-right: none;
    border-left: 1px solid var(--border-subtle);
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
}

.sidebar-title i {
    color: var(--primary);
}

.project-count-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
}

.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* FILTERS */
.filter-group {
    padding: 10px 20px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.filter-group label i {
    color: var(--primary);
    font-size: 0.8rem;
}

.filter-group select {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select option {
    background: #0d1626;
    color: #fff;
}

body.theme-light .filter-group select option {
    background: #fff;
    color: #0f172a;
}

/* PROJECT CARDS */
.project-cards-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project-card.active {
    border-color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.card-thumb {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.card-city-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ==========================================================================
   LEAFLET MAP CANVAS & CONTROLS
   ========================================================================== */
.map-viewport-container {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.leaflet-map-canvas {
    width: 100%;
    height: 100%;
    background-color: var(--bg-base);
}

/* Leaflet Tile Invert / Filter for Dark Theme */
.leaflet-container {
    background-color: var(--bg-base) !important;
}

/* Leaflet Attribution styling */
.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #94a3b8 !important;
    font-size: 0.65rem !important;
    border-radius: 6px;
    margin: 6px !important;
}

.leaflet-control-attribution a {
    color: var(--primary) !important;
}

/* FLOATING MAP CONTROLS */
.map-floating-controls {
    position: absolute;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 800;
}

[dir="rtl"] .map-floating-controls {
    right: auto;
    left: 20px;
}

.map-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.map-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

/* MOBILE CITY PILLS */
.mobile-city-pills {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    z-index: 700;
    scrollbar-width: none;
}

.mobile-city-pills::-webkit-scrollbar {
    display: none;
}

.city-pill-btn {
    padding: 7px 14px;
    background: var(--bg-surface);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.city-pill-btn.active, .city-pill-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #060b14;
    transform: translateY(-1px);
}

/* ==========================================================================
   CUSTOM LEAFLET GLOWING PIN MARKER
   ========================================================================== */
.custom-pin-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -100%);
    transition: transform 0.2s ease;
}

.custom-pin-marker:hover {
    transform: translate(-50%, -110%) scale(1.15);
    z-index: 9999 !important;
}

.pin-bubble {
    padding: 4px 10px;
    background: rgba(10, 18, 33, 0.92);
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pin-bubble i {
    color: var(--primary);
    font-size: 0.7rem;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 12px var(--primary);
    margin-top: 2px;
    position: relative;
}

.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-glow);
    animation: pinPulse 2s infinite;
    pointer-events: none;
}

@keyframes pinPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* ==========================================================================
   OFFCANVAS / MOBILE BOTTOM SHEET DRAWER
   ========================================================================== */
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.offcanvas-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.offcanvas-drawer {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: var(--drawer-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-subtle);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

[dir="rtl"] .offcanvas-drawer {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border-subtle);
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
}

.offcanvas-drawer.open {
    transform: translateX(0);
}

.drawer-drag-handle {
    display: none;
    width: 100%;
    padding: 12px 0 6px;
    justify-content: center;
    cursor: grab;
}

.handle-bar {
    width: 44px;
    height: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
}

.drawer-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.icon-btn-pill i.fa-heart {
    color: var(--accent-red);
}

.icon-btn-pill:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* DRAWER BODY */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* HERO SECTION */
.drawer-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.drawer-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(6, 11, 20, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.hero-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-badge.tag-primary {
    background: var(--primary);
    color: #060b14;
}

.tag-badge.tag-dark {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.hero-location {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ACTION BUTTONS GRID */
.drawer-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-vr-primary {
    grid-column: span 2;
    padding: 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0052d4 0%, #4364f7 50%, #6fb1fc 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(67, 100, 247, 0.4);
    transition: var(--transition);
}

.btn-vr-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(67, 100, 247, 0.6);
}

.btn-action-tile {
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action-tile:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-action-tile.tile-maps {
    border-color: rgba(66, 133, 244, 0.4);
    color: #4285f4;
}

.btn-action-tile.tile-whatsapp {
    border-color: rgba(37, 211, 102, 0.4);
    color: #25d366;
}

.btn-action-tile.tile-qr {
    border-color: rgba(0, 210, 255, 0.4);
    color: var(--primary);
}

.btn-action-tile.tile-vcard {
    border-color: rgba(255, 165, 2, 0.4);
    color: #ffa502;
}

/* SECTION CARDS */
.drawer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.drawer-card-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-card-title i {
    color: var(--primary);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.features-tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-pill {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-pill i {
    color: var(--accent-green);
    font-size: 0.7rem;
}

.drawer-desc-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* QR MODAL */
.qr-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal-card {
    background: #0d1627;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.qr-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.qr-header i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.qr-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.qr-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.qr-code-box {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.qr-footer {
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

/* TOAST */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 18, 33, 0.95);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 10px 24px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   MOBILE & RESPONSIVE RULES (BOTTOM SHEET)
   ========================================================================== */
@media (max-width: 900px) {
    .header-search {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .portal-header {
        padding: 0 14px;
    }

    .brand-title {
        font-size: 0.82rem;
    }

    .brand-badge {
        display: none;
    }

    .mobile-filter-trigger {
        display: flex;
    }

    /* Sidebar converts to full mobile drawer on filter click */
    .sidebar-panel {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--header-height));
        transform: translateX(-100%);
        z-index: 1050;
    }

    [dir="rtl"] .sidebar-panel {
        left: auto;
        right: 0;
        transform: translateX(100%);
    }

    .sidebar-panel.mobile-open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: block;
    }

    /* RIGHT OFFCANVAS BECOMES MOBILE BOTTOM SHEET */
    .offcanvas-drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 82vh;
        max-height: 85vh;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    }

    [dir="rtl"] .offcanvas-drawer {
        left: 0;
        right: 0;
        border-right: none;
        transform: translateY(100%);
    }

    .offcanvas-drawer.open {
        transform: translateY(0);
    }

    .drawer-drag-handle {
        display: flex;
    }

    .map-floating-controls {
        bottom: 20px;
        right: 14px;
    }

    [dir="rtl"] .map-floating-controls {
        left: 14px;
        right: auto;
    }
}
