/* Qlvin booking cards: reference design. Previous=gray/left, current=cream/center, next=cyan/right. */
/* Physical edge anchors: previous on screen-left, next on screen-right, independent of RTL. */
.stay-3d-shell{position:relative;margin:8px 0 24px;isolation:isolate;direction:rtl}
.stay-3d-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.stay-3d-header strong{font-size:17px;font-weight:900;color:var(--text)}
.stay-3d-toggle{font:700 11px 'Tajawal',sans-serif;background:rgba(255,255,255,.025);border:1px solid var(--border);color:var(--text2);border-radius:13px;padding:10px 13px;min-height:40px;cursor:pointer}
.stay-3d-toggle[aria-pressed="true"]{color:#83d9ad}
.stay-3d-stage{position:relative;perspective:900px;height:274px;overflow:hidden;touch-action:pan-y;user-select:none;direction:rtl}
.stay-3d-card{--stay-paper:#efeee8;--stay-ink:#18222a;--stay-sub:#75828b;--stay-accent:#477d68;position:absolute;top:8px;left:50%;width:min(83%,370px);height:248px;box-sizing:border-box;padding:18px 19px;border-radius:26px;border:1px solid rgba(255,255,255,.62);background:var(--stay-paper);color:var(--stay-ink);box-shadow:0 14px 30px rgba(0,0,0,.28);transform-style:preserve-3d;opacity:0;pointer-events:none;visibility:hidden;transition:transform .34s ease,opacity .34s ease,filter .34s ease;display:flex;flex-direction:column;gap:8px;text-align:right;overflow:hidden}
.stay-3d-card[data-stay-card="0"]{--stay-paper:#c9cdd1;--stay-ink:#59616a;--stay-sub:#777f88;--stay-accent:#858d96;border-color:rgba(225,228,232,.4);box-shadow:0 8px 20px rgba(0,0,0,.17)}
.stay-3d-card[data-stay-card="1"]{--stay-paper:#f0eee8;--stay-ink:#18222a;--stay-sub:#76828b;--stay-accent:#487d68}
.stay-3d-card[data-stay-card="2"]{--stay-paper:#dcecf4;--stay-ink:#183747;--stay-sub:#648091;--stay-accent:#387f9c}
.stay-3d-card.is-active{z-index:3;opacity:1;visibility:visible;transform:translateX(-50%) translateZ(0) rotateY(0);filter:none;pointer-events:auto}
.stay-3d-card[data-stay-card="0"].is-active{opacity:.86;filter:saturate(.35)}
/* Physical positioning: upcoming on screen-right, regardless of document RTL. */
.stay-3d-card.is-right{z-index:2;left:auto;right:-18%;opacity:.42;visibility:visible;transform:translateZ(-95px) rotateY(22deg) scale(.88);filter:blur(1.2px)}
/* Previous booking is on screen-left. */
.stay-3d-card.is-left{z-index:2;left:-18%;right:auto;opacity:.42;visibility:visible;transform:translateZ(-95px) rotateY(-22deg) scale(.88);filter:blur(1.2px)}
.stay-3d-card:not(.is-active) .stay-private,.stay-3d-card:not(.is-active) .stay-unit,.stay-3d-card:not(.is-active) .stay-card-facts,.stay-3d-card:not(.is-active) .stay-prep{visibility:hidden}
.stay-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:30px}
.stay-kind-wrap{display:inline-flex;align-items:center;gap:6px;min-width:0}
.stay-status-dot{width:8px;height:8px;border-radius:50%;background:var(--stay-accent);flex:none}
.stay-3d-card small{color:var(--stay-accent);font-size:12px;font-weight:900}
.stay-ended-badge{display:inline-flex;align-items:center;border:1px solid rgba(89,97,106,.25);border-radius:999px;padding:3px 7px;background:rgba(89,97,106,.09);font-size:10px;font-weight:800;color:#626b74}
.stay-ended-badge[hidden]{display:none!important}
.stay-brand{display:inline-flex;align-items:center;gap:6px;direction:ltr;flex:none}
.stay-brand-mark{width:27px;height:27px;background:var(--spl-emblem) center/contain no-repeat;flex:none}
.stay-brand-name{width:57px;height:26px;background:var(--stay-accent);-webkit-mask:var(--spl-wm) center/contain no-repeat;mask:var(--spl-wm) center/contain no-repeat}
.stay-3d-card .stay-name{font-size:23px;line-height:1.2;font-weight:900;color:var(--stay-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}
.stay-unit{color:var(--stay-sub);font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stay-card-divider{height:1px;flex:none;background:rgba(45,59,66,.14);margin:5px 0 1px}
.stay-card-facts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;align-items:start}
.stay-fact{display:flex;flex-direction:column;gap:5px;min-width:0}
.stay-fact>span{color:var(--stay-sub);font-size:11px;font-weight:700}
.stay-fact>strong{color:var(--stay-ink);font-size:12px;line-height:1.4;font-weight:900;overflow-wrap:anywhere}
.stay-fact-source{border-inline-start:1px solid rgba(45,59,66,.13);padding-inline-start:8px}
.stay-3d-card .stay-prep{margin-top:auto;font-size:11px;color:var(--stay-accent);font-weight:800;min-height:13px}
.stay-3d-card .stay-prep.is-warning{color:#a34d38}
.stay-3d-nav{display:flex;align-items:center;justify-content:center;gap:16px;direction:rtl;min-height:42px}
.stay-3d-nav>button{font:800 17px 'Tajawal',sans-serif;color:var(--text);background:var(--glass);border:1px solid var(--border);width:40px;height:40px;border-radius:50%;cursor:pointer}
.stay-3d-nav button:focus-visible,.stay-3d-toggle:focus-visible{outline:2px solid #2f9c68;outline-offset:3px}
.stay-3d-dots{display:flex;gap:4px;align-items:center;direction:ltr}
.stay-3d-dots button{width:7px;height:7px;min-width:7px;border-radius:50%;background:var(--text2);opacity:.5;padding:0;border:0}
.stay-3d-dots button[aria-current="true"]{background:#7fd6a4;opacity:1;width:10px;height:10px}
.stay-3d-shell[hidden]{display:none!important}
.stay-3d-shell.is-disabled .stay-3d-stage,.stay-3d-shell.is-disabled .stay-3d-nav,.stay-3d-shell.is-disabled .stay-3d-actions{display:none}
@media(max-width:380px){
 .stay-3d-stage{height:266px}
 .stay-3d-card{width:84%;height:241px;padding:16px 15px}
 .stay-3d-card .stay-name{font-size:21px}
 .stay-brand-mark{width:24px;height:24px}
 .stay-3d-toggle{font-size:10px;padding:9px}
 .stay-3d-header strong{font-size:15px}
 .stay-fact>strong{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 .stay-3d-card{transition:none!important;filter:none!important;transform:none!important}
 .stay-3d-card.is-active{left:50%;transform:translateX(-50%)!important}
 .stay-3d-card.is-right,.stay-3d-card.is-left{opacity:0;visibility:hidden}
}
.stay-3d-actions{display:flex;justify-content:flex-start;align-items:center;direction:rtl;margin:12px 0 0;min-height:48px}
.stay-3d-actions[hidden]{display:none!important}
.stay-add-fab{position:static;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid rgba(127,214,164,.3);border-radius:14px;padding:11px 18px;background:#2f9c68;color:#061e12;font:900 12px 'Tajawal',sans-serif;box-shadow:none;cursor:pointer}
.stay-add-fab:focus-visible{outline:2px solid #d9d4ac;outline-offset:3px}
#page-detail:not(.active) .stay-3d-actions{display:none}

/* Spacious desktop composition, preserving the original card depth and palette. */
.stay-3d-stage{max-width:540px;margin-inline:auto}
.stay-3d-nav>button{width:44px;height:44px}
.stay-3d-dots button{position:relative;width:44px;height:44px;min-width:44px;background:transparent;opacity:1;cursor:pointer}
.stay-3d-dots button::after{content:"";position:absolute;inset:18px;border-radius:50%;background:var(--text2);opacity:.6}
.stay-3d-dots button[aria-current="true"]{width:44px;height:44px;background:transparent}
.stay-3d-dots button[aria-current="true"]::after{inset:17px;background:#7fd6a4;opacity:1}
.stay-3d-toggle{min-height:44px}

/* إجراء مشاركة واضح داخل البطاقة مع الحفاظ على مساحة المواعيد. */
.stay-3d-stage{height:334px}
.stay-3d-card{height:308px}
.stay-send-card{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;width:100%;min-height:44px;border:1px solid rgba(4,20,12,.14);border-radius:13px;padding:10px 12px;background:linear-gradient(135deg,#55bd87,#2f9c68);color:#04140c;font:800 13px 'Tajawal',sans-serif;box-shadow:0 4px 10px rgba(47,156,104,.16);cursor:pointer}
.stay-send-card svg{width:19px;height:19px;flex:none}
.stay-send-card[hidden]{display:none!important}
.stay-send-card:disabled{opacity:.65;cursor:wait}
.stay-send-card:focus-visible{outline:3px solid #18222a;outline-offset:3px}
.stay-send-card:not(:disabled):active{transform:translateY(1px)}
.stay-3d-card:not(.is-active) .stay-send-card{visibility:hidden}
@media(max-width:380px){.stay-3d-stage{height:330px}.stay-3d-card{height:306px}}


/* qlvin premium host booking pass. The original brand symbols remain source-of-truth.
   All access digits in this card are inert mask glyphs, never real credentials. */
.stay-3d-stage{height:472px;max-width:640px}
.stay-3d-card{
  width:min(86%,430px);height:444px;padding:23px 23px 19px;gap:9px;
  border-radius:30px;border:1px solid rgba(255,255,255,.9);
  background:radial-gradient(ellipse at 18% 2%,rgba(255,255,255,.94),transparent 60%),var(--stay-paper);
  box-shadow:0 24px 54px rgba(0,0,0,.35),inset 0 1px 0 #fff;
}
.stay-3d-card[data-stay-card="0"]{
  --stay-paper:#e7e8e7!important;--stay-ink:#61686d!important;
  --stay-sub:#82898c!important;--stay-accent:#8b9396!important;
}
.stay-3d-card[data-stay-card="1"]{
  --stay-paper:#faf9f5!important;--stay-ink:#101b25!important;
  --stay-sub:#707980!important;--stay-accent:#387f60!important;
}
.stay-3d-card[data-stay-card="2"]{
  --stay-paper:#eff7f1!important;--stay-ink:#142b26!important;
  --stay-sub:#6b8380!important;--stay-accent:#2f9c68!important;
}
.stay-3d-card[data-stay-card="0"].is-active{opacity:.95;filter:saturate(.35)}
.stay-card-head{min-height:40px}.stay-kind-wrap{gap:8px}
.stay-status-dot{width:10px;height:10px;box-shadow:0 0 0 4px rgba(47,156,104,.08)}
.stay-3d-card small{font-size:13px;font-weight:900}
.stay-brand{gap:8px}.stay-brand-mark{width:36px;height:36px}.stay-brand-name{width:70px;height:31px}
.stay-3d-card .stay-name{font-size:clamp(24px,4vw,31px);margin-top:10px;line-height:1.23;letter-spacing:-.4px}
.stay-unit{font-size:12px;margin-top:-3px}
.stay-card-divider{background:rgba(45,59,66,.16);margin:10px 0 4px}
.stay-card-facts{grid-template-columns:1fr 1fr 1fr;gap:0;align-items:stretch}
.stay-fact{padding:0 9px;min-width:0;gap:9px}
.stay-fact:first-child{padding-inline-start:0}
.stay-fact:not(:last-child){border-inline-end:1px solid rgba(45,59,66,.12)}
.stay-fact>span{font-size:11px;font-weight:800}
.stay-fact>strong{font-size:12px;line-height:1.5;font-weight:900;overflow-wrap:break-word}
.stay-state{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;
  border-radius:99px;background:rgba(47,156,104,.12);color:var(--stay-accent)!important;
  padding:7px 10px;font-size:11px!important;white-space:nowrap}
.stay-3d-card[data-stay-card="0"] .stay-state{background:rgba(85,90,92,.12)}
.stay-source-line{font-size:11px;color:var(--stay-sub);display:flex;gap:7px;align-items:center}
.stay-source-line strong{color:var(--stay-ink);font-weight:800}
.stay-access{min-height:92px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;
  gap:12px;padding:13px 15px;border-radius:23px;
  background:linear-gradient(125deg,rgba(225,227,218,.54),rgba(255,255,255,.58));
  border:1px solid rgba(50,71,62,.045)}
.stay-access-copy{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.stay-access-label{font-size:11px;color:var(--stay-sub);font-weight:800}
.stay-access-code{font:700 24px/1.2 'IBM Plex Mono',ui-monospace,monospace;white-space:nowrap;
  letter-spacing:2.6px;direction:ltr;unicode-bidi:isolate;color:var(--stay-ink)}
.stay-access-code span{font-size:18px;color:var(--stay-sub);letter-spacing:0;margin-left:4px}
.stay-access-side{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.stay-access-side svg{width:23px;height:23px;color:var(--stay-accent)}
.stay-access-jump{border:0;background:transparent;color:var(--stay-accent);font:800 10px 'Tajawal',sans-serif;
  padding:6px 3px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.stay-access-hint{display:none;font-size:10px;color:var(--stay-sub);max-width:85px;text-align:center;line-height:1.4}
.stay-3d-card[data-stay-card="2"] .stay-access-jump{display:none}
.stay-3d-card[data-stay-card="2"] .stay-access-hint{display:block}
.stay-3d-card[data-stay-card="0"] .stay-access{display:none}
.stay-3d-card:not(.is-active) .stay-access{visibility:hidden}
.stay-3d-card .stay-prep{margin-top:auto;min-height:14px;font-size:11px}
.stay-send-card{min-height:46px;border-radius:14px;box-shadow:none}
.stay-access-jump:focus-visible{outline:2px solid var(--stay-accent);outline-offset:2px}
@media(max-width:430px){
  .stay-3d-stage{height:459px}
  .stay-3d-card{width:86%;height:433px;padding:20px 17px 17px;gap:8px;border-radius:27px}
  .stay-brand-mark{width:30px;height:30px}.stay-brand-name{width:60px;height:28px}
  .stay-3d-card .stay-name{font-size:24px}
  .stay-fact{padding:0 6px;gap:7px}.stay-fact>strong{font-size:11px}
  .stay-access{min-height:85px;padding:10px}
  .stay-access-code{font-size:21px;letter-spacing:1.5px}
}
@media(max-width:360px){
  .stay-3d-stage{height:465px}.stay-3d-card{height:440px;width:88%;padding:16px 13px}
  .stay-3d-card .stay-name{font-size:22px}.stay-fact>span{font-size:10px}
  .stay-state{font-size:10px!important;padding:6px 5px}
  .stay-access-label{font-size:10px}.stay-access-code{font-size:19px;letter-spacing:1px}
}


/* Approved stay-pass reference: three-line date columns and original door-lock crop. */
.stay-3d-stage{height:548px;max-width:655px}
.stay-3d-card{
 width:min(87%,450px);height:523px;padding:25px 24px 20px;gap:9px;border-radius:32px;
 background:radial-gradient(ellipse at 28% 4%,#fff 0%,#faf9f5 70%,#f7f6f2 100%);
 border:1px solid #fff;box-shadow:0 22px 48px rgba(0,0,0,.29),inset 0 1px 0 #fff
}
.stay-3d-card[data-stay-card="0"]{background:linear-gradient(145deg,#e7e8e7,#d9dddf)}
.stay-3d-card[data-stay-card="2"]{background:linear-gradient(145deg,#f6faf7,#edf5ee)}
.stay-card-head{min-height:39px}
.stay-3d-card .stay-name{font-size:clamp(25px,5vw,35px);line-height:1.18;margin-top:14px}
.stay-unit{font-size:12px}
.stay-card-divider{height:1px;background:#d8d7d2;margin:16px 0 6px}
.stay-card-facts{grid-template-columns:1fr 1fr 1fr;min-height:140px;padding:3px 0 11px}
.stay-fact{gap:9px;align-items:center;text-align:center;padding:1px 9px}
.stay-fact:first-child{padding-inline-start:3px}
.stay-fact>span{font-size:12px;color:#7f848b}
.stay-fact>strong{font-size:12px}
.stay-date-layout{display:flex;flex-direction:column;gap:5px;align-items:center;min-width:0}
.stay-weekday{display:inline-flex;align-items:center;justify-content:center;gap:3px;color:#7b8089;font-size:11px;font-weight:700;white-space:nowrap}
.stay-weekday svg{width:16px;height:16px;flex:none}
.stay-date-layout>strong{color:var(--stay-ink);font-size:12px;line-height:1.45;font-weight:900;white-space:normal}
.stay-time-in,.stay-time-out{font-size:12px;color:#7f848b;font-weight:800;direction:rtl}
.stay-state{margin-top:6px;font-size:12px!important;background:#e7f0e9;color:#347e60!important;padding:10px 12px}
.stay-source-line{font-size:10px;opacity:.86}
.stay-access{display:flex;direction:rtl;align-items:center;gap:8px;min-height:155px;
 border:0;border-top:1px solid #d8d7d2;border-radius:0;background:transparent;
 padding:14px 0 0;margin-top:1px}
.stay-access-side{width:38%;min-width:0;max-width:145px;gap:2px;align-self:center}
.stay-door-illustration{display:block;width:100%;height:auto;aspect-ratio:195/165;object-fit:contain;border-radius:44%;mix-blend-mode:multiply;filter:saturate(.9)}
.stay-access-copy{flex:1;min-width:0;gap:9px;align-items:stretch}
.stay-access-label{text-align:center;font-size:12px;font-weight:800;color:#747b84}
.stay-access-code{display:flex;direction:ltr;justify-content:space-evenly;align-items:center;border-radius:18px;background:#efede8;min-height:69px;gap:0;letter-spacing:0;padding:9px 11px;color:var(--stay-ink);width:100%}
.stay-code-mask{font-size:21px;letter-spacing:2px;font-family:'IBM Plex Mono',ui-monospace,monospace;font-weight:800;white-space:nowrap;color:var(--stay-ink)}
.stay-code-hash{font-size:23px;font-family:ui-monospace,monospace;min-height:40px;display:grid;place-items:center;
 border-left:1px solid #d7d3cf;padding-left:11px;padding-right:3px;color:#81868d;letter-spacing:0}
.stay-access-jump{display:inline-flex;align-items:center;justify-content:center;min-height:30px;color:#3f8368;font-size:10px;font-weight:800;padding:5px 4px;text-underline-offset:2px}
.stay-access-side>svg{display:none}
.stay-access-hint{margin-top:1px;font-size:10px;color:#78818b}
.stay-3d-card[data-stay-card="2"] .stay-access-jump{display:none}
.stay-3d-card[data-stay-card="2"] .stay-access-hint{display:block}
.stay-3d-card[data-stay-card="0"] .stay-access{display:none}
.stay-3d-card .stay-prep{margin-top:auto}
.stay-send-card{min-height:42px}
@media(max-width:430px){
 .stay-3d-stage{height:530px}
 .stay-3d-card{width:89%;height:508px;padding:20px 17px 16px;border-radius:29px;gap:7px}
 .stay-3d-card .stay-name{font-size:26px;margin-top:11px}
 .stay-card-divider{margin:12px 0 4px}
 .stay-card-facts{min-height:132px;padding:0 0 8px}
 .stay-fact{padding:0 5px}
 .stay-fact>span{font-size:11px}
 .stay-date-layout>strong{font-size:11px}
 .stay-weekday{font-size:10px}
 .stay-weekday svg{width:15px;height:15px}
 .stay-time-in,.stay-time-out{font-size:11px}
 .stay-access{min-height:142px;padding-top:10px}
 .stay-access-code{min-height:62px;padding:7px 8px}
 .stay-code-mask{font-size:19px;letter-spacing:1.2px}
 .stay-code-hash{font-size:20px;padding-left:7px}
}
@media(max-width:360px){
 .stay-3d-stage{height:534px}
 .stay-3d-card{height:510px;width:90%;padding:17px 13px 15px}
 .stay-3d-card .stay-name{font-size:23px}
 .stay-fact>span{font-size:10px}
 .stay-date-layout>strong{font-size:10px}
 .stay-code-mask{font-size:17px;letter-spacing:.7px}
 .stay-code-hash{font-size:19px}
 .stay-access-label{font-size:11px}
}

/* Card-height budget: keep the send action visible on small screens. */
.stay-3d-card{gap:6px}
.stay-3d-card .stay-name{margin-top:9px}
.stay-card-divider{margin:10px 0 3px}
.stay-card-facts{min-height:118px;padding:0 0 6px}
.stay-access{min-height:118px;padding:8px 0 0}
.stay-access-side{width:30%;max-width:123px}
.stay-3d-card .stay-prep{min-height:11px}
@media(max-width:430px){
 .stay-3d-card{gap:6px}
 .stay-card-facts{min-height:118px}
 .stay-access{min-height:118px;padding-top:8px}
 .stay-3d-card .stay-name{margin-top:8px}
}

.stay-early-arrival{width:100%;min-height:44px;flex:none;border:1px solid #7eaa90;border-radius:13px;background:#eef6ef;color:#215a3d;font:700 14px 'Tajawal',sans-serif;cursor:pointer}
.stay-early-arrival[hidden]{display:none!important}
.stay-early-arrival:focus-visible{outline:3px solid #215a3d;outline-offset:2px}
.stay-3d-card:not(.is-active) .stay-early-arrival{visibility:hidden}
