/* Discover Pakistan homepage tour showcase
   Scoped to the shortcode output so GrandTour remains untouched elsewhere. */

.dp-home-tours {
  --dp-home-ink: #17231b;
  --dp-home-muted: #59665d;
  --dp-home-line: #dce5de;
  --dp-home-surface: #ffffff;
  --dp-home-soft: #f2f7f3;
  --dp-home-accent: #08783f;
  --dp-home-accent-hover: #055d31;
  clear: both;
  width: 100%;
  padding: 56px 0 68px;
  color: var(--dp-home-ink);
  background: var(--dp-home-surface);
  text-align: left;
}

.dp-home-tours,
.dp-home-tours * {
  box-sizing: border-box;
}

.dp-home-tours__inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.dp-home-tours__group {
  position: relative;
}

.dp-home-tours__group + .dp-home-tours__group {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--dp-home-line);
}

.dp-home-tours__heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dp-home-tours__title {
  margin: 0 !important;
  color: var(--dp-home-ink) !important;
  font-family: inherit;
  font-size: clamp(30px, 3vw, 42px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em;
  text-align: left;
}

.dp-home-tours__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.dp-home-tour-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--dp-home-line);
  border-radius: 8px;
  background: var(--dp-home-surface);
  transition: border-color 160ms ease-out;
}

.dp-home-tour-card:hover {
  border-color: #8acb9d;
}

.dp-home-tour-card__media {
  display: flex;
  width: 100%;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: var(--dp-home-soft);
}

.dp-home-tours__group--domestic .dp-home-tour-card__media,
.dp-home-tours__group--international .dp-home-tour-card__media {
  aspect-ratio: 16 / 9;
}

.dp-home-tour-card__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center;
}

.dp-home-tour-card__media[href*="northern-pakistan-signature-escape-skardu-hunza-air-8-days"] .dp-home-tour-card__image,
.dp-home-tour-card__media[href*="luxury-peaks-journey-hunza-skardu-7-days"] .dp-home-tour-card__image {
  object-fit: cover !important;
}

.dp-home-tour-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e7f2ea, #cfe5d5);
}

.dp-home-tour-card__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.dp-home-tour-card__title {
  margin: 0 0 10px !important;
  color: var(--dp-home-ink) !important;
  font-family: inherit;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.015em;
}

.dp-home-tour-card__title a {
  color: inherit !important;
  text-decoration: none;
}

.dp-home-tour-card__title a:hover {
  color: var(--dp-home-accent) !important;
}

.dp-home-tour-card__excerpt {
  max-width: 68ch;
  margin: 0 !important;
  color: var(--dp-home-muted) !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
}

.dp-home-tour-card__footer {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.dp-home-tour-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dp-home-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dp-home-tour-card__clock {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.dp-home-tour-card__clock::before,
.dp-home-tour-card__clock::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  background: currentColor;
  content: "";
  transform-origin: 50% 0;
}

.dp-home-tour-card__clock::before {
  height: 3.5px;
  transform: translate(-50%, -100%);
}

.dp-home-tour-card__clock::after {
  height: 3px;
  transform: translate(-50%, 0) rotate(-55deg);
}

.dp-home-tour-card__link {
  color: var(--dp-home-accent) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.dp-home-tour-card__link:hover {
  color: var(--dp-home-accent-hover) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dp-home-tours__actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.dp-home-tours__more {
  display: inline-flex;
  min-height: 48px;
  min-width: 132px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff !important;
  background: var(--dp-home-accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease-out;
}

.dp-home-tours__more::-webkit-details-marker {
  display: none;
}

.dp-home-tours__more:hover,
.dp-home-tours__more:focus-visible {
  color: #ffffff !important;
  background: var(--dp-home-accent-hover);
}

.dp-home-tours a:focus-visible,
.dp-home-tours summary:focus-visible {
  outline: 3px solid rgba(8, 120, 63, 0.32);
  outline-offset: 3px;
}

.dp-home-tours__menu {
  position: relative;
  z-index: 20;
}

.dp-home-tours__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease-out;
}

.dp-home-tours__menu[open] .dp-home-tours__chevron {
  transform: translateY(2px) rotate(225deg);
}

.dp-home-tours__menu-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: min(330px, calc(100vw - 32px));
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  border: 1px solid var(--dp-home-line);
  border-radius: 8px;
  background: #ffffff;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 160ms ease-out;
}

.dp-home-tours__menu:hover .dp-home-tours__menu-panel,
.dp-home-tours__menu:focus-within .dp-home-tours__menu-panel,
.dp-home-tours__menu[open] .dp-home-tours__menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dp-home-tours__menu-panel ul {
  display: grid;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.dp-home-tours__menu-panel li {
  margin: 0 !important;
  padding: 0 !important;
}

.dp-home-tours__menu-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 5px;
  color: var(--dp-home-ink) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
}

.dp-home-tours__menu-panel a:hover,
.dp-home-tours__menu-panel a:focus-visible {
  color: var(--dp-home-accent-hover) !important;
  background: var(--dp-home-soft);
}

@media (max-width: 1024px) {
  .dp-home-tours__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dp-home-tours {
    padding: 42px 0 54px;
  }

  .dp-home-tours__inner {
    width: min(100% - 32px, 620px);
  }

  .dp-home-tours__group + .dp-home-tours__group {
    margin-top: 54px;
    padding-top: 48px;
  }

  .dp-home-tours__heading-row {
    margin-bottom: 22px;
  }

  .dp-home-tours__title {
    font-size: clamp(28px, 9vw, 36px) !important;
  }

  .dp-home-tours__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .dp-home-tour-card__body {
    padding: 18px 18px 16px;
  }

  .dp-home-tour-card__title {
    font-size: 20px !important;
  }

  .dp-home-tours__menu-panel {
    position: static;
    width: min(100%, 330px);
    margin: 12px auto 0;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
  }

  .dp-home-tours__menu[open] .dp-home-tours__menu-panel {
    display: block;
    transform: none;
  }

  .dp-home-tours__menu:hover:not([open]) .dp-home-tours__menu-panel,
  .dp-home-tours__menu:focus-within:not([open]) .dp-home-tours__menu-panel {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-home-tour-card,
  .dp-home-tours__more,
  .dp-home-tours__chevron,
  .dp-home-tours__menu-panel {
    transition: none;
  }
}
