/* Vysali Farm Stay — small additions on top of the base template, kept separate so the template's own files stay untouched. */

.avatar-initial {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.map-embed {
    border-radius: 1.5rem;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

.no-results-box {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 1.5rem;
}

/* Rich-text body coming from the admin Pages editor. The template styles its
   own markup only, so give editor output sane rhythm and heading sizes. */
.cms-content {
    font-size: 1.0625rem;
    line-height: 1.9;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4 {
    font-family: var(--bs-heading-font-family);
    color: var(--bs-emphasis-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cms-content h1 { font-size: 2rem; }
.cms-content h2 { font-size: 1.65rem; }
.cms-content h3 { font-size: 1.35rem; }
.cms-content h4 { font-size: 1.15rem; }

.cms-content > *:first-child {
    margin-top: 0;
}

.cms-content p,
.cms-content ul,
.cms-content ol {
    margin-bottom: 1.25rem;
}

.cms-content ul,
.cms-content ol {
    padding-left: 1.5rem;
}

.cms-content li {
    margin-bottom: 0.5rem;
}

.cms-content a {
    color: var(--bs-primary);
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.cms-content blockquote {
    border-left: 3px solid var(--bs-primary);
    padding-left: 1.25rem;
    font-style: italic;
}

/* Bootstrap paginator, centred to match the section layouts. */
.pagination {
    justify-content: center;
    margin-bottom: 0;
}

/* ============================================
   Booking page
   ============================================ */

.booking-step-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.booking-step-badge.is-done {
    background-color: var(--bs-success, #09b850);
}

/* Room picker — deliberately small horizontal chips so a long room list stays
   scannable without pushing the rest of the form below the fold. The radio is
   visually hidden; the label is the control. */
.room-chip-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.room-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 0.375rem 0.5rem;
    background-color: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.room-chip:hover {
    border-color: var(--bs-primary);
}

.room-chip-input:checked + .room-chip {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}

.room-chip-input:focus-visible + .room-chip {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.room-chip-img {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.room-chip-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.room-chip-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-chip-meta {
    font-size: 0.7rem;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}

.room-chip-tick {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: #fff;
    font-size: 0.55rem;
    align-items: center;
    justify-content: center;
}

.room-chip-input:checked + .room-chip .room-chip-tick {
    display: inline-flex;
}

/* Summary fades while an AJAX re-price is in flight. */
#bookingSummary {
    transition: opacity 0.15s ease;
}

#bookingSummary.is-loading {
    opacity: 0.45;
}

/* Payment method tiles — the radio itself is hidden, the label is the control. */
.pay-choice-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pay-choice {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 0.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pay-choice:hover {
    border-color: var(--bs-primary);
}

.pay-choice-input:checked + .pay-choice {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}

/* Keyboard focus has to stay visible even though the input is off-screen. */
.pay-choice-input:focus-visible + .pay-choice {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.booking-summary details summary::-webkit-details-marker {
    display: none;
}

.booking-summary details summary::before {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7em;
    margin-right: 0.4rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.booking-summary details[open] summary::before {
    transform: rotate(180deg);
}

/* The sticky summary only makes sense once there is a column beside it. */
@media (max-width: 991.98px) {
    .booking-summary {
        position: static !important;
    }
}
