:root {
    --primary: #facc15;
    --primary-rgb: 250, 204, 21;
    /* Yellow/Gold for Çekici */
    --primary-dark: #eab308;
    --secondary: #334155;
    /* Slate for footer/nav */
    --bg-color: #f5f7fa;
    --surface: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --safe-bottom: env(safe-area-inset-bottom, 20px);

    /* Common Aliases */
    --primary-color: var(--primary);
    --bg-primary: var(--bg-color);
    --bg-secondary: var(--surface);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --border-color: var(--border);

    /* Theme Toggle Colors */
    --toggle-bg: rgba(0, 0, 0, 0.05);
    --toggle-border: rgba(0, 0, 0, 0.1);
    --toggle-icon: #374151;
}

[data-theme="dark"] {
    --bg-color: #111827;
    --surface: #1f2937;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border: #374151;
    --toggle-bg: rgba(255, 255, 255, 0.1);
    --toggle-border: rgba(255, 255, 255, 0.2);
    --toggle-icon: #f9fafb;
}

/* Mode-based primary color overrides */
body.mode-load {
    --primary: #ff5e00;
}

body.mode-vehicle {
    --primary: #2369b4;
    --primary-rgb: 35, 105, 180;
    --primary-dark: #1a518a;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    /* App-like feel */
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

/* Header */
.app-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    position: relative;
    padding-top: env(safe-area-inset-top, 0);
    position: relative;
}

.page-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: #1a1a1a;
    /* Darker text for yellow background */
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--toggle-icon);
}

.theme-toggle:active {
    transform: scale(0.9);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-main);
    position: relative;
    cursor: pointer;
}

.notification-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

/* View Tabs - Adjusted to stick */
.view-tabs {
    display: flex;
    padding: 0 16px 12px;
    gap: 16px;
    align-items: center;
    background: var(--surface);
}

.tab-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 8px;
    position: relative;
    cursor: pointer;
}

.tab-btn.active {
    color: var(--secondary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px 3px 0 0;
}

.filter-btn {
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--bg-color);
    transform: scale(1.05);
}

.home-map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.home-map-type-selector {
    display: flex;
    background: var(--surface);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    gap: 4px;
}

.map-type-btn {
    border: none;
    background: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.map-type-btn.active {
    background: var(--secondary);
    color: white;
}

.home-geo-btn {
    background: #00a884;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 168, 132, 0.3);
}

.home-geo-btn.loading i {
    animation: hibuSpin 1s infinite linear;
}

/* Main */
.app-main {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.view-section:not(.active) {
    display: none !important;
}

.result-subview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.result-subview:not(.active) {
    display: none !important;
}

/* Map View */
#map {
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* Bottom Sheet */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
    padding: 12px 20px 80px;
    /* Padding for bottom nav */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 60%;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.collapsed {
    transform: translateY(calc(100% - 120px));
}

.sheet-handle {
    width: 40px;
    height: 5px;
    background: #d1d5db;
    border-radius: 5px;
    margin: 0 auto 16px;
    cursor: grab;
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
}

.sheet-content::-webkit-scrollbar {
    display: none;
}

/* Load Card styling */
.load-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.load-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.route-info {
    display: flex;
    flex-direction: column;
}

.route-main {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.route-icon {
    color: #eab308;
    font-size: 18px;
}

.route-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 28px;
    margin-top: 4px;
}

.action-btn-green {
    background: #16a34a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.load-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: #b45309;
    /* Fiyat color */
}

/* List View */
#list-view {
    overflow-y: auto;
    background: #f8fafc;
    padding-bottom: 90px;
}

#list-view::-webkit-scrollbar {
    display: none;
}

.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('https://herisburda.com/wp-content/uploads/2026/01/nakliye-lojistik.jpg') center/cover;
    padding: 30px 20px;
    color: white;
}

.hero-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    /* Slightly reduced gap for better fit */
}

.hero-btn {
    border: none;
    border-radius: 16px;
    /* Smoother corners */
    padding: 10px 8px;
    /* Compressed padding */
    text-align: left;
    display: flex;
    flex-direction: column;
    /* Stack icon and text for better narrow fit */
    align-items: flex-start;
    gap: 6px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:active {
    transform: scale(0.95);
}

.add-load-btn {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
}

.find-vehicle-btn {
    background: linear-gradient(135deg, #2369b4, #1a518a) !important;
}

.hero-btn i {
    font-size: 18px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 12px;
}

.hero-btn strong {
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.hero-btn span {
    font-size: 9px;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .hero-actions {
        gap: 12px;
    }

    .hero-btn {
        flex-direction: row;
        align-items: center;
        padding: 12px;
        gap: 10px;
    }

    .hero-btn i {
        font-size: 20px;
        padding: 10px;
    }

    .hero-btn strong {
        font-size: 15px;
    }

    .hero-btn span {
        font-size: 11px;
    }
}

.list-container {
    padding: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.section-title span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.loads-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-load-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
}

.list-load-map {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #e2e8f0;
    object-fit: cover;
}

.list-load-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.cat-card {
    height: 160px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.cat-card:active {
    transform: scale(0.98);
}

.cat-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    color: white;
    text-align: center;
}

.cat-card .overlay h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cat-card .overlay span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Search Pulse Marker */
.search-pulse .pulse {
    width: 20px;
    height: 20px;
    background: rgba(0, 168, 132, 0.4);
    border-radius: 50%;
    border: 2px solid #00a884;
    animation: hibuPulse 2s infinite;
}

@keyframes hibuPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#geo-btn.loading i {
    animation: hibuSpin 1s infinite linear;
}

@keyframes hibuSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Map Floating Geo Button */
.map-floating-geo-btn {
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--surface);
    color: #16a34a;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 400;
    /* Above Leaflet controls but below bottom sheet if possible */
    transition: all 0.2s;
}

.map-floating-geo-btn:active {
    transform: scale(0.9);
}

.map-floating-geo-btn.loading i {
    animation: hibuSpin 1s infinite linear;
}

/* User Location Pulse Marker */
.user-location-marker-pulse {
    width: 20px;
    height: 20px;
}

.user-location-marker-pulse .pulse {
    width: 20px;
    height: 20px;
    background: rgba(22, 163, 74, 0.4);
    border-radius: 50%;
    border: 2px solid #16a34a;
    animation: userLocationPulse 2s infinite;
}

.user-location-marker-pulse .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #16a34a;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@keyframes userLocationPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Listing Modal (Composer Choice) */
.hibu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: flex-end;
}

