/* Deck repair update: service navigation and new page polish. */
.has-dropdown {
  position: relative;
}

.caret {
  display: none !important;
}

.dropdown-toggle {
  min-height: 44px !important;
  padding: 0.55rem 0.25rem !important;
}

@media (min-width: 961px) {
  .has-dropdown::after {
    content: "";
    position: absolute;
    left: -34px;
    right: -34px;
    top: calc(100% - 4px);
    height: 34px;
  }

  .dropdown-menu {
    top: calc(100% + 2px) !important;
    min-width: 285px !important;
    max-height: min(72vh, 520px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    z-index: 2000;
  }

  .has-dropdown.open .dropdown-menu,
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) !important;
  }

  .dropdown-menu a {
    padding: 0.72rem 0.9rem !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 960px) {
  .nav-panel.open {
    max-height: calc(100vh - 86px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .dropdown-menu {
    max-height: none !important;
  }
}

.deck-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.deck-photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d7dfef;
}

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

  .deck-photo-grid img {
    height: 260px;
  }
}
