/* Local glass revision: control surfaces only; artwork, content and business logic stay intact. */
body.site-polish {
  --lg-fill: rgba(245, 242, 247, 0.72);
  --lg-ink: var(--vanilla-bean);
  --lg-solid: var(--ivory-soft);
  --lg-rim: rgba(53, 41, 27, 0.22);
  --lg-shadow: 0 4px 14px rgba(53, 41, 27, 0.11);
}

/* Keep the original interactive nodes and their compact semantics. The face,
   not an opaque outer wrapper, owns the material and its real backdrop blur. */
body.site-polish.simple-controls :is(.btn, .photo-filter) {
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.site-polish.simple-controls :is(.btn, .photo-filter, .menu-btn) > .control-face,
body.site-polish :is(.review-expand, .trip-tab-trigger),
body.site-polish:not(.simple-controls) :is(.btn, .photo-filter, .menu-btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--lg-rim);
  border-radius: 999px;
  background-color: var(--lg-fill);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.23), transparent 52%, rgba(144, 121, 110, 0.05));
  color: var(--lg-ink);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -1px 0 rgba(53, 41, 27, 0.08), var(--lg-shadow);
  text-align: center;
  text-decoration: none;
  font: 600 13px/20px var(--body);
  white-space: nowrap;
  text-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.site-polish .btn-gold {
  --lg-fill: rgba(229, 197, 132, 0.78);
  --lg-solid: var(--tangy);
  --lg-rim: rgba(53, 41, 27, 0.25);
}
body.site-polish .hero-actions .btn-glass {
  --lg-fill: rgba(53, 41, 27, 0.80);
  --lg-solid: var(--vanilla-bean);
  --lg-ink: var(--ivory-soft);
  --lg-rim: rgba(246, 217, 173, 0.52);
}
body.site-polish .photo-filter[aria-pressed="true"] {
  --lg-fill: rgba(53, 41, 27, 0.88);
  --lg-solid: var(--vanilla-bean);
  --lg-ink: var(--ivory-soft);
  --lg-rim: rgba(53, 41, 27, 0.45);
}

/* Equal top/bottom placement; the menu has stable width for Menu/Close. */
body.site-polish .site-header .nav-wrap {
  min-height: 84px;
  height: 84px;
  padding-block: 18px;
  align-items: center;
}
body.site-polish .site-header .brand {
  min-width: 48px;
  width: 48px;
  min-height: 48px;
  height: 48px;
  padding: 7px;
  border: 1px solid rgba(246, 217, 173, 0.42) !important;
  border-radius: 50%;
  background: rgba(53, 41, 27, 0.84) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), var(--lg-shadow) !important;
}
body.site-polish .brand-mark { width: 32px; height: 32px; }
body.site-polish .menu-btn[data-simple-menu] {
  width: 94px;
  min-width: 94px;
  height: 48px;
  min-height: 48px;
  padding: 0;
}
body.site-polish.simple-controls .menu-btn > .control-face {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  padding-inline: 14px;
}
body.site-polish .site-header .nav {
  padding: 7px;
  border: 1px solid rgba(53, 41, 27, 0.19);
  border-radius: 20px;
  background: rgba(245, 242, 247, 0.91);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 28px rgba(53, 41, 27, 0.13);
}
body.site-polish .site-header .nav a { border-radius: 13px; padding: 10px 14px; }

