/* Search Page Specific Styles */
.country-filter-btn {
    padding: 12px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.country-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.country-filter-btn:active {
    transform: scale(0.95);
}

.country-filter-btn .flag-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .country-filter-btn {
        font-size: 12px;
        min-height: 45px;
        padding: 8px 4px;
    }
    
    .country-filter-btn img {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}

/* Blurred profile styles for non-authenticated users */
.inner-image-img.profile-image-blurred {
    filter: blur(10px);
    -webkit-filter: blur(10px);
    transition: filter 0.3s ease;
    cursor: pointer;
    /* Maintain same dimensions as normal images */
    width: 260px !important;
    height: auto;
    max-height: 340px;
    pointer-events: auto;
    z-index: 8; /* Same as original image z-index */
}

.profile-block:hover .inner-image-img.profile-image-blurred {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    cursor: pointer;
}

/* Make profile-block container relative for overlay positioning */
.profile-block {
    position: relative !important;
}

/* Overlay with login prompt - styled as button */
.profile-overlay {
    position: absolute;
    /* Position in the middle of the image area */
    top: 135px; /* Half of 270px image height */
    left: 130px; /* Half of 260px image width */
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
    z-index: 15; /* Higher than image z-index of 8 */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.profile-overlay:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.profile-overlay .lock-icon {
    font-size: 16px;
}

.profile-block:hover .profile-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.profile-overlay:hover {
    background: rgba(102, 126, 234, 0.9) !important;
}

/* Fix double dropdown arrows - more specific selectors for modal */
#filterModal .form-select,
.modal .form-select,
select.form-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.25rem !important;
}

/* Remove any conflicting background images */
#filterModal select,
.modal select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Welcome alert box styling */
.welcome-alert {
    background: linear-gradient(135deg, #e3e8ff 0%, #f0e6ff 100%);
    border: 1px solid #c3c9ff;
    color: #2c3e50;
}

.welcome-alert h4 {
    color: #2c3e50;
    font-weight: 700;
}

.welcome-alert p {
    font-size: 18px;
    color: #34495e;
    font-weight: 500;
}

.welcome-alert .btn-primary {
    font-weight: 600;
    background: #667eea;
    border: none;
}

.welcome-alert .btn-outline-primary {
    font-weight: 600;
    color: #667eea;
    border-color: #667eea;
}

/* Country filter button specific styles */
.myanmar-filter {
    background: linear-gradient(135deg, #f0e4ac 0%, #ead894 100%);
    color: #333;
    border: none;
}

.mizoram-filter {
    background: linear-gradient(135deg, #b8e41c 0%, #9ec617 100%);
    color: white;
    border: none;
}

.philippines-filter {
    background: linear-gradient(135deg, #a0dcec 0%, #7bc8de 100%);
    color: white;
    border: none;
}

.indonesia-filter {
    background: linear-gradient(135deg, #ffaccc 0%, #ff8fb3 100%);
    color: white;
    border: none;
}

/* Special filter button styles */
.recently-listed-filter {
    background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
    color: white;
    border: none;
}

.recommended-filter {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}