/* ═══════════════════════════════════════════════════════════
   HEADER SEARCH — MOBIL FULL-SCREEN OVERLAY
   ═══════════════════════════════════════════════════════════ */

/* Trigger button in header (inlocuieste input-ul) */
.header-search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
}
.header-search-trigger .icon-search {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}
.header-search-placeholder {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══ OVERLAY FULL-SCREEN ═══ */
.hs-overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.hs-overlay.open {
    transform: translateY(0);
}

/* Header cu input */
.hs-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.hs-back {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 18px;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.hs-input-wrap {
    flex: 1;
    position: relative;
}
.hs-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 36px 10px 12px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
}
.hs-input:focus {
    border-color: #0057b8;
    box-shadow: 0 0 0 2px rgba(0,87,184,0.15);
}
.hs-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: #e5e7eb;
    border-radius: 50%;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.hs-clear.visible {
    display: flex;
}

/* ═══ CONTENT AREA (scroll) ═══ */
.hs-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
}

/* Sectiune (Vizitate recent, Zone, Hoteluri) */
.hs-section {
    margin-bottom: 16px;
}
.hs-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 2px;
}

/* Card rezultat */
.hs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
.hs-item:active {
    background: #f3f4f6;
}

/* Imagine hotel (thumbnail) */
.hs-item-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}

/* Icon zona/localitate (fara imagine) */
.hs-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

/* Info */
.hs-item-info {
    flex: 1;
    min-width: 0;
}
.hs-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hs-item-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hs-item-stars {
    color: #f59e0b;
    font-size: 11px;
    margin-left: 4px;
}

/* Pret (dreapta) */
.hs-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Separator */
.hs-separator {
    height: 1px;
    background: #f3f4f6;
    margin: 4px 8px;
}

/* Loading */
.hs-loading {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 13px;
}

/* Empty state */
.hs-empty {
    text-align: center;
    padding: 30px 20px;
    color: #9ca3af;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER SEARCH — DESKTOP DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.hs-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1001;
    padding: 8px 0;
}
.hs-dropdown .hs-section {
    margin-bottom: 8px;
    padding: 0 12px;
}
.hs-dropdown .hs-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding: 4px 0;
}
.hs-dropdown .hs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.hs-dropdown .hs-item:hover {
    background: #f3f4f6;
}
.hs-dropdown .hs-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.hs-dropdown .hs-item-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.hs-dropdown .hs-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.hs-dropdown .hs-item-meta {
    font-size: 11px;
    color: #6b7280;
}
.hs-dropdown .hs-item-stars {
    color: #f59e0b;
    font-size: 10px;
    margin-left: 4px;
}
.hs-dropdown .hs-item-price {
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
    white-space: nowrap;
    flex-shrink: 0;
}
.hs-dropdown .hs-loading,
.hs-dropdown .hs-empty {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
