/**
 * Single Package Detail Page Styles
 * Complements the shared booking popup styles from Part 2
 * @package TripToMountain
 */

:root {
    --sp-primary: #00847c;
    --sp-secondary: #0a2e2b;
    --sp-accent: #00d4c8;
    --sp-gold: #c9a227;
    --sp-danger: #e74c3c;
    --sp-success: #27ae60;
    --sp-light: #f9f9f9;
    --sp-border: #e0e0e0;
}

/* ═════════════════════════════════════════════════════════════════════
   SHARED STRUCTURE
   ═════════════════════════════════════════════════════════════════════ */

.sp-main {
    background: #fff;
}

.sp-section {
    padding: 80px 0;
    background: #fff;
}

.sp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--sp-secondary);
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .sp-section {
        padding: 50px 0;
    }
    .sp-section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

/* ═════════════════════════════════════════════════════════════════════
   SECTION 1: HERO & HIGHLIGHTS
   ═════════════════════════════════════════════════════════════════════ */

.sp-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.sp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 46, 43, 0.7), rgba(0, 132, 124, 0.5));
    z-index: 1;
}

.sp-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

.sp-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.8s ease-out;
}

.sp-hero-tagline {
    font-family: 'Gill Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .sp-hero {
        height: 350px;
    }
    .sp-hero-inner{
        padding: 10px;
    }
    .sp-hero-title {
        font-size: 18px;
    }
    .sp-hero-tagline {
        font-size: 14px;
    }
}

/* ─────────────────────────────────────────────────────────────────── */
/* Highlight Badges */
/* ─────────────────────────────────────────────────────────────────── */

.sp-highlights-section {
    background: linear-gradient(135deg, #f9f9f9, #fff);
    padding-top: 60px;
    padding-bottom: 60px;
}

.sp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sp-highlight-card {
    background: white;
    border: 2px solid var(--sp-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sp-highlight-card:hover {
    border-color: var(--sp-primary);
    box-shadow: 0 4px 15px rgba(0, 132, 124, 0.15);
    transform: translateY(-2px);
}

.sp-highlight-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.sp-highlight-content {
    flex: 1;
}

.sp-highlight-label {
    font-size: 0.9rem;
    color: #999;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sp-highlight-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--sp-secondary);
    margin: 0;
}

@media (max-width: 640px) {
    .sp-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .sp-highlight-card {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    .sp-highlight-icon {
  font-size: 20px;
    }
    .sp-highlight-label {
  font-size: 10px;
    }
    .sp-highlight-value {
  font-size: 10px;
    }
    .sp-btn-lg {
  padding: 10px 30px;
  font-size: 10px;
}
  .sp-section {
    padding: 10px 0;
  }
    .sp-section-title {
    font-size: 16px;
    }
}

.sp-overview-cta {
    text-align: center;
    margin-top: 40px;
}

/* ═════════════════════════════════════════════════════════════════════
   SECTION 2: ITINERARY TIMELINE
   ═════════════════════════════════════════════════════════════════════ */

.sp-timeline {
    position: relative;
    padding: 40px 0;
}

.sp-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--sp-primary), transparent);
    transform: translateX(-1px);
}

.sp-timeline-item {
    display: flex;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.sp-timeline-item:nth-child(odd) {
    flex-direction: row;
}

.sp-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.sp-timeline-marker {
    flex: 0 0 auto;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-timeline-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--sp-primary);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--sp-primary);
    position: relative;
    z-index: 2;
}

.sp-timeline-content {
    flex: 1;
    background: var(--sp-light);
    padding: 25px;
    border-radius: 8px;
    margin: 0 30px;
    border-left: 4px solid var(--sp-primary);
    transition: all 0.3s ease;
}

.sp-timeline-content:hover {
    box-shadow: 0 4px 15px rgba(0, 132, 124, 0.2);
    transform: translateX(5px);
}

.sp-timeline-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--sp-secondary);
    margin-bottom: 10px;
}

