/* Home hotel search — matches visa / package booking widget */
.hhs-wrap {
    --hhs-brand: #0f2744;
    --hhs-accent: #0071e2;
    --hhs-accent-hover: #005bbd;
    --hhs-border: #e2e8f0;
    --hhs-radius: 0.875rem;
}

.hhs-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    padding-left: 0.65rem;
    border-left: 3px solid #7c3aed;
}

.hhs-heading i { color: #f59e0b; }

.hhs-sub {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem;
    max-width: 42rem;
    line-height: 1.5;
}

.hhs-search-card {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--hhs-border);
    border-radius: calc(var(--hhs-radius) + 0.15rem);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(15, 39, 68, 0.07);
}

@media (min-width: 640px) {
    .hhs-search-card { padding: 1.15rem 1.25rem; }
}

.hhs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
    .hhs-grid--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .hhs-grid--primary { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); }
}

.hhs-field label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 0.35rem;
}

.hhs-field-icon {
    color: var(--hhs-accent);
    font-size: 0.75rem;
}

.hhs-req { color: #ef4444; font-weight: 700; }

.hhs-field input[type="date"],
.hhs-field input[type="text"],
.hhs-field .hhs-guest-btn {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    background: #fff;
    font-size: 0.9375rem;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hhs-field input:focus,
.hhs-field .hhs-guest-btn:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(0, 113, 226, 0.15);
}

.hhs-field--wide { position: relative; }

.hhs-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 9999;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    max-height: 14rem;
    overflow-y: auto;
}

.hhs-suggest.hidden { display: none; }

.hhs-guest-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
}

.hhs-guest-btn i.fa-user-friends { color: #94a3b8; }

.hhs-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.hhs-nights-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
}

.hhs-nights-pill.hidden { display: none; }

.hhs-popular-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-right: 0.15rem;
}

.hhs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hhs-chip {
    border: 1px solid #dbeafe;
    background: #fff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hhs-chip:hover,
.hhs-chip.is-active {
    background: #0071e2;
    border-color: #0071e2;
    color: #fff;
}

.hhs-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .hhs-actions { flex-direction: row; align-items: center; }
}

.hhs-btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 0.65rem;
    background: var(--hhs-accent);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 113, 226, 0.28);
    transition: background 0.15s ease, transform 0.1s ease;
}

.hhs-btn-search:hover { background: var(--hhs-accent-hover); }
.hhs-btn-search:active { transform: translateY(1px); }

.hhs-validation {
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.875rem;
    line-height: 1.45;
}

.hhs-validation.is-visible { display: flex; }

.hhs-field.is-invalid input,
.hhs-field.is-invalid .hhs-guest-btn {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}
