/**
 * Hospitality Layer for QloApps - hspcore FO styles (presets, filters, party block, badges, price note).
 * Symmetric rules + html[dir="rtl"] overrides in this file (DESIGN §1.4, I18N-03). Classes: .hsp-*.
 *
 * @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
 */

/* LTR islands (numbers, counts) inside RTL pages */
.hsp-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ---------------------------------------------------------------- presets (search panel) */
.hsp-presets {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.4;
}
.hsp-presets-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.hsp-presets-label {
    font-weight: 600;
    margin-right: 4px;
}
.hsp-preset-btn,
.hsp-count-btn {
    border: 1px solid #c7c7c7;
    background: #fff;
    color: #333;
    border-radius: 16px;
    padding: 3px 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}
.hsp-preset-btn:hover,
.hsp-preset-btn:focus,
.hsp-count-btn:hover,
.hsp-count-btn:focus {
    border-color: #1292ff;
    outline: none;
}
.hsp-preset-btn.hsp-active,
.hsp-preset-btn[aria-pressed="true"] {
    background: #1292ff;
    border-color: #1292ff;
    color: #fff;
}
.hsp-party-editor {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fafafa;
    color: #333;
}
.hsp-party-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.hsp-party-counter {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hsp-party-counter-label {
    min-width: 70px;
}
.hsp-count-btn {
    width: 30px;
    padding: 2px 0;
    text-align: center;
}
.hsp-count-value {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
}
.hsp-party-ages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.hsp-party-ages label {
    display: flex;
    flex-direction: column;
    font-weight: normal;
    font-size: 12px;
    margin: 0;
}
.hsp-party-ages select {
    min-width: 76px;
    padding: 2px 4px;
}
.hsp-party-ages select.hsp-missing {
    border-color: #d9534f;
}
.hsp-party-summary {
    margin: 8px 0 0;
}
.hsp-party-error {
    margin: 6px 0 0;
    color: #c9302c;
}
.hsp-party-error:empty,
.hsp-party-summary:empty {
    display: none;
}
.hsp-party-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}
.hsp-group-cta {
    margin: 6px 0 0;
}
.hsp-group-cta a,
.hsp-group-offer a {
    font-weight: 600;
    text-decoration: underline;
}

/* ---------------------------------------------------------------- category results */
.hsp-party-wrap {
    margin-bottom: 15px;
}
.hsp-party-block {
    border: 1px solid #d6e9f8;
    background: #f4faff;
    border-radius: 4px;
    padding: 12px 15px;
}
.hsp-party-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}
.hsp-party-lines {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}
.hsp-party-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 4px 0;
    border-bottom: 1px dashed #d6e9f8;
}
.hsp-party-line-name {
    font-weight: 600;
    flex: 1 1 180px;
}
.hsp-party-line-occ {
    flex: 1 1 180px;
    color: #555;
}
.hsp-party-line-price {
    flex: 0 0 auto;
    margin-left: auto;
}
.hsp-party-total {
    text-align: right;
    margin: 0 0 8px;
}
.hsp-party-form {
    text-align: right;
}
.hsp-split-offer a,
.hsp-group-offer a {
    margin-left: 6px;
}
.hsp-group-offer {
    margin-top: 8px;
}

/* ---------------------------------------------------------------- badges */
.hsp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.hsp-badges-detail {
    margin: 4px 0 8px;
}
.hsp-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eef3f7;
    color: #33475b;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}
.hsp-badge-kind {
    background: #33475b;
    color: #fff;
}
.hsp-badge-sleeps {
    background: #fff4e0;
    color: #6b4a00;
}

/* ---------------------------------------------------------------- filters (left column) */
.hsp-filters .layered_filt label {
    font-weight: normal;
    margin: 0 0 0 4px;
    cursor: pointer;
}

/* ---------------------------------------------------------------- room page note */
.hsp-price-note {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fcfcfc;
    font-size: 13px;
}
.hsp-price-note-title {
    font-weight: 600;
    margin: 0 0 4px;
}
.hsp-price-note ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------------------------------------------------------------- capacity pre-check message */
.hsp-capacity-error {
    color: #c9302c;
    margin: 4px 0 0;
    font-size: 12px;
}

/* ---------------------------------------------------------------- RTL */
html[dir="rtl"] .hsp-presets-label {
    margin-right: 0;
    margin-left: 4px;
}
html[dir="rtl"] .hsp-party-line-price {
    margin-left: 0;
    margin-right: auto;
}
html[dir="rtl"] .hsp-party-total,
html[dir="rtl"] .hsp-party-form {
    text-align: left;
}
html[dir="rtl"] .hsp-split-offer a,
html[dir="rtl"] .hsp-group-offer a {
    margin-left: 0;
    margin-right: 6px;
}
html[dir="rtl"] .hsp-filters .layered_filt label {
    margin: 0 4px 0 0;
}
html[dir="rtl"] .hsp-price-note ul {
    padding-left: 0;
    padding-right: 18px;
}

@media (max-width: 767px) {
    .hsp-party-line-price {
        margin-left: 0;
    }
    .hsp-party-total,
    .hsp-party-form {
        text-align: left;
    }
    html[dir="rtl"] .hsp-party-total,
    html[dir="rtl"] .hsp-party-form {
        text-align: right;
    }
}