.sp-timeline-desc {
    font-family: 'Gill Sans', sans-serif;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .sp-timeline::before {
        left: 20px;
    }
    .sp-timeline-item {
        flex-direction: row !important;
    }
    .sp-timeline-marker {
        flex: 0 0 auto;
        width: 60px;
    }
    .sp-timeline-day {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        box-shadow: 0 0 0 3px white, 0 0 0 5px var(--sp-primary);
    }
    .sp-timeline-content {
        margin-left: 60px;
        margin-right: 0;
        border-left: 4px solid var(--sp-primary);
    }
}

@media (max-width: 640px) {
    .sp-timeline::before {
        left: 15px;
    }
    .sp-timeline-marker {
        width: 50px;
    }
     .sp-timeline-day {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .sp-timeline {
  position: relative;
  padding: 0px 0;
}
    .sp-timeline-title {
        font-size: 12px;
    }
    .sp-timeline-desc {
  font-size: 11px;
    }
      .sp-timeline-content {
    margin-left: 0px;
    padding: 15px;
  }
  .sp-accommodation-header {
    padding: 12px;
  }
  .sp-accommodation-title {
  font-size: 12px;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   SECTION 3: ACCOMMODATION & TRANSPORT
   ═════════════════════════════════════════════════════════════════════ */

.sp-accommodation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.sp-accommodation-card {
    background: white;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sp-accommodation-card:hover {
    box-shadow: 0 8px 20px rgba(0, 132, 124, 0.2);
    transform: translateY(-5px);
}

.sp-accommodation-header {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    padding: 20px;
    color: white;
}

.sp-accommodation-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.sp-accommodation-body {
    padding: 25px;
}

.sp-hotel-name {
    font-family: 'Gill Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--sp-secondary);
    margin-bottom: 12px;
}

.sp-hotel-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Vehicles List */
.sp-vehicles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sp-vehicle-chip {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 132, 124, 0.1), rgba(0, 212, 200, 0.1));
    border: 1px solid rgba(0, 132, 124, 0.3);
    color: var(--sp-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sp-vehicle-chip:hover {
    background: linear-gradient(135deg, rgba(0, 132, 124, 0.2), rgba(0, 212, 200, 0.2));
    border-color: var(--sp-primary);
}

@media (max-width: 768px) {
    .sp-accommodation-grid {
        gap: 25px;
    }
    .sp-accommodation-body {
  padding: 12px;
}
.sp-vehicle-chip {
  font-size: 10px;
}
.sp-places-list {
  padding: 10px;
}



}

/* ═════════════════════════════════════════════════════════════════════
   SECTION 4: PLACES & GALLERY
   ═════════════════════════════════════════════════════════════════════ */

.sp-places-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.sp-places-list {
    background: var(--sp-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--sp-primary);
}

.sp-place-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 132, 124, 0.1);
}

.sp-place-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sp-place-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sp-place-name {
    font-family: 'Gill Sans', sans-serif;
    font-size: 1rem;
    color: var(--sp-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Gallery Grid */
.sp-gallery-wrapper {
    width: 100%;
}

.sp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sp-gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--sp-light);
}

.sp-gallery-figure {
    margin: 0;
    height: 100%;
    position: relative;
}

.sp-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sp-gallery-item:hover .sp-gallery-thumb {
    transform: scale(1.1);
}

.sp-gallery-zoom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 132, 124, 0.8);
    font-size: 2rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
}

.sp-gallery-item:hover .sp-gallery-zoom {
    opacity: 1;
}

@media (max-width: 1024px) {
    .sp-places-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .sp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ─────────────────────────────────────────────────────────────────── */
/* Lightbox */
/* ─────────────────────────────────────────────────────────────────── */

.sp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.sp-lightbox:not([hidden]) {
    animation: fadeIn 0.3s ease;
}

.sp-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
}

.sp-lightbox-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.sp-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.sp-lightbox-close:hover {
    transform: scale(1.2);
}

