/**
 * Salkantay Treks Peru - Inca Trail Permits Page Stylesheet
 * File: css/inca-trail-permits.css
 */

.stp-permits-page {
  background-color: #f8fafc;
  color: #334155;
}

/* 1. Hero Compact Adjustments */
.stp-permits-page .stp-page-hero {
  --stp-page-hero-min-height: 480px;
  --stp-page-hero-padding: 8rem 0 5.5rem;
}

@media (max-width: 767.98px) {
  .stp-permits-page .stp-page-hero {
    --stp-page-hero-min-height: 380px;
    --stp-page-hero-padding: 6rem 0 4rem;
  }
}

/* 2. Alert Notification Bar */
.stp-permits-alert-bar {
  background: linear-gradient(90deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(82, 183, 136, 0.35);
}

.stp-permits-alert-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stp-alert-pulse-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 195, 0, 0.2);
  color: #ffc300;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 195, 0, 0.4);
}

.stp-alert-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 2px;
}

.stp-alert-text span {
  font-size: 0.88rem;
  color: #d8f3dc;
}

.stp-alert-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffc300;
  color: #081c15 !important;
  font-weight: 850;
  font-size: 0.88rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 195, 0, 0.3);
}

.stp-alert-cta-btn:hover {
  background: #ffd000;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 195, 0, 0.45);
}

/* 3. Key Metrics & Official Facts Section */
.stp-permits-facts-section {
  padding: 4.5rem 0 3rem;
}

.stp-section-header {
  margin-bottom: 2.75rem;
}

.stp-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 850;
  color: #2d6a4f;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  background: #f0fdf4;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(45, 106, 79, 0.15);
}

.stp-section-title {
  font-size: 2.2rem;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin: 0;
  text-wrap: balance;
}

.stp-section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  margin-top: 0.65rem;
  max-width: 760px;
  line-height: 1.6;
}

.stp-fact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.65rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stp-fact-card:hover {
  transform: translateY(-5px);
  border-color: #52b788;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.09), 0 6px 14px -4px rgba(45, 106, 79, 0.06);
}

.stp-fact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f0fdf4;
  color: #2d6a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(45, 106, 79, 0.12);
  transition: all 0.3s ease;
}

.stp-fact-card:hover .stp-fact-card-icon {
  background: #2d6a4f;
  color: #ffffff;
  transform: scale(1.06);
}

.stp-fact-card-badge {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2d6a4f;
  margin-bottom: 0.35rem;
  display: block;
}

.stp-fact-card-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.stp-fact-card-text {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* 4. Real-Time Permit Availability Calendar Section */
.stp-permits-calendar-section {
  padding: 3.5rem 0 5rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stp-calendar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 2.5rem 2.5rem;
  box-shadow: 0 10px 32px -4px rgba(15, 23, 42, 0.06);
  position: relative;
}

/* Calendar Legend */
.stp-calendar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  padding: 1.1rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  margin-bottom: 2.25rem;
}

.stp-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
}

.stp-legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.stp-legend-dot.available { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.stp-legend-dot.limited   { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.stp-legend-dot.sold-out  { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.stp-legend-dot.closed    { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2); }

/* Overrides for #calendar */
div#calendar {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow-x: auto;
}

div#calendar div.box {
  background-color: transparent !important;
  border-radius: 16px !important;
  padding: 0 !important;
}

div#calendar ul.label {
  background: #f1f5f9 !important;
  border-radius: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  margin-bottom: 0.5rem !important;
  padding: 0.25rem 0 !important;
  float: none !important;
}

div#calendar ul.label li {
  width: 100% !important;
  float: none !important;
  text-align: center !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  font-size: 0.9rem !important;
}

div#calendar ul.dates {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  list-style: none !important;
}

div#calendar ul.dates li {
  float: none !important;
  width: 100% !important;
  min-height: 80px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.2s ease !important;
}

div#calendar ul.dates li:hover {
  border-color: #52b788 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06) !important;
}

