/* =========================================================
   PRODUCT PAGE | Peru Nature
   Estilo premium, natural, minimalista
========================================================= */

:root {
  --pn-bg: #f5f7ef;
  --pn-green: #0b3d2e;
  --pn-green-soft: #164f3d;
  --pn-accent: #7ed957;
  --pn-text: #17231d;
  --pn-muted: #65736b;
  --pn-white: #ffffff;
  --pn-border: rgba(11, 61, 46, 0.12);
  --pn-shadow: 0 18px 45px rgba(11, 61, 46, 0.08);
  --pn-radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--pn-bg);
  color: var(--pn-text);
}

.hidden {
  display: none !important;
}

.product-page {
  background: var(--pn-bg);
  min-height: 100vh;
  padding: 28px 0 70px;
}

/* =========================================================
   LOADING / ERROR
========================================================= */

.product-loading,
.product-error {
  padding: 90px 0;
}

.loading-card,
.error-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 46px 34px;
  background: var(--pn-white);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius);
  box-shadow: var(--pn-shadow);
  text-align: center;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  border: 3px solid rgba(11, 61, 46, 0.12);
  border-top-color: var(--pn-green);
  border-radius: 50%;
  animation: pn-spin 0.8s linear infinite;
}

@keyframes pn-spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-card p,
.error-card p {
  color: var(--pn-muted);
  line-height: 1.7;
}

.error-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(126, 217, 87, 0.18);
  color: var(--pn-green);
  font-size: 24px;
}

.error-card h1 {
  margin-bottom: 12px;
  color: var(--pn-green);
  font-size: clamp(28px, 4vw, 42px);
}

/* =========================================================
   BREADCRUMB
========================================================= */

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--pn-muted);
  font-size: 14px;
}

.product-breadcrumb a {
  color: var(--pn-green);
  text-decoration: none;
  font-weight: 600;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

/* =========================================================
   HERO HEADER
========================================================= */

.product-hero-header {
  margin-bottom: 28px;
}

.product-hero-info {
  max-width: 920px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(126, 217, 87, 0.18);
  color: var(--pn-green);
  border: 1px solid rgba(126, 217, 87, 0.38);
  font-size: 13px;
  font-weight: 700;
}

.product-hero-header h1 {
  max-width: 980px;
  margin: 0 0 14px;
  color: var(--pn-green);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.product-short-description {
  max-width: 760px;
  margin: 0;
  color: var(--pn-muted);
  font-size: 18px;
  line-height: 1.7;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.product-rating,
.product-location {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--pn-green);
  font-weight: 700;
}

.product-rating i {
  color: #f2b705;
}

.product-location i {
  color: var(--pn-green);
}

/* =========================================================
   GALLERY
========================================================= */

.product-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin: 30px 0 22px;
}

.gallery-main,
.gallery-thumbs img {
  overflow: hidden;
  background: #dfe8d9;
  border-radius: var(--pn-radius);
}

.gallery-main {
  min-height: 430px;
  box-shadow: var(--pn-shadow);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-thumb {
  width: 100%;
  height: 208px;
  display: block;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.gallery-thumb.active {
  border-color: var(--pn-accent);
}

/* =========================================================
   INTERNAL NAV
========================================================= */

.product-section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 22px 0 34px;
  padding: 12px;
  background: rgba(245, 247, 239, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--pn-border);
  border-radius: 999px;
}

.product-section-nav a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--pn-green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-section-nav a:hover {
  background: var(--pn-green);
  color: var(--pn-white);
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.product-main {
  min-width: 0;
}

.product-section {
  margin-bottom: 22px;
  padding: 30px;
  background: var(--pn-white);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius);
  box-shadow: 0 12px 30px rgba(11, 61, 46, 0.05);
}

.product-section h2 {
  margin: 0 0 18px;
  color: var(--pn-green);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.product-section p {
  margin: 0;
  color: var(--pn-muted);
  line-height: 1.8;
}

/* =========================================================
   HIGHLIGHTS
========================================================= */

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--pn-border);
  border-radius: 18px;
  background: #fbfcf8;
}

.highlight-item i {
  margin-top: 2px;
  color: var(--pn-accent);
}

.highlight-item span {
  color: var(--pn-text);
  font-weight: 600;
  line-height: 1.5;
}

/* =========================================================
   DETAILS
========================================================= */

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--pn-border);
  border-radius: 18px;
  background: #fbfcf8;
}

