/* ============================================================
   Hotel Search Page – /hoteli
   ============================================================ */
:root {
    --hs-blue: #00164d;
    --hs-lightblue: #003b94;
    --hs-yellow: #feb700;
    --hs-radius: 10px;
}

/* ── Hero ── */
.hs-hero {
    background: linear-gradient(135deg, var(--hs-blue) 0%, var(--hs-lightblue) 100%);
    color: #fff;
    padding: 48px 0 70px;
    text-align: center;
}
.hs-hero-title { font-size: 2rem; font-weight: 800; margin-bottom: .35rem; }
.hs-hero-sub   { font-size: 1.05rem; opacity: .8; margin: 0; }

/* ── Search form wrap ── */
.hs-form-wrap {
    position: relative;
    margin-top: -36px;
    z-index: 20;
    padding-bottom: 12px;
}
.hs-form-wrap .container { max-width: 1200px; }

#hs-form {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 36px rgba(0,0,0,.12);
    padding: 20px 24px;
}

.hs-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.hs-field { flex: 1 1 0; min-width: 0; position: relative; }
.hs-field-dest { flex: 1.3; }
.hs-field-date { flex: 1.2; }
.hs-field-rooms { flex: 1.2; }
.hs-field-btn { flex: 0 0 auto; }

.hs-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 5px;
}

/* Shared trigger / input look */
.hs-input,
.hs-dest-trigger,
.hs-rooms-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--hs-radius);
    background: #fff;
    font-size: .92rem;
    color: #1f2937;
    cursor: pointer;
    transition: border-color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hs-input:focus,
.hs-dest-trigger:hover,
.hs-rooms-trigger:hover { border-color: var(--hs-lightblue); }

.hs-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.hs-chev { margin-left: auto; font-size: .7rem; color: #9ca3af; transition: transform .2s; }

.hs-period-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--hs-lightblue);
    color: #fff;
    padding: 0.25em 0.6em;
}
.hs-period-badge.d-none { display: none !important; }
.hs-period-badge:not(.d-none) { display: inline-flex !important; }

/* ── Search button ── */
.hs-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    background: var(--hs-yellow);
    color: var(--hs-blue);
    border: none;
    border-radius: var(--hs-radius);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.hs-search-btn:hover { background: #e5a600; }
.hs-search-btn:active { transform: scale(.97); }

/* ── Destination dropdown ── */
.hs-dest-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    border: 1px solid #e5e7eb;
    z-index: 50;
    display: none;
    max-height: 400px;
    overflow: hidden;
    flex-direction: column;
}
.hs-dest-panel.open { display: flex; }

.hs-dest-inner {
    padding: 14px 16px 8px;
    overflow-y: auto;
    max-height: 320px;
}
.hs-dest-country { margin-bottom: 6px; }