.hibu-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.hibu-modal {
    width: 100%;
    background: var(--bg-secondary);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 30px 20px 50px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.hibu-modal-overlay.active .hibu-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.modal-close-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.listing-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.choice-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.choice-card:active {
    transform: scale(0.96);
    border-color: var(--primary-color);
    background: rgba(255, 94, 0, 0.05);
}

.choice-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.choice-card span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.choice-card p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.cat-card h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.cat-card span {
    font-size: 12px;
    opacity: 0.9;
}

/* Bottom Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #1e293b;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-bottom);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 10px;
    gap: 4px;
    flex: 1;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--primary);
}

.center-action {
    flex: 1.2;
    position: relative;
    top: -20px;
}

.action-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #facc15, #eab308);
    /* Yellow gradient for Çekici */
    border: none;
    border-radius: 50%;
    color: #1e293b;
    /* Darker icon color for contrast on yellow */
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
    margin: 0 auto;
    border: 4px solid #1e293b;
    cursor: pointer;
}

.icon-wrapper {
    position: relative;
}

.icon-wrapper .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

/* Mapbox specific */
.mapboxgl-popup-content {
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.map-popup-header {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-popup-price {
    color: #b45309;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
}

.map-popup-actions {
    display: flex;
    gap: 8px;
}

.map-popup-btn {
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.map-popup-btn.call {
    background: #16a34a;
}

.map-popup-btn.offer {
    background: #f97316;
}

.custom-marker {
    width: 36px;
    height: 36px;
    background-size: cover;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Premium Card Redesign (Matching ctg/nakliye) */
.hibu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

body.mode-load .hibu-card {
    border-color: rgba(255, 94, 0, 0.3);
}

body.mode-vehicle .hibu-card {
    border-color: rgba(35, 105, 180, 0.3);
}

.hibu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 145, 0, 0.3);
}

.hibu-card-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.hibu-card-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.hibu-card-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.hibu-card-username {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--primary);
}

.hibu-card-trust {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
}

.hibu-card-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.hibu-card-body {
    padding: 0;
    display: flex;
    flex-direction: row;
    min-height: 140px;
}

@media (max-width: 767px) {
    .hibu-card-body {
        flex-direction: column;
    }
}

.hibu-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hibu-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.hibu-card-title a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s;
}

.hibu-card-title a:hover {
    color: var(--primary);
}

.hibu-card-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.hibu-card-price {
    color: #ff5e00;
    font-weight: 700;
    font-size: 16px;
    margin-right: 8px;
}

.hibu-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #fff;
    background: var(--primary);
    padding: 6px 12px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid var(--primary);
}

.hibu-card-location i {
    font-size: 14px;
}

.hibu-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Integrated Composer Styles --- */
.composer-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.composer-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.composer-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(35, 105, 180, 0.1);
}

.type-toggle {
    display: flex;
    background: var(--bg-primary);
    padding: 5px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.type-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-secondary);
}

.type-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: scale(0.98);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* --- Map Toggle Switch --- */
.map-switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    user-select: none;
}

.map-switch-label input[type="checkbox"] {
    display: none;
}

.map-switch-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.map-switch-label input:checked+.map-switch-track {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.35);
}

/* Live Location Button Animation */
.live-location-btn {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    /* Dark Red Gradient */
    position: relative;
    z-index: 1;
    border: none !important;
}

.live-location-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #dc2626, #ef4444, #ffffff, #dc2626);
    background-size: 400%;
    z-index: -1;
    border-radius: 18px;
    animation: live-glow 3s linear infinite;
    opacity: 0.8;
    filter: blur(4px);
}

@keyframes live-pulse-simple {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

@keyframes live-glow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.live-location-btn i {
    animation: rotate-dish 2s ease-in-out infinite;
}

@keyframes rotate-dish {
    0% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.2) rotate(10deg);
    }

    50% {
        transform: scale(1) rotate(0deg);
    }

    75% {
        transform: scale(1.2) rotate(-10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}