/* ==========================================================================
   Life Style Tour — Layout Styles (Topbar, Header, Nav, Footer, WhatsApp FAB)
   ========================================================================== */

/* Top bar */
.topbar {
  position: relative;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 13px;
  border-bottom: 1.5px solid rgba(212, 162, 55, 0.55);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  flex-wrap: wrap;
}

.topbar .contacts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar a {
  text-decoration: none;
  color: var(--on-dark-muted);
  direction: ltr;
  unicode-bidi: isolate;
}

.topbar a:hover {
  color: var(--white);
}

.langs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 3px;
}

.langs button {
  all: unset;
  cursor: pointer;
  font: 700 12px/1 var(--f-body);
  letter-spacing: 0.06em;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--on-dark-muted);
}


.langs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.langs .flag {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.langs button[aria-pressed="true"] .flag {
  box-shadow: 0 0 0 1px rgba(7, 20, 48, 0.15);
}

@media (max-width: 480px) {
  .langs .lc { display: none; }
  .langs button { padding: 7px 9px; }
}

.langs button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
}

.langs button:focus-visible {
  outline: 2px solid var(--red);
}

@media (max-width: 640px) {
  .topbar .contacts .tb-mail {
    display: none;
  }
}

/* Header & Navigation */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand img {
  height: 58px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav > ul > li {
  position: relative;
}

.nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
}

.nav > ul > li > a:hover {
  color: var(--navy);
  background: var(--paper);
}

.nav .caret {
  width: 10px;
  height: 10px;
}

.dropdown {
  position: absolute;
  inset-inline-start: 0;
  top: 100%;
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 24px 50px -18px rgba(7, 20, 48, 0.35);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.18s;
}

.has-dd:hover .dropdown,
.has-dd:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--paper);
  color: var(--navy);
}

.dropdown svg {
  width: 18px;
  height: 18px;
  color: var(--navy);
  flex: none;
}

.menu-btn {
  all: unset;
  box-sizing: border-box;
  display: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
  align-items: center;
  justify-content: center;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.nav .mobile-cta {
  display: none;
}

@media (max-width: 1020px) {
  .brand img {
    height: 48px;
  }
  .header .wrap {
    min-height: 72px;
  }
  .menu-btn {
    display: grid;
  }
  .nav .btn {
    display: none;
  }
  .nav > ul {
    position: fixed;
    inset: calc(72px + 42px + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px));
    overflow: auto;
    display: none;
    gap: 0;
  }
  .nav-open .nav > ul {
    display: flex;
  }
  .nav > ul > li > a {
    padding: 16px 6px;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 8px;
    min-width: 0;
  }
  .nav .mobile-cta {
    display: block;
    padding-top: 20px;
  }
  .nav .mobile-cta .btn {
    display: flex;
    width: 100%;
  }
}

/* Footer */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-block: 64px 28px;
  font-size: 14px;
  border-top: 2px solid rgba(212, 162, 55, 0.75);
  box-shadow: 0 -1px 0 rgba(255, 238, 196, 0.35), 0 -8px 24px -6px rgba(212, 162, 55, 0.22);
}

.footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, #B17E0E 15%, #FDE08D 50%, #B17E0E 85%, transparent 100%);
  pointer-events: none;
}

.f-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer img {
  height: 64px;
  width: auto;
}

.footer h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

:root[lang="ar"] .footer h4 {
  letter-spacing: 0;
  font-size: 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
}

.f-tag {
  margin-top: 16px;
  max-width: 300px;
}

.f-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.f-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(233, 238, 248, 0.18);
  color: var(--on-dark);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.f-social svg {
  width: 17px;
  height: 17px;
}

.f-social a:hover,
.f-social a:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.f-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding-top: 22px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .f-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .f-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(20px + env(safe-area-inset-right, 0px));
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1FAF55;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 0 20px 0 16px;
  height: 56px;
  border-radius: 999px;
  box-shadow: 0 16px 34px -10px rgba(31, 175, 85, 0.6);
}

[dir="rtl"] .wa-float {
  inset-inline-end: calc(20px + env(safe-area-inset-left, 0px));
}

.wa-float svg {
  width: 26px;
  height: 32px;
}

.wa-float:hover {
  background: #1A9B4B;
}

@media (max-width: 560px) {
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 0;
    width: 58px;
    justify-content: center;
  }
}


/* Live Currency Ticker in Topbar */
.fx-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-board);
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--on-dark);
  direction: ltr;
  unicode-bidi: isolate;
}

.fx-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.fx-item b {
  color: #FFD34D;
  font-weight: 700;
  font-family: var(--f-body);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.fx-item em {
  font-style: normal;
  font-weight: 600;
  color: var(--white);
}

.fx-sep {
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 780px) {
  .topbar .wrap {
    justify-content: center;
    padding-block: 6px;
  }
  .fx-bar {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

.pm-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.pm-credit:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer .pm-credit img {
  height: 32px;
  width: auto;
}

.pm-label {
  font-size: 13px;
  color: var(--on-dark-muted);
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: color 0.2s;
}

.pm-credit:hover .pm-label {
  color: var(--white);
}