.hs-dest-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
    transition: background .1s;
}
.hs-dest-check:hover { background: #f3f4f6; }
.hs-dest-check input { accent-color: var(--hs-lightblue); width: 16px; height: 16px; }
.hs-dest-check-child { padding-left: 32px; }
.hs-dest-count { font-size: .78rem; color: #9ca3af; }

.hs-dest-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #f1f1f1;
}
.hs-dest-clear {
    flex: 1;
    padding: 8px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: #6b7280;
}
.hs-dest-apply {
    flex: 1;
    padding: 8px;
    background: var(--hs-lightblue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}
.hs-dest-apply:hover { background: #002d73; }

/* ── Rooms dropdown ── */
.hs-rooms-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    border: 1px solid #e5e7eb;
    z-index: 50;
    display: none;
}
.hs-rooms-panel.open { display: block; }

.hs-rooms-inner { padding: 14px 16px 4px; max-height: 360px; overflow-y: auto; }

.hs-room-card { border: 1px solid #f1f1f1; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.hs-room-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hs-room-header strong { color: var(--hs-blue); font-size: .9rem; }
.hs-room-remove {
    width: 24px; height: 24px; border-radius: 50%; border: none;
    background: #fee2e2; color: #dc2626; font-size: .7rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.hs-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: .88rem;
}

.hs-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hs-step-btn {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid var(--hs-lightblue); color: var(--hs-lightblue); background: #fff;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .12s; line-height: 1;
}
.hs-step-btn:hover { background: var(--hs-lightblue); color: #fff; }
.hs-step-val { width: 28px; text-align: center; font-weight: 700; font-size: .95rem; }

.hs-child-ages { margin-top: 6px; }
.hs-child-age-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .82rem; }
.hs-child-age-row label { min-width: 54px; color: #6b7280; }
.hs-child-age-row select { border: 1px solid #e5e7eb; border-radius: 6px; padding: 3px 6px; font-size: .82rem; }

.hs-rooms-footer { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid #f1f1f1; }
.hs-room-add-btn {
    flex: 1;
    padding: 8px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--hs-blue);
}
.hs-room-add-btn:disabled { opacity: .4; cursor: not-allowed; }
.hs-rooms-done {
    flex: 1;
    padding: 8px;
    background: var(--hs-yellow);
    color: var(--hs-blue);
    border: none;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}

/* ── Results area ── */
.hs-results-container { max-width: 1200px; padding-top: 12px; padding-bottom: 40px; }

/* Prompt when no search has been run yet */
.hs-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 24px;
    color: #4b5563;
}
.hs-prompt-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 59, 148, 0.08) 0%, rgba(0, 22, 77, 0.06) 100%);
    color: var(--hs-lightblue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 2rem;
}
.hs-prompt-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hs-blue);
    margin-bottom: 0.5rem;
}
.hs-prompt-text {
    font-size: 1rem;
    max-width: 420px;
    margin: 0;
    line-height: 1.5;
}

.hs-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: .9rem;
    color: #4b5563;
}
.hs-sort-select { width: auto; max-width: 220px; }

.hs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 0;
    color: #6b7280;
    font-size: .95rem;
}

.hs-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 20px;
    color: #6b7280;
    text-align: center;
}
.hs-no-results i { font-size: 2.5rem; margin-bottom: 12px; opacity: .3; }

/* ── Hotel Card ── */
.hs-card {
    display: flex;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 16px;
    transition: box-shadow .2s, transform .15s;
    border: 1px solid #f1f1f1;
}
.hs-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

.hs-card-img-wrap {
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}
.hs-card-img-wrap a { display: block; width: 100%; height: 100%; }
.hs-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.hs-card:hover .hs-card-img-wrap img { transform: scale(1.04); }

.hs-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2.5rem;
}

.hs-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    z-index: 2;
}
.hs-badge-promo { background: #dc3545; color: #fff; top: 10px; left: auto; right: 10px; }
.hs-badge-new   { background: var(--hs-yellow); color: var(--hs-blue); }

.hs-card-brand {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
}
.hs-card-brand img { height: 28px; width: auto; background: rgba(255,255,255,.85); border-radius: 4px; padding: 2px 6px; }

.hs-card-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.hs-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--hs-blue);
}
.hs-card-title a { color: inherit; text-decoration: none; }
.hs-card-title a:hover { text-decoration: underline; }
.hs-card-stars { color: #f59e0b; font-size: .78rem; margin-left: 6px; }

.hs-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 8px;
    font-size: .82rem;
    color: #6b7280;
}
.hs-card-meta i { color: var(--hs-lightblue); }
.hs-card-meta .rx-meal-icon { display: inline-flex; width: 14px; height: 14px; color: var(--hs-lightblue); vertical-align: middle; }
.hs-card-meta .rx-meal-icon svg { width: 100%; height: 100%; fill: currentColor; }

.hs-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    margin-bottom: 8px;
}
.hs-rating-stars { color: #f59e0b; font-size: .68rem; display: flex; gap: 0; }

.hs-card-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.hs-card-price-label { font-size: .72rem; color: #9ca3af; }
.tour-card-price-period { font-size: .8em; font-weight: 500; color: #6b7280; white-space: nowrap; }

/* Chosen dates badge – new row, small font */
.tour-card-dates-row {
    margin-bottom: 0.5rem;
}
.tour-card-dates-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}
.hs-card-price-value { font-size: 1.25rem; font-weight: 800; color: var(--hs-blue); line-height: 1.2; }
.hs-card-price-bgn   { font-size: .85rem; font-weight: 600; color: #6b7280; }
.hs-card-price-note  { font-size: .7rem; color: #9ca3af; }

.hs-card-actions { display: flex; gap: 8px; flex-shrink: 0; }

.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.hs-btn-outline {
    background: #fff;
    color: var(--hs-lightblue);
    border: 1.5px solid var(--hs-lightblue);
}
.hs-btn-outline:hover { background: var(--hs-lightblue); color: #fff; }

.hs-btn-primary {
    background: var(--hs-lightblue);
    color: #fff;
    border: 1.5px solid var(--hs-lightblue);
}
.hs-btn-primary:hover { background: #002d73; border-color: #002d73; }

/* ── Card period & discount (inside tour-card-footer) ── */
.hs-card-period-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: .78rem;
    color: #4b5563;
}
.hs-card-period {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #374151;
    font-weight: 500;
}
.hs-card-period i { color: var(--hs-lightblue); font-size: .72rem; }
.hs-card-nights-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    background: #eef2ff;
    color: var(--hs-lightblue);
    font-weight: 700;
    font-size: .72rem;
    white-space: nowrap;
}
.hs-card-discount {
    margin-bottom: 6px;
}
.hs-card-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-size: .8rem;
    font-weight: 700;
}

/* Discount badge over photo – bottom-left */
.tour-card-badges-bottom-left {
    top: auto;
    right: auto;
    left: 10px;
    bottom: 10px;
    justify-content: flex-start;
}
.hs-discount-badge-over-img {
    background: #dcfce7 !important;
    color: #166534 !important;
    font-size: .8rem !important;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}

/* ── Results toolbar: compact height, spacing from left/right ── */
.tours-content .tours-toolbar {
    padding: 0.35rem 1rem;
    margin-bottom: 0.25rem !important;
}
.hs-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.15rem 0;
    margin-bottom: 0 !important;
    flex-wrap: wrap;
}
.hs-results-count-text {
    font-size: 1rem;
    color: #374151;
}
.hs-results-count-text strong {
    color: var(--hs-blue);
    font-weight: 700;
}
.hs-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hs-sort-wrap label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
}
.hs-sort-select {
    min-width: 200px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    color: #1f2937;
    background: #fff;
    cursor: pointer;
}
.hs-sort-select:focus {
    border-color: var(--hs-lightblue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 59, 148, 0.1);
}

/* ── Load more results button ── */
.hs-load-more-wrap {
    text-align: center;
    padding: 2rem 0;
}
.hs-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--hs-lightblue) 0%, var(--hs-blue) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0, 59, 148, 0.25);
}
.hs-load-more-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 59, 148, 0.35);
}
.hs-load-more-btn:active {
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .hs-form-row { flex-direction: column; }
    .hs-field { flex: 1 1 100% !important; }
    .hs-field-btn { width: 100%; }
    .hs-search-btn { width: 100%; }
    .hs-dest-panel { min-width: 100%; }
}

@media (max-width: 767px) {
    .hs-hero { padding: 32px 0 56px; }
    .hs-hero-title { font-size: 1.5rem; }

    .hs-card { flex-direction: column; }
    .hs-card-img-wrap { flex: none; height: 200px; }
    .hs-card-footer { flex-direction: column; align-items: stretch; gap: 10px; }
    .hs-card-actions { justify-content: stretch; }
    .hs-card-actions .hs-btn { flex: 1; text-align: center; }

    .hs-dest-panel { left: -10px; right: -10px; min-width: auto; }
    .hs-rooms-panel { min-width: auto; }
}
