


#cinema-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  pointer-events: none;
}
#cinema-modal.cm-visible {
  pointer-events: all;
}


#cm-img-wrap {
  position: fixed;
  overflow: hidden;
  z-index: 9501;
  will-change: top, left, width, height, border-radius;
  transition:
    top      1.1s cubic-bezier(0.22, 1, 0.36, 1),
    left     1.1s cubic-bezier(0.22, 1, 0.36, 1),
    width    1.1s cubic-bezier(0.22, 1, 0.36, 1),
    height   1.1s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
#cm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
#cinema-modal.cm-open #cm-img {
  transform: scale(1);
}


.cm-dark {
  position: fixed;
  inset: 0;
  z-index: 9502;
  background: rgba(4, 3, 3, 0.55);
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
  pointer-events: none;
}
#cinema-modal.cm-open .cm-dark {
  opacity: 1;
}


.cm-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.0)  100%
  );
  opacity: 0;
  transition: opacity 0.9s ease 0.5s;
  pointer-events: none;
}
[dir="ltr"] .cm-vignette {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.0)  100%
  );
}
#cinema-modal.cm-open .cm-vignette {
  opacity: 1;
}


.cm-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(320px, 44vw, 540px);
  z-index: 9510;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5.5rem) clamp(2rem, 4vw, 4.5rem);
  gap: 1.1rem;
  pointer-events: none;
}

[dir="rtl"] .cm-panel {
  right: auto;
  left: 0;
}


@media (max-height: 700px) {
  .cm-panel { overflow-y: auto; padding-top: 5rem; padding-bottom: 5rem; }
}


.cm-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cm-item.cm-on {
  opacity: 1;
  transform: translateY(0);
}

.cm-item.cm-out {
  opacity: 0 !important;
  transform: translateY(-20px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}


.cm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #C9A96E;
  border: 1px solid rgba(201, 169, 110, 0.35);
  padding: 0.42rem 0.9rem;
  width: fit-content;
  backdrop-filter: blur(8px);
  background: rgba(201, 169, 110, 0.06);
}
.cm-badge::before {
  content: '';
  width: 18px;
  height: 1px;
  background: #C9A96E;
}


.cm-name {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
.cm-name em {
  font-style: italic;
  color: #C9A96E;
}


.cm-line {
  width: 54px;
  height: 1px;
  background: linear-gradient(to left, transparent, #C9A96E);
  margin: 0.15rem 0;
}


.cm-price-block { display: flex; flex-direction: column; gap: 0.18rem; }
.cm-price-lbl {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cm-price {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #C9A96E;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.1rem;
}
.cm-price sup {
  font-size: 45%;
  margin-top: 0.55em;
  vertical-align: top;
}
.cm-price .cm-per {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  font-weight: 300;
  align-self: flex-end;
  padding-bottom: 0.22em;
}


.cm-info-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2rem;
}
.cm-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.cm-info-ico {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,169,110,0.06);
  flex-shrink: 0;
}
.cm-info-ico svg {
  width: 15px;
  height: 15px;
  color: #C9A96E;
}
.cm-info-txt strong {
  display: block;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.18rem;
}
.cm-info-txt span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
}


.cm-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  max-width: 420px;
}


.cm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.cm-tags span {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(201,169,110,0.22);
  color: rgba(255,255,255,0.62);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.3s, color 0.3s;
}
.cm-tags span:hover {
  border-color: rgba(201,169,110,0.6);
  color: #C9A96E;
}


.cm-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.cm-cta a {
  pointer-events: all;
}
.cm-cta .cm-contact {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  pointer-events: all;
}
.cm-cta .cm-contact:hover { color: #C9A96E; border-color: #C9A96E; }


#cm-close {
  position: fixed;
  top: 1.6rem;
  left: 1.6rem;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9520;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transform: scale(0.75) rotate(-45deg);
  transition:
    opacity   0.45s cubic-bezier(0.22,1,0.36,1) 0.55s,
    transform 0.45s cubic-bezier(0.22,1,0.36,1) 0.55s,
    background 0.3s;
}
[dir="rtl"] #cm-close { left: auto; right: 1.6rem; }
#cinema-modal.cm-open #cm-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
#cm-close:hover {
  background: rgba(201,169,110,0.15);
  border-color: rgba(201,169,110,0.5);
  color: #C9A96E;
}
#cm-close svg { width: 18px; height: 18px; }
#cm-close.cm-closing {
  opacity: 0 !important;
  transform: scale(0.75) rotate(45deg) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}


.room-card, .fac, .pool-bar {
  cursor: pointer;
}


.room-card .rc-img::after,
.fac::after,
.pool-bar::after {
  content: 'عرض التجربة الكاملة';
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 2px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

.room-card:hover .rc-img::after,
.fac:hover::after,
.pool-bar:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.fac::after {
  bottom: 2rem;
}

.pool-bar::after {
  bottom: 3rem;
}


@media (max-width: 900px) {
  .cm-panel {
    width: 100%;
    top: auto;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    max-height: 62vh;
    padding: 2rem 1.8rem 2.5rem;
    overflow-y: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.88) 80%, transparent 100%);
    justify-content: flex-end;
    border-radius: 0;
    gap: 0.85rem;
  }
  .cm-vignette {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.9) 0%,
      rgba(0,0,0,0.3) 50%,
      rgba(0,0,0,0.0) 100%
    ) !important;
  }
  .cm-name { font-size: 1.7rem; }
  .cm-info-g { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .cm-price { font-size: 2rem; }
  #cm-close { top: 1rem; right: 1rem; left: auto !important; }
}

@media (max-width: 768px) {
  .cm-panel {
    max-height: 65vh;
    padding: 1.8rem 1.5rem 2.2rem;
    gap: 0.75rem;
  }
  .cm-name { font-size: 1.55rem; }
  .cm-price { font-size: 1.85rem; }
  .cm-info-g { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .cm-desc { font-size: 0.82rem; max-width: 100%; }
  .cm-cta { gap: 0.8rem; }
  #cm-close { width: 42px; height: 42px; top: 0.9rem; right: 0.9rem; }
}

@media (max-width: 500px) {
  .cm-panel { padding: 1.5rem 1.2rem 2rem; max-height: 68vh; }
  .cm-name { font-size: 1.4rem; }
  .cm-info-g { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .cm-price { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .cm-panel {
    max-height: 70vh;
    padding: 1.3rem 1rem 1.8rem;
    gap: 0.65rem;
  }
  .cm-name { font-size: 1.3rem; line-height: 1.15; }
  .cm-price { font-size: 1.55rem; }
  .cm-info-g { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
  .cm-info-txt span { font-size: 0.82rem; }
  .cm-desc { font-size: 0.8rem; line-height: 1.72; }
  .cm-tags span { font-size: 0.6rem; }
  .cm-cta { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .cm-cta .btn { width: 100%; justify-content: center; }
  #cm-close { width: 40px; height: 40px; top: 0.8rem; right: 0.8rem; }
  #cm-close svg { width: 16px; height: 16px; }
}


.cm-panel::-webkit-scrollbar { width: 3px; }
.cm-panel::-webkit-scrollbar-track { background: transparent; }
.cm-panel::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.3); border-radius: 2px; }
