.search-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure full coverage */
    min-width: 100vw;
    min-height: 100vh;
}

.search-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-popup {
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    /* Ensure modal is above overlay */
    z-index: 10000;
}

.search-popup-overlay.active .search-popup {
    transform: scale(1) translateY(0);
}

/* Force full screen coverage */
.search-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
}

/* Ensure body doesn't scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Additional responsive fixes */
@media (max-width: 768px) {
    .search-popup {
        width: 95%;
        max-width: none;
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .search-popup {
        width: 98%;
        padding: 1rem;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
}

.world-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/world-map.png');
    opacity: 0.05;
    z-index: 1;
}

.popup-content {
    position: relative;
    z-index: 2;
}

.popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.popup-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

.your-pick-text {
    color: #22c55e;
    font-family: 'Dancing Script', cursive;
    font-style: italic;
    font-weight: 700;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.popup-search-bar {
    margin-bottom: 2rem;
}

.popup-search-input-container {
    position: relative;
}

.popup-search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.popup-search-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 16px;
    color: #1a202c;
    transition: all 0.3s ease;
    outline: none;
}

.popup-search-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.destination-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.destination-item:hover {
    transform: translateY(-5px);
    background: #f0fdf4;
    border-color: #22c55e;
}

.destination-item.selected {
    background-color: #22c55e;
    color: white;
    border-color: #16a34a;
}

.destination-name {
    font-weight: 600;
    color: #1a202c;
}

.destination-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}
