/*
 * Roomado website on Bootstrap 5.3.8. Layout and components are Bootstrap's own classes; this file only
 * sets the brand colour through Bootstrap's CSS variables (light and dark) and adds a few small helpers.
 */

/* ---------- Brand colours (Bootstrap variables) ---------- */

:root,
[data-bs-theme="light"] {
    --bs-body-font-family: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-primary: #f2552c;
    --bs-primary-rgb: 242, 85, 44;
    --bs-primary-text-emphasis: #7a2611;
    --bs-primary-bg-subtle: #fde6df;
    --bs-primary-border-subtle: #f9bba9;
    --bs-link-color: #d9431c;
    --bs-link-color-rgb: 217, 67, 28;
    --bs-link-hover-color: #ae3516;
    --bs-link-hover-color-rgb: 174, 53, 22;
    --bs-focus-ring-color: rgba(242, 85, 44, .25);
    --brand-hover: #d9431c;
    --brand-active: #c13b18;
}

[data-bs-theme="dark"] {
    --bs-primary: #f2552c;
    --bs-primary-rgb: 242, 85, 44;
    --bs-primary-text-emphasis: #f7a08a;
    --bs-primary-bg-subtle: #301109;
    --bs-primary-border-subtle: #91331a;
    --bs-link-color: #f7896d;
    --bs-link-color-rgb: 247, 137, 109;
    --bs-link-hover-color: #f9a792;
    --bs-link-hover-color-rgb: 249, 167, 146;
    --bs-focus-ring-color: rgba(242, 85, 44, .35);
}

/* Components whose colours Bootstrap compiles in: point them at the brand. */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-hover, #d9431c);
    --bs-btn-hover-border-color: var(--brand-hover, #d9431c);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-active, #c13b18);
    --bs-btn-active-border-color: var(--brand-active, #c13b18);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}
.nav-pills { --bs-nav-pills-link-active-bg: var(--bs-primary); }
.nav-link { --bs-nav-link-hover-color: var(--bs-link-hover-color); }
.navbar-nav .nav-link.active { color: var(--bs-primary); }
.pagination {
    --bs-pagination-color: var(--bs-link-color);
    --bs-pagination-hover-color: var(--bs-link-hover-color);
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
}
.dropdown-menu { --bs-dropdown-link-active-bg: var(--bs-primary); }
.list-group { --bs-list-group-active-bg: var(--bs-primary); --bs-list-group-active-border-color: var(--bs-primary); }
.progress { --bs-progress-bar-bg: var(--bs-primary); }
.accordion {
    --bs-accordion-active-color: var(--bs-primary-text-emphasis);
    --bs-accordion-active-bg: var(--bs-primary-bg-subtle);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}
.form-control:focus,
.form-select:focus { border-color: var(--bs-primary-border-subtle); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }

/* ---------- Small helpers ---------- */

/* The navbar is sticky: when the browser scrolls to a focused field or an error, keep it below the navbar. */
html { scroll-padding-top: 6rem; }

/* Dark title bands: Bootstrap's bg-dark with a soft brand glow. */
.hero { background-image: radial-gradient(900px 480px at 90% -20%, rgba(var(--bs-primary-rgb), .35), transparent 60%), radial-gradient(700px 420px at -10% 120%, rgba(102, 16, 242, .3), transparent 60%); }

.brand-mark { width: 2.25rem; height: 2.25rem; font-size: 1.15rem; }
.avatar { width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar-lg { width: 2.75rem; height: 2.75rem; }
.icon-md { width: 2.75rem; height: 2.75rem; flex: none; }
.icon-lg { width: 4.5rem; height: 4.5rem; }

/* Cards that lift on hover (whole card is a stretched link). */
.card-lift { transition: transform .2s ease, box-shadow .2s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--bs-box-shadow) !important; }
.card-lift img { transition: transform .5s ease; }
.card-lift:hover img { transform: scale(1.04); }

/* The search card overlaps the dark header above it. */
.overlap-up { margin-top: -2.5rem; position: relative; z-index: 2; }

/* Keep line breaks typed by hotel staff. */
.pre-line { white-space: pre-line; }

/* Sticky side cards sit below the sticky navbar. */
.sticky-below-nav { top: 5.5rem; z-index: 1; }

/* Taller photos on phones than 21:9 allows. */
@media (max-width: 767.98px) { .gallery-ratio { --bs-aspect-ratio: 66.67%; } }

/* YouTube thumbnail with a play button on top (swapped for the player on click). */
.video-thumb > * { position: absolute; inset: 0; }
.video-thumb img { transition: transform .4s ease, opacity .2s ease; }
.video-thumb:hover img { transform: scale(1.04); opacity: .85; }
.video-thumb .btn { pointer-events: none; }

/* Country code box next to the mobile number. */
.cc-input { width: 5rem !important; flex: 0 0 5rem; }

/* Six-box code entry (built by site.js on top of Bootstrap form controls). */
.otp-box { width: 100%; aspect-ratio: 1 / 1.15; max-height: 4rem; font-size: 1.6rem; padding: 0; }
.otp-boxes.is-complete .otp-box { border-color: var(--bs-success); }
.otp-boxes.is-invalid .otp-box { border-color: var(--bs-danger); animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Member pass. */
.pass-card.is-error [data-pass-qr] { opacity: .2; }
.pass-card.is-error [data-pass-timer] { color: var(--bs-danger-text-emphasis) !important; }
[data-pass-qr] svg { width: 100%; height: 100%; }

.wa-float { width: 3.5rem; height: 3.5rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.pass-qr { width: min(18rem, 100%); aspect-ratio: 1 / 1; background: #fff; border-radius: 1rem; padding: .75rem; }
.pass-qr .placeholder-glow, .pass-qr .placeholder { display: block; width: 100%; height: 100%; }
/* Blog posts: readable measure and safe media sizes. */
.post-content { font-size: 1.075rem; line-height: 1.75; max-width: 46rem; }
.post-content h2 { margin-top: 2rem; font-weight: 700; }
.post-content h3, .post-content h4 { margin-top: 1.5rem; font-weight: 600; }
.post-content img, .post-content video { max-width: 100%; height: auto; border-radius: .75rem; }
.post-content figure figcaption { font-size: .875rem; color: var(--bs-secondary-color); text-align: center; }
.post-content blockquote { border-left: 4px solid var(--bs-primary); padding-left: 1rem; color: var(--bs-secondary-color); }
.post-content table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.post-content td, .post-content th { border: 1px solid var(--bs-border-color); padding: .5rem; }
