/* Vistora 8.7 — phone-first extras + fixes from the launch audit. */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ── audit fixes ── */
@media (max-width: 991px) { .pcm-booking-layout { grid-template-columns: minmax(0, 1fr); } .pcm-booking-layout > * { min-width: 0; } }
#pcm-hero-search { min-height: 40px; }
.pcm-blog-read-more { padding-block: 10px; }
.page-numbers { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.pcm-footer a[href^="tel:"], .pcm-footer a[href^="mailto:"] { display: inline-block; padding-block: 6px; }
/* targets of at least 24px for mouse users too (touch screens already get 44px in style.css) */
.pcm-btn-blog { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.pcm-blog-cat a, .pcm-bc-bar a, .pcm-forgot-link, .pcm-contact-link { display: inline-block; padding-block: 4px; }
.pcm-toggle-pass { min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; }
#pcm-terms { width: 24px; height: 24px; flex-shrink: 0; accent-color: var(--pcm-primary); }
.pcm-art-meta a { display: inline-block; padding-block: 3px; }
.pcm-cmp-name { padding-block: 2px; }
#pcm-map-q { min-height: 40px; }
.pcm-list-head { margin: 0 0 26px; }
.pcm-list-head h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900; color: var(--pcm-primary-dark); margin: 0 0 6px; }
.pcm-list-head p { color: #5b6a60; margin: 0 0 12px; }
.pcm-list-search { display: flex; gap: 8px; max-width: 560px; }
.pcm-list-search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border: 1.5px solid #d7e6dc; border-radius: 12px; font: inherit; }
.pcm-list-search button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--pcm-primary); color: #fff; font: 700 .95rem 'Cairo', sans-serif; cursor: pointer; white-space: nowrap; }

/* ── bottom bar + project action bar (phones and tablets) ── */
:root { --vxn: calc(62px + env(safe-area-inset-bottom, 0px)); }
.vx-nav, .vx-actions { display: none; }
@media (max-width: 991px) {
  .vx-nav, .vx-actions {
    position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; height: var(--vxn); padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex; align-items: stretch; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(15,121,60,.12); box-shadow: 0 -6px 24px rgba(7,47,25,.08);
  }
  body.vx-has-nav, body.vx-has-actions { padding-bottom: var(--vxn); }
  /* the floating buttons sit above the bar; the bar already offers call (and, on project pages, WhatsApp) */
  body.vx-has-nav .pcm-phone-float, body.vx-has-actions .pcm-phone-float, body.vx-has-actions .pcm-wa-widget { display: none !important; }
  body.vx-has-nav .pcm-wa-widget { bottom: calc(var(--vxn) + 12px) !important; }
  body.vx-has-nav .pcm-chat-widget:not(.pcm-chat-opened), body.vx-has-actions .pcm-chat-widget:not(.pcm-chat-opened) { bottom: calc(var(--vxn) + 12px) !important; }
  body.vx-has-nav #pcm-back-top, body.vx-has-actions #pcm-back-top { bottom: calc(var(--vxn) + 74px) !important; }
  body.vx-has-nav .pcm-cmp-bar, body.vx-has-actions .pcm-cmp-bar { bottom: calc(var(--vxn) + 74px) !important; }
  body.vx-has-nav #pcm-toast-wrap, body.vx-has-actions #pcm-toast-wrap { bottom: calc(var(--vxn) + 84px); }
  body.vx-has-nav .vpop-bar, body.vx-has-actions .vpop-bar { bottom: var(--vxn); }
  body.vx-has-nav .vpop-corner, body.vx-has-actions .vpop-corner { bottom: calc(var(--vxn) + 74px) !important; }
  body:has(.pcm-chat-widget.pcm-chat-opened) .vx-nav, body:has(.pcm-chat-widget.pcm-chat-opened) .vx-actions { display: none; }
}
.vx-tab, .vx-act {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
  background: none; border: 0; color: #5b6a60; text-decoration: none; font: 700 .7rem/1.2 'Cairo', sans-serif; cursor: pointer; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.vx-tab i, .vx-act i { font-size: 1.15rem; }
.vx-tab span, .vx-act span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vx-tab.is-on { color: var(--pcm-primary); }
.vx-tab.is-on::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--pcm-primary); }
.vx-tab:active, .vx-act:active { transform: scale(.94); }
.vx-tab:focus-visible, .vx-act:focus-visible { outline: 2px solid var(--pcm-primary); outline-offset: -4px; border-radius: 10px; }
.vx-search-ic { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--pcm-primary); color: #fff; box-shadow: 0 6px 16px rgba(15,121,60,.4); border: 3px solid #fff; }
.vx-tab-search { color: var(--pcm-primary-dark); }
.vx-dot { position: absolute; top: 6px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--pcm-red); color: #fff; font: 800 .62rem/17px 'Cairo', sans-serif; text-align: center; border: 2px solid #fff; }
.vx-act { color: var(--pcm-primary-dark); }
.vx-act-wa { color: #128C4A; }
.vx-act-main { flex: 1.5; margin: 8px 4px; border-radius: 12px; background: var(--pcm-primary); color: #fff !important; flex-direction: row; gap: 6px; font-size: .82rem; }
.vx-act-main i { font-size: 1rem; }
/* the smallest phones (under 375px): the header has no room for five buttons — the menu button was pushed off the
   screen. Sign-in / the account menu step aside there; both stay in the side menu (and the bottom bar). */
@media (max-width: 374px) {
  body .pcm-header-ctas .pcm-btn-nav-login, body .pcm-header-ctas .pcm-user-dropdown { display: none !important; }
}
@media (max-width: 359px) { .vx-act-main i { display: none; } .vx-act-main { font-size: .78rem; } }
.vx-actions .pcm-fav-btn { position: static !important; width: auto !important; height: auto !important; box-shadow: none !important; background: none !important; transform: none !important; border-radius: 0; }
.vx-actions .pcm-fav-btn.active { color: var(--pcm-red); }

/* ── search sheet ── */
.vx-sheet { position: fixed; inset: 0; z-index: 100004; }
.vx-sheet[hidden] { display: none; }
.vx-sheet-bg { position: absolute; inset: 0; background: rgba(4,20,11,.5); opacity: 0; transition: opacity .25s; }
.vx-sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.vx-sheet.is-on .vx-sheet-bg { opacity: 1; }
.vx-sheet.is-on .vx-sheet-card { transform: none; }
.vx-sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: #d7e2da; margin: 0 auto 12px; }
.vx-sheet h2 { font-size: 1.15rem; font-weight: 900; color: var(--pcm-primary-dark); margin: 0 0 12px; }
.vx-sheet-form { display: flex; align-items: center; gap: 8px; border: 1.5px solid #d7e6dc; border-radius: 14px; padding: 4px 4px 4px 12px; }
[dir="rtl"] .vx-sheet-form { padding: 4px 12px 4px 4px; }
.vx-sheet-form i { color: #7c8a80; }
.vx-sheet-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: 600 1rem 'Cairo', sans-serif; min-height: 44px; background: transparent; }
.vx-sheet-form button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--pcm-primary); color: #fff; font: 800 .95rem 'Cairo', sans-serif; }
.vx-sheet-h { margin: 18px 0 8px; font-weight: 800; font-size: .85rem; color: #5b6a60; }
.vx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--pcm-lp); color: var(--pcm-primary-dark); font-weight: 700; font-size: .88rem; text-decoration: none; }
.vx-chips small { color: var(--pcm-primary); font-weight: 800; }
.vx-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.vx-quick a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid #e3ece6; color: var(--pcm-primary-dark); font-weight: 800; font-size: .9rem; text-decoration: none; }
.vx-quick i { color: var(--pcm-primary); font-size: 1.05rem; }
.vx-sheet-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f5f2; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #333; }
html.vx-lock { overflow: hidden; }

/* ── recently viewed ── */
.vx-recent { padding: 26px 0 6px; }
.vx-recent[hidden] { display: none; }
.vx-recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vx-recent-head h2 { font-size: 1.15rem; font-weight: 900; color: var(--pcm-primary-dark); margin: 0; }
.vx-recent-clear { background: none; border: 0; color: #7c8a80; font: 700 .85rem 'Cairo', sans-serif; cursor: pointer; min-height: 40px; padding: 0 8px; text-decoration: underline; }
.vx-recent-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.vx-rcard { flex: 0 0 230px; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: #fff;
  border: 1px solid #e3ece6; text-decoration: none; color: inherit; box-shadow: 0 4px 14px rgba(7,47,25,.06); }
.vx-rcard:hover { border-color: var(--pcm-primary); color: inherit; }
.vx-rimg { flex: 0 0 64px; height: 64px; border-radius: 10px; background: var(--pcm-lp) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--pcm-primary); }
.vx-rtx { display: flex; flex-direction: column; min-width: 0; }
.vx-rtx strong { font-size: .88rem; color: var(--pcm-primary-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-rtx small { font-size: .74rem; color: #7c8a80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-rtx em { font-style: normal; font-size: .8rem; font-weight: 800; color: var(--pcm-primary); }

/* ── install as an app ── */
.vx-install { position: fixed; z-index: 9995; left: 10px; right: 10px; bottom: calc(var(--vxn) + 10px); display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 16px; background: #0b2416; color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.vx-install.is-on { opacity: 1; transform: none; }
.vx-install img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.vx-install p { flex: 1; margin: 0; font-size: .82rem; line-height: 1.6; }
.vx-install-go { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: #C9A227; color: #1a1405; font: 800 .88rem 'Cairo', sans-serif; }
.vx-install-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; line-height: 1; }
@media (min-width: 992px) { .vx-install { display: none; } }
@media (prefers-reduced-motion: reduce) { .vx-sheet-card, .vx-sheet-bg, .vx-install { transition: none; } }

/* ── "نبّهني بالجديد" ── */
.vss-btn { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed var(--pcm-primary); background: #fff; color: var(--pcm-primary); font: 800 .9rem 'Cairo', sans-serif; }
.vss-btn:hover, .vss-btn.is-on { background: var(--pcm-lp); }
.vss-btn.is-on { border-style: solid; }
.vss-box { border: 1px solid #e3ece6; border-radius: 16px; padding: 16px 18px; margin-bottom: 22px; background: #fbfdfb; }
.vss-box h3 { font-size: 1rem; font-weight: 900; color: var(--pcm-primary-dark); margin: 0 0 10px; }
.vss-box h3 i { color: var(--pcm-primary); }
.vss-empty { margin: 0; color: #5b6a60; font-size: .9rem; line-height: 1.8; }
.vss-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vss-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid #e3ece6; }
.vss-list li span { color: var(--pcm-primary-dark); font-weight: 700; font-size: .9rem; }
.vss-list li span i { color: var(--pcm-primary); margin-inline-end: 6px; }
.vss-del { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid #f3c9cb; background: #fff; color: var(--pcm-red); font: 700 .82rem 'Cairo', sans-serif; cursor: pointer; }
