/* ============================================
   PROFESSIONAL CSS RESET FOR SEARCH PAGE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

body {
    background-color: #f9fafb;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
}

        .hero-mini {
            position: relative;
            width: 100%;
            height: 280px;
            overflow: hidden;
        }
        .hero-mini-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
            border-bottom-left-radius: 50% 30%;
            border-bottom-right-radius: 50% 30%;
        }
        .hero-mini-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 11, 24, 0.5);
            z-index: 1;
            border-bottom-left-radius: 50% 30%;
            border-bottom-right-radius: 50% 30%;
        }

        .search-page {
            font-family: 'Poppins', sans-serif;
            color: #1a1a2e;
            max-width: 1320px;
            margin: 0 auto;
            padding: 2rem 1.5rem;
            position: relative;
            z-index: 2;
        }

        .search-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #1a1a2e;
        }

        .search-card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
            padding: 1.8rem 2rem;
            margin-bottom: 2rem;
            border: 1px solid #f0f2f5;
        }

        .search-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.2rem;
            margin-bottom: 1.2rem;
        }

        .search-row-2col {
            grid-template-columns: 1fr 1fr;
        }

        .form-group label {
            display: block;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #6b7280;
            margin-bottom: 0.3rem;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 0.6rem 1rem;
            border: 1.5px solid #e5e7eb;
            border-radius: 12px;
            font-size: 0.9rem;
            background: #ffffff;
            transition: border-color 0.2s, box-shadow 0.2s;
            outline: none;
            font-family: inherit;
            color: #1f2937;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #2b73d2;
            box-shadow: 0 0 0 3px rgba(43, 115, 210, 0.1);
        }

        .form-group select {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 12px;
            padding-right: 2.5rem;
        }

        .radius-input-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .radius-input-group input {
            flex: 1;
        }

        .radius-input-group span {
            font-size: 0.85rem;
            color: #6b7280;
            white-space: nowrap;
        }

        .special-keys {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.2rem;
        }

        .special-key-btn {
            padding: 0.3rem 1rem;
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
            border-radius: 30px;
            font-size: 0.8rem;
            color: #4b5563;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            font-family: inherit;
        }

        .special-key-btn:hover {
            background: #e5e7eb;
            color: #1f2937;
        }

        .search-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-top: 0.5rem;
        }

        .btn-primary {
            background: #2b73d2;
            color: #ffffff;
            border: none;
            padding: 0.6rem 2.2rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: background 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 12px rgba(43, 115, 210, 0.25);
            font-family: inherit;
        }

        .btn-primary:hover {
            background: #1e60be;
            box-shadow: 0 6px 18px rgba(43, 115, 210, 0.35);
        }

        .btn-secondary {
            background: #f3f4f6;
            color: #4b5563;
            border: 1px solid #e5e7eb;
            padding: 0.6rem 1.8rem;
            border-radius: 12px;
            font-weight: 500;
            font-size: 0.95rem;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
            font-family: inherit;
        }

        .btn-secondary:hover {
            background: #e5e7eb;
        }

        .content-layout {
            display: grid;
            grid-template-columns: 240px 1fr;
            gap: 2rem;
            margin-top: 0.5rem;
        }

        .sidebar-card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
            padding: 1.5rem 1.2rem;
            border: 1px solid #f0f2f5;
            position: sticky;
            top: 2rem;
        }

        .sidebar-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #6b7280;
            margin-bottom: 1.2rem;
        }

        .category-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0.7rem;
            border-radius: 10px;
            color: #4b5563;
            text-decoration: none;
            transition: background 0.15s;
            font-size: 0.9rem;
        }

        .category-item:hover {
            background: #f9fafb;
        }

        .category-item.active {
            background: #eff6ff;
            color: #2b73d2;
            font-weight: 600;
        }

        .category-item .count {
            font-size: 0.75rem;
            color: #9ca3af;
        }

        .category-item.active .count {
            color: #2b73d2;
        }

        .sub-category-item {
            padding-right: 1.5rem;
            font-size: 0.8rem;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .results-title {
            font-size: 1.6rem;
            font-weight: 700;
            color: #1a1a2e;
        }

        .results-meta {
            font-size: 0.85rem;
            color: #6b7280;
        }

        .map-container {
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid #e5e7eb;
            margin-bottom: 2rem;
            height: 350px;
            background: #f9fafb;
        }

        .empty-state {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
            padding: 3rem 2rem;
            text-align: center;
            border: 1px solid #f0f2f5;
        }

        .empty-state .icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .empty-state h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 0.5rem;
        }

        .empty-state p {
            color: #6b7280;
            font-size: 1rem;
        }

        .empty-state .sub {
            color: #9ca3af;
            font-size: 0.9rem;
            margin-top: 0.3rem;
        }

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

        .pagination-wrapper {
            margin-top: 2rem;
        }

        .listing-card {
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid #f0f2f5;
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex;
            flex-direction: column;
        }

        .card-image-wrapper {
            position: relative;
            overflow: hidden;
            aspect-ratio: 4 / 3;
            background: #e5e7eb;
        }

        .card-image-link {
            display: block;
            width: 100%;
            height: 100%;
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .listing-card:hover .card-image {
            transform: scale(1.05);
        }

        .card-image-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f3f4f6;
            color: #9ca3af;
            font-size: 1.2rem;
        }

        .card-badge {
            position: absolute;
            padding: 0.35rem 0.9rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #fff;
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            gap: 0.3rem;
            z-index: 2;
        }

        .badge-left {
            top: 12px;
            right: 12px;
            background: #001c3d75;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .badge-right {
            top: 12px;
            left: 12px;
            background: rgb(16 185 129 / 61%);
        }

        .card-body {
            padding: 1.2rem 1.2rem 1rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .card-title-link {
            text-decoration: none;
            color: inherit;
        }

        .card-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 0.6rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.2s;
        }

        .card-title:hover {
            color: #2b73d2;
        }

        .card-info {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            margin-bottom: 0.8rem;
            font-size: 0.85rem;
            color: #4b5563;
        }

        .card-info-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .card-info-item i {
            width: 1.1rem;
            text-align: center;
            color: #2b73d2;
            font-size: 0.9rem;
        }

        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
            padding-top: 0.8rem;
            border-top: 1px solid #f0f2f5;
        }

        .card-actions {
            display: flex;
            gap: 0.6rem;
        }

        .card-action-btn {
            background: transparent;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1rem;
            color: #6b7280;
            transition: all 0.2s;
            padding: 0;
        }

        .card-action-btn:hover {
            background: #f3f4f6;
            color: #1f2937;
        }

        .favorite-btn.active {
            color: #ef4444;
            border-color: #fecaca;
            background: #fef2f2;
        }

        .favorite-form-inline {
            display: inline-block;
            margin: 0;
        }

        .card-rating {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            background: #fffbeb;
            color: #b45309;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .card-rating i {
            color: #f59e0b;
        }

        @keyframes favColorPulse {
            0%   { background-color: rgba(239, 68, 68, 0.15); border-color: #fecaca; transform: scale(1); }
            40%  { background-color: rgba(239, 68, 68, 0.3); border-color: #ef4444; transform: scale(1.2); }
            100% { background-color: transparent; border-color: #e5e7eb; transform: scale(1); }
        }
        .favorite-btn.fav-animate {
            animation: favColorPulse 0.5s ease forwards;
        }

        .language-switcher {
            position: fixed;
            bottom: 35px;
            left: 45px;
            z-index: 9999;
            background: #ffffff;
            padding: 10px 18px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .language-switcher:hover {
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
            transform: translateY(-2px);
        }
        .language-switcher .flag-icon {
            width: 24px;
            height: 16px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        .language-switcher span {
            font-size: 15px;
            font-weight: 700;
            color: #222222;
        }
        .language-switcher i {
            font-size: 11px;
            color: #555555;
            transition: transform 0.3s ease;
        }
        .language-dropdown {
            position: fixed;
            bottom: 90px;
            left: 45px;
            z-index: 9998;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
            padding: 8px 0;
            min-width: 180px;
            display: none;
        }
        .language-dropdown.show {
            display: block;
            animation: slideUp 0.3s ease;
        }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .language-dropdown .lang-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            text-decoration: none;
            color: #333333;
        }
        .language-dropdown .lang-option:hover {
            background-color: #f5f7fa;
        }
        .language-dropdown .lang-option.active {
            background-color: #e8f0fe;
            font-weight: 600;
        }
        .language-dropdown .lang-option .flag-icon {
            width: 24px;
            height: 16px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        .language-dropdown .lang-option .lang-name {
            font-size: 14px;
            flex: 1;
        }
        .language-dropdown .lang-option .check-icon {
            color: #2b73d2;
            font-size: 14px;
            display: none;
        }
        .language-dropdown .lang-option.active .check-icon {
            display: inline-block;
        }

        .footer {
            background: #0b1a2e;
            color: #cbd5e1;
            padding: 50px 20px 30px;
            margin-top: 60px;
        }
        .footer-container {
            max-width: 1320px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
        }
        .footer h4 {
            color: #fff;
            margin-bottom: 15px;
            font-size: 18px;
        }
        .footer ul {
            list-style: none;
        }
        .footer ul li {
            margin-bottom: 8px;
        }
        .footer ul li a {
            color: #cbd5e1;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s;
        }
        .footer ul li a:hover {
            color: #fff;
        }
        .footer-bottom {
            text-align: center;
            border-top: 1px solid #1e2f44;
            padding-top: 25px;
            margin-top: 30px;
            font-size: 14px;
            color: #8a9bb5;
        }

        @media (max-width: 1024px) {
            .language-switcher { bottom: 25px; left: 25px; }
            .language-dropdown { bottom: 80px; left: 25px; }
        }
        @media (max-width: 992px) {
            .content-layout {
                grid-template-columns: 1fr;
            }
            .sidebar-card {
                position: static;
            }
            .search-row {
                grid-template-columns: 1fr 1fr;
            }
            .hero-mini {
                height: 200px;
            }
        }
        @media (max-width: 768px) {
            .language-switcher {
                position: fixed;
                bottom: 20px;
                left: 20px;
                margin: 0;
                display: inline-flex;
                width: fit-content;
            }
            .language-dropdown {
                bottom: 75px;
                left: 20px;
                min-width: 160px;
            }
        }
        @media (max-width: 640px) {
            .search-row {
                grid-template-columns: 1fr;
            }
            .search-row-2col {
                grid-template-columns: 1fr;
            }
            .search-card {
                padding: 1.2rem;
            }
            .search-actions {
                flex-direction: column;
            }
            .btn-primary,
            .btn-secondary {
                width: 100%;
                text-align: center;
            }
            .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }