/* Ahdjez hotel flow */

:root {
    --hotels-primary: var(--ds-color-primary, #23366e);
    --hotels-primary-light: var(--ds-color-primary-light, #3e8fb8);
    --hotels-accent: #febb02;
    --hotels-border: #e2e8f0;
    --hotels-text: #1e293b;
    --hotels-muted: #64748b;
    --hotels-surface: #f8fafc;
    --hotels-radius: 12px;
}

.hotels-page {
    background: var(--hotels-surface);
}

/* ── Hero & header ─────────────────────────────────────────────── */

.hotels-hero,
.hotels-header {
    background: linear-gradient(135deg, var(--hotels-primary) 0%, var(--hotels-primary-light) 100%);
    color: #fff;
    position: relative;
}

.hotels-hero--search {
    padding: 3.5rem 0 5.5rem;
}

.hotels-header {
    padding: 2.4rem 0;
}

.hotels-hero h1,
.hotels-header h1,
.hotels-header h2 {
    font-weight: 700;
    letter-spacing: -.01em;
}

.hotels-hero--search h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 1rem 0 .75rem;
}

.hotels-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    font-size: .85rem;
    font-weight: 500;
}

.hotels-hero-lead {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: 1.05rem;
}

.hotels-shell {
    margin-top: -2.75rem;
    position: relative;
    z-index: 3;
    padding-bottom: 1rem;
}

/* ── Booking-style search strip ────────────────────────────────── */

.hotels-search-form {
    position: relative;
}

.hotels-strip {
    display: flex;
    align-items: stretch;
    min-height: 56px;
    background: #fff;
    border: 3px solid var(--hotels-accent);
    border-radius: 8px;
    overflow: visible;
}

.hotels-strip__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem 1rem;
    border-inline-start: 1px solid var(--hotels-accent);
}

.hotels-strip__item:first-child {
    border-inline-start: 0;
}

.hotels-strip__item--dest {
    flex: 1.2 1 0;
}

.hotels-strip__item--dates {
    flex: 1.3 1 0;
}

.hotels-strip__item--guests {
    flex: 1 1 0;
}

.hotels-strip__icon {
    flex-shrink: 0;
    color: var(--hotels-muted);
    font-size: 1.1rem;
}

.hotels-strip__field,
.hotels-strip__dates {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.hotels-strip__dates {
    gap: .35rem;
}

.hotels-strip__sep {
    color: var(--hotels-muted);
    font-size: .85rem;
    flex-shrink: 0;
}

.hotels-strip__field .form-select,
.hotels-strip__dates .form-control {
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    min-height: 36px;
    height: 36px;
    color: var(--hotels-text);
    font-size: .95rem;
    font-weight: 500;
    background: transparent;
    box-shadow: none;
}

.hotels-strip__field .form-select {
    cursor: pointer;
}

.hotels-strip__dates .form-control {
    flex: 1;
    min-width: 0;
}

.hotels-strip__field .form-select:focus,
.hotels-strip__dates .form-control:focus {
    border: 0;
    box-shadow: none;
    outline: none;
}

.hotels-strip__item:focus-within {
    background: #fafafa;
}

.hotels-guests-trigger {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hotels-text);
    font-size: .95rem;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
}

.hotels-guests-trigger .hotels-strip__icon {
    margin-inline-end: 0;
}

.hotels-strip__chevron {
    margin-inline-start: auto;
    color: var(--hotels-muted);
    font-size: .7rem;
}

.hotels-guests-popover {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 20;
    min-width: 260px;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--hotels-border);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
}

.hotels-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
    color: var(--hotels-text);
    font-size: .9rem;
    font-weight: 500;
}

.hotels-guest-row + .hotels-guest-row {
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px solid var(--hotels-border);
}

.hotels-strip__submit {
    flex: 0 0 auto;
    align-self: center;
    margin: 4px;
    padding: 0 1.75rem;
    min-height: calc(100% - 8px);
    border: 0;
    border-radius: 6px;
    background: var(--hotels-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease;
}

.hotels-strip__submit:hover {
    background: var(--hotels-primary-light);
}

.hotels-strip__submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.hotels-search-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
}

.hotels-meta-label {
    color: var(--hotels-muted);
    font-size: .8rem;
    font-weight: 600;
}

.hotels-star-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.hotels-field-error {
    position: absolute;
    bottom: -1.1rem;
    inset-inline-start: 1rem;
    color: #dc3545;
    font-size: .7rem;
    white-space: nowrap;
}

.hotels-panel,
.hotels-card {
    background: #fff;
    border: 1px solid var(--hotels-border);
    border-radius: var(--hotels-radius);
    box-shadow: 0 4px 24px rgba(15, 23, 42, .08);
}

.hotels-panel-header {
    border-bottom: 1px solid #edf1f6;
    padding: 1rem 1.25rem;
}

.hotels-panel-body {
    padding: 1.25rem;
}

.star-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-toggle label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1px solid var(--hotels-border);
    border-radius: 999px;
    padding: .35rem .65rem;
    color: var(--hotels-muted);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 500;
    transition: .15s ease;
}

.star-toggle label i {
    color: #f59e0b;
    font-size: .72rem;
}

.star-toggle input:checked + label {
    border-color: var(--hotels-primary);
    background: rgba(35, 54, 110, .08);
    color: var(--hotels-primary);
}

.hotels-kicker,
.hotels-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    font-size: .82rem;
}

.hotels-kicker {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    padding: .45rem .8rem;
}

.hotels-chip {
    border: 1px solid var(--hotels-border);
    background: #fff;
    color: var(--hotels-text);
    padding: .35rem .75rem;
    font-weight: 500;
    cursor: pointer;
    transition: .15s ease;
    font-family: inherit;
}

.hotels-chip:hover,
.hotels-chip.active {
    border-color: var(--hotels-primary);
    background: rgba(35, 54, 110, .08);
    color: var(--hotels-primary);
}

.hotels-counter {
    display: inline-grid;
    grid-template-columns: 28px 32px 28px;
    align-items: center;
    border: 1px solid var(--hotels-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--hotels-surface);
}

.hotels-counter button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--hotels-primary);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
}

.hotels-counter button:hover {
    background: rgba(35, 54, 110, .08);
}

.hotels-counter span {
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
}

/* ── Trust strip ───────────────────────────────────────────────── */

.hotels-trust {
    padding: 3rem 0 4rem;
    background: var(--hotels-surface);
}

.hotels-trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--hotels-radius);
    background: #fff;
    border: 1px solid var(--hotels-border);
    height: 100%;
}

.hotels-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(35, 54, 110, .1);
    color: var(--hotels-primary);
    font-size: 1.1rem;
}

.hotels-trust-icon--success { background: rgba(40, 167, 69, .12); color: #28a745; }
.hotels-trust-icon--warning { background: rgba(255, 193, 7, .15); color: #d97706; }
.hotels-trust-icon--info { background: rgba(23, 162, 184, .12); color: #17a2b8; }

.hotels-trust-item strong {
    display: block;
    color: var(--hotels-text);
    font-size: .92rem;
    font-weight: 600;
}

.hotels-trust-item span {
    display: block;
    color: var(--hotels-muted);
    font-size: .8rem;
}

/* ── Results page ──────────────────────────────────────────────── */

.page-hotels-results {
    background: var(--hotels-surface);
}

.hotels-results-search .hotels-strip {
    box-shadow: 0 4px 20px rgba(15, 23, 42, .08);
}

.hotels-results-toolbar .btn-group .btn.active {
    background: var(--hotels-primary);
    border-color: var(--hotels-primary);
    color: #fff;
}

.hotels-filter-stars .form-check {
    margin-bottom: .45rem;
}

.hotel-result-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--hotels-border);
    border-radius: var(--hotels-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hotel-result-card:hover {
    transform: translateY(-3px);
    border-color: var(--hotels-primary-light);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
}

.hotel-result-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hotel-result-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-result-card__badge {
    position: absolute;
    top: .65rem;
    inset-inline-start: .65rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: .72rem;
}

.hotel-result-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.hotel-result-card__title {
    margin-bottom: .45rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hotels-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-result-card__address {
    margin-bottom: .5rem;
    color: var(--hotels-muted);
    font-size: .82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-result-card__address i {
    color: var(--hotels-primary);
    margin-inline-end: .25rem;
}

.hotel-result-card__meta {
    margin-bottom: .75rem;
}

.hotel-result-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
}

.hotel-result-card__price strong {
    display: block;
    color: #0b7f5c;
    font-size: 1.05rem;
}

.hotel-result-card__price small {
    color: var(--hotels-muted);
    font-size: .72rem;
}

.hotels-map--results {
    height: 520px;
}

.hotel-card {
    border: 1px solid #e8edf3;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(20, 35, 60, .06);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hotel-card:hover,
.hotel-card.selected {
    border-color: var(--hotels-primary);
    box-shadow: 0 16px 34px rgba(20, 35, 60, .12);
    transform: translateY(-2px);
}

.hotel-img {
    width: 136px;
    min-width: 136px;
    height: 100%;
    object-fit: cover;
}

.hotels-price {
    color: #0b7f5c;
    font-weight: 800;
    white-space: nowrap;
}

.hotels-muted-pill,
.hotels-price-pill,
.hotels-distance {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    font-size: .78rem;
}

.hotels-price-pill {
    background: #e9f8f2;
    color: #0b7f5c;
}

.hotels-muted-pill {
    background: #f1f4f8;
    color: #667789;
}

.hotels-distance {
    background: rgba(35, 54, 110, .08);
    color: var(--hotels-primary);
}

.hotels-map {
    height: 620px;
    border-radius: 8px;
    border: 1px solid #e8edf3;
}

.hotels-sticky {
    position: sticky;
    top: 88px;
}

.hotels-list-scroll {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-inline-end: 4px;
}

.hotels-room {
    border: 1px solid #e8edf3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.hotels-room-head {
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    padding: .9rem 1rem;
}

.hotels-price-box {
    background: #f3faf8;
    border-inline-end: 1px solid #e8edf3;
}

.hotels-status {
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #fff;
}

.hotels-status.pending {
    background: linear-gradient(135deg, var(--hotels-primary), var(--hotels-primary-light));
}

.hotels-status.confirmed {
    background: linear-gradient(135deg, #0b7f5c, #19a974);
}

.hotels-status.failed {
    background: linear-gradient(135deg, #b42318, #d92d20);
}

.hotels-code {
    display: inline-block;
    margin-top: .75rem;
    padding: .45rem 1rem;
    border: 1px dashed rgba(255, 255, 255, .75);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
    letter-spacing: 0;
}

.hotels-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf1f6;
    padding: .7rem 0;
}

.hotels-detail-row:last-child {
    border-bottom: 0;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .85rem;
}

.step.done { background: #0b7f5c; color: #fff; }
.step.active { background: var(--hotels-primary); color: #fff; }
.step.todo { background: #e8edf3; color: #74869a; }

.step-line {
    flex: 1;
    height: 2px;
    background: #dbe5ef;
}

.step-line.done {
    background: #0b7f5c;
}

@media (max-width: 991px) {
    .hotels-strip {
        flex-wrap: wrap;
        overflow: hidden;
    }

    .hotels-strip__item {
        flex: 1 1 calc(50% - 1px);
        border-inline-start: 0;
        border-top: 1px solid var(--hotels-accent);
    }

    .hotels-strip__item:nth-child(1),
    .hotels-strip__item:nth-child(2) {
        border-top: 0;
    }

    .hotels-strip__item:nth-child(even):not(:first-child) {
        border-inline-start: 1px solid var(--hotels-accent);
    }

    .hotels-strip__item--dest {
        flex: 1 1 100%;
        border-inline-start: 0;
    }

    .hotels-strip__submit {
        flex: 1 1 100%;
        min-height: 48px;
        margin: 4px;
    }
}

@media (max-width: 768px) {
    .hotels-hero--search {
        padding: 2.5rem 0 4rem;
    }

    .hotels-shell {
        margin-top: -2rem;
    }

    .hotels-strip {
        flex-direction: column;
    }

    .hotels-strip__item {
        flex: 1 1 auto;
        border-inline-start: 0;
        border-top: 1px solid var(--hotels-accent);
    }

    .hotels-strip__item:first-child {
        border-top: 0;
    }

    .hotels-strip__dates {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }

    .hotels-strip__sep {
        display: none;
    }

    .hotels-strip__submit {
        width: calc(100% - 8px);
    }

    .hotel-img {
        width: 100%;
        height: 160px;
    }

    .hotels-map {
        height: 420px;
    }

    .hotels-list-scroll {
        max-height: none;
    }
}