/* Trip selection uses the same quiet material, not oversized floating pills. */
body.site-polish .trip-showcase .trip-tab-trigger {
  display: grid;
  justify-content: stretch;
  width: calc(100% - 16px);
  margin: 5px 8px;
  padding: 9px 12px;
  border-radius: 13px;
  background-color: rgba(245, 242, 247, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  text-align: left;
  white-space: normal;
}
body.site-polish .trip-showcase .trip-tab-item.is-active { background: transparent; }
body.site-polish .trip-showcase .trip-tab-trigger:is([aria-selected="true"], [aria-expanded="true"], [aria-pressed="true"]) {
  background-color: rgba(246, 217, 173, 0.78);
  border-color: rgba(53, 41, 27, 0.3);
}
body.site-polish .review-expand { padding: 9px 14px; cursor: pointer; }

/* Viewer controls remain clear over the dark full-photo canvas. */
body.site-polish [data-simple-icon] {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(53, 41, 27, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(245, 242, 247, 0.88) !important;
  color: var(--vanilla-bean);
  -webkit-backdrop-filter: blur(18px) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--lg-shadow) !important;
}
body.site-polish .photo-lightbox [data-simple-icon] {
  border-color: rgba(246, 217, 173, 0.45) !important;
  background: rgba(53, 41, 27, 0.85) !important;
  color: var(--ivory-soft);
}

/* Flat, two-tone focus remains distinct on both artwork and light content. */
body.site-polish.simple-controls :is(.btn, .photo-filter, .menu-btn):focus-visible > .control-face,
body.site-polish :is(.review-expand, [data-simple-icon], .site-header .brand):focus-visible {
  outline: 2px solid var(--vanilla-bean) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ivory-soft) !important;
}
body.site-polish .trip-tab-trigger:focus-visible {
  outline: 2px solid var(--vanilla-bean);
  outline-offset: -4px;
}
body.site-polish :is(.btn, .photo-filter, .menu-btn):disabled > .control-face,
body.site-polish :is(.review-expand, .trip-tab-trigger):disabled {
  opacity: 0.6;
  box-shadow: none;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  body.site-polish.simple-controls :is(.btn, .photo-filter, .menu-btn):not(:disabled):hover > .control-face,
  body.site-polish .review-expand:not(:disabled):hover {
    border-color: rgba(53, 41, 27, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(53, 41, 27, 0.1), 0 5px 16px rgba(53, 41, 27, 0.14);
  }
  body.site-polish .trip-tab-trigger:not(:disabled):hover { border-color: rgba(53, 41, 27, 0.45); }
}
body.site-polish.simple-controls :is(.btn, .photo-filter, .menu-btn):not(:disabled):active > .control-face,
body.site-polish .review-expand:not(:disabled):active {
  box-shadow: inset 0 2px 4px rgba(53, 41, 27, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* A balanced CTA pair sits on the introduction's own centerline without
   moving the room, mosque, camera or marketing copy. */
body.site-polish.simple-controls #home[data-nabawi] #hero-intro .hero-actions {
  display: flex;
  width: 100%;
  max-width: none;
  justify-content: center;
  align-items: center;
  justify-self: center;
  gap: 12px;
  margin-inline: auto;
  text-align: center;
}
body.site-polish.simple-controls #home[data-nabawi] #hero-intro .hero-actions .btn {
  width: 176px !important;
  max-width: 100%;
  flex: 0 0 176px !important;
  min-height: 44px !important;
  height: 44px;
}
body.site-polish.simple-controls #home[data-nabawi] #hero-intro .hero-actions .control-face { width: 100%; }
@media (max-width: 440px) {
  body.site-polish.simple-controls #home[data-nabawi] #hero-intro .hero-actions { flex-direction: column; gap: 10px; }
  body.site-polish.simple-controls #home[data-nabawi] #hero-intro .hero-actions .btn {
    width: min(224px, 100%) !important;
    flex: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-polish :is(.control-face, .trip-tab-trigger, .review-expand, .nav, .nav a, [data-simple-icon]) { transition: none !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.site-polish.simple-controls :is(.btn, .photo-filter, .menu-btn) > .control-face,
  body.site-polish :is(.review-expand, .trip-tab-trigger),
  body.site-polish:not(.simple-controls) :is(.btn, .photo-filter, .menu-btn) {
    background: var(--lg-solid);
  }
  body.site-polish .site-header .nav { background: var(--ivory-soft); }
  body.site-polish .site-header .brand { background: var(--vanilla-bean) !important; }
  body.site-polish [data-simple-icon] { background: var(--ivory-soft) !important; }
  body.site-polish .photo-lightbox [data-simple-icon] { background: var(--vanilla-bean) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  body.site-polish.simple-controls :is(.btn, .photo-filter, .menu-btn) > .control-face,
  body.site-polish :is(.review-expand, .trip-tab-trigger),
  body.site-polish:not(.simple-controls) :is(.btn, .photo-filter, .menu-btn) {
    background: var(--lg-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.site-polish .site-header .nav { background: var(--ivory-soft); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.site-polish .site-header .brand { background: var(--vanilla-bean) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  body.site-polish [data-simple-icon] { background: var(--ivory-soft) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  body.site-polish .photo-lightbox [data-simple-icon] { background: var(--vanilla-bean) !important; }
}