.detail-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(126, 217, 87, 0.18);
  color: var(--pn-green);
}

.detail-card h3 {
  margin: 0 0 4px;
  color: var(--pn-green);
  font-size: 15px;
}

.detail-card p {
  color: var(--pn-muted);
  font-size: 15px;
}

/* =========================================================
   INCLUDES / EXCLUDES
========================================================= */

.includes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.includes-card {
  padding: 22px;
  border: 1px solid var(--pn-border);
  border-radius: 20px;
  background: #fbfcf8;
}

.includes-card h2 {
  font-size: 22px;
}

.check-list,
.x-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.x-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--pn-text);
  line-height: 1.5;
}

.check-list i {
  margin-top: 3px;
  color: var(--pn-accent);
}

.x-list i {
  margin-top: 3px;
  color: #a15c4b;
}

/* =========================================================
   ITINERARY
========================================================= */

.itinerary-list {
  display: grid;
  gap: 14px;
}

.itinerary-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--pn-border);
  border-radius: 18px;
  background: #fbfcf8;
}

.itinerary-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pn-green);
  color: var(--pn-white);
  font-weight: 800;
}

.itinerary-content h3 {
  margin: 0 0 6px;
  color: var(--pn-green);
  font-size: 17px;
}

.itinerary-content p {
  color: var(--pn-muted);
  line-height: 1.7;
}

/* =========================================================
   AVAILABILITY
========================================================= */

.availability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--pn-border);
  border-radius: 999px;
  background: #fbfcf8;
  color: var(--pn-green);
  font-weight: 700;
  font-size: 14px;
}

.availability-pill i {
  color: var(--pn-accent);
}

/* =========================================================
   BOOKING SIDEBAR
========================================================= */

.product-sidebar {
  position: relative;
}

.booking-card {
  position: sticky;
  top: 92px;
  padding: 24px;
  background: var(--pn-white);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius);
  box-shadow: var(--pn-shadow);
}

.booking-card-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pn-border);
}

.booking-card-header span {
  display: block;
  color: var(--pn-muted);
  font-size: 14px;
  font-weight: 600;
}

.booking-card-header strong {
  display: block;
  margin-top: 4px;
  color: var(--pn-green);
  font-size: 34px;
  letter-spacing: -0.03em;
}

.booking-card-header small {
  color: var(--pn-muted);
}

.booking-summary {
  display: grid;
  gap: 13px;
  margin: 20px 0;
}

.booking-summary div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--pn-text);
  font-weight: 600;
}

.booking-summary i {
  width: 20px;
  color: var(--pn-green);
}

.booking-whatsapp-btn,
.booking-secondary-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.booking-whatsapp-btn {
  background: var(--pn-green);
  color: var(--pn-white);
}

.booking-whatsapp-btn:hover {
  background: var(--pn-green-soft);
  transform: translateY(-1px);
}

.booking-secondary-btn {
  margin-top: 10px;
  border: 1px solid var(--pn-border);
  color: var(--pn-green);
  background: transparent;
}

.booking-secondary-btn:hover {
  border-color: var(--pn-green);
  transform: translateY(-1px);
}

.booking-note {
  margin: 18px 0 0;
  color: var(--pn-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-thumb {
    height: 120px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .product-page {
    padding-top: 20px;
  }

  .product-gallery {
    gap: 10px;
  }

  .gallery-main {
    min-height: 300px;
  }

  .gallery-main img {
    min-height: 300px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-thumb {
    height: 120px;
  }

  .product-section-nav {
    border-radius: 18px;
  }

  .product-layout {
    gap: 20px;
  }

  .product-section {
    padding: 22px;
  }

  .highlights-grid,
  .details-grid,
  .includes-layout {
    grid-template-columns: 1fr;
  }

  .booking-card-header strong {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .product-page {
    padding-bottom: 48px;
  }

  .product-breadcrumb {
    font-size: 13px;
  }

  .product-short-description {
    font-size: 16px;
  }

  .product-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .gallery-main,
  .gallery-main img {
    min-height: 260px;
  }

  .product-section {
    padding: 20px;
    border-radius: 18px;
  }

  .product-section h2 {
    font-size: 23px;
  }

  .itinerary-item {
    grid-template-columns: 1fr;
  }

  .booking-card {
    padding: 20px;
    border-radius: 18px;
  }
}
