/* Mobile-isolated baseline snapshot. Source: assets/css/header-menu.css */
/* =========================================================
   BungalovTR Header Menu v1
   LOCKED COMPONENT: Header + Destinations dropdown
   Keep page-specific CSS outside this file.
========================================================= */

.btr-header {
  overflow: visible;
}

.btr-header__inner {
  overflow: visible;
}

.btr-brand {
  color: #214d3b;
}

.btr-brand__mark {
  color: #8faa82;
}

.btr-nav,
.btr-menu,
.btr-menu > li {
  overflow: visible;
}

.btr-menu {
  gap: 30px;
}

.btr-menu > li > a,
.btr-menu__dropdown-toggle {
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: #252c29;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease;
}

.btr-menu > li > a:hover,
.btr-menu > li > a:focus-visible,
.btr-menu__dropdown-toggle:hover,
.btr-menu__dropdown-toggle:focus-visible,
.btr-menu__dropdown.is-open .btr-menu__dropdown-toggle {
  color: #0d8a58;
}

.btr-menu__dropdown {
  position: relative;
}

.btr-menu__dropdown-toggle {
  gap: 6px;
}

.btr-menu__dropdown-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.btr-menu__dropdown.is-open .btr-menu__dropdown-toggle svg {
  transform: rotate(180deg);
}

.btr-destination-menu {
  position: absolute;
  top: calc(100% - 7px);
  left: 50%;
  z-index: 250;
  width: 320px;
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #fff;
  border: 1px solid #e4e8e3;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(27, 48, 37, .14);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.btr-menu__dropdown::after {
  content: "";
  position: absolute;
  top: calc(100% - 12px);
  left: 0;
  width: 100%;
  height: 20px;
}

.btr-menu__dropdown:hover .btr-destination-menu,
.btr-menu__dropdown:focus-within .btr-destination-menu,
.btr-menu__dropdown.is-open .btr-destination-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.btr-destination-menu__list {
  padding: 14px 14px 8px;
}

.btr-destination-menu__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px 8px;
  border-radius: 12px;
  transition: background .15s ease, transform .15s ease;
}

.btr-destination-menu__item:hover,
.btr-destination-menu__item:focus-visible {
  background: #f5f9f6;
  transform: translateX(2px);
  outline: 0;
}

.btr-destination-menu__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #214d3b;
  font-size: 16px;
  font-weight: 700;
}

.btr-icon--mint { background: #def6e8; }
.btr-icon--blue { background: #e4efff; color: #3a6fb1; }
.btr-icon--aqua { background: #ddf8f5; color: #19897c; }
.btr-icon--violet { background: #f0e5fb; color: #76529c; }
.btr-icon--sun { background: #fff3c9; color: #a27609; }
.btr-icon--rose { background: #fde8ee; color: #b55373; }
.btr-icon--orange { background: #ffeadb; color: #b6672c; }

.btr-destination-menu__copy {
  min-width: 0;
  display: block;
}

.btr-destination-menu__copy strong,
.btr-destination-menu__copy small {
  display: block;
}

.btr-destination-menu__copy strong {
  margin-bottom: 1px;
  color: #202724;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.btr-destination-menu__copy small {
  color: #7b847f;
  font-size: 12px;
  line-height: 1.3;
}

.btr-destination-menu__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 20px;
  border-top: 1px solid #edf0ed;
  border-radius: 0 0 18px 18px;
  color: #0d8a58;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease;
}

.btr-destination-menu__all:hover,
.btr-destination-menu__all:focus-visible {
  background: #f5faf7;
  outline: 0;
}

.btr-destination-menu__all svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  .btr-menu {
    gap: 0;
  }

  .btr-menu > li > a,
  .btr-menu__dropdown-toggle {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding: 0;
  }

  .btr-menu__dropdown {
    position: static;
  }

  .btr-menu__dropdown::after {
    display: none;
  }

  .btr-destination-menu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f8faf8;
    transition: max-height .22s ease;
  }

  .btr-menu__dropdown:hover .btr-destination-menu,
  .btr-menu__dropdown:focus-within .btr-destination-menu {
    transform: none;
  }

  .btr-menu__dropdown.is-open .btr-destination-menu {
    max-height: 620px;
  }

  .btr-destination-menu__list {
    padding: 8px 8px 4px;
  }

  .btr-destination-menu__item {
    min-height: 50px;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .btr-destination-menu__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .btr-destination-menu__all {
    min-height: 48px;
    padding: 0 12px;
  }
}

/* =========================================================
   LOCKED FINAL: Header dropdown compact width
   Applies to both Destinasyonlar and Bungalovlar dropdowns.
   Keep vertical rhythm unchanged; only horizontal footprint is reduced.
========================================================= */
@media (min-width: 821px) {
  .btr-destination-menu {
    width: 272px !important;
  }

  .btr-destination-menu__list {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .btr-destination-menu__item {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .btr-destination-menu__icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }

  .btr-destination-menu__copy strong {
    font-size: 13.5px !important;
  }

  .btr-destination-menu__copy small {
    font-size: 11.5px !important;
  }

  .btr-destination-menu__all {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
