/*
 * Guest-fit presentation — added by Codex on 2026-07-23.
 *
 * This stylesheet is intentionally separate from the legacy minified styles.
 * It displays a cosmetic group-compatibility score returned by the booking server:
 *   - 1–100% stays bookable and receives an explanatory fit indicator.
 *   - 0% is handled by JavaScript as a distinct, non-bookable group mismatch.
 */

.guest-fit-couples-group.is-disabled {
    opacity: 0.58;
}

.guest-fit-couples-help {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    font-size: 10px;
    line-height: 1.3;
    margin-top: 4px;
    text-align: center;
}

/* Selected labelled-scale design -- added by Codex on 2026-07-23.
 * It stays beneath the price so it does not compete with the existing photo
 * overlays or green booking button. The score remains cosmetic above 0%. */
.guest-fit-meter {
    margin: 10px auto 0;
    max-width: 280px;
    text-align: left;
    width: 88%;
}

.guest-fit-meter__meta {
    align-items: center;
    color: #777;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.guest-fit-meter__meta i {
    color: #90c54b;
    margin-right: 5px;
}

.guest-fit-meter__meta strong {
    color: #52c5fd;
    font-size: 15px;
    font-weight: 600;
}

.guest-fit-meter__track {
    background: #e7edf0;
    height: 7px;
    margin-top: 8px;
    overflow: visible;
    position: relative;
}

.guest-fit-meter__fill {
    background: #90c54b;
    display: block;
    height: 100%;
    position: relative;
}

.guest-fit-meter__fill::after {
    background: #fff;
    border: 2px solid #90c54b;
    border-radius: 50%;
    content: '';
    height: 12px;
    position: absolute;
    right: -6px;
    top: -5px;
    width: 12px;
}

.guest-fit-meter--limited .guest-fit-meter__fill,
.guest-fit-meter--low .guest-fit-meter__fill {
    background: #d4a83f;
}

.guest-fit-meter--limited .guest-fit-meter__fill::after,
.guest-fit-meter--low .guest-fit-meter__fill::after {
    border-color: #d4a83f;
}

.guest-fit-meter__scale {
    color: #a1a1a1;
    display: block;
    font-size: 10px;
    height: 14px;
    margin-top: 6px;
    position: relative;
}

.guest-fit-meter__scale span {
    position: absolute;
    text-align: center;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.guest-fit-meter__scale span:nth-child(1) {
    left: 0;
}

.guest-fit-meter__scale span:nth-child(2) {
    left: 50%;
}

.guest-fit-meter__scale span:nth-child(3) {
    left: 100%;
}

/* A 0% fit is intentionally different from a date-based room-unavailable state. */
.room-incompatible {
    filter: grayscale(100%);
    opacity: 0.62;
    position: relative;
}

.room-incompatible img {
    cursor: not-allowed;
}

.room-incompatible-badge {
    background: rgba(0, 0, 0, 0.82);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    left: 10px;
    padding: 5px 8px;
    position: absolute;
    top: 10px;
}

.guest-fit-not-suitable {
    color: #151515;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.guest-fit-results-note {
    color: #59645d;
    font-size: 13px;
    line-height: 1.45;
    margin: 8px auto 0;
    max-width: 650px;
    text-align: center;
}

/* Group-compatibility explanation panel -- added by Codex on 2026-07-24. */
.guest-fit-info-wrap {
    margin: 14px auto 0;
    max-width: 760px;
    text-align: left;
}

.guest-fit-info-heading {
    align-items: center;
    background: #f5faf6;
    border: 1px solid #d9e7d3;
    border-bottom: 0;
    border-left: 4px solid #90c54b;
    border-radius: 8px 8px 0 0;
    color: #2c5530;
    display: flex;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 15px;
    text-align: left;
    width: 100%;
}

.guest-fit-info-heading i {
    color: #90c54b;
    font-size: 16px;
    margin-right: 7px;
}

.guest-fit-info-panel {
    background: #fff;
    border: 1px solid #d9e7d3;
    border-radius: 0 0 8px 8px;
    color: #59645d;
    font-size: 13px;
    line-height: 1.55;
    padding: 12px 16px 14px;
}

/* Custom hover/click explanation added by Codex on 2026-07-24. */
.guest-fit-inline-info {
    background: transparent;
    border: 0;
    color: #90c54b;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    margin-left: 3px;
    padding: 0;
    vertical-align: 1px;
}

.guest-fit-inline-info:focus,
.guest-fit-inline-info:focus-visible {
    box-shadow: none;
    color: #6f9d37;
    outline: none;
}

.guest-fit-inline-info-wrap {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
}

.guest-fit-inline-info-wrap:hover .guest-fit-inline-tooltip,
.guest-fit-inline-info-wrap.is-open .guest-fit-inline-tooltip,
.guest-fit-inline-info:focus + .guest-fit-inline-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.guest-fit-inline-tooltip {
    background: #26332e;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    bottom: calc(100% + 8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    left: 50%;
    line-height: 1.35;
    opacity: 0;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    transform: translate(-50%, -4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    visibility: hidden;
    white-space: normal;
    width: 220px;
    z-index: 20;
}

.guest-fit-modal {
    align-items: flex-start;
    background: #f5faf6;
    border-left: 3px solid #6aa76b;
    border-radius: 4px;
    display: none;
    margin-top: 10px;
    padding: 8px 9px;
}

.guest-fit-modal.is-visible {
    display: flex;
}

.guest-fit-modal.is-limited {
    background: #fff8e8;
    border-left-color: #d2a335;
}

.guest-fit-modal.is-not-suitable {
    background: #f2f2f2;
    border-left-color: #222;
}

.guest-fit-modal small {
    color: #5f675f;
    display: block;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
}

@media (max-width: 767px) {
    /* The mobile form is one visual column: dates first, then guest counts. */
    .boking_table .col-md-4:first-child .book_tabel_item .form-group:nth-child(1) { order: 1; }
    .boking_table .col-md-4:nth-child(2) .book_tabel_item .form-group:nth-child(1) { order: 2; }
    .boking_table .col-md-4:first-child .book_tabel_item .form-group:nth-child(2) { order: 3; }
    .boking_table .col-md-4:first-child .book_tabel_item .form-group:nth-child(3) { order: 4; }
    .boking_table .col-md-4:nth-child(2) .book_tabel_item .form-group:nth-child(2) { order: 5; }
    .boking_table .col-md-4:last-child { order: 6; }

    .guest-fit-meter {
        max-width: none;
        width: 90%;
    }

    .guest-fit-info-heading { font-size: 13px; padding: 10px 12px; }
    .guest-fit-info-panel { font-size: 12px; }
}

/* Keep the Home hero CTA clearly above the overlapping booking panel. */
@media (min-width: 769px) {
    #startJourneyBtn { top: -28px; }
}
