/* Filtro por continente y buscador (home, gallery, saved locations) */
        /* Continent Filters */
        .continent-filters {
            display: flex;
            gap: 2px;
            margin: 0px 0 8px 0 !important;
            padding-top: 0;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .filter-btn {
            padding: 6px 12px;
            background-color: transparent;
            border: none;
            color: #a8a8a8;
            font-size: 0.9rem;
            font-weight: 300;
            cursor: pointer;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            backdrop-filter: blur(10px);
        }
        
        .filter-btn.active {
            border-radius: 20px;
            background-color: #c4c4c4;
            border: none;
            color: var(--white);
            background-image: none;
        }
        
        .filter-btn.hidden {
            display: none;
        }
        
        /* Search button specific styles */
        .filter-btn.search-btn {
            position: relative;
            width: 36px;
            height: 36px;
            padding: 0;
            min-width: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .filter-btn.search-btn .search-input-icon {
            position: static;
            left: auto;
            top: auto;
            transform: none;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #d9d9d9;
            border-radius: 50%;
            color: var(--black);
            pointer-events: none;
            margin: 0;
        }
        
        .filter-btn.search-btn svg {
            width: 18px;
            height: 18px;
        }
        
        .filter-btn.search-btn.active {
            background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
            border-color: var(--gray-400);
            box-shadow: 0 4px 12px rgba(156, 163, 175, 0.4);
        }
        
        .search-filter-wrapper {
            position: relative;
        }
        
        .search-panel {
            position: absolute;
            top: -25px;
            right: -10px;
            left: -10px;
            width: auto;
            z-index: 10;
            padding: 0px;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transform: translate(0, 0);
            transition: background-color 0.6s ease, border-color 0.6s ease, color 0.6s ease, box-shadow 0.6s ease, transform 0.6s ease, opacity 0.6s ease;
        }
        
        .search-panel.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translate(0, 0);
        }
        
        .search-panel-content {
            border: none;
        }
        
        .search-panel-close {
            background: none;
            border: none;
            color: var(--gray-400);
            font-size: 22px;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 15px;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
        }
        
        .search-panel-body {
            padding: 16px 10px 18px 10px;
        }

        .search-input-wrapper {
            position: relative;
        }

        .search-input-icon {
            position: absolute;
            left: 7px;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #d9d9d9;
            border-radius: 50%;
            color: var(--black);
            pointer-events: none;
        }
        
        .search-input {
            width: 100%;
            padding: 1.0rem 40px 1.0rem 60px;
            background: #bfbfbf;
            border: none;
            border-radius: 1.5rem;
            color: var(--black);
            font-size: 1.0rem;
            outline: none;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
        }

        .search-input-clear {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            width: var(--tap-size);
            height: var(--tap-size);
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            color: var(--white);
            cursor: pointer;
            padding: 0;
            pointer-events: auto;
        }

        .search-input-clear:hover {
            color: var(--gray-100);
        }
        
        .search-input:focus {
        }
        
        .search-input::placeholder {
            color: #f3f3f5;
        }
        
        .search-results {
            margin-top: 8px;
            max-height: 340px;
            overflow-y: auto;
            background: var(--white);
            border-radius: 18px;
            box-shadow: 0 8px 24px rgba(40, 23, 115, 0.14);
        }

        .search-results:empty {
            display: none;
        }

        .search-result-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-bottom: 1px solid #f0f0f3;
            text-decoration: none;
            color: inherit;
            -webkit-tap-highlight-color: rgba(72, 56, 140, 0.08);
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:active {
            background: #f5f3fb;
        }

        .search-result-thumb {
            flex: none;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            overflow: hidden;
            background: var(--gray-200);
            display: block;
        }

        .search-result-thumb {
            position: relative;
        }

        .search-result-thumb img,
        .search-result-thumb video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            pointer-events: none;
        }

        .search-result-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .search-result-name {
            color: #111827;
            font-weight: 600;
            font-size: 1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .search-result-country {
            color: var(--gray-500);
            font-size: 0.85rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .search-match {
            background: none;
            color: #48388c;
            font-weight: 700;
        }

        .search-result-here {
            display: inline-block;
            margin-left: 8px;
            padding: 1px 8px;
            border-radius: 10px;
            background: #dcfce7;
            color: #15803d;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .search-result-flag {
            flex: none;
        }

        .search-result-risk {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--red-600);
            color: var(--white);
            font-size: 0.8rem;
            font-weight: 800;
            line-height: 20px;
            text-align: center;
        }

        .search-result-chevron {
            flex: none;
            color: var(--gray-400);
        }

        .no-results {
            text-align: center;
            color: var(--gray-500);
            padding: 20px;
        }
