/* === STILURI CĂUTARE JIMJOB === */
/* Importat din css/search_jimjob.css */
:root {
    --primary: #00bfa6;
    --bg: #fff;
    /* Fundal alb in loc de gri deschis */
    --card: #fff;
    --text: #1f2933;
}

/* =====================
   SEARCH BOX 
   ===================== */
.header-search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.header-search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.search-input {
    border: none;
    outline: none;
    font-size: 16px;
    flex: 1;
    background: transparent;
    color: #fff;
    padding-left: 10px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Dropdown Orase - Integrat */
.city-select {
    border: none;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 10px;
    padding-right: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    /* FIX: Prevent city select from shrinking and cutting off text */
    flex-shrink: 0;
    max-width: 45%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* =====================
   LISTA REZULTATE 
   ===================== */
#searchResultsDropdown.search-results-dropdown {
    margin-top: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10000;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-height: 80vh;
    /* Permite scroll daca e prea lung */
    overflow-y: auto;

    /* Revert la normal list logic for cards */
    display: block;
}

/* =====================
   CARD REZULTAT 
   ===================== */
.search-card {
    /* Modern Card Style */
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    /* Default subtle border */
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Lift & Highlight */
.search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 191, 166, 0.15);
    /* Turquoise shadow tint */
    border-color: #00bfa6;
    /* Turquoise border on hover */
}

/* Left Visual (Image) */
.search-card-visual {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.search-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Ensure it's visible now */
    transition: transform 0.3s ease;
}

.search-card:hover .search-card-img {
    transform: scale(1.1);
}

/* Content Details */
.search-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.search-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.verify-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Meta info (Location + Badges) */
.search-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #718096;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 500;
}

.location-badge i {
    color: #e53e3e;
    /* Red/Danger color for pin */
}

/* Badges */
.search-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.badge-pro {
    background: linear-gradient(135deg, #00bfa6 0%, #009e89 100%);
    color: #fff;
}

.badge-promovat {
    background: linear-gradient(135deg, #ffd700 0%, #ffca28 100%);
    color: #333;
}

/* Right Action (Arrow) */
.search-card-action {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.search-card:hover .search-card-action {
    background: #00bfa6;
    color: #fff;
    transform: translateX(2px);
}

/* Cleanup old selectors not used anymore, or map them */
.search-card-desc {
    display: none;
    /* Hide old description container if present */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .header-search-wrapper {
        padding: 4px 10px;
        max-width: calc(100vw - 125px);
        height: 44px;
    }

    .city-select {
        padding-right: 5px;
        margin-right: 5px;
        font-size: 0.85rem;
    }

    .search-input {
        padding-left: 5px;
        font-size: 0.9rem;
    }

    .search-card {
        padding: 12px;
        margin-bottom: 10px;
    }
}