/* ==========================================================================
   Dwano Travel — custom theme layer (own design, independent of vendor code)
   Header (glass + scroll state), animated hero, search card, reveal-on-scroll,
   cards and stats. Remove the <link> in header.php to switch it off.
   ========================================================================== */

:root {
  --dw-brand: #1d4ed8;
  --dw-brand-2: #0ea5e9;
  --dw-ink: #0f172a;
  --dw-muted: #64748b;
  --dw-line: rgba(15, 23, 42, .08);
  --dw-radius: 18px;
  --dw-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Header ---------- */
#main-header.dw-header {
  background: rgba(255, 255, 255, .86) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  transition: box-shadow .3s var(--dw-ease), border-color .3s var(--dw-ease), background .3s var(--dw-ease);
}
#main-header.dw-header.is-scrolled {
  background: rgba(255, 255, 255, .96) !important;
  border-bottom-color: var(--dw-line) !important;
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, .18) !important;
}
#main-header.dw-header nav > a,
#main-header.dw-header nav .group > button {
  position: relative;
  font-weight: 600;
}
#main-header.dw-header nav > a::after,
#main-header.dw-header nav .group > button::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dw-brand), var(--dw-brand-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--dw-ease);
}
#main-header.dw-header nav > a:hover::after,
#main-header.dw-header nav .group:hover > button::after { transform: scaleX(1); }

/* language / currency / account pills */
#main-header.dw-header .dw-pill {
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--dw-line) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
#main-header.dw-header .dw-pill:hover {
  border-color: rgba(29, 78, 216, .35) !important;
  box-shadow: 0 6px 18px -8px rgba(29, 78, 216, .45);
  transform: translateY(-1px);
}
/* dropdown panels */
#main-header.dw-header .group > div.absolute.mt-2 {
  border-radius: 16px !important;
  border-color: var(--dw-line) !important;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .35) !important;
}
#main-header.dw-header .group > div.absolute.mt-2 a { border-radius: 10px !important; }

/* ---------- Hero ---------- */
.dw-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;           /* قوائم البحث (المدن/الضيوف) لا تُقص */
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  padding: 72px 0 34px;
}
.dw-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.dw-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 40%;
  animation: dwKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes dwKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}
