/* Turgelis CSS — extracted from index.html on 2026-05-15 15:49
 * 3c etapas: CSS iškeltas, kad būtų cache'inamas browser'yje.
 */

        :root {
            --primary: #D4682A;
            --primary-dark: #B85520;
            --primary-light: #E88B55;
            --secondary: #2A5D67;
            --secondary-dark: #1F4850;
            --accent: #F4A460;
            --bg-main: #FEFDFB;
            --bg-card: #FFFFFF;
            --bg-hover: #F9F7F4;
            --text-primary: #1A1A1A;
            --text-secondary: #666666;
            --text-muted: #999999;
            --border: #E8E5E0;
            --border-hover: #D4D0C8;
            --success: #2D7A4F;
            --warning: #F59E0B;
            --danger: #DC2626;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        body {
            font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Header & Navigation */
        .header {
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow-sm);
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 70px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--text-primary);
            transition: var(--transition);
        }

        .logo:hover {
            transform: translateY(-2px);
        }

        .logo-icon {
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Fraunces', serif;
            font-weight: 800;
            font-size: 24px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .logo-icon::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: rotate(45deg);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0%, 100% { transform: translateX(-100%) rotate(45deg); }
            50% { transform: translateX(100%) rotate(45deg); }
        }

        .logo-text {
            font-family: 'Fraunces', serif;
            font-weight: 700;
            font-size: 26px;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-search {
            flex: 1;
            max-width: 500px;
            margin: 0 40px;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 12px 48px 12px 20px;
            border: 2px solid var(--border);
            border-radius: var(--radius-md);
            font-size: 15px;
            font-family: 'Manrope', sans-serif;
            transition: var(--transition);
            background: var(--bg-main);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(212, 104, 42, 0.1);
        }

        .search-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary);
            border: none;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: var(--transition);
            color: white;
            font-weight: 600;
        }

        .search-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-50%) scale(1.05);
        }

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

        .lang-switch {
            display: flex;
            gap: 4px;
            background: var(--bg-hover);
            padding: 4px;
            border-radius: var(--radius-sm);
        }

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

        .lang-btn.active {
            background: white;
            color: var(--primary);
            box-shadow: var(--shadow-sm);
        }

        .btn {
            padding: 10px 24px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            font-family: 'Manrope', sans-serif;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .btn-outline {
            background: transparent;
            color: var(--text-primary);
            border: 2px solid var(--border);
        }

        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--bg-hover);
        }

        /* Main Container */
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 32px 24px;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
            border-radius: var(--radius-lg);
            padding: 60px;
            margin-bottom: 48px;
            position: relative;
            overflow: hidden;
            color: white;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            border-radius: 50%;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 600px;
        }

        .hero h1 {
            font-family: 'Fraunces', serif;
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .hero p {
            font-size: 18px;
            opacity: 0.95;
            margin-bottom: 32px;
            line-height: 1.7;
        }

        /* Categories */
        .categories {
            margin-bottom: 24px;
        }

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

        .section-title {
            font-family: 'Fraunces', serif;
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .categories-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            max-height: 88px;
            overflow: hidden;
            transition: max-height 0.35s ease;
        }
        .categories-grid.expanded {
            max-height: 600px;
        }

        .category-card {
            background: var(--bg-card);
            border: 1.5px solid var(--border);
            border-radius: 100px;
            padding: 8px 16px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            color: var(--text-primary);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .category-card:hover {
            border-color: var(--primary);
            background: var(--primary-light);
        }
        .category-card.active-cat {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }

        .category-icon {
            font-size: 18px;
            display: inline;
            line-height: 1;
        }

        .category-name {
            font-weight: 600;
            font-size: 13px;
        }

        .category-count {
            font-size: 11px;
            color: var(--text-muted);
            background: rgba(0,0,0,0.06);
            padding: 1px 7px;
            border-radius: 20px;
        }
        .category-card.active-cat .category-count {
            background: rgba(255,255,255,0.25);
            color: #fff;
        }

        .cat-toggle-btn {
            background: none;
            border: 1.5px dashed var(--border);
            border-radius: 100px;
            padding: 6px 18px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 10px;
        }
        .cat-toggle-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        /* Listings Grid */
        .listing-seller {
            font-size: 12px;
            color: var(--primary);
            margin-top: 4px;
            cursor: pointer;
            transition: var(--transition);
        }
        .listing-seller:hover {
            text-decoration: underline;
        }
        .verified-badge {
            font-size: 14px;
            cursor: help;
        }
        .share-menu {
            margin-top: 8px;
            background: var(--bg-card);
            border: 1.5px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            animation: shareSlide 0.2s ease;
        }
        @keyframes shareSlide {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .share-option {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 12px 16px;
            border: none;
            background: none;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            transition: background 0.15s;
            font-family: inherit;
        }
        .share-option:hover {
            background: #f5f3f0;
        }
        .share-option + .share-option {
            border-top: 1px solid var(--border);
        }
        .share-toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: #fff;
            padding: 10px 24px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            z-index: 10001;
            animation: shareToastAnim 2s ease forwards;
        }
        @keyframes shareToastAnim {
            0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
            15% { opacity: 1; transform: translateX(-50%) translateY(0); }
            85% { opacity: 1; }
            100% { opacity: 0; }
        }
        /* Lightbox */
        .lightbox-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.92);
            z-index: 10002; display: flex; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.2s; pointer-events: none;
        }
        .lightbox-overlay.active { opacity: 1; pointer-events: all; }
        .lightbox-img {
            max-width: 90vw; max-height: 85vh; object-fit: contain;
            border-radius: 8px; user-select: none; transition: opacity 0.15s;
        }
        .lightbox-btn {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: rgba(255,255,255,0.15); border: none; color: #fff;
            font-size: 32px; width: 52px; height: 52px; border-radius: 50%;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: background 0.2s; backdrop-filter: blur(4px);
        }
        .lightbox-btn:hover { background: rgba(255,255,255,0.3); }
        .lightbox-prev { left: 16px; }
        .lightbox-next { right: 16px; }
        .lightbox-close {
            position: absolute; top: 16px; right: 16px;
            background: rgba(255,255,255,0.15); border: none; color: #fff;
            font-size: 28px; width: 44px; height: 44px; border-radius: 50%;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: background 0.2s; backdrop-filter: blur(4px);
        }
        .lightbox-close:hover { background: rgba(255,255,255,0.3); }
        .lightbox-counter {
            position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
            color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 600;
        }
        .lightbox-thumbs {
            position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
            display: flex; gap: 6px; max-width: 80vw; overflow-x: auto; padding: 4px;
        }
        .lightbox-thumb {
            width: 56px; height: 42px; object-fit: cover; border-radius: 6px;
            cursor: pointer; opacity: 0.5; border: 2px solid transparent;
            transition: all 0.15s; flex-shrink: 0;
        }
        .lightbox-thumb.active { opacity: 1; border-color: #fff; }
        .lightbox-thumb:hover { opacity: 0.9; }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            margin-top: 32px;
            flex-wrap: wrap;
        }
        .pagination button {
            min-width: 40px;
            height: 40px;
            border: 1.5px solid var(--border);
            border-radius: 10px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        .pagination button:hover {
            border-color: var(--primary);
            background: var(--primary-light);
        }
        .pagination button.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        .pagination button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .pagination .page-dots {
            padding: 0 4px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .map-toggle-btn {
            background: var(--bg-card);
            border: 1.5px solid var(--border);
            border-radius: 10px;
            padding: 8px 18px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            transition: var(--transition);
        }
        .map-toggle-btn:hover, .map-toggle-btn.active {
            border-color: var(--primary);
            background: var(--primary);
            color: #fff;
        }
        .map-container {
            width: 100%;
            height: 450px;
            border-radius: 14px;
            margin-bottom: 24px;
            overflow: hidden;
            border: 1.5px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        #listingMiniMapWrap {
            position: relative;
            z-index: 1;
            overflow: hidden;
        }
        #listingMiniMapWrap .leaflet-container {
            z-index: 1 !important;
        }
        #listingMiniMapWrap .leaflet-pane,
        #listingMiniMapWrap .leaflet-tile-pane,
        #listingMiniMapWrap .leaflet-control-container {
            z-index: 1 !important;
        }
        .listings {
            margin-bottom: 48px;
        }

        .listings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
        }

        .listing-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            color: var(--text-primary);
        }

        .listing-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-4px);
            border-color: var(--primary-light);
        }

        .favorite-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,0.9);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            z-index: 5;
            transition: all 0.2s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }
        .favorite-btn:hover { transform: scale(1.15); background: #fff; }
        .favorite-btn.active { background: #ff4757; color: #fff; }
        .favorite-btn.active:hover { background: #e8384f; }

        .listing-image {
            width: 100%;
            height: 220px;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            color: var(--text-muted);
            overflow: hidden;
            position: relative;
        }
        
        .listing-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            background: #f8f9fa;
        }

        .listing-content {
            padding: 20px;
        }

        .listing-title {
            font-weight: 700;
            font-size: 18px;
            margin-bottom: 8px;
            color: var(--text-primary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .listing-price {
            font-family: 'Fraunces', serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 12px;
        }

        .listing-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 12px;
            border-top: 1px solid var(--border);
            font-size: 13px;
            color: var(--text-secondary);
        }

        .listing-location {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .listing-time {
            color: var(--text-muted);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .modal.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.3s ease;
            box-shadow: var(--shadow-lg);
        }

        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(40px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--bg-hover);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 24px;
            transition: var(--transition);
            z-index: 1;
        }

        .modal-close:hover {
            background: var(--danger);
            color: white;
            transform: rotate(90deg);
        }

        .modal-header {
            padding: 32px;
            border-bottom: 1px solid var(--border);
        }

        .modal-title {
            font-family: 'Fraunces', serif;
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .modal-body {
            padding: 32px;
        }

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

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

        .form-input,
        .form-textarea,
        .form-select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            font-family: 'Manrope', sans-serif;
            font-size: 15px;
            transition: var(--transition);
            background: white;
        }

        .form-input:focus,
        .form-textarea:focus,
        .form-select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(212, 104, 42, 0.1);
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        .file-upload {
            border: 2px dashed var(--border);
            border-radius: var(--radius-md);
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: var(--bg-hover);
        }

        .file-upload:hover {
            border-color: var(--primary);
            background: white;
        }

        .file-upload-icon {
            font-size: 48px;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .file-upload-text {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .file-upload-input {
            display: none;
        }

        .image-preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .image-preview {
            position: relative;
            border-radius: var(--radius-sm);
            overflow: hidden;
            aspect-ratio: 1;
            border: 2px solid var(--border);
        }

        .image-preview img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #f8f9fa;
        }

        .image-preview-remove {
            position: absolute;
            top: 4px;
            right: 4px;
            background: var(--danger);
            color: white;
            border: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            transition: var(--transition);
        }

        .image-preview-remove:hover {
            transform: scale(1.1);
        }

        /* User Dashboard */
        .dashboard {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 32px;
        }

        .sidebar {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 24px;
            height: fit-content;
            position: sticky;
            top: 100px;
        }

        .user-profile {
            text-align: center;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 24px;
        }

        .user-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: white;
            font-weight: 700;
            margin: 0 auto 12px;
        }

        .user-name {
            font-weight: 700;
            font-size: 18px;
            margin-bottom: 4px;
        }

        .user-email {
            font-size: 13px;
            color: var(--text-muted);
        }

        .sidebar-menu {
            list-style: none;
        }

        .sidebar-item {
            margin-bottom: 8px;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 500;
            transition: var(--transition);
        }

        .sidebar-link:hover,
        .sidebar-link.active {
            background: var(--bg-hover);
            color: var(--primary);
        }

        .dashboard-content {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 32px;
        }

        /* Messages */
        .messages-container {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 24px;
            height: 600px;
        }

        .conversations-list {
            border-right: 1px solid var(--border);
            overflow-y: auto;
            padding-right: 24px;
        }

        .conversation-item {
            padding: 16px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 8px;
            border: 1px solid transparent;
        }

        .conversation-item:hover {
            background: var(--bg-hover);
        }

        .conversation-item.active {
            background: var(--bg-hover);
            border-color: var(--primary);
        }

        .conversation-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .conversation-name {
            font-weight: 600;
        }

        .conversation-time {
            font-size: 12px;
            color: var(--text-muted);
        }

        .conversation-preview {
            font-size: 14px;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .message-thread {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .message-header {
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 16px;
        }

        .messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .message {
            display: flex;
            gap: 12px;
            max-width: 70%;
        }

        .message.sent {
            margin-left: auto;
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            flex-shrink: 0;
        }

        .message.sent .message-avatar {
            background: var(--secondary);
        }

        .message-content {
            background: var(--bg-hover);
            padding: 12px 16px;
            border-radius: var(--radius-md);
        }

        .message.sent .message-content {
            background: var(--primary);
            color: white;
        }

        .message-text {
            margin-bottom: 4px;
        }

        .message-time {
            font-size: 11px;
            color: var(--text-muted);
        }

        .message.sent .message-time {
            color: rgba(255,255,255,0.8);
        }

        .message-input-container {
            display: flex;
            gap: 12px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
        }

        .message-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius-md);
            font-family: 'Manrope', sans-serif;
            font-size: 14px;
        }

        .message-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        /* Footer */
        .footer {
            background: var(--secondary-dark);
            color: white;
            padding: 48px 24px 24px;
            margin-top: 80px;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 32px;
        }

        .footer-section h3 {
            font-family: 'Fraunces', serif;
            font-size: 20px;
            margin-bottom: 16px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 0 auto;
            padding-top: 24px;
            border-top: 1px solid rgba(255,255,255,0.1);
            text-align: center;
            color: rgba(255,255,255,0.6);
            font-size: 14px;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .dashboard {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: static;
            }
        }

        @media (max-width: 768px) {
            .nav-container {
                flex-wrap: wrap;
                height: auto;
                padding: 16px 24px;
            }

            .nav-search {
                order: 3;
                width: 100%;
                margin: 16px 0 0;
            }

            .hero {
                padding: 40px 32px;
            }

            .hero h1 {
                font-size: 36px;
            }

            .categories-grid {
                max-height: 88px;
                gap: 6px;
            }

            .listings-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }

            .messages-container {
                grid-template-columns: 1fr;
                height: auto;
            }

            .conversations-list {
                border-right: none;
                border-bottom: 1px solid var(--border);
                padding-right: 0;
                padding-bottom: 24px;
                max-height: 300px;
            }
        }

        /* Utility Classes */
        .hidden {
            display: none !important;
        }

        .text-center {
            text-align: center;
        }

        .mt-24 {
            margin-top: 24px;
        }

        .mb-24 {
            margin-bottom: 24px;
        }

        .flex {
            display: flex;
        }

        .gap-12 {
            gap: 12px;
        }

        .justify-between {
            justify-content: space-between;
        }

        .items-center {
            align-items: center;
        }

        /* Loading States */
        .spinner {
            border: 3px solid var(--border);
            border-top: 3px solid var(--primary);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 0.8s linear infinite;
            margin: 40px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Badge */
        .badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            background: var(--primary);
            color: white;
        }

        .badge.success {
            background: var(--success);
        }

        .badge.warning {
            background: var(--warning);
        }

        /* Filter Panel Styles */
        .filter-panel {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }
        
        .filter-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            padding: 10px 0;
        }
        
        .filter-toggle h3 {
            margin: 0;
            font-size: 18px;
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .filter-toggle-icon {
            transition: transform 0.3s;
        }
        
        .filter-toggle.active .filter-toggle-icon {
            transform: rotate(180deg);
        }
        
        .filter-content {
            display: none;
            padding-top: 20px;
            border-top: 1px solid #eee;
            margin-top: 15px;
        }
        
        .filter-content.active {
            display: block;
        }
        
        .filter-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .filter-group label {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        
        .filter-group input,
        .filter-group select {
            padding: 10px 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        
        .filter-group input:focus,
        .filter-group select:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .price-range {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .price-range input {
            flex: 1;
        }
        
        .price-range span {
            color: #666;
        }
        
        .filter-actions {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }
        
        .btn-filter {
            padding: 10px 25px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-apply {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border: none;
        }
        
        .btn-apply:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(212, 104, 42, 0.3);
        }
        
        .btn-reset {
            background: white;
            color: #666;
            border: 2px solid #e0e0e0;
        }
        
        .btn-reset:hover {
            border-color: #999;
            color: #333;
        }
        
        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }
        
        .filter-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #fef3e8;
            color: var(--primary-dark);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
        }
        
        .filter-tag-remove {
            cursor: pointer;
            font-weight: bold;
            opacity: 0.7;
        }
        
        .filter-tag-remove:hover {
            opacity: 1;
        }
        
        .results-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 10px 0;
        }
        
        .results-count {
            color: #666;
            font-size: 14px;
        }
        
        .sort-select {
            padding: 8px 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .filter-row {
                grid-template-columns: 1fr;
            }
            
            .filter-actions {
                flex-direction: column;
            }
            
            .btn-filter {
                width: 100%;
            }
        }
        /* Reviews Styles */
        .star-rating { display: inline-flex; gap: 2px; }
        .star-rating .star { color: #ddd; font-size: 18px; }
        .star-rating .star.filled { color: #FFB800; }
        .star-rating-input { display: flex; gap: 5px; font-size: 28px; cursor: pointer; }
        .star-rating-input .star { color: #ddd; transition: color 0.2s; }
        .star-rating-input .star:hover, .star-rating-input .star.active { color: #FFB800; }
        .review-card { background: #f8f9fa; border-radius: 12px; padding: 20px; margin-bottom: 15px; }
        .review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
        .review-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
        .reviews-summary { display: flex; gap: 30px; padding: 20px; background: linear-gradient(135deg, #fff8f0 0%, #fff 100%); border-radius: 12px; margin-bottom: 20px; align-items: center; }
        .reviews-avg-number { font-size: 48px; font-weight: 700; color: var(--primary); }
        .btn-write-review { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: 600; cursor: pointer; }
    
        /* Banner Styles */
        .banner-container { margin: 15px 0; text-align: center; }
        .banner-container img { max-width: 100%; height: auto; border-radius: 12px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
        .banner-container img:hover { transform: scale(1.01); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
        .banner-top { margin-bottom: 20px; }
        #recentlyViewedGrid::-webkit-scrollbar { height: 4px; }
        #recentlyViewedGrid::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
        #recentlyViewedGrid::-webkit-scrollbar-track { background: transparent; }
        .banner-bottom { margin-top: 30px; margin-bottom: 20px; }
        .banner-row {
            display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
            gap: 16px; margin: 10px 0;
        }
        .banner-row .banner-item { flex: 1 1 0; min-width: 280px; max-width: 50%; }
        .banner-row .banner-item img { width: 100%; height: 100%; object-fit: cover; }
        @media (max-width: 640px) {
            .banner-row { flex-direction: column; }
            .banner-row .banner-item { max-width: 100%; }
        }
        .banner-popup-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 9999; align-items: center; justify-content: center; }
        .banner-popup-overlay.active { display: flex; }
        .banner-popup-content { position: relative; max-width: 90%; max-height: 90%; }
        .banner-popup-content img { max-width: 100%; max-height: 80vh; border-radius: 12px; }
        .banner-popup-close { position: absolute; top: -15px; right: -15px; background: white; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

        /* ==================== TOAST NOTIFICATIONS ==================== */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }
        .toast {
            pointer-events: auto;
            padding: 14px 24px;
            border-radius: var(--radius-md, 12px);
            color: white;
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            transform: translateX(120%);
            transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
            opacity: 0;
            max-width: 380px;
            line-height: 1.5;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .toast.show { transform: translateX(0); opacity: 1; }
        .toast.hide { transform: translateX(120%); opacity: 0; }
        .toast.success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
        .toast.error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
        .toast.warning { background: linear-gradient(135deg, #f39c12, #e67e22); }
        .toast.info { background: linear-gradient(135deg, #3498db, #2980b9); }