/**
 * Peru Hotels directory.
 */

.stp-hotels-page {
  --stp-hotels-ink: #1e1e1e;
  --stp-hotels-muted: #58645d;
  --stp-hotels-border: #e3e3e3;
  --stp-hotels-surface: #ffffff;
  --stp-hotels-canvas: rgba(65, 141, 22, 0.065);
  --stp-hotels-green: #418d16;
  --stp-hotels-green-dark: #418d16;
  --stp-hotels-green-soft: rgba(65, 141, 22, 0.086);
  --stp-hotels-gold: #9a671b;

  color: var(--stp-hotels-ink);
  background: var(--stp-hotels-canvas);
}

.stp-hotels-page ::selection {
  color: #ffffff;
  background: var(--stp-hotels-green-dark);
}

.stp-hotels-page .stp-page-hero {
  --stp-page-hero-min-height: 400px;
  --stp-page-hero-padding: 5rem 0 4.5rem;
}

.stp-hotels-directory {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4.5rem, 8vw, 7.5rem);
}

.stp-hotels-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--stp-hotels-border);
}

.stp-hotels-intro h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--stp-hotels-ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.stp-hotels-intro p {
  max-width: 65ch;
  margin: 0;
  color: var(--stp-hotels-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
}

.stp-hotel-location-nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.35rem 0 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.stp-hotel-location-nav::-webkit-scrollbar {
  display: none;
}

.stp-hotel-location-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem 0.65rem 1rem;
  border: 1px solid var(--stp-hotels-border);
  border-radius: 12px;
  color: var(--stp-hotels-ink);
  background: var(--stp-hotels-surface);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.stp-hotel-location-nav a:hover {
  color: var(--stp-hotels-green-dark);
  border-color: #418d16;
  background: var(--stp-hotels-green-soft);
}

.stp-hotel-location-nav small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding-inline: 0.35rem;
  border-radius: 999px;
  color: var(--stp-hotels-green-dark);
  background: var(--stp-hotels-green-soft);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stp-hotel-location-list {
  display: grid;
  gap: clamp(4.5rem, 8vw, 7rem);
  margin-top: clamp(4rem, 7vw, 6rem);
}

.stp-hotel-location {
  scroll-margin-top: 7rem;
}

.stp-hotel-location-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stp-hotel-location-heading h2 {
  margin: 0 0 0.35rem;
  color: var(--stp-hotels-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stp-hotel-location-heading p {
  margin: 0;
  color: var(--stp-hotels-muted);
  font-size: 0.95rem;
}

.stp-hotel-order-note {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  color: var(--stp-hotels-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stp-hotel-order-note i {
  color: var(--stp-hotels-green);
}

.stp-hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.stp-hotel-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stp-hotels-surface);
  box-shadow: 0 12px 32px rgba(65, 141, 22, 0.09);
}

.stp-hotel-card-media {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9e9e9;
}

.stp-hotel-card-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stp-hotel-card:hover .stp-hotel-card-image {
  transform: scale(1.035);
}

.stp-hotel-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem 1.35rem 1.35rem;
}

.stp-hotel-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.85rem;
  color: var(--stp-hotels-muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}

.stp-hotel-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stp-hotel-card-meta i {
  color: var(--stp-hotels-gold);
}

.stp-hotel-card h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.stp-hotel-card h3 a {
  color: var(--stp-hotels-ink);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.stp-hotel-card h3 a:hover {
  color: var(--stp-hotels-green-dark);
  text-decoration: underline;
}

.stp-hotel-card-body > p {
  margin: 0 0 1.35rem;
  color: var(--stp-hotels-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.stp-hotel-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: auto;
  color: var(--stp-hotels-green-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.stp-hotel-card-link i {
  font-size: 0.78rem;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stp-hotel-card-link:hover {
  color: var(--stp-hotels-green);
}

.stp-hotel-card-link:hover i {
  transform: translateX(4px);
}

.stp-hotels-help {
  padding: 0 0 clamp(4rem, 7vw, 6.5rem);
}

.stp-hotels-help-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 16px;
  color: #ffffff;
  background: var(--stp-hotels-green-dark);
}

.stp-hotels-help h2 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stp-hotels-help p {
  max-width: 62ch;
  margin: 0;
  color: #ffffff;
  line-height: 1.65;
}

.stp-hotels-help a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--stp-hotels-green-dark);
  background: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.stp-hotels-help a:hover {
  color: #ffffff;
  background: var(--stp-hotels-green);
}

.stp-hotels-empty {
  max-width: 44rem;
  margin: 4rem auto 0;
  padding: 3rem;
  border: 1px solid var(--stp-hotels-border);
  border-radius: 16px;
  text-align: center;
  background: var(--stp-hotels-surface);
}

.stp-hotels-empty > i {
  margin-bottom: 1rem;
  color: var(--stp-hotels-green);
  font-size: 2rem;
}

.stp-hotels-empty h2 {
  margin-bottom: 0.5rem;
  color: var(--stp-hotels-ink);
  font-weight: 800;
}

.stp-hotels-empty p {
  margin: 0;
  color: var(--stp-hotels-muted);
}

.stp-hotels-page a:focus-visible {
  outline: 3px solid rgba(65, 141, 22, 0.34);
  outline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .stp-hotel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .stp-hotels-page .stp-page-hero {
    --stp-page-hero-min-height: 330px;
    --stp-page-hero-padding: 3.75rem 0 3.25rem;
  }

  .stp-hotels-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .stp-hotels-intro h2 {
    max-width: 14ch;
  }

  .stp-hotel-location-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .stp-hotel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stp-hotels-help-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .stp-hotels-directory {
    padding-top: 3rem;
  }

  .stp-hotel-card-body {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stp-hotel-card-image,
  .stp-hotel-card-link i {
    transition-duration: 0.12s;
  }
}