div#calendar .box-spaces {
  margin: 0 !important;
  padding: 2px 8px !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  text-align: center !important;
  width: 100% !important;
}

.calendar-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

/* 5. 4-Step Booking Process */
.stp-permits-steps-section {
  padding: 5rem 0;
}

.stp-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.25rem 1.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stp-step-card:hover {
  transform: translateY(-5px);
  border-color: #52b788;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.stp-step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s ease;
}

.stp-step-card:hover .stp-step-number {
  color: #d8f3dc;
}

.stp-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0fdf4;
  color: #2d6a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(45, 106, 79, 0.12);
}

.stp-step-title {
  font-size: 1.2rem;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.stp-step-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* 6. Unpermitted Alternatives Section */
.stp-permits-alts-section {
  padding: 5rem 0 5.5rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.stp-alt-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.stp-alt-card:hover {
  transform: translateY(-7px);
  border-color: #52b788;
  box-shadow: 0 20px 38px -8px rgba(15, 23, 42, 0.11), 0 8px 16px -4px rgba(45, 106, 79, 0.08);
}

.stp-alt-card-media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: #e2e8f0;
}

.stp-alt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.stp-alt-card:hover .stp-alt-card-media img {
  transform: scale(1.07);
}

.stp-alt-badge-no-permit {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #2d6a4f;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.stp-alt-card-body {
  padding: 1.6rem 1.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stp-alt-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.stp-alt-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stp-alt-meta i {
  color: #2d6a4f;
}

.stp-alt-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.stp-alt-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.stp-alt-title a:hover,
.stp-alt-card:hover .stp-alt-title a {
  color: #2d6a4f;
}

.stp-alt-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.stp-alt-footer {
  padding-top: 1.1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.stp-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #2d6a4f;
  text-decoration: none;
  transition: all 0.2s ease;
}

.stp-alt-link i {
  transition: transform 0.2s ease;
}

.stp-alt-card:hover .stp-alt-link {
  color: #1b4332;
}

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

/* 7. Frequently Asked Questions Accordion */
.stp-permits-faq-section {
  padding: 5rem 0;
}

.stp-permits-accordion .accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.stp-permits-accordion .accordion-button {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  padding: 1.35rem 1.65rem;
  background: #ffffff;
  box-shadow: none;
}

.stp-permits-accordion .accordion-button:not(.collapsed) {
  color: #2d6a4f;
  background: #f0fdf4;
}

.stp-permits-accordion .accordion-button:focus {
  box-shadow: none;
}

.stp-permits-accordion .accordion-body {
  padding: 1.25rem 1.65rem 1.65rem;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* 8. Direct Permit Concierge Card */
.stp-permits-concierge-card {
  background: linear-gradient(135deg, #1b4332 0%, #081c15 100%);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(8, 28, 21, 0.25);
  position: relative;
  overflow: hidden;
}

.stp-permits-concierge-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.stp-concierge-badge {
  display: inline-block;
  background: rgba(255, 195, 0, 0.18);
  color: #ffc300;
  border: 1px solid rgba(255, 195, 0, 0.35);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.stp-concierge-title {
  font-size: 2.25rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin-bottom: 0.85rem;
}

.stp-concierge-desc {
  font-size: 1.05rem;
  color: #d8f3dc;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 680px;
}

.stp-concierge-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 9. Editorial Content Container */
.stp-permits-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 3rem 2.75rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-top: 3rem;
  color: #334155;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .stp-section-title {
    font-size: 1.85rem;
  }
  .stp-calendar-card {
    padding: 1.75rem 1.25rem;
  }
  .stp-permits-concierge-card {
    padding: 2.5rem 1.75rem;
  }
  .stp-concierge-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  div#calendar ul.dates li {
    min-height: 60px !important;
    padding: 4px 2px !important;
    font-size: 0.75rem !important;
  }
  div#calendar .box-spaces {
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
  }
  .stp-calendar-legend {
    border-radius: 20px;
    padding: 0.85rem 1rem;
  }
  .stp-permits-alert-bar {
    margin-top: -1.5rem;
  }
}