.dw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 15% 30%, rgba(14, 165, 233, .28), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, .15) 0%, rgba(2, 6, 23, .45) 45%, rgba(2, 6, 23, .82) 100%);
}
.dw-hero__content { width: 100%; }
.dw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.dw-hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: dwPulse 2s infinite;
}
@keyframes dwPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.dw-hero__title {
  margin: 12px 0 8px;
  color: #fff;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
  max-width: 22ch;
}
.dw-hero__sub {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(14px, 1.2vw, 16.5px);
  max-width: 58ch;
  margin-bottom: 14px;
}
.dw-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.dw-hero__chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px; font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, .35);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.dw-hero__chips .material-symbols-outlined { font-size: 16px; color: #7dd3fc; }

/* entrance animation */
.dw-rise { opacity: 0; transform: translateY(18px); animation: dwRise .8s var(--dw-ease) forwards; }
.dw-rise.d1 { animation-delay: .08s; }
.dw-rise.d2 { animation-delay: .18s; }
.dw-rise.d3 { animation-delay: .28s; }
.dw-rise.d4 { animation-delay: .4s; }
@keyframes dwRise { to { opacity: 1; transform: none; } }

/* ---------- Search card ---------- */
.dw-search {
  background: rgba(255, 255, 255, .97);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 40px 80px -30px rgba(2, 6, 23, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.dw-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 0;
  border-bottom: 1px solid var(--dw-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.dw-tabs::-webkit-scrollbar { display: none; }
.dw-tab {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 700;
  color: var(--dw-muted);
  white-space: nowrap;
  transition: color .25s var(--dw-ease);
}
.dw-tab:hover { color: var(--dw-ink); }
.dw-tab.is-active { color: #fff; }
.dw-tab-ink {
  position: absolute;
  z-index: 0;
  top: 6px; bottom: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dw-brand), var(--dw-brand-2));
  box-shadow: 0 10px 24px -10px rgba(29, 78, 216, .65);
  transition: left .35s var(--dw-ease), width .35s var(--dw-ease);
}

/* ---------- Reveal on scroll ---------- */
.dw-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--dw-ease), transform .8s var(--dw-ease); }
.dw-reveal.is-in { opacity: 1; transform: none; }

/* cards inside home sections lift on hover */
.dw-home-sections a[href*="/stay/"] img,
.dw-home-sections .group img { transition: transform .6s var(--dw-ease); }
.dw-home-sections a[href*="/stay/"]:hover img,
.dw-home-sections .group:hover img { transform: scale(1.06); }

/* ---------- Stats ---------- */
.dw-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .dw-stats { grid-template-columns: repeat(4, 1fr); } }
.dw-stat {
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  border-radius: var(--dw-radius);
  background: #fff;
  border: 1px solid var(--dw-line);
  text-align: center;
  transition: transform .3s var(--dw-ease), box-shadow .3s var(--dw-ease);
}
.dw-stat:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(29, 78, 216, .45); }
.dw-stat::after {
  content: ""; position: absolute; inset: auto -30% -60% auto;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .14), transparent 70%);
}
.dw-stat .num {
  font-size: 30px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--dw-brand), var(--dw-brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dw-stat .lbl { margin-top: 4px; font-size: 13px; color: var(--dw-muted); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .dw-hero { min-height: 0; padding: 40px 0 18px; align-items: flex-start; }
  .dw-hero__eyebrow { font-size: 11px; padding: 4px 10px; }
  .dw-hero__title { font-size: 23px; margin: 10px 0 6px; }
  .dw-hero__sub { font-size: 13.5px; margin-bottom: 12px; }
  /* الشارات في سطر واحد يُسحب أفقياً بدل أن تأخذ عدة أسطر */
  .dw-hero__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
  .dw-hero__chips::-webkit-scrollbar { display: none; }
  .dw-hero__chips span { flex: 0 0 auto; }
  .dw-search { border-radius: 16px; }
  .dw-tab { padding: 8px 12px; font-size: 12.5px; }
  .dw-tab .text-xl { font-size: 18px; }
  .dw-stats { gap: 10px; }
  .dw-stat { padding: 16px 10px; }
  .dw-stat .num { font-size: 22px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .dw-hero { min-height: 430px; padding-top: 56px; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .dw-hero__bg { transform-origin: 40% 40%; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dw-hero__bg, .dw-hero__eyebrow .dot { animation: none !important; }
  .dw-rise, .dw-reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   Footer (own design)
   ========================================================================== */
.dw-footer {
  position: relative;
  margin-top: 56px;
  color: #cbd5e1;
  background:
    radial-gradient(900px 380px at 10% -10%, rgba(14, 165, 233, .18), transparent 60%),
    radial-gradient(700px 320px at 95% 0%, rgba(29, 78, 216, .22), transparent 60%),
    #0b1220;
  padding-top: 1px;
}
.dw-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.dw-footer a:hover { color: #fff; }

.dw-footer__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: -44px 0 40px;
  padding: 22px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(14, 165, 233, .7);
}
.dw-footer__cta h3 { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.dw-footer__cta p { margin: 0; opacity: .9; font-size: 14px; }
.dw-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, .16); color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: transform .2s var(--dw-ease), background .2s;
}
.dw-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .26); }
.dw-btn .material-symbols-outlined { font-size: 18px; }
.dw-btn--wa { background: #22c55e; border-color: #22c55e; }
.dw-btn--wa:hover { background: #16a34a; }

.dw-footer__grid {
  display: grid; gap: 34px;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr));
  padding-bottom: 40px;
}
.dw-footer__logo {
  display: inline-flex; padding: 8px 12px; border-radius: 12px; background: #fff; margin-bottom: 14px;
}
.dw-footer__logo img { height: 30px; width: auto; }
.dw-footer__brand p { font-size: 14px; line-height: 1.7; color: #94a3b8; max-width: 34ch; margin: 0 0 16px; }
.dw-footer__social { display: flex; gap: 8px; }
.dw-footer__social a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .2s var(--dw-ease), background .2s, border-color .2s;
}
.dw-footer__social a:hover { transform: translateY(-2px); background: #1d4ed8; border-color: #1d4ed8; }
.dw-footer__col h4 { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; margin: 4px 0 14px; }
.dw-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dw-footer__col li a { font-size: 14px; color: #94a3b8; display: inline-block; transition: color .2s, transform .2s; }
.dw-footer__col li a:hover { color: #fff; transform: translateX(3px); }
[dir="rtl"] .dw-footer__col li a:hover { transform: translateX(-3px); }
.dw-footer__contact li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #94a3b8; }
.dw-footer__contact .material-symbols-outlined { font-size: 18px; color: #38bdf8; margin-top: 1px; }

.dw-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.dw-footer__bottom .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: #94a3b8;
}
.dw-footer__bottom p { margin: 0; }
.dw-footer__bottom strong { color: #e2e8f0; }
.dw-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.dw-footer__pay { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dw-footer__pay .material-symbols-outlined { font-size: 16px; color: #22c55e; }
.dw-card {
  font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #e2e8f0;
  padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
}
.dw-totop {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 50;
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #0f172a; color: #fff; box-shadow: 0 12px 30px -10px rgba(2, 6, 23, .6);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--dw-ease), visibility .3s, background .2s;
}
.dw-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.dw-totop:hover { background: #1d4ed8; }

@media (max-width: 767px) {
  .dw-footer { margin-top: 64px; }
  .dw-footer__cta { margin-top: -40px; padding: 18px; border-radius: 16px; }
  .dw-footer__cta h3 { font-size: 16.5px; }
  .dw-footer__cta-actions { width: 100%; }
  .dw-footer__cta-actions .dw-btn { flex: 1 1 auto; justify-content: center; padding: 10px 12px; }
  .dw-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .dw-footer__brand { grid-column: 1 / -1; }
  .dw-footer__bottom .container { flex-direction: column; text-align: center; }
  .dw-footer__bottom nav { justify-content: center; }
  .dw-totop { bottom: 86px; }
}

/* ==========================================================================
   Results page (stays listing) — summary strip, hotel cards, filters
   ========================================================================== */
.dw-rs {
  align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 14px; padding: 14px 18px;
  border-radius: var(--dw-radius);
  background: linear-gradient(120deg, var(--dw-brand) 0%, #2563eb 45%, var(--dw-brand-2) 100%);
  color: #fff; box-shadow: 0 14px 34px -18px rgba(29, 78, 216, .55);
  animation: dwRise .6s var(--dw-ease) both;
}
.dw-rs__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dw-rs__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.16); font-size: 22px; }
.dw-rs__title { font-size: 16px; line-height: 1.3; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-rs__title strong { font-weight: 800; opacity: 1; }
.dw-rs__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 3px; font-size: 12.5px; opacity: .88; }
.dw-rs__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.dw-rs__meta .material-symbols-outlined { font-size: 15px; }
.dw-rs__perks { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.dw-rs__perks li { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dw-rs__perks .material-symbols-outlined { font-size: 15px; }
@media (max-width: 1100px) { .dw-rs__perks li:nth-child(n+2) { display: none; } }
@keyframes dwRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* hotel card */
.dw-results .dw-hcard {
  border-radius: var(--dw-radius) !important;
  border: 1px solid var(--dw-line) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 28px -20px rgba(15,23,42,.25);
  transition: transform .35s var(--dw-ease), box-shadow .35s var(--dw-ease), border-color .35s var(--dw-ease);
}
.dw-results .dw-hcard:hover {
  transform: translateY(-3px);
  border-color: rgba(29,78,216,.22) !important;
  box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 22px 44px -22px rgba(29,78,216,.38);
}
.dw-hcard__media { overflow: hidden; }
.dw-hcard__media img { transition: transform .7s var(--dw-ease), opacity .2s ease; }
.dw-hcard:hover .dw-hcard__media img { transform: scale(1.06); }
.dw-hcard h3 { letter-spacing: -.01em; transition: color .25s; }
.dw-hcard:hover h3 { color: var(--dw-brand); }
.dw-hcard__price { color: var(--dw-ink); letter-spacing: -.02em; }
.dark .dw-hcard__price { color: #f1f5f9; }
.dw-hcard__cta {
  border-radius: 12px !important;
  background: linear-gradient(120deg, var(--dw-brand), #2563eb) !important;
  color: #fff !important; border: 0 !important; font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(29,78,216,.7);
  transition: transform .25s var(--dw-ease), box-shadow .25s var(--dw-ease);
}
.dw-hcard__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(29,78,216,.8); }
.dw-hcard__cta .material-symbols-outlined { transition: transform .25s var(--dw-ease); }
.dw-hcard__cta:hover .material-symbols-outlined { transform: translateX(3px); }
[dir="rtl"] .dw-hcard__cta:hover .material-symbols-outlined { transform: translateX(-3px) scaleX(-1); }
[dir="rtl"] .dw-hcard__cta .material-symbols-outlined { transform: scaleX(-1); }

/* filters */
.dw-filters > .card {
  border-radius: var(--dw-radius) !important;
  border: 1px solid var(--dw-line) !important;
  box-shadow: 0 10px 28px -22px rgba(15,23,42,.3);
}
.dw-filters input[type="checkbox"]:checked { accent-color: var(--dw-brand); }
.dw-results .noUi-connect { background: linear-gradient(90deg, var(--dw-brand), var(--dw-brand-2)); }
.dw-results .noUi-handle { border-radius: 50%; box-shadow: 0 2px 8px rgba(29,78,216,.35); }

/* search card on results page */
.dw-results .container > div > .card.overflow-visible { border-radius: var(--dw-radius); border: 1px solid var(--dw-line); }

@media (max-width: 767px) {
  .dw-results .dw-hcard:hover { transform: none; }
  .dw-hcard__media button[class*="group-hover"] { opacity: 1 !important; width: 30px; height: 30px; }
  .dw-hcard__foot { align-items: center !important; }
  .dw-hcard__price { font-size: 21px !important; }
  .dw-hcard__cta { padding: 10px 14px !important; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-rs, .dw-results .dw-hcard, .dw-hcard__media img { animation: none; transition: none; }
  .dw-hcard:hover .dw-hcard__media img { transform: none; }
}

/* ==========================================================================
   Hotel page (stay details)
   ========================================================================== */
.dw-stay .card {
  border-radius: var(--dw-radius) !important;
  border: 1px solid var(--dw-line) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 30px -24px rgba(15,23,42,.3);
}
.dw-stay .dw-gallery, .dw-stay .dw-info, .dw-stay .dw-rooms { animation: dwRise .55s var(--dw-ease) both; }
.dw-stay .dw-info { animation-delay: .06s; }
.dw-stay .dw-rooms { animation-delay: .12s; }
.dw-gallery .h-72 img { transition: transform 1.2s var(--dw-ease); }
.dw-gallery .h-72:hover img { transform: scale(1.03); }
.dw-gallery .h-72 button {
  background: rgba(255,255,255,.88) !important; color: var(--dw-ink) !important;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); backdrop-filter: blur(6px);
  transition: transform .25s var(--dw-ease), background .25s;
}
.dw-gallery .h-72 button:hover { background: #fff !important; transform: translateY(-50%) scale(1.06); }
.dw-info h1 { letter-spacing: -.02em; }
.dw-rooms > h2 .material-symbols-outlined { color: var(--dw-brand); }

/* room groups */
.dw-room {
  border-radius: 16px !important;
  border-color: var(--dw-line) !important;
  transition: box-shadow .3s var(--dw-ease), border-color .3s var(--dw-ease);
}
.dw-room:hover { border-color: rgba(29,78,216,.25) !important; box-shadow: 0 16px 34px -24px rgba(29,78,216,.45); }
.dw-room__head { background: linear-gradient(180deg, #f8fafc, #fff) !important; }
.dark .dw-room__head { background: #1f2937 !important; }
.dw-room__head h4 { font-weight: 700 !important; }
.dw-room img { border-radius: 10px !important; transition: transform .3s var(--dw-ease), box-shadow .3s; }
.dw-room img:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(15,23,42,.5); }
.dw-room .bg-blue-50 { background: rgba(29,78,216,.06) !important; box-shadow: inset 3px 0 0 var(--dw-brand); }
[dir="rtl"] .dw-room .bg-blue-50 { box-shadow: inset -3px 0 0 var(--dw-brand); }

/* booking summary */
.dw-summary { border-top: 4px solid var(--dw-brand) !important; }
.dw-summary > h3 { font-size: 17px !important; letter-spacing: -.01em; }
.dw-summary .space-y-3 > .flex { padding-bottom: 8px; border-bottom: 1px dashed var(--dw-line); }
.dw-summary .space-y-3 > .flex:last-child { border-bottom: 0; }

@media (max-width: 767px) {
  .dw-stay .container { padding-left: 12px; padding-right: 12px; }
  .dw-gallery .h-72 { height: 15rem; }
  .dw-gallery .h-72:hover img { transform: none; }
  .dw-room__head { padding: 12px !important; }
  .dw-summary { position: static !important; max-height: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-stay .dw-gallery, .dw-stay .dw-info, .dw-stay .dw-rooms { animation: none; }
  .dw-gallery img, .dw-room img { transition: none; }
}

/* ==========================================================================
   Mobile app-like layer (≤ 1023px for bars, ≤ 767px for layout)
   ========================================================================== */
.dw-tabbar, .dw-mbar { display: none; }

@media (max-width: 1023px) {
  /* bottom tab bar */
  .dw-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; z-index: 45; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 6px; border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .35);
    transition: transform .35s var(--dw-ease), opacity .35s;
  }
  .dw-tabbar.is-hidden { transform: translateY(130%); opacity: 0; }
  .dw-tabbar__i {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 50px; border-radius: 14px; color: #64748b;
    font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s;
  }
  .dw-tabbar__i .material-symbols-outlined { font-size: 23px; transition: transform .25s var(--dw-ease); }
  .dw-tabbar__i:active .material-symbols-outlined { transform: scale(.88); }
  .dw-tabbar__i.is-on { color: var(--dw-brand); background: rgba(29, 78, 216, .08); }
  .dw-tabbar__i.is-on .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
  .dw-tabbar__i.is-wa { color: #16a34a; }
  body.has-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .dw-totop { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  /* results page floating filters button sits above the bar */
  body.has-tabbar .dw-results > button.fixed { bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }

  /* hotel page sticky booking bar */
  .dw-mbar {
    display: block; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 -12px 30px -18px rgba(15, 23, 42, .35);
    animation: dwRise .4s var(--dw-ease) both;
  }
  .dw-mbar__in { display: flex; align-items: center; gap: 12px; }
  .dw-mbar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .dw-mbar__room { font-size: 12.5px; color: #64748b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dw-mbar__price { font-size: 18px; font-weight: 800; color: var(--dw-ink); letter-spacing: -.02em; }
  .dw-mbar__price small { font-size: 11px; font-weight: 600; color: #64748b; }
  .dw-mbar__hint { font-size: 13px; color: var(--dw-ink); font-weight: 700; }
  .dw-mbar__btn {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 16px; border-radius: 14px; border: 0;
    background: linear-gradient(120deg, var(--dw-brand), #2563eb); color: #fff;
    font-size: 14px; font-weight: 700; box-shadow: 0 10px 22px -10px rgba(29, 78, 216, .8);
  }
  .dw-mbar__btn .material-symbols-outlined { font-size: 18px; }
  [dir="rtl"] .dw-mbar__btn .material-symbols-outlined:first-of-type { transform: scaleX(-1); }
  body.has-mbar { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  body.has-mbar .dw-totop { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

  /* mobile menu: rounded sheet with comfortable rows */
  .dw-mmenu {
    left: 10px !important; right: 10px !important; top: 72px !important;
    border-radius: 20px; border: 1px solid rgba(15, 23, 42, .07) !important;
    max-height: calc(100vh - 170px) !important;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45) !important;
  }
  .dw-mmenu > div { padding: 12px !important; }
  .dw-mmenu > div > * + * { margin-top: 4px !important; }
  .dw-mmenu button, .dw-mmenu a {
    min-height: 46px; border-radius: 12px !important; font-size: 14.5px !important;
  }
  .dw-mmenu > div > div > button, .dw-mmenu > div > a { font-weight: 600 !important; }
  .dw-mmenu button:active, .dw-mmenu a:active { background: rgba(29, 78, 216, .07) !important; }
  .dw-mbackdrop { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); background: rgba(15, 23, 42, .35) !important; }
  .dw-mtoggle { width: 42px; height: 42px; border-radius: 12px !important; border: 1px solid rgba(15, 23, 42, .08); }
}

@media (max-width: 767px) {
  /* touch-friendly search form */
  .dw-search input, .dw-search select, .dw-search button[type="submit"],
  .dw-results .card input, .dw-results .card select { min-height: 46px; font-size: 16px !important; } /* 16px stops iOS zoom */
  .dw-search { border-radius: 20px !important; }
  .dw-tabs { border-radius: 14px; }

  /* results: image-first cards with price overlay feel */
  .dw-results .container { padding-left: 12px; padding-right: 12px; }
  .dw-results .dw-hcard { border-radius: 20px !important; margin-bottom: 14px !important; }
  .dw-hcard__media img, .dw-hcard__media > a > div { height: 200px !important; }
  .dw-hcard h3 { font-size: 16.5px !important; }
  .dw-hcard__foot { padding-top: 12px !important; }
  .dw-results main h2 { font-size: 17px !important; }
  .dw-results select.select { min-height: 42px; border-radius: 12px; }

  /* footer: accordion columns */
  .dw-footer__grid { row-gap: 0 !important; }
  .dw-footer__brand { margin-bottom: 18px; }
  .dw-footer__col.dw-acc { border-bottom: 1px solid rgba(255, 255, 255, .08); grid-column: 1 / -1; }
  .dw-footer__col.dw-acc h4 {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 !important; padding: 14px 0; cursor: pointer;
  }
  .dw-footer__col.dw-acc h4::after {
    content: "expand_more"; font-family: 'Material Symbols Outlined'; font-size: 20px; font-weight: 400;
    transition: transform .3s var(--dw-ease); opacity: .7;
  }
  .dw-footer__col.dw-acc.is-open h4::after { transform: rotate(180deg); }
  .dw-footer__col.dw-acc ul { max-height: 0; overflow: hidden; transition: max-height .35s var(--dw-ease), padding .35s; padding-bottom: 0; }
  .dw-footer__col.dw-acc.is-open ul { max-height: 600px; padding-bottom: 12px; }
  .dw-footer__col:not(.dw-acc) { grid-column: 1 / -1; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-tabbar, .dw-mbar, .dw-footer__col.dw-acc ul { transition: none; animation: none; }
}

/* ---------- Recent searches (device-only) ---------- */
.dw-recent { margin-top: 12px; animation: dwRise .45s var(--dw-ease) both; }
.dw-hero .dw-recent { position: relative; z-index: 2; }
.dw-recent__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--dw-muted); }
.dw-hero .dw-recent__h { color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.dw-recent__h > span { display: inline-flex; align-items: center; gap: 5px; }
.dw-recent__h .material-symbols-outlined { font-size: 17px; }
.dw-recent__clr { background: none; border: 0; font: inherit; font-weight: 600; color: inherit; opacity: .8; cursor: pointer; padding: 2px 4px; }
.dw-recent__clr:hover { opacity: 1; text-decoration: underline; }
.dw-recent__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dw-recent__i {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 10px 10px 12px;
  border-radius: 14px; background: rgba(255,255,255,.95); border: 1px solid var(--dw-line); color: var(--dw-ink);
  box-shadow: 0 10px 26px -20px rgba(15,23,42,.5); transition: transform .2s var(--dw-ease), box-shadow .2s, border-color .2s;
}
.dw-recent__i:hover { transform: translateY(-2px); border-color: rgba(29,78,216,.28); box-shadow: 0 16px 30px -20px rgba(29,78,216,.55); }
.dw-recent__ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(29,78,216,.08); color: var(--dw-brand); font-size: 19px; }
.dw-recent__t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dw-recent__t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-recent__t small { font-size: 11.5px; color: var(--dw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-recent__x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: #94a3b8; cursor: pointer; }
.dw-recent__x:hover { background: #f1f5f9; color: #0f172a; }
.dw-recent__x .material-symbols-outlined { font-size: 17px; }
.dark .dw-recent__i { background: #1f2937; color: #f1f5f9; }
@media (max-width: 767px) {
  .dw-recent__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .dw-recent__i { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---------- stacking fixes: search dropdowns (nationality, guests, cities) stay above the content below ---------- */
.dw-hero { z-index: 20; }
.dw-search { position: relative; z-index: 5; }
.dw-hero .dw-recent { z-index: 1; }
.dw-results [x-data="{ editSearch: false }"] { position: relative; z-index: 40; }
.dw-search .input-dropdown-content, .dw-results .input-dropdown-content { z-index: 60; }
.dw-search .input-dropdown-content .sticky, .dw-results .input-dropdown-content .sticky { box-shadow: 0 6px 10px -8px rgba(15,23,42,.25); }

/* ==========================================================================
   Header polish v2 — slim ticker, hero overlay that keeps the cover's own logo
   away from the headline, stronger tab-bar contrast
   ========================================================================== */
.dw-ticker {
  background: linear-gradient(90deg, #0b1b3a, #11306b 50%, #0b1b3a) !important;
  animation: none !important;
  padding: 5px 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  color: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.dw-ticker::before, .dw-ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 1; pointer-events: none;
}
.dw-ticker::before { left: 0;  background: linear-gradient(90deg, #0b1b3a, transparent); }
.dw-ticker::after  { right: 0; background: linear-gradient(-90deg, #0b1b3a, transparent); }
.dw-ticker__track { animation-duration: 45s !important; }
.dw-ticker:hover .dw-ticker__track { animation-play-state: paused; }
#main-header.dw-header { border-bottom: 1px solid rgba(15,23,42,.06) !important; }

/* hero: darker reading side so the logo printed on the cover image doesn't fight the title */
.dw-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 15, 40, .86) 0%, rgba(5, 15, 40, .74) 45%, rgba(5, 15, 40, .45) 68%, rgba(5, 15, 40, .18) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, .25) 0%, rgba(2, 6, 23, .35) 55%, rgba(2, 6, 23, .80) 100%) !important;
}
[dir="rtl"] .dw-hero::before {
  background:
    linear-gradient(-90deg, rgba(5, 15, 40, .86) 0%, rgba(5, 15, 40, .74) 45%, rgba(5, 15, 40, .45) 68%, rgba(5, 15, 40, .18) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, .25) 0%, rgba(2, 6, 23, .35) 55%, rgba(2, 6, 23, .80) 100%) !important;
}
@media (max-width: 1023px) {
  /* show the left side of the panorama (mosque) and keep the printed logo off-screen */
  .dw-hero__bg { object-position: 8% 50%; transform-origin: 10% 50%; }
  .dw-hero::before {
    background: linear-gradient(180deg, rgba(5, 15, 40, .78) 0%, rgba(5, 15, 40, .55) 45%, rgba(2, 6, 23, .85) 100%) !important;
  }
  .dw-ticker { font-size: 11px !important; padding: 4px 0 !important; }
  /* tab bar: clearer inactive icons */
  .dw-tabbar__i { color: #334155 !important; opacity: 1 !important; }
  .dw-tabbar__i.is-on { color: var(--dw-brand) !important; }
  .dw-tabbar__i.is-wa { color: #15803d !important; }
}
@media (prefers-reduced-motion: reduce) { .dw-ticker__track { animation: none !important; } }
