/* DAMA language selector — isolated from the approved page styling. */
body.dama-site .header-area .header__main,
body.dama-site:not(.dama-luxury-home) .dama-navigation .header__main,
body.dama-site .header-area .dama-navigation__inner {
  grid-template-columns: 220px minmax(0, 1fr) 136px !important;
}

body.dama-site .header-area .menu-btns,
body.dama-site.dama-luxury-home .dama-navigation__actions,
body.dama-site:not(.dama-luxury-home) .dama-navigation .menu-btns {
  display: flex !important;
  width: 136px !important;
  min-width: 136px !important;
  height: 76px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  padding: 0 4px !important;
  overflow: visible !important;
}

body.dama-site .header-area .menubars,
body.dama-site.dama-luxury-home .dama-navigation__menu-button,
body.dama-site:not(.dama-luxury-home) .dama-navigation .menubars {
  width: 68px !important;
  min-width: 68px !important;
  height: 76px !important;
}

.dama-language-switch {
  position: relative;
  z-index: 12;
  flex: 0 0 auto;
  color: #f8f9f7;
}

.dama-language-switch summary {
  display: inline-flex;
  width: 54px;
  height: 76px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: rgba(248, 249, 247, 0.82);
  background: transparent;
  border: 0;
  cursor: pointer;
  list-style: none;
  transition: color 220ms ease, background-color 220ms ease;
}

.dama-language-switch summary::-webkit-details-marker {
  display: none;
}

.dama-language-switch summary::marker {
  display: none;
  content: "";
}

.dama-language-switch summary:hover,
.dama-language-switch summary:focus-visible,
.dama-language-switch[open] summary {
  color: #ef6833;
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.dama-language-switch summary:focus-visible {
  box-shadow: inset 0 0 0 1px #ef6833;
}

.dama-language-switch summary i {
  font-size: 16px;
  line-height: 1;
}

.dama-language-switch summary span {
  color: inherit;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}

.dama-language-switch__menu {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  width: max-content;
  min-width: 148px;
  padding: 8px;
  background: rgba(21, 24, 22, 0.99);
  border: 1px solid rgba(248, 249, 247, 0.14);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.dama-language-switch__menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 14px;
  color: rgba(248, 249, 247, 0.82) !important;
  font-family: "Tajawal", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.dama-language-switch__menu a:hover,
.dama-language-switch__menu a:focus-visible {
  color: #f8f9f7 !important;
  background: rgba(239, 104, 51, 0.14);
  outline: none;
}

@media (max-width: 991px) {
  body.dama-site .header-area .header__main,
  body.dama-site:not(.dama-luxury-home) .dama-navigation .header__main,
  body.dama-site .header-area .dama-navigation__inner {
    grid-template-columns: minmax(0, 1fr) 120px !important;
  }

  body.dama-site .header-area .menu-btns,
  body.dama-site.dama-luxury-home .dama-navigation__actions,
  body.dama-site:not(.dama-luxury-home) .dama-navigation .menu-btns {
    width: 120px !important;
    min-width: 120px !important;
    height: 68px !important;
  }

  body.dama-site .header-area .menubars,
  body.dama-site.dama-luxury-home .dama-navigation__menu-button,
  body.dama-site:not(.dama-luxury-home) .dama-navigation .menubars {
    width: 58px !important;
    min-width: 58px !important;
    height: 68px !important;
  }

  .dama-language-switch summary {
    width: 52px;
    height: 68px;
  }
}

@media (max-width: 575px) {
  body.dama-site .header-area .header__main,
  body.dama-site:not(.dama-luxury-home) .dama-navigation .header__main,
  body.dama-site .header-area .dama-navigation__inner {
    grid-template-columns: minmax(0, 1fr) 112px !important;
  }

  body.dama-site .header-area .menu-btns,
  body.dama-site.dama-luxury-home .dama-navigation__actions,
  body.dama-site:not(.dama-luxury-home) .dama-navigation .menu-btns {
    width: 112px !important;
    min-width: 112px !important;
    padding-inline: 2px !important;
  }

  body.dama-site .header-area .menubars,
  body.dama-site.dama-luxury-home .dama-navigation__menu-button,
  body.dama-site:not(.dama-luxury-home) .dama-navigation .menubars {
    width: 56px !important;
    min-width: 56px !important;
  }

  .dama-language-switch summary {
    width: 48px;
    gap: 5px;
  }

  .dama-language-switch__menu {
    right: -4px;
  }
}
