/* Compact 2-column beach holidays dropdown – listings style (matches trekking nav) */

.navbar-wrap .beach-compact-drop {
  left: 50% !important;
  min-width: min(400px, 92vw) !important;
  max-width: 440px !important;
  padding: 10px 12px !important;
  transform: translateX(-50%) translateY(-8px) !important;
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(191, 161, 95, 0.22) !important;
  border-radius: 14px !important;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 20px 48px rgba(15, 12, 6, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset !important;
}

@media (hover: hover) and (pointer: fine) {
  .navbar-wrap .nav-item:hover > .beach-compact-drop,
  .navbar-wrap .nav-item:focus-within > .beach-compact-drop {
    transform: translateX(-50%) translateY(0) !important;
  }
}

.navbar-wrap .nav-item.is-open > .beach-compact-drop {
  transform: translateX(-50%) translateY(0) !important;
}

.navbar-wrap .beach-drop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 10px;
}

.navbar-wrap .beach-drop-grid a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px 8px 13px;
  color: #334155 !important;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none !important;
  border-radius: 9px;
  border: 1px solid transparent;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-wrap .beach-drop-grid a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e8c84a, #bfa15f);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.navbar-wrap .beach-drop-grid a::after {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translateX(-6px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23bfa15f' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.navbar-wrap .beach-drop-grid a:hover {
  color: #1a1408 !important;
  background: linear-gradient(135deg, rgba(184, 148, 26, 0.14) 0%, rgba(184, 148, 26, 0.06) 100%);
  border-color: rgba(184, 148, 26, 0.2);
  box-shadow: 0 2px 10px rgba(184, 148, 26, 0.1);
  transform: translateX(2px);
}

.navbar-wrap .beach-drop-grid a:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.navbar-wrap .beach-drop-grid a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered reveal on open */
.navbar-wrap .nav-item:hover .beach-drop-grid a,
.navbar-wrap .nav-item:focus-within .beach-drop-grid a,
.navbar-wrap .nav-item.is-open .beach-drop-grid a {
  animation: beachDropIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.navbar-wrap .nav-item:hover .beach-drop-grid a:nth-child(1),
.navbar-wrap .nav-item:focus-within .beach-drop-grid a:nth-child(1),
.navbar-wrap .nav-item.is-open .beach-drop-grid a:nth-child(1) { animation-delay: 0.02s; }
.navbar-wrap .nav-item:hover .beach-drop-grid a:nth-child(2),
.navbar-wrap .nav-item:focus-within .beach-drop-grid a:nth-child(2),
.navbar-wrap .nav-item.is-open .beach-drop-grid a:nth-child(2) { animation-delay: 0.04s; }
.navbar-wrap .nav-item:hover .beach-drop-grid a:nth-child(3),
.navbar-wrap .nav-item:focus-within .beach-drop-grid a:nth-child(3),
.navbar-wrap .nav-item.is-open .beach-drop-grid a:nth-child(3) { animation-delay: 0.06s; }
.navbar-wrap .nav-item:hover .beach-drop-grid a:nth-child(4),
.navbar-wrap .nav-item:focus-within .beach-drop-grid a:nth-child(4),
.navbar-wrap .nav-item.is-open .beach-drop-grid a:nth-child(4) { animation-delay: 0.08s; }
.navbar-wrap .nav-item:hover .beach-drop-grid a:nth-child(5),
.navbar-wrap .nav-item:focus-within .beach-drop-grid a:nth-child(5),
.navbar-wrap .nav-item.is-open .beach-drop-grid a:nth-child(5) { animation-delay: 0.1s; }
.navbar-wrap .nav-item:hover .beach-drop-grid a:nth-child(6),
.navbar-wrap .nav-item:focus-within .beach-drop-grid a:nth-child(6),
.navbar-wrap .nav-item.is-open .beach-drop-grid a:nth-child(6) { animation-delay: 0.12s; }
.navbar-wrap .nav-item:hover .beach-drop-grid a:nth-child(7),
.navbar-wrap .nav-item:focus-within .beach-drop-grid a:nth-child(7),
.navbar-wrap .nav-item.is-open .beach-drop-grid a:nth-child(7) { animation-delay: 0.14s; }
.navbar-wrap .nav-item:hover .beach-drop-grid a:nth-child(8),
.navbar-wrap .nav-item:focus-within .beach-drop-grid a:nth-child(8),
.navbar-wrap .nav-item.is-open .beach-drop-grid a:nth-child(8) { animation-delay: 0.16s; }

@keyframes beachDropIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile – 2 columns when expanded */
.mob-sub.beach-mob-grid.open {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 10px;
  flex-direction: unset;
}

.mob-sub.beach-mob-grid a {
  font-size: 0.78rem;
  padding: 9px 11px;
  line-height: 1.25;
  border-radius: 9px;
  transition: background 0.15s ease, color 0.15s ease;
}

.mob-sub.beach-mob-grid a:hover,
.mob-sub.beach-mob-grid a:active {
  background: rgba(184, 148, 26, 0.14);
  color: var(--gold-lt, #e8b020);
}

@media (max-width: 380px) {
  .beach-drop-grid,
  .mob-sub.beach-mob-grid.open {
    grid-template-columns: 1fr;
  }

  .navbar-wrap .beach-compact-drop {
    left: 0 !important;
    transform: translateY(-6px) !important;
    min-width: min(260px, 92vw) !important;
  }

  .navbar-wrap .nav-item.is-open > .beach-compact-drop {
    transform: translateY(0) !important;
  }
}

@import url('wg-media-fidelity.css');
