/**
 * Shared styles for LayoutManagerEN / LayoutManagerAR injected markup only.
 * Pages must define :root --bg-dark, --gold, --gold-gradient, --text-light,
 * --text-dim, --font-display, and --nav-h (default 270px; this file sets 130px on small screens).
 */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  z-index: 1002;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.top-bar-socials {
  display: flex;
  gap: 25px;
}
.top-bar-location {
  display: flex;
  align-items: center;
  gap: 25px;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  min-width: 0;
}
.top-bar-trailing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.top-bar-socials.top-bar-desktop-only {
  display: flex;
  align-items: center;
  gap: 25px;
}
.top-bar-map-desktop {
  display: inline-flex;
  align-items: center;
}
.top-bar-mobile-only {
  display: none !important;
}
.top-bar-book-mobile {
  display: none !important;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: 3px;
  background: linear-gradient(180deg, #dcc6a8 0%, var(--gold) 45%, #a88b62 100%);
  color: var(--bg-dark);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 2px 12px rgba(197, 168, 128, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    filter 0.25s ease,
    transform 0.2s ease;
}
.top-bar-book-mobile svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}
.top-bar-book-mobile:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.top-bar-drawer-trigger {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(197, 168, 128, 0.45);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.top-bar-drawer-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.top-bar-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.2s;
}
.top-bar-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.top-bar-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.top-bar-drawer.is-open .top-bar-drawer-backdrop {
  opacity: 1;
}
.top-bar-drawer-panel {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 48px;
  max-width: 400px;
  margin: 0 auto;
  background: #0a0a0a;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 4px;
  transform: translateY(-12px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.top-bar-drawer.is-open .top-bar-drawer-panel {
  transform: translateY(0);
  opacity: 1;
}
.top-bar-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.top-bar-drawer-close {
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.top-bar-drawer-body {
  padding: 16px 14px 18px;
}
.top-bar-drawer-map {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.top-bar-drawer-map svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  flex-shrink: 0;
}
.top-bar-drawer-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 16px;
}
.top-bar-drawer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(197, 168, 128, 0.45);
  border-radius: 50%;
  color: var(--gold);
}
.top-bar-drawer-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
body.top-bar-drawer-open {
  overflow: hidden !important;
}
.top-bar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 2px;
  font-weight: 500;
}
.top-bar-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.top-bar-link:hover {
  color: var(--gold);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}
.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.social-link:hover {
  color: var(--gold);
}

.footer-social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.footer-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(197, 168, 128, 0.45);
  border-radius: 50%;
  color: var(--gold);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.footer-social-row a:hover {
  background: rgba(197, 168, 128, 0.1);
}
.footer-social-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

header#navbar {
  position: fixed;
  top: 10px;
  width: 100%;
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  transition:
    background 0.4s ease,
    border-bottom 0.4s ease;
  border-bottom: 1px solid transparent;
}
header#navbar.scrolled {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}
.brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}
.brand-logo img {
  width: 240px;
  height: auto;
}
.nav-divider {
  width: 100%;
  max-width: 350px;
  height: 1px;
  background: var(--gold-gradient);
  margin-bottom: 25px;
}
.nav-links-container {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-link:hover {
  color: var(--gold);
}
.btn-luxury {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  padding: 10px 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s ease;
  display: inline-block;
}
.btn-luxury:hover {
  background: var(--gold);
  color: var(--bg-dark);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.menu-toggle span {
  width: 30px;
  height: 1px;
  background-color: var(--gold);
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.footer-main {
  background: var(--bg-dark);
  border-top: 2px solid rgba(197, 168, 128, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 100px 8% 40px;
  margin-top: 0;
}
.footer-top {
  text-align: center;
  margin-bottom: 80px;
}
.footer-top h2 {
  font-size: 3.5rem;
  font-weight: 200;
  color: var(--text-light);
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.footer-top p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-col h4 {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 25px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 15px;
}
.footer-col ul a,
.footer-col p {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}
.footer-col ul a:hover {
  color: var(--gold);
}
.footer-logo {
  width: 140px;
  margin-bottom: 20px;
  opacity: 0.8;
  height: auto;
  object-fit: contain;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  :root {
    --nav-h: 130px;
  }
  .top-bar {
    padding: 0 5%;
  }
  header#navbar {
    height: 90px;
    top: 40px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
  }
  .brand-logo {
    margin: 0;
  }
  .brand-logo img {
    width: 140px;
  }
  .nav-divider {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
  }
  .nav-links-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1100;
  }
  .nav-links-container.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    font-size: 18px;
    letter-spacing: 4px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-top h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 641px) {
  .top-bar-drawer {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .top-bar {
    min-height: 48px;
    height: auto;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .top-bar-desktop-only {
    display: none !important;
  }
  .top-bar-mobile-only {
    display: inline-flex !important;
  }
  .top-bar-drawer-trigger {
    display: inline-flex !important;
  }
  .top-bar-book-mobile {
    display: inline-flex !important;
  }
  .top-bar-link {
    letter-spacing: 1.2px;
    font-size: 10px;
  }
}

/* First-visit booking spotlight (see components-en.js / components-ar.js) */
.yn-book-spotlight-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.58);
  pointer-events: auto;
}
.yn-book-spotlight-callout {
  position: fixed;
  z-index: 1050;
  max-width: min(320px, calc(100vw - 32px));
  padding: 18px 20px 16px;
  background: #0a0a0a;
  border: 1px solid rgba(197, 168, 128, 0.55);
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.yn-book-spotlight-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.yn-book-spotlight-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-light);
}
.yn-book-spotlight-btn {
  display: inline-block;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.25s ease;
}
.yn-book-spotlight-btn:hover {
  filter: brightness(1.06);
}
.yn-book-spotlight-target {
  position: relative;
  z-index: 1040 !important;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
@keyframes yn-book-spotlight-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(197, 168, 128, 0.08);
  }
}
.yn-book-spotlight-target--pulse {
  animation: yn-book-spotlight-pulse 2.2s ease-in-out 2;
}
@media (prefers-reduced-motion: reduce) {
  .yn-book-spotlight-target--pulse {
    animation: none !important;
  }
}
body.yn-book-spotlight-open {
  overflow: hidden;
}

/* Arabic / RTL: match Featured Looks (portfolio) injected chrome */
html[dir="rtl"] .nav-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 168, 128, 0.4),
    #c5a880,
    rgba(197, 168, 128, 0.4),
    transparent
  );
}
html[dir="rtl"] .top-bar,
html[dir="rtl"] .top-bar-trailing,
html[dir="rtl"] .top-bar-socials,
html[dir="rtl"] .nav-links-container {
  direction: rtl;
}
html[dir="rtl"] .top-bar {
  letter-spacing: normal;
  text-transform: none;
  font-family: "Cairo", sans-serif;
  font-size: 12px;
}
html[dir="rtl"] .top-bar-link {
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: "Cairo", sans-serif;
}
html[dir="rtl"] .nav-link {
  letter-spacing: normal;
  text-transform: none;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
}
html[dir="rtl"] #nav-links .btn-luxury,
html[dir="rtl"] .nav-links-container > .btn-luxury {
  letter-spacing: normal;
  text-transform: none;
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  white-space: nowrap;
}
html[dir="rtl"] .btn-luxury {
  letter-spacing: normal;
  text-transform: none;
  font-family: "Cairo", sans-serif;
}
@media (max-width: 900px) {
  html[dir="rtl"] .nav-link {
    font-size: 17px;
    letter-spacing: normal;
  }
}
html[dir="rtl"] .footer-col h4,
html[dir="rtl"] .footer-bottom {
  letter-spacing: normal;
  text-transform: none;
}
html[dir="rtl"] .footer-top h2 {
  font-family: "Cairo", sans-serif;
}
html[dir="rtl"] .footer-col ul a,
html[dir="rtl"] .footer-col p {
  font-family: "Cairo", sans-serif;
}
