/* ============================================================
   Cubic — Reserve Your Unit modal
   Deployed identically to /en/assets/css/ and /ar/assets/css/.
   Uses the site's design tokens from style.css (:root).
   RTL-safe: uses logical properties; [dir="rtl"] needs no overrides.
   ============================================================ */

.reserve-lock { overflow: hidden; }

.reserve-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 10, 12, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.reserve-overlay.is-open { opacity: 1; visibility: visible; }

.reserve-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: var(--c-white, #fff);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.reserve-overlay.is-open .reserve-modal { transform: translateY(0) scale(1); }

.reserve-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--c-grey-50, #f5f5f5);
    color: var(--c-grey-600, #444);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.reserve-close:hover { background: var(--c-grey-100, #eee); }

/* ---------- Header + steps ---------- */
.reserve-head { padding: 1.75rem 1.75rem 1rem; }
.reserve-title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--c-grey-900, #111);
}
.reserve-sub {
    margin: 0 0 1.1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--c-grey-500, #666);
}

.reserve-steps {
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.reserve-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--c-grey-400, #999);
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--c-grey-100, #eee);
    transition: color 0.2s, border-color 0.2s;
}
.reserve-step span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-grey-100, #eee);
    font-size: 0.62rem;
    color: var(--c-grey-500, #666);
}
.reserve-step.is-active { color: var(--c-grey-900, #111); border-color: var(--c-green, #1db259); }
.reserve-step.is-active span,
.reserve-step.is-done span { background: var(--c-green, #1db259); color: #fff; }
.reserve-step.is-done { border-color: var(--c-green, #1db259); }

/* ---------- Body / panes ---------- */
.reserve-body { padding: 1.25rem 1.75rem 1.75rem; }
.reserve-pane { display: none; }
.reserve-pane.is-active { display: block; animation: rvFade 0.25s ease; }
@keyframes rvFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.reserve-error {
    margin: 0 0 0.9rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: #fdecea;
    color: #b3261e;
    font-size: 0.82rem;
    line-height: 1.5;
}

.reserve-field { margin-bottom: 0.95rem; }
.reserve-field label,
.reserve-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-grey-600, #444);
}
.reserve-field input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--c-grey-200, #ddd);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--c-grey-900, #111);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.reserve-field input:focus {
    outline: none;
    border-color: var(--c-green, #1db259);
    box-shadow: 0 0 0 3px rgba(29, 178, 89, 0.15);
}
.reserve-field input.has-error {
    border-color: #e2483d;
    box-shadow: 0 0 0 3px rgba(226, 72, 61, 0.15);
}
.reserve-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.74rem;
    color: var(--c-grey-400, #999);
}

/* ---------- Buttons ---------- */
.reserve-btn {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    background: var(--c-green, #1db259);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.reserve-btn:hover:not(:disabled) { background: var(--c-green-dark, #169648); transform: translateY(-1px); }
.reserve-btn:disabled { opacity: 0.7; cursor: wait; }

.reserve-link {
    display: block;
    margin: 0.8rem auto 0;
    border: none;
    background: none;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--c-green, #1db259);
    cursor: pointer;
}
.reserve-link:disabled { color: var(--c-grey-400, #999); cursor: default; }
.reserve-link--muted { color: var(--c-grey-400, #999); }
.reserve-link--muted:hover { color: var(--c-grey-600, #444); }

/* ---------- OTP ---------- */
.reserve-otp-note {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    text-align: center;
    color: var(--c-grey-600, #444);
}
.reserve-otp {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}
.reserve-otp input {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border: 1.5px solid var(--c-grey-200, #ddd);
    border-radius: 10px;
    color: var(--c-grey-900, #111);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.reserve-otp input:focus {
    outline: none;
    border-color: var(--c-green, #1db259);
    box-shadow: 0 0 0 3px rgba(29, 178, 89, 0.15);
}

/* ---------- Size / tier pills ---------- */
.reserve-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}
.reserve-pills [role="radio"] {
    padding: 0.65rem 0.5rem;
    border: 1.5px solid var(--c-grey-200, #ddd);
    border-radius: 12px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--c-grey-900, #111);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.reserve-pills [role="radio"] em {
    display: block;
    margin-top: 0.15rem;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--c-grey-400, #999);
}
.reserve-pills [role="radio"]:hover { border-color: var(--c-grey-400, #999); }
.reserve-pills [role="radio"].is-selected {
    border-color: var(--c-green, #1db259);
    background: var(--c-green-bg-subtle, #f2fcf6);
    box-shadow: 0 0 0 3px rgba(29, 178, 89, 0.12);
}

.reserve-fee {
    margin: 1rem 0 0.4rem;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    background: var(--c-green-bg, #e8f9ef);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--c-grey-800, #1a1a1a);
}

/* ---------- Payment ---------- */
.reserve-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 1rem;
}
.reserve-methods:has(> :only-child) { grid-template-columns: 1fr; }
.reserve-method {
    padding: 0.75rem 0.6rem;
    border: 1.5px solid var(--c-grey-200, #ddd);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.reserve-method strong { display: block; font-size: 0.95rem; color: var(--c-grey-900, #111); }
.reserve-method span   { display: block; margin-top: 0.15rem; font-size: 0.72rem; color: var(--c-grey-400, #999); }
.reserve-method.is-selected {
    border-color: var(--c-green, #1db259);
    background: var(--c-green-bg-subtle, #f2fcf6);
}

.reserve-widget { min-height: 40px; }
.reserve-widget__loading {
    text-align: center;
    font-size: 0.85rem;
    color: var(--c-grey-400, #999);
    padding: 1rem 0;
}
/* Let the HyperPay iframe/form breathe */
.reserve-widget .paymentWidgets { margin: 0; }
.reserve-widget .wpwl-form { margin: 0 auto; }
.reserve-widget .wpwl-button-pay {
    background: var(--c-green, #1db259) !important;
    border-color: var(--c-green, #1db259) !important;
    border-radius: 10px !important;
}

.reserve-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    font-size: 0.74rem;
    color: var(--c-grey-400, #999);
}

/* ---------- Result page ---------- */
.rsv-result {
    max-width: 560px;
    margin: 0 auto;
    /* top padding clears the fixed navbar */
    padding: clamp(7.5rem, 16vw, 10rem) 1.25rem clamp(3rem, 8vw, 5rem);
    text-align: center;
}
.rsv-result__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
}
.rsv-result__icon--ok      { background: var(--c-green-bg, #e8f9ef); color: var(--c-green, #1db259); }
.rsv-result__icon--fail    { background: #fdecea; color: #b3261e; }
.rsv-result__icon--pending { background: #fff6e5; color: #b07908; }
.rsv-result h1 { font-size: 1.6rem; margin: 0 0 0.6rem; color: var(--c-grey-900, #111); }
.rsv-result p  { font-size: 0.95rem; line-height: 1.65; color: var(--c-grey-500, #666); margin: 0 0 0.75rem; }
.rsv-result__ref {
    display: inline-block;
    margin: 0.5rem 0 1.25rem;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    background: var(--c-grey-50, #f5f5f5);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--c-grey-900, #111);
}
.rsv-result .btn { margin-top: 0.5rem; }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    .reserve-modal { max-height: calc(100dvh - 1rem); border-radius: 16px; }
    .reserve-head  { padding: 1.4rem 1.25rem 0.9rem; }
    .reserve-body  { padding: 1.1rem 1.25rem 1.4rem; }
    .reserve-step  { font-size: 0; gap: 0; justify-content: center; }
    .reserve-step span { width: 22px; height: 22px; font-size: 0.68rem; }
    .reserve-otp input { width: 40px; height: 48px; }
}

/* ============================================================
   Homepage hero — "Opening Soon in Riyadh" badge highlight
   (overrides the base .hero__badge from style.css)
   ============================================================ */
.hero__badge {
    position: relative;
    overflow: hidden;
    gap: 10px;
    padding: 0.65rem 1.5rem 0.65rem 1.15rem;
    background: linear-gradient(135deg, #1fc563 0%, #0e8f44 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow:
        0 0 0 1px rgba(29, 178, 89, 0.35),
        0 8px 30px rgba(29, 178, 89, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: badgeGlow 3s ease-in-out infinite;
}
[dir="rtl"] .hero__badge { padding: 0.65rem 1.15rem 0.65rem 1.5rem; }

/* shimmer sweep */
.hero__badge::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: badgeShine 3.4s ease-in-out infinite;
    pointer-events: none;
}

.hero__badge-dot {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    animation: badgeDot 1.6s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(29,178,89,0.35), 0 8px 30px rgba(29,178,89,0.45), inset 0 1px 0 rgba(255,255,255,0.25); }
    50%      { box-shadow: 0 0 0 1px rgba(29,178,89,0.55), 0 10px 44px rgba(29,178,89,0.75), inset 0 1px 0 rgba(255,255,255,0.25); }
}
@keyframes badgeShine {
    0%   { left: -60%; }
    55%  { left: 120%; }
    100% { left: 120%; }
}
@keyframes badgeDot {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
    50%      { opacity: 0.85; box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}

@media (max-width: 768px) {
    .hero__badge { font-size: 0.7rem; padding: 0.55rem 1.2rem 0.55rem 0.95rem; letter-spacing: 1.5px; }
    [dir="rtl"] .hero__badge { padding: 0.55rem 0.95rem 0.55rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__badge, .hero__badge::after, .hero__badge-dot { animation: none; }
}

/* nudge the hero badge down from the navbar */
.hero__badge { margin-top: clamp(2rem, 5vh, 3.5rem); }

/* ============================================================
   Homepage tier cards — keep "From SAR NNN /m²·mo" on one row
   (overrides .tier4__price* from style-content.css)
   ============================================================ */
.tier4__price {
    gap: 5px;
    padding: var(--sp-4) var(--sp-3);
    flex-wrap: nowrap;
}
.tier4__price-from {
    font-size: 0.58rem;
    white-space: nowrap;
}
.tier4__price-val {
    /* scales down on narrow cards, caps below the old 1.5rem */
    font-size: clamp(1.02rem, 0.55rem + 1.1vw, 1.3rem);
    white-space: nowrap;
}
.tier4__price-per {
    font-size: 0.7rem;
    white-space: nowrap;
}

/* ============================================================
   Inquiries modal — styling polish + mobile usability
   (overrides .prebook-* from style-content.css)
   ============================================================ */

/* nicer, larger inputs with a clear focus state */
.prebook-field input,
.prebook-field select,
.prebook-field textarea {
    min-height: 48px;
    padding: 13px 15px;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.prebook-field input:focus,
.prebook-field select:focus,
.prebook-field textarea:focus {
    outline: none;
    border-color: rgba(29, 178, 89, 0.8);
    box-shadow: 0 0 0 3px rgba(29, 178, 89, 0.22);
    background: rgba(255, 255, 255, 0.05);
}
.prebook-field { margin-bottom: 14px; }
.prebook-field textarea { min-height: 88px; }

/* mobile: the modal must scroll — before this the submit button
   could sit below the fold with no way to reach it */
@media (max-width: 720px) {
    .prebook-overlay { padding: 10px; align-items: flex-end; }
    .prebook-modal {
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 18px 18px 12px 12px;
    }
    .prebook-modal__aside  { padding: 22px 20px 16px; }
    .prebook-modal__form-wrap { padding: 20px; overflow: visible; }
    .prebook-modal__headline { font-size: 1.35rem; }
    .prebook-modal__sub { font-size: 0.84rem; }
    /* 16px prevents iOS auto-zoom on focus */
    .prebook-field input,
    .prebook-field select,
    .prebook-field textarea { font-size: 16px; }
    .prebook-submit { width: 100%; min-height: 52px; }
}
@media (max-width: 380px) {
    .prebook-modal__aside { padding: 18px 16px 12px; }
    .prebook-modal__form-wrap { padding: 16px; }
}

/* ============================================================
   Contact page form — status + success states (light theme)
   ============================================================ */
.cf-status {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.55;
}
.cf-status--err { background: #fdecea; color: #b3261e; }
.cf-status--ok  { background: var(--c-green-bg, #e8f9ef); color: var(--c-green-dark, #169648); }

.cf-done {
    text-align: center;
    padding: clamp(2rem, 6vw, 3.5rem) 1rem;
}
.cf-done__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--c-green-bg, #e8f9ef);
    color: var(--c-green, #1db259);
}
.cf-done h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--c-grey-900, #111); }
.cf-done p  { font-size: 0.92rem; color: var(--c-grey-500, #666); line-height: 1.65; max-width: 380px; margin: 0 auto; }

/* ============================================================
   Inquiries modal — compact layout: fits above the fold
   (tightens the polish block above; later rules win)
   ============================================================ */
.prebook-modal__aside {
    padding: 26px 26px 20px;
    gap: 10px;
}
.prebook-modal__headline { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.2; }
.prebook-modal__sub { font-size: 0.8rem; line-height: 1.5; margin-bottom: 4px; }
.prebook-benefits { gap: 6px; }
.prebook-benefits li { font-size: 0.78rem; }

.prebook-modal__form-wrap { padding: 24px 26px 22px; }
.prebook-modal__form-title { font-size: 1.02rem; margin-bottom: 2px; }
.prebook-modal__form-note  { font-size: 0.74rem; margin-bottom: 14px; }

.prebook-field { margin-bottom: 10px; }
.prebook-field label { margin-bottom: 4px; font-size: 0.68rem; }
.prebook-field input,
.prebook-field select {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 0.9rem;
}
.prebook-field textarea {
    min-height: 52px;
    max-height: 76px;
    padding: 9px 13px;
    font-size: 0.9rem;
}
.prebook-row { gap: 10px; }
.prebook-submit { min-height: 46px; }
.prebook-privacy { font-size: 0.66rem; margin-top: 8px; }

@media (max-width: 720px) {
    .prebook-overlay { align-items: center; }
    .prebook-modal { border-radius: 16px; }
    /* keep paired fields side-by-side on mobile — halves the stack height */
    .prebook-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .prebook-modal__aside { padding: 16px 18px 10px; }
    .prebook-modal__sub { display: none; }           /* headline carries the message */
    .prebook-modal__form-wrap { padding: 14px 18px 16px; }
    .prebook-field { margin-bottom: 8px; }
    .prebook-field input,
    .prebook-field select { min-height: 42px; font-size: 16px; }
    .prebook-field textarea { min-height: 46px; max-height: 60px; font-size: 16px; }
    .prebook-submit { min-height: 48px; width: 100%; }
}
@media (max-height: 700px) and (max-width: 720px) {
    .prebook-modal__eyebrow { display: none; }
    .prebook-field textarea { min-height: 40px; }
}

/* ============================================================
   Inquiries modal — final fit & mobile breathing room
   ============================================================ */
/* desktop safety: if a short laptop screen still can't fit it,
   the form column scrolls internally instead of cutting the button */
.prebook-modal__form-wrap { overflow-y: auto; max-height: calc(100vh - 2 * clamp(16px, 4vw, 40px)); }

@media (max-width: 720px) {
    /* visible margin around the sheet — no more edge-to-edge */
    .prebook-overlay { padding: 14px; align-items: center; }
    .prebook-modal { border-radius: 18px; max-height: calc(100dvh - 28px); }
    .prebook-modal__form-wrap { max-height: none; }
}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cc-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1100;               /* below the modals (1200), above content */
    padding: 14px;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.cc-banner.is-visible { transform: translateY(0); }
.cc-banner__inner {
    pointer-events: auto;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--c-grey-100, #eee);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.cc-banner__text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--c-grey-900, #111);
    margin-bottom: 2px;
}
.cc-banner__text p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--c-grey-500, #666);
}
.cc-banner__text a { color: var(--c-green, #1db259); font-weight: 600; }
.cc-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cc-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}
.cc-btn--primary {
    border: none;
    background: var(--c-green, #1db259);
    color: #fff;
}
.cc-btn--primary:hover { background: var(--c-green-dark, #169648); }
.cc-btn--ghost {
    border: 1.5px solid var(--c-grey-200, #ddd);
    background: #fff;
    color: var(--c-grey-600, #444);
}
.cc-btn--ghost:hover { border-color: var(--c-grey-400, #999); }

@media (max-width: 640px) {
    .cc-banner { padding: 10px; }
    .cc-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .cc-banner__actions { width: 100%; }
    .cc-btn { flex: 1; text-align: center; padding: 12px 10px; }
}