.sp-lightbox-prev,
.sp-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.sp-lightbox-prev:hover,
.sp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sp-lightbox-prev {
    left: -60px;
}

.sp-lightbox-next {
    right: -60px;
}

@media (max-width: 768px) {
    .sp-lightbox-close {
        top: 10px;
        right: 10px;
    }
    .sp-place-name {
  font-family: 'Gill Sans', sans-serif;
  font-size: 12px;
}
.sp-place-icon {
  font-size: 13px;
}
    .sp-lightbox-prev,
    .sp-lightbox-next {
        position: static;
        transform: none;
        margin: 0 10px;
        font-size: 1.5rem;
    }
    .sp-lightbox-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sp-checklist {
  padding: 12px;
    }

    .sp-checklist-check, .sp-checklist-cross {
  font-size: 12px;
    }
    .sp-checklist-text {
  font-size: 12px;
    }
    .sp-place-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
 margin-bottom: 8px;
  padding-bottom: 8px;
}

}

/* ═════════════════════════════════════════════════════════════════════
   SECTION 5: INCLUDES/EXCLUDES
   ═════════════════════════════════════════════════════════════════════ */

.sp-includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.sp-checklist {
    background: var(--sp-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--sp-primary);
}

.sp-checklist-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--sp-secondary);
    margin-bottom: 20px;
}

.sp-checklist-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sp-checklist-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sp-checklist-check,
.sp-checklist-cross {
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sp-checklist-item-included .sp-checklist-check {
    color: var(--sp-success);
}

.sp-checklist-item-excluded .sp-checklist-cross {
    color: var(--sp-danger);
}

.sp-checklist-text {
    color: #555;
    line-height: 1.5;
    font-family: 'Gill Sans', sans-serif;
}

/* ═════════════════════════════════════════════════════════════════════
   SECTION 6: CTA BANNER
   ═════════════════════════════════════════════════════════════════════ */

.sp-cta-banner {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.sp-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 46, 43, 0.85), rgba(0, 132, 124, 0.65));
    z-index: 1;
}

.sp-cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    color: white;
}

.sp-cta-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sp-cta-subtext {
    font-family: 'Gill Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.sp-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .sp-cta-banner {
        padding: 60px 20px;
        min-height: 300px;
    }
    .sp-checklist-item {
  margin-bottom: 8px;
  padding-bottom: 8px;
    gap: 5px;
    }
        .sp-checklist-title {
  font-size: 16px;
    }
    .sp-cta-subtext {
        font-size: 13px;
    }
    .sp-cta-buttons {
        gap: 15px;
    }
      .sp-cta-heading {
    font-size: 16px;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════════════════════════════════════ */

.sp-btn {
    font-family: 'Gill Sans', sans-serif;
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.sp-btn-primary {
    background: var(--sp-primary);
    color: white;
}

.sp-btn-primary:hover {
    /* background: darken(var(--sp-primary), 10%); */
    box-shadow: 0 6px 20px rgba(0, 132, 124, 0.4);
    transform: translateY(-2px);
}

.sp-btn-secondary {
    background: white;
    color: var(--sp-primary);
    border: 2px solid var(--sp-primary);
}

.sp-btn-secondary:hover {
    background: var(--sp-primary);
    color: white;
    transform: translateY(-2px);
}

.sp-btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.sp-section-cta {
    text-align: center;
    margin-top: 50px;
}
@media (max-width: 680px) {
.sp-btn {
  padding: 8px 25px;
  font-size: 12px;
}
.sp-section-cta {
    text-align: center;
    margin-top: 20px;
}
.sp-btn-lg {
  padding: 8px 30px;
  font-size: 12px;
}
}
/* ═════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═════════════════════════════════════════════════════════════════════ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* AOS Integration (if globally loaded) */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.6s;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ═════════════════════════════════════════════════════════════════════
   UTILITY & PRINT STYLES
   ═════════════════════════════════════════════════════════════════════ */

@media print {
    .sp-section-cta,
    .sp-cta-buttons,
    .sp-booking-trigger {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
