﻿:root {
            --primary-blue: #e3f2fd; 
            --accent-blue: #4fc3f7; 
            --primary-green: #e8f5e9; 
            --accent-green: #81c784;
            --btn-green: #4caf50; 
            --btn-green-hover: #43a047;
            --text-dark: #2c3e50;
            --text-gray: #7f8c8d;
            --white: #ffffff;
            --footer-bg: #f8fbfa;
            --bg-light: #fcfcfc;
            --border-color: #f0f0f0;
            --calc-red: #cc0000;
            --border-ad: #b0bec5; 
        }
        body {
            font-family: 'Prompt', sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
            overflow-x: hidden;
            margin: 0;
            padding: 0;
        }

        /* ========================================================
           Navbar & Sidebar
           ======================================================== */
        .navbar-custom {
            background-color: var(--white);
            box-shadow: 0 2px 15px rgba(0,0,0,0.04);
            padding: 12px 0;
            z-index: 1020;
        }

        .navbar-nav .nav-link {
            color: var(--text-dark);
            font-weight: 500;
            padding: 10px 18px !important;
            transition: color 0.3s ease;
            position: relative;
        }
        
        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-item.dropdown:hover .nav-link {
            color: var(--accent-blue);
        }

        .navbar-nav .dropdown-toggle::after {
            background: transparent !important;
        }

        .navbar-menu-group {
            margin-left: 24px;
        }

        .navbar-menu-group .navbar-nav {
            gap: 4px;
        }

        .nav-item.dropdown:hover .dropdown-menu {
            display: block;
            animation: fadeIn 0.2s ease forwards;
        }

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

        .dropdown-menu {
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            display: none;
            margin-top: 0;
            padding: 15px; 
            min-width: 400px; 
            column-count: 2; 
            column-gap: 10px; 
        }

        .dropdown-menu li {
            break-inside: avoid; 
        }

        .dropdown-item {
            padding: 8px 20px;
            font-size: 0.95rem;
            color: var(--text-dark);
            transition: all 0.2s ease;
            border-radius: 8px; 
            margin-bottom: 2px;
        }

        .dropdown-item:hover {
            background-color: var(--primary-green);
            color: var(--btn-green);
            padding-left: 28px; 
        }

        /* Sidebar Mobile */
        .sidebar {
            position: fixed;
            top: 0;
            left: -60%;
            width: 60%;
            height: 100vh;
            background-color: var(--white);
            z-index: 1050;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 5px 0 25px rgba(0,0,0,0.1);
            overflow-y: auto;
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(2px);
            z-index: 1040;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .sidebar-overlay.active {
            display: block;
            opacity: 1;
        }

        .sidebar-menu {
            list-style: none;

            padding: 0;
            margin: 10px 0;
        }

        .sidebar-menu > li > a {
            display: block;
            padding: 16px 25px;
            color: var(--text-dark);
            text-decoration: none;
            border-bottom: 1px solid #f1f2f6;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .sidebar-menu > li > a:hover,
        .sidebar-menu > li > a[aria-expanded="true"] {
            background-color: #fcfcfc;
            color: var(--accent-blue);
        }

        .sidebar-menu i.fa-chevron-down {
            color: var(--text-gray);
            font-size: 0.8rem;
            transition: transform 0.3s ease;
            background-color: transparent !important;
            background: transparent !important;
        }

        .sidebar-menu a[aria-expanded="true"] .fa-chevron-down {
            transform: rotate(180deg);
            color: var(--accent-blue);
        }

        .sidebar-submenu {
            background-color: #f8fbfa;
            border-left: 3px solid var(--accent-blue);
        }

        .sidebar-submenu li a {
            padding: 12px 25px 12px 42px;
            font-size: 0.95rem;
            border-bottom: 1px solid rgba(0,0,0,0.02);
            color: #555;
            display: block;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .sidebar-submenu li:last-child a {
            border-bottom: none;
        }

        .sidebar-submenu li a:hover {
            color: var(--accent-blue);
            padding-left: 48px;
            background-color: rgba(79, 195, 247, 0.05);
        }

        /* ========================================================
           Login / Modals & Search Form CSS
           ======================================================== */
        .modal-content-custom {
            border-radius: 24px;
            border: none;
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
            overflow: hidden;
        }
        
        .auth-tab-container {
            background-color: #f1f3f5;
            border-radius: 50px;
            padding: 6px;
            display: flex;
            margin-bottom: 1.5rem;
        }
        
        .auth-tab-container .nav-link {
            flex: 1;
            border-radius: 50px;
            color: #868e96;
            font-weight: 600;
            border: none;
            background: transparent;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 12px 0;
            font-size: 1rem;
        }
        
        .auth-tab-container .nav-link.active {
            background-color: var(--white);
            color: var(--text-dark) !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }

        .form-control-custom {
            border-radius: 14px;
            padding: 14px 18px;
            border: 1px solid #e9ecef;
            background-color: #f8f9fa;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }
        
        .form-control-custom:focus {
            background-color: #ffffff;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.15);
        }

        .form-select-custom {
            border-radius: 14px;
            padding-top: 14px;
            padding-bottom: 14px;
            padding-left: 18px;
            border: 1px solid #e9ecef;
            background-color: #f8f9fa;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

        .form-select-custom:focus {
            background-color: #ffffff;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.15);
        }
        
        .form-label-custom {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-dark);
            margin-bottom: 6px;
        }

        .social-btn {
            border-radius: 14px;
            border: 1px solid #e9ecef;
            background: #ffffff;
            color: var(--text-dark);
            font-weight: 500;
            padding: 12px 0;
            transition: all 0.2s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }
        
        .social-btn:hover {
            background: #f8f9fa;
            border-color: #dee2e6;
            transform: translateY(-2px);
        }
        
        .divider-text {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 20px 0;
        }
        
        .divider-text::before,
        .divider-text::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #e9ecef;
        }
        
        .divider-text span {
            padding: 0 15px;
            color: #adb5bd;
            font-size: 0.85rem;
        }

        .btn-auth-primary {
            background-color: var(--accent-blue);
            color: white;
            border-radius: 14px;
            padding: 14px;
            font-weight: 600;
            border: none;
            transition: all 0.3s;
        }
        
        .btn-auth-primary:hover {
            background-color: #29b6f6;
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(79, 195, 247, 0.3);
        }

        /* ========================================================
           FIX MODAL OVERLAP (แก้ปัญหา Modal โดนส่วนอื่นบัง)
           ======================================================== */
        /* ดัน Modal ทุกตัวให้อยู่ชั้นบนสุด (สูงกว่า Chat และ Lightbox) */
        .modal {
            z-index: 9999 !important;
        }
        /* ดันพื้นหลังสีดำของ Modal ให้อยู่รองลงมาจาก Modal เล็กน้อย */
        .modal-backdrop {
            z-index: 9998 !important;
        }
		
        /* ========================================================
           Filter Modal Compact Style
           ======================================================== */
        #filterModal .form-label-custom {
            margin-bottom: 2px;
            font-size: 0.85rem;
        }
        #filterModal .form-select-custom {
            padding-top: 10px;
            padding-bottom: 10px;
            padding-left: 10px; 
            padding-right: 20px;
            font-size: 0.9rem;
            border-radius: 12px;
        }
        #filterModal .btn-auth-primary,
        #filterModal .btn-light {
            padding-top: 10px !important;
            padding-bottom: 10px !important;
        }

        /* Modal Search Style */
        .search-wrapper {
            background: var(--white);
            border-radius: 16px;
            padding: 10px; 
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
            display: flex;
            align-items: center;
        }
        .search-item {
            position: relative;
            padding: 0 8px; 
        }
        .search-item-input { flex: 2; }
        .search-item-select { flex: 1; }
        .search-item input, .search-item select {
            width: 100%; 
            border: none; 
            outline: none; 
            padding: 6px 4px; 
            background: transparent; 
            font-family: inherit; 
            color: var(--text-dark); 
            box-shadow: none;
            font-size: 0.9rem; 
        }
        .search-item-select select {
            appearance: none; -webkit-appearance: none; -moz-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234caf50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 3px center; background-size: 14px; padding-right: 20px; cursor: pointer; 
        }
        .search-item:not(:last-child):after {
            content: ''; position: absolute; right: 0; top: 15%; height: 70%; width: 1px; background-color: #e0e0e0;
        }
        .btn-search-custom {
            background-color: var(--btn-green); 
            color: white; 
            border: none; 
            padding: 8px 20px; 
            border-radius: 12px; 
            font-weight: 500; 
            transition: background-color 0.3s; 
            white-space: nowrap;
            font-size: 0.95rem; 
        }
        .btn-search-custom:hover { background-color: var(--btn-green-hover); color: white; }
        .btn-filter-custom {
            background-color: #f1f8e9; 
            color: var(--btn-green); 
            border: none; 
            padding: 8px 12px; 
            border-radius: 12px; 
            margin-left: 8px; 
            transition: background-color 0.3s;
            font-size: 0.95rem; 
        }
        .btn-filter-custom:hover { background-color: #e8f5e9; }
        
        @media (max-width: 991px) {
            .search-wrapper { 
                flex-direction: column; 
                background: var(--white); 
                box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
                padding: 10px !important; 
                border: 1px solid var(--border-color); 
                border-radius: 16px; 
            }
            .search-item { 
                width: 100%; 
                background: #f8f9fa; 
                border-radius: 12px; 
                margin-bottom: 8px; 
                padding: 6px 12px; 
                box-shadow: none; 
                border: 1px solid #f1f2f6; 
            }
            .search-item:not(:last-child):after { display: none; }
            .search-action-group { width: 100%; display: flex; gap: 8px; margin-top: 5px; } 
            .btn-search-custom { flex: 1; }
        }

        /* ========================================================
           BREADCRUMB
           ======================================================== */
        .breadcrumb-custom { margin-top: 1rem; }
        .breadcrumb-custom a { color: var(--text-gray); text-decoration: none; font-size: 0.9rem; }
        .breadcrumb-custom a:hover { color: var(--accent-blue); }
        .breadcrumb-custom span { color: var(--text-dark); font-size: 0.9rem; font-weight: 500;}

        /* ========================================================
           GALLERY SYSTEM & VIDEO
           ======================================================== */
        .video-badge {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.7);
            color: #fff;
            padding: 8px 16px;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            z-index: 5;
            pointer-events: none;
            backdrop-filter: blur(3px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }
        .mob-thumb .video-badge, .lb-thumb .video-badge {
            padding: 0;
            font-size: 0.8rem;
            border-radius: 50%;
            width: 26px;
            height: 26px;
        }
        .mob-thumb .video-badge span, .lb-thumb .video-badge span {
            display: none;
        }
        
        .video-container-lb {
            position: relative;
            width: 100%;
            max-width: 900px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .video-container-lb iframe, .video-container-lb video {
            border: none;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            background: #000;
        }

        .desktop-gallery {
            display: grid;
            gap: 12px;
            border-radius: 24px;
            overflow: hidden;
            width: 100%;
            height: 450px; 
            margin-bottom: 30px;
        }
        
        .desktop-gallery-item {
            width: 100%; height: 100%; position: relative; cursor: pointer; overflow: hidden;
        }
        .desktop-gallery-item img {
            width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
        }
        .desktop-gallery-item:hover img { transform: scale(1.05); }
        
        /* Layouts */
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(1)) { grid-template-columns: 1fr; grid-template-rows: 100%; }
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(2)) { grid-template-columns: 1fr 1fr; grid-template-rows: 100%; }
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(3)) { grid-template-columns: 2fr 1fr; grid-template-rows: calc(50% - 6px) calc(50% - 6px); }
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(3)) .desktop-gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(4)) { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: calc(50% - 6px) calc(50% - 6px); }
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(4)) .desktop-gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(4)) .desktop-gallery-item:nth-child(2) { grid-column: 2 / 4; grid-row: 1 / 2; }
        
        .desktop-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: calc(50% - 6px) calc(50% - 6px); }
        .desktop-gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; } 
        .desktop-gallery-item:nth-child(n+6) { display: none; }
        
        .desktop-gallery-item:after {
            content: '+ ดูรูปทั้งหมด'; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); color: white; display: none; align-items: center; justify-content: center; font-size: 1.2rem;
            font-weight: 600; opacity: 1; transition: 0.3s; pointer-events: none;
        }
        
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(2)) .desktop-gallery-item:nth-child(2):after,
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(3)) .desktop-gallery-item:nth-child(3):after,
        .desktop-gallery:has(.desktop-gallery-item:last-child:nth-child(4)) .desktop-gallery-item:nth-child(4):after,
        .desktop-gallery:has(.desktop-gallery-item:nth-child(5)) .desktop-gallery-item:nth-child(5):after { display: flex; }
        .desktop-gallery-item:hover:after { background: rgba(0,0,0,0.3); }

        /* ========================================================
           GALLERY SYSTEM (MOBILE)
           ======================================================== */
        .mobile-gallery-system { background: #fff; user-select: none; width: 100%; margin-bottom: 20px; }
        .mob-gallery-view { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; touch-action: pan-y; }
        .mob-gallery-track { display: flex; width: 100%; height: 100%; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); cursor: grab; }
        .mob-gallery-track:active { cursor: grabbing; }
        .mob-gallery-track.dragging { transition: none; }
        .mob-gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative;}
        .mob-gallery-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
        
        .mob-arrow {
            position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.4); border-radius: 50%;
            color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.2s ease;
        }
        .mob-arrow:active { transform: translateY(-50%) scale(0.9); }
        .mob-arrow.prev { left: 20px; }
        .mob-arrow.next { right: 20px; }
        
        .mob-counter {
            position: absolute; bottom: 15px; right: 15px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
            color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; z-index: 10; letter-spacing: 1px; pointer-events: none;
        }
        
        .mob-thumbs-container { position: relative; width: 100%; display: flex; align-items: center; padding: 10px 0; }
        
        .mob-thumbs-wrap { display: flex; gap: 8px; padding: 0 35px; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; width: 100%; cursor: grab; }
        .mob-thumbs-wrap:active { cursor: grabbing; }
        .mob-thumbs-wrap.grabbing { scroll-behavior: auto; }
        .mob-thumbs-wrap::-webkit-scrollbar { display: none; }
        
        .thumb-arrow {
            position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.95); border: 1px solid #e0e0e0;
            width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1); color: #555; transition: 0.2s;
        }
        .thumb-arrow:active { transform: translateY(-50%) scale(0.9); }
        .thumb-arrow.prev { left: 10px; }
        .thumb-arrow.next { right: 10px; }
        
        .mob-thumb { flex: 0 0 70px; height: 50px; border-radius: 8px; position: relative; overflow: hidden; cursor: pointer; opacity: 0.5; transition: all 0.3s ease; border: 2px solid transparent; }
        .mob-thumb.active { opacity: 1; border-color: var(--accent-blue); }
        .mob-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none;}

        @media (max-width: 768px) {
            .mobile-gallery-system { 
                margin-left: 0; 
                margin-right: 0; 
                width: 100%; 
            }
            .mob-gallery-view { border-radius: 0; }
            .mob-thumbs-container { padding-left: 20px; padding-right: 20px; }
            .thumb-arrow.prev { left: 25px; }
            .thumb-arrow.next { right: 25px; }
            .mob-arrow.prev { left: 20px; }
            .mob-arrow.next { right: 20px; }
        }

        /* ========================================================
           LIGHTBOX (BACKDROP) - FULL SLIDE SYSTEM + THUMBNAILS
           ======================================================== */
        .lightbox-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 2050; display: none;
            align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(5px);
        }
        .lightbox-overlay.active { display: flex; opacity: 1; }
        .lightbox-content { position: relative; width: 100%; max-width: 1200px; height: 75%; display: flex; align-items: center; overflow: hidden; touch-action: pan-y; }
        .lightbox-track { display: flex; width: 100%; height: 100%; align-items: center; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); cursor: grab; }
        .lightbox-track:active { cursor: grabbing; }
        .lightbox-track.dragging { transition: none; }
        .lightbox-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; padding: 0 15px; position: relative;}
        .lightbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }
        
        .lightbox-btn {
            position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: white; border: none;
            width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: 0.3s; z-index: 2060; backdrop-filter: blur(4px);
        }
        .lightbox-btn:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.1); }
        .lightbox-btn.prev { left: 20px; }
        .lightbox-btn.next { right: 20px; }
        .lightbox-close { position: absolute; top: 20px; right: 20px; background: transparent; color: white; border: none; font-size: 2rem; cursor: pointer; z-index: 2060; transition: 0.3s; }
        .lightbox-close:hover { transform: scale(1.1); color: #ff5252; }
        .lightbox-counter { position: absolute; top: 30px; left: 30px; color: white; font-size: 1.1rem; font-weight: 500; letter-spacing: 1px; z-index: 2060; }

        /* Lightbox Thumbnails */
        .lightbox-thumbs-wrapper {
            position: absolute;
            bottom: 30px;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            z-index: 2060;
            padding: 0 20px;
        }
        
        .lb-thumb-arrow {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 5;
            transition: 0.2s;
            backdrop-filter: blur(4px);
            flex-shrink: 0;
        }
        .lb-thumb-arrow:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
        .lb-thumb-arrow:active { transform: scale(0.9); }

        .lightbox-thumbs {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            max-width: 800px;
            width: 100%;
            padding-bottom: 5px;
            cursor: grab;
        }
        .lightbox-thumbs:active { cursor: grabbing; }
        .lightbox-thumbs.grabbing { scroll-behavior: auto; }
        .lightbox-thumbs::-webkit-scrollbar { display: none; }

        .lb-thumb {
            flex: 0 0 80px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            opacity: 0.4;
            transition: 0.3s;
            border: 2px solid transparent;
            position: relative;
        }
        .lb-thumb.active {
            opacity: 1;
            border-color: var(--accent-blue);
            box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
        }
        .lb-thumb img {
            width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none;
        }
        
        @media (max-width: 768px) {
            .lb-thumb { flex: 0 0 60px; height: 45px; }
            .lightbox-thumbs-wrapper { bottom: 20px; gap: 8px; padding: 0 10px;}
            .lb-thumb-arrow { width: 30px; height: 30px; font-size: 0.9rem;}
            .lightbox-content { height: 70%; }
        }

        /* ========================================================
           PROPERTY DETAILS (MODERN UI)
           ======================================================== */
        .badge-status { background: #e3f2fd; color: #1976d2; padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; display: inline-block; letter-spacing: 0.5px;}
        .badge-premium-tag { background: #fdf5e6; color: #b8860b; padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; display: inline-block; letter-spacing: 0.5px;}
        
        /* NEW PRICE BOX UI */
        .price-box-wrapper {
            display: flex;
            width: fit-content;
            align-items: center;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 8px 24px 8px 8px;
            margin: 15px 0 15px 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        }
        .price-box-label {
            background: linear-gradient(135deg, var(--accent-blue) 0%, #29b6f6 100%);
            color: #ffffff;
            padding: 6px 16px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            margin-right: 15px;
            box-shadow: 0 4px 10px rgba(79, 195, 247, 0.3);
        }
        .price-box-amount {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--text-dark);
            line-height: 1;
            letter-spacing: 0.5px;
        }

        .prop-title { font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin: 0 0 10px 0; line-height: 1.4;}
        .prop-location { color: var(--text-gray); font-size: 1rem; margin-bottom: 25px; display: flex; align-items: center; gap: 8px;}
        
        /* แก้ไขเพิ่ม: ป้องกันกล่องขยับขึ้นลง (overflow-y: hidden) ล็อคให้ปัดซ้ายขวาได้เนียนๆ (touch-action: pan-x) */
        .specs-wrapper { 
            display: flex; 
            gap: 15px; 
            padding-bottom: 5px; 
            margin-bottom: 30px; 
            overflow-x: auto; 
            overflow-y: hidden; 
            scrollbar-width: none; 
            -webkit-overflow-scrolling: touch; 
            touch-action: pan-x;
        }
        .specs-wrapper::-webkit-scrollbar { display: none; }
        .spec-item { background: #ffffff; border: 1px solid var(--border-color); border-radius: 16px; padding: 15px 20px; display: flex; align-items: center; gap: 15px; min-width: 140px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); transition: 0.3s; }
        .spec-item:hover { border-color: var(--accent-blue); box-shadow: 0 4px 15px rgba(79,195,247,0.1); }
        .spec-icon { width: 42px; height: 42px; background: var(--primary-blue); color: var(--accent-blue); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; border-radius: 12px; flex-shrink: 0; }
        .spec-details { display: flex; flex-direction: column; }
        .spec-value { font-weight: 700; font-size: 1.1rem; color: var(--text-dark); line-height: 1.2; }
        .spec-label { color: var(--text-gray); font-size: 0.8rem; font-weight: 500; }

        @media (max-width: 768px) {
            .price-box-wrapper { padding: 6px 20px 6px 6px; }
            .price-box-label { padding: 4px 12px; font-size: 0.9rem; margin-right: 12px; }
            .price-box-amount { font-size: 1.8rem; }
            .prop-title { font-size: 1.4rem; }
            
            /* อัปเดตส่วนมือถือ: ปิดเอฟเฟกต์กระเด้งตอนแตะ */
            .specs-wrapper { 
                display: flex; 
                flex-wrap: nowrap; 
                gap: 10px; 
                overflow-x: auto; 
                overflow-y: hidden;
                padding: 6px 2px 12px 2px; 
                scrollbar-width: none; 
                touch-action: pan-x;
            }
            .specs-wrapper::-webkit-scrollbar { display: none; }
            .spec-item { 
                flex: 0 0 auto; 
                min-width: 105px; 
                padding: 12px 8px; 
                flex-direction: column; 
                justify-content: center; 
                text-align: center; 
                gap: 6px; 
                border-radius: 12px; 
            }
            .spec-item:hover {
                transform: none; /* ปิดการขยับเด้งขึ้นลงบนมือถือ */
            }
            .spec-icon { width: 34px; height: 34px; font-size: 1rem; border-radius: 10px; margin-bottom: 2px;}
            .spec-details { align-items: center; }
            .spec-value { font-size: 0.95rem; }
            .spec-label { font-size: 0.75rem; }
        }

        .detail-section { margin-bottom: 45px; }
        .section-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); position: relative; padding-bottom: 10px;}
        .section-title:after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 4px; background: var(--accent-blue); border-radius: 2px;}
        
        .highlight-box { background: linear-gradient(135deg, rgba(79,195,247,0.1) 0%, rgba(255,255,255,0) 100%); border-left: 4px solid var(--accent-blue); padding: 15px 20px; border-radius: 0 12px 12px 0; margin-bottom: 20px; font-weight: 500; color: var(--text-dark); }
        .description-text { color: #555; line-height: 1.8; font-size: 1rem; white-space: pre-line; }

        .facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
        @media (max-width: 576px) { .facilities-grid { grid-template-columns: repeat(3, 1fr); } }
        .facility-item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-dark); font-weight: 500; font-size: 0.9rem; }
        .facility-item i { font-size: 1.5rem; color: var(--text-dark); transition: 0.3s; width: 24px; text-align: center;}
        .facility-item:hover i { color: var(--accent-blue); transform: scale(1.1);}

        .map-container { width: 100%; height: 350px; background: #e9ecef; border-radius: 16px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: #adb5bd; overflow: hidden;}
        .nearby-wrap { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; }
        .nearby-list { list-style: none; padding: 0; margin: 0; }
        .nearby-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f1f2f6; font-size: 0.95rem; align-items: center;}
        .nearby-item:last-child { border-bottom: none; padding-bottom: 0;}
        .nearby-name { color: var(--text-dark); display: flex; align-items: center; gap: 12px; font-weight: 500; }
        .nearby-icon-box { width: 32px; height: 32px; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 0.9rem;}


        .icon-bts { background: #e8f4fd; color: #1a73e8; }
        .icon-mrt { background: #e3ecfa; color: #15397f; }
        .icon-mall { background: #fff8e1; color: #f5b041; }
        .icon-hos { background: #fdeaea; color: #e53935; }
        .nearby-distance { color: var(--text-gray); font-size: 0.85rem; font-weight: 500;}

        /* Sticky Contact Card */
        .sticky-sidebar { position: sticky; top: 100px; }
        .contact-card { background: var(--white); border-radius: 20px; padding: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid #f1f2f6; }
        
        .agent-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 16px; border: 1px solid #eaeaea;}
        .agent-img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; }
        .agent-info h6 { margin: 0 0 4px 0; font-weight: 600; font-size: 1.05rem; }
        .agent-info span { font-size: 0.8rem; color: var(--text-gray); display: flex; align-items: center; gap: 4px;}
        .agent-info span::before { content: ''; width: 6px; height: 6px; background: #4caf50; border-radius: 50%; display: inline-block;}
        
        .btn-action { width: 100%; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 1rem; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s; border: none; margin-bottom: 12px; }
        .btn-line { background-color: #00B900; color: white; }
        .btn-line:hover { background-color: #009900; color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,185,0,0.3);}
        .btn-call { background-color: var(--text-dark); color: white; }
        .btn-call:hover { background-color: #1a252f; color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);}

        /* ========================================================
           MORTGAGE CALCULATOR UI
           ======================================================== */
        .calc-wrapper { border-top: 3px solid var(--calc-red); background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); width: 100%;}
        .calc-price-input { font-size: 1.6rem; font-weight: 700; border: none; outline: none; background: transparent; width: 160px; color: var(--text-dark); font-family: 'Prompt', sans-serif; }
        .calc-label { font-size: 0.9rem; font-weight: 600; color: #444; }
        .calc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px; }
        .calc-dot.red { background-color: var(--calc-red); }
        .calc-dot.gray { background-color: #b0bec5; }
        .calc-percent { font-size: 0.85rem; font-weight: 700; }
        .calc-input { font-size: 1rem; font-weight: 600; border-radius: 6px; border: 1px solid #ddd; box-shadow: none; padding: 10px 12px;}
        .calc-input:focus { border-color: var(--calc-red); box-shadow: 0 0 0 3px rgba(204,0,0,0.1); }
        .calc-input[readonly] { background-color: #f9f9f9; color: #666; border-color: #eee;}
        .calc-slider { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: #e0e0e0; outline: none; margin-top: 15px; margin-bottom: 10px; }
        .calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--calc-red); cursor: pointer; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
        .calc-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--calc-red); cursor: pointer; border: none; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
        .calc-result-area { background-color: #f8f9fa; border-left: 1px solid #eee;}
        .donut-chart-container { position: relative; width: 200px; height: 200px; }
        .donut-chart { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(var(--calc-red) 0deg 36deg, #b0bec5 36deg 360deg); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
        .donut-inner { width: 140px; height: 140px; background-color: #f8f9fa; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); }
        .donut-label { font-size: 0.85rem; font-weight: 600; color: #555; }
        .donut-value { font-size: 1.8rem; font-weight: 700; color: var(--calc-red); line-height: 1.2; margin: 2px 0;}
        .donut-unit { font-size: 0.8rem; color: #777; font-weight: 500;}
        .legend-item { font-size: 0.9rem; font-weight: 500; color: #444; display: flex; align-items: center;}
        @media (max-width: 768px) { .calc-result-area { border-left: none; border-top: 1px solid #eee; padding-top: 30px !important;} }

        /* ========================================================
           PROPERTY CARDS & SLIDER
           ======================================================== */
        .scrolling-wrapper {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 1.5rem;
            padding-bottom: 1.5rem;
            padding-top: 10px;
            scrollbar-width: none; 
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
            width: 100%;
            max-width: 100%;
            scroll-snap-type: x mandatory;
        }
        .scrolling-wrapper.grabbing {
            cursor: grabbing;
            scroll-snap-type: none;
            scroll-behavior: auto; 
        }
        .scrolling-wrapper.grabbing > * {
            pointer-events: none; 
        }
        .scrolling-wrapper::-webkit-scrollbar {
            display: none; 
        }
        .slider-item {
            flex: 0 0 auto;
            width: 280px;
            scroll-snap-align: start; 
            scroll-snap-stop: always; 
        }
        .property-card {
            background: var(--white);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
            transition: 0.3s;
            height: 100%;
            position: relative;
            border: 1px solid var(--border-color);
        }
        .property-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.08);
        }
        .property-card-premium {
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); 
            border: 2px solid #FFD700; 
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            height: 100%;
            position: relative;
        }
        .property-card-premium:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6); 
            border-color: #FDB931;
        }
        .badge-premium {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #212529; 
            color: #ffffff; 
            padding: 4px 12px; 
            border-radius: 20px; 
            font-size: 11px; 
            font-weight: 600; 
            z-index: 10; 
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
        }
        .btn-premium {
            background: linear-gradient(to bottom, #FDE047, #D4AF37);
            color: #000;
            font-weight: 700;
            border: none;
            transition: 0.3s;
            box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
        }
        .btn-premium:hover {
            background: linear-gradient(to bottom, #D4AF37, #B8860B);
            color: #fff;
            box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
        }
        .property-img {
            height: 180px;
            object-fit: cover;
            width: 100%;
            user-select: none;
            -webkit-user-drag: none;
        }
        .badge-type {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #000000; 
            color: #ffffff; 
            padding: 4px 12px; 
            border-radius: 20px; 
            font-size: 11px; 
            font-weight: 600; 
            z-index: 10; 
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        .property-card-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 2px;
        }
        .property-card-location {
            color: var(--text-gray);
            font-size: 0.8rem;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
        }
        .property-card-price {
            color: #000000; 
            font-size: 1.2rem;
            font-weight: 700;
        }
        .property-card-details {
            color: #555;
            font-size: 0.85rem; 
        }
        .property-card-details i {
            margin-right: 4px;
            color: #95a5a6; 
            font-size: 1rem;
        }

        /* ========================================================
           MOBILE FLOATING CONTACT BOX & BUBBLE
           ======================================================== */
        .mob-float-contact {
            position: fixed;
            bottom: 25px;
            right: 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 8px 8px 8px 12px;
            border-radius: 50px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1030;
            transition: transform 0.4s cubic-bezier(0.3, 1, 0.3, 1), opacity 0.4s ease;
            border: 1px solid rgba(255,255,255,0.6);
        }
        .mob-float-contact.hide-on-scroll {
            transform: translateY(150px);
            opacity: 0;
            pointer-events: none;
        }
        .mob-float-agent {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
        }
        .mob-float-text {
            display: flex;
            flex-direction: column;
            line-height: 1.1;
            margin-right: 5px;
        }
        .mob-float-text span { font-size: 0.7rem; color: var(--text-gray); }
        .mob-float-text strong { font-size: 0.85rem; color: var(--text-dark); font-weight: 700; }
        .mob-btn-circle {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            transition: 0.2s;
        }
        .mob-btn-circle.line { background-color: #00B900; }
        .mob-btn-circle.call { background-color: var(--text-dark); }

        .mob-float-bubble {
            position: absolute;
            bottom: calc(100% + 4px); 
            left: 0; 
            background: var(--text-dark); 
            color: white;
            padding: 8px 30px 8px 15px; 
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            white-space: nowrap;
            animation: floatBounce 2.5s infinite ease-in-out;
            z-index: 10;
        }
        .mob-float-bubble:after {
            content: '';
            position: absolute;
            top: 100%; 
            left: 25px; 
            border-width: 10px 8px 0 8px; 
            border-style: solid;
            border-color: var(--text-dark) transparent transparent transparent;
        }
        .close-bubble {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 12px;
            color: rgba(255,255,255,0.6);
            cursor: pointer;
            font-size: 0.85rem;
            transition: 0.2s;
            padding: 2px;
        }
        .close-bubble:hover {
            color: white;
            transform: translateY(-50%) scale(1.1);
        }
        @keyframes floatBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); } 
        }

        @media (min-width: 987px) {
            .mob-float-contact {
                display: none !important;
            }
        }

        /* ========================================================
           CHAT POPUP (MESSENGER STYLE)
           ======================================================== */
        .chat-popup {
            position: fixed;
            bottom: 20px;
            right: 80px; 
            width: 360px;
            height: 500px;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.2);
            display: flex;
            flex-direction: column;
            z-index: 2070; 
            transform: translateY(20px) scale(0.95);
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .chat-popup.active {
            transform: translateY(0) scale(1);
            opacity: 1;
            pointer-events: auto;
        }
        @media (max-width: 576px) {
            .chat-popup {
                width: calc(100% - 32px);
                height: 460px;
                max-height: calc(100vh - 100px);
                bottom: 85px;
                right: 16px;
                border-radius: 16px;
            }
        }
        .chat-header {
            background: var(--accent-blue);
            padding: 12px 16px;
            border-radius: 16px 16px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .chat-agent-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
        .chat-online-badge {
            position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px;
            background: #31a24c; border: 2px solid var(--accent-blue); border-radius: 50%;
        }
        .chat-body {
            flex: 1;
            background: #ffffff;
            padding: 16px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .chat-message { display: flex; gap: 8px; max-width: 85%; align-items: flex-end; }
        .chat-message.received { align-self: flex-start; }
        .chat-message.sent { align-self: flex-end; flex-direction: row-reverse; }
        .chat-msg-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
        .chat-msg-text {
            padding: 10px 14px;
            font-size: 0.9rem;
            border-radius: 18px;
            line-height: 1.4;
            word-break: break-word;
        }
        .chat-message.received .chat-msg-text { background: #f0f2f5; color: #050505; border-bottom-left-radius: 4px; }
        .chat-message.sent .chat-msg-text { background: #0084ff; color: #fff; border-bottom-right-radius: 4px; }
        
        .chat-msg-info { font-size: 0.65rem; color: #888; margin-top: 3px; display: block; }
        
        .chat-footer {
            padding: 12px 16px;
            border-top: 1px solid #ebedf0;
            display: flex;
            align-items: center;
            gap: 10px;
            background: #fff;
            border-radius: 0 0 16px 16px;
            position: relative;
        }
        .chat-input {
            border-radius: 20px;
            background: #f0f2f5;
            border: none;
            padding: 10px 16px;
            font-size: 0.95rem;
        }
        .chat-input:focus { box-shadow: none; background: #e4e6eb; }
        .chat-send-btn { color: #0084ff; font-size: 1.2rem; padding: 0; border: none; background: transparent; cursor: pointer; transition: 0.2s; }
        .chat-send-btn:hover { color: #006bce; transform: scale(1.1); }
        .chat-attach-btn { color: #0084ff; font-size: 1.2rem; padding: 0; border: none; background: transparent; cursor: pointer;}
        
        .chat-img-preview { max-width: 200px; border-radius: 8px; margin-bottom: 5px; display: block; border: 1px solid #eaeaea; }
        .chat-file-indicator { font-size: 0.75rem; color: #4caf50; position: absolute; bottom: 55px; left: 15px; background: white; padding: 4px 12px; border-radius: 20px; border: 1px solid #ddd; display: none; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 10; white-space: nowrap; max-width: 250px; overflow: hidden; text-overflow: ellipsis;}

        /* กล่องแจ้งเตือนแชท มุมขวาล่าง */
        .chat-notify-container {
            position: fixed;
            bottom: 100px; 
            right: 20px;
            z-index: 2080;
            display: flex;
            flex-direction: column;
            gap: 12px;
            pointer-events: none; 
        }
        .chat-notify-box {
            background: #fff;
            border-left: 4px solid var(--accent-blue);
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            border-radius: 12px;
            padding: 12px 15px 12px 12px;
            width: 280px;
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            cursor: pointer;
            transition: 0.3s;
            animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            pointer-events: auto; 
        }
        .chat-notify-box:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
        .chat-notify-icon {
            background: var(--primary-blue);
            color: var(--accent-blue);
            width: 45px; height: 45px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.3rem; flex-shrink: 0;
        }
		
        .chat-notify-text { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: center;}
        .chat-notify-title {
            font-size: 0.85rem; font-weight: 600; color: var(--text-dark);
            margin: 0 0 2px 0; line-height: 1.4;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .chat-notify-subtitle { font-size: 0.75rem; color: var(--accent-blue); margin: 0; font-weight: 500;}
        .chat-notify-close {
            position: absolute; top: 6px; right: 8px;
            color: #adb5bd; cursor: pointer; font-size: 0.8rem;
            background: none; border: none; padding: 2px; transition: 0.2s;
        }
        .chat-notify-close:hover { color: var(--calc-red); transform: scale(1.1); }
        @media (max-width: 576px) {
            .chat-notify-container { right: 16px; bottom: 85px; }
            .chat-notify-box { width: calc(100vw - 32px); }
        }
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* ========================================================
           Footer 
           ======================================================== */
        .footer {
            background-color: var(--footer-bg);
            padding: 60px 0 20px;
            border-top: 1px solid #eaeaea;
            margin-top: 60px;
        }

        .footer-heading {
            color: var(--accent-blue);
            font-weight: 600;
            margin-bottom: 20px;
        }

        .footer-link {
            color: var(--text-gray);
            text-decoration: none;
            display: block;
            margin-bottom: 10px;
            transition: 0.3s;
            font-size: 0.9rem;
        }

        .footer-link:hover {
            color: var(--accent-green);
            padding-left: 5px;
        }

        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background-color: var(--primary-blue);
            color: var(--accent-blue);
            margin-right: 10px;
            transition: 0.3s;
            text-decoration: none;
        }

        .social-icon:hover {
            background-color: var(--accent-blue);
            color: var(--white);
        }