


@keyframes rm-dish-drop {
  0% {
    transform: translateY(-108vh) scale(0.8) rotateX(16deg);
    opacity: 0;
    filter: blur(16px);
  }
  20% {
    opacity: 0.85;
    filter: blur(3px);
  }
  100% {
    transform: translateY(0) scale(1) rotateX(0);
    opacity: 1;
    filter: blur(0);
  }
}


@keyframes rm-dish-rise {
  0%   { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
  30%  { transform: translateY(-18px) scale(1.02); opacity: 1; filter: blur(0); }
  100% { transform: translateY(-110vh) scale(0.78); opacity: 0; filter: blur(10px); }
}


@keyframes rm-glow-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%       { opacity: 0.62; transform: scale(1.12); }
}


@keyframes rm-shimmer {
  0%   { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(260%) skewX(-18deg); }
}


#resto-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: none;
  overflow: hidden;
}


.rm-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 35% 48%, rgba(201,169,110,0.04) 0%, transparent 70%),
    #060504;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
#resto-modal.rm-open .rm-bg { opacity: 1; }


.rm-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}


.rm-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.14) 0%, transparent 72%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease 0.6s;
  animation: rm-glow-pulse 3.5s ease-in-out infinite;
  animation-play-state: paused;
}
#resto-modal.rm-open .rm-glow {
  opacity: 1;
  animation-play-state: running;
}


.rm-layout {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: center;
}
@media (max-width: 900px) {
  .rm-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}


.rm-dish-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}


.rm-plate-shadow {
  position: absolute;
  bottom: calc(50% - 38%);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(260px, 40vw, 460px);
  height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.7) 0%, transparent 72%);
  filter: blur(18px);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.7s ease 0.9s;
  pointer-events: none;
}
#resto-modal.rm-open .rm-plate-shadow { opacity: 1; }


.rm-dish-wrap {
  position: relative;
  width: clamp(280px, 42vw, 520px);
  aspect-ratio: 1 / 1;
  opacity: 0;
  transform-origin: center center;
}
#resto-modal.rm-open .rm-dish-wrap {
  animation: rm-dish-drop 1.35s cubic-bezier(0.22, 0.6, 0.36, 1) 0.2s both;
}
#resto-modal.rm-closing .rm-dish-wrap {
  animation: rm-dish-rise 0.7s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}


.rm-dish-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.8),
    0 0 0 1px rgba(201,169,110,0.12),
    0 0 80px rgba(201,169,110,0.08);
}


.rm-dish-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.22);
  pointer-events: none;
}
.rm-dish-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.10);
}


.rm-dish-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.rm-dish-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.12) 50%,
    transparent 70%
  );
  animation: rm-shimmer 2.8s ease-in-out 1.6s 1 forwards;
  transform: translateX(-130%) skewX(-18deg);
}


.rm-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5.5rem) clamp(2rem, 4vw, 5rem) clamp(2rem, 5vw, 5.5rem) 2rem;
  height: 100%;
  gap: 1rem;
  overflow-y: auto;
}
[dir="rtl"] .rm-info-col {
  padding: clamp(2rem, 5vw, 5.5rem) 2rem clamp(2rem, 5vw, 5.5rem) clamp(2rem, 4vw, 5rem);
}
.rm-info-col::-webkit-scrollbar { width: 2px; }
.rm-info-col::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.25); }


.rm-item {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.rm-item.rm-on {
  opacity: 1;
  transform: translateY(0);
}
.rm-item.rm-out {
  opacity: 0 !important;
  transform: translateY(-18px) !important;
  transition: opacity 0.22s ease, transform 0.22s ease !important;
}


.rm-category {
  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.32em;
  text-transform: uppercase;
  color: #C9A96E;
  border: 1px solid rgba(201,169,110,0.3);
  padding: 0.38rem 0.9rem;
  width: fit-content;
  background: rgba(201,169,110,0.05);
}
.rm-category::before {
  content: '';
  width: 16px;
  height: 1px;
  background: #C9A96E;
  flex-shrink: 0;
}


.rm-resto-name {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}


.rm-dish-name {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.rm-dish-name-en {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  display: block;
}


.rm-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(to left, transparent, #C9A96E, transparent);
  margin: 0.1rem 0;
}


.rm-price-block {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.rm-price {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: #C9A96E;
  line-height: 1;
}
.rm-price sup {
  font-size: 45%;
  vertical-align: super;
}
.rm-price-lbl {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  padding-bottom: 0.4em;
}


.rm-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.88;
  max-width: 440px;
}


.rm-highlights-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.rm-highlights-lbl {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.rm-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rm-highlights span {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.65rem;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(201,169,110,0.22);
  color: rgba(255,255,255,0.65);
  border-radius: 2px;
  background: rgba(201,169,110,0.04);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s, color 0.3s;
}
.rm-highlights span:hover {
  border-color: rgba(201,169,110,0.55);
  color: #C9A96E;
}


.rm-hours {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}
.rm-hours svg {
  width: 14px;
  height: 14px;
  color: rgba(201,169,110,0.6);
  flex-shrink: 0;
}


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


.rm-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,169,110,0.4), transparent);
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}
#resto-modal.rm-open .rm-top-line { opacity: 1; }


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


.dc {
  cursor: pointer;
  position: relative;
}
.dc::after {
  content: 'استكشف القائمة';
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.dc:hover::after { opacity: 1; transform: translateY(0); }


@media (max-width: 900px) {
  .rm-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 52% 48%;
    align-items: start;
  }
  .rm-dish-col {
    padding: 4rem 1.5rem 0;
    justify-content: flex-end;
  }
  .rm-dish-wrap {
    width: clamp(220px, 70vw, 380px);
  }
  .rm-info-col {
    padding: 1.5rem 1.8rem 2rem;
    gap: 0.75rem;
    overflow-y: auto;
    background: linear-gradient(to bottom, rgba(6,5,4,0.0) 0%, rgba(6,5,4,0.98) 15%);
    justify-content: flex-start;
  }
  .rm-dish-name { font-size: 1.8rem; }
  .rm-price     { font-size: 1.8rem; }
  #rm-close { top: 1rem; right: 1rem; left: auto !important; }
}

@media (max-width: 768px) {
  .rm-layout {
    grid-template-rows: 48% 52%;
  }
  .rm-dish-col {
    padding: 3rem 1.2rem 0;
  }
  .rm-dish-wrap {
    width: clamp(200px, 65vw, 340px);
  }
  .rm-info-col {
    padding: 1.2rem 1.5rem 1.8rem;
    gap: 0.65rem;
  }
  .rm-dish-name { font-size: 1.65rem; }
  .rm-price     { font-size: 1.65rem; }
  .rm-desc      { font-size: 0.84rem; max-width: 100%; }
  .rm-highlights { gap: 0.35rem; }
  .rm-cta       { gap: 0.9rem; }
  #rm-close { width: 42px; height: 42px; top: 0.9rem; right: 0.9rem; }
  #rm-close svg { width: 16px; height: 16px; }
}

@media (max-width: 480px) {
  .rm-layout {
    grid-template-rows: 45% 55%;
  }
  .rm-dish-col {
    padding: 2.5rem 1rem 0;
  }
  .rm-dish-wrap { width: clamp(160px, 60vw, 270px); }
  .rm-info-col  { padding: 1rem 1rem 1.5rem; gap: 0.55rem; }
  .rm-dish-name { font-size: 1.4rem; line-height: 1.1; }
  .rm-price     { font-size: 1.45rem; }
  .rm-desc      { font-size: 0.8rem; line-height: 1.75; }
  .rm-category  { font-size: 0.56rem; padding: 0.32rem 0.75rem; }
  .rm-highlights span { font-size: 0.6rem; padding: 0.24rem 0.6rem; }
  .rm-cta { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .rm-cta a.btn { width: 100%; justify-content: center; }
  #rm-close { width: 40px; height: 40px; top: 0.8rem; right: 0.8rem; }
}
