/* ========================================================================
   Front-end styling for Tourism Packages Manager
   Premium Rich UI with Professional Design - Primary Color: #0057B8
   ======================================================================== */

/* Color Palette */
:root {
    --tpm-primary: #0057B8;
    --tpm-primary-light: #0066D6;
    --tpm-primary-dark: #003D8F;
    --tpm-primary-lighter: #E8F0FF;
    --tpm-accent: #FF6B35;
    --tpm-accent-light: #FFE4D1;
    --tpm-text-primary: #1a1a1a;
    --tpm-text-secondary: #666666;
    --tpm-border: #E5E5E5;
    --tpm-bg-light: #F8FAFB;
    --tpm-success: #27AE60;
    --tpm-warning: #F39C12;
}

/* ========================================================================
   GRID DISPLAY - Package Cards (Premium Professional Style)
   ======================================================================== */

.tpm-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem; /* reduced gap to tighten vertical rhythm */
    margin: 1.5rem 0; /* reduce outer spacing */
    padding: 0;
}

@media (max-width: 768px) {
    .tpm-packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================================================
   PACKAGE CARD - Premium Luxury Styling
   ======================================================================== */

.tpm-package-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 87, 184, 0.08), 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 87, 184, 0.05);
}

.tpm-package-card::before {
    /* Disabled decorative top stripe */
    display: none !important;
}

.tpm-package-card:hover {
    box-shadow: 0 12px 32px rgba(0, 87, 184, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
    border-color: rgba(0, 87, 184, 0.1);
}

.tpm-package-card:hover::before {
    /* intentionally left transparent to disable hover stripe */
    opacity: 0;
}

/* Card Image Container */
.tpm-card-image {
    width: 100%;
    height: 180px; /* reduced height to make cards more compact */
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafb 0%, #e8f0ff 100%);
    position: relative;
}

.tpm-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 87, 184, 0) 0%, rgba(0, 87, 184, 0.05) 100%);
    pointer-events: none;
}

/* Category pill overlay on card image (top-left) */
.tpm-card-category-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.95);
    color: var(--tpm-primary);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 4;
}

/* Facilities small tags shown under the package code in card header */
.tpm-card-facilities-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.tpm-card-facility-small {
    display: inline-block;
    background: #fff;
    color: var(--tpm-text-secondary);
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Compact meta row immediately after package code */
.tpm-card-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin-top: 0.15rem; /* tighten vertical rhythm */
}

.tpm-card-meta-top {
    color: var(--tpm-text-secondary);
    font-size: 0.84rem;
}
.tpm-card-meta-bottom { display:flex; gap:6px; flex-wrap:wrap; }

/* Package Info section in detail view */
.tpm-package-info { display:flex; flex-direction:column; gap:0.6rem; }
.tpm-package-info-row { display:flex; gap:0.6rem; align-items:center; }
.tpm-package-info .tpm-meta-label { width:92px; font-weight:700; color:var(--tpm-text-secondary); font-size:0.9rem; }
.tpm-package-info-value { font-weight:700; color:var(--tpm-text-primary); }

.tpm-card-meta-cat {
    background: rgba(0,87,184,0.06);
    color: var(--tpm-primary);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
}

.tpm-card-meta-location {
    color: var(--tpm-text-secondary);
    font-size: 0.78rem;
    padding-left: 0.15rem;
}

.tpm-discount-inline {
    background: var(--tpm-accent);
    color: #fff;
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.78rem;
    box-shadow: 0 6px 14px rgba(255,107,53,0.12);
}

/* Hero-specific meta: make chips suitable for overlay */
.tpm-hero-meta-row { color: #fff; }
.tpm-hero-meta-row .tpm-card-meta-cat { background: rgba(255,255,255,0.12); color: #fff; }
.tpm-hero-meta-row .tpm-card-meta-location { color: rgba(255,255,255,0.9); }
.tpm-hero-meta-row .tpm-card-facility-small { background: rgba(255,255,255,0.12); color: #fff; border: none; box-shadow: none; }
.tpm-hero-meta-row .tpm-discount-inline { background: rgba(255,107,53,0.95); }

/* Booking panel specific styles (compact price card on sidebar) */
.tpm-booking-panel {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,87,184,0.04);
    text-align: center;
}
.tpm-booking-code { font-size: 0.75rem; color: var(--tpm-primary); font-weight:700; letter-spacing:0.6px; margin-bottom:0.6rem; }
.tpm-booking-meta { display:flex; flex-direction:column; gap:0.35rem; margin-bottom:0.6rem; align-items:center; }
.tpm-booking-meta-item { font-size:0.82rem; color:var(--tpm-text-secondary); }
.tpm-booking-meta-facilities { display:flex; gap:0.35rem; flex-wrap:wrap; justify-content:center; }
.tpm-booking-facility { background:#fff; padding:0.18rem 0.45rem; border-radius:999px; font-size:0.75rem; color:var(--tpm-text-secondary); border:1px solid rgba(0,0,0,0.05); }
.tpm-discount-badge-small { background:var(--tpm-accent); color:#fff; padding:0.18rem 0.45rem; border-radius:6px; font-weight:800; font-size:0.78rem; }

.tpm-booking-price-box { display:flex; flex-direction:column; align-items:center; gap:0.6rem; padding:0.6rem 0; }
.tpm-booking-price-label { font-size:0.75rem; color:var(--tpm-text-secondary); text-transform:uppercase; letter-spacing:1px; }
.tpm-booking-price-amount { font-size:2.1rem; font-weight:900; color:var(--tpm-primary); letter-spacing:-0.5px; }

.tpm-book-btn, .tpm-ask-price-btn { width:100%; display:inline-block; padding:0.8rem 1rem; border-radius:8px; font-weight:800; font-size:0.95rem; }
.tpm-book-btn { background: linear-gradient(135deg, var(--tpm-primary) 0%, var(--tpm-primary-light) 100%); color:#fff; border:none; }
.tpm-ask-price-btn { background:transparent; color:var(--tpm-primary); border:1px solid rgba(0,87,184,0.12); }

/* Prevent wrapping from breaking compact layout */
.tpm-card-facilities-inline .tpm-card-facility-small { white-space: nowrap; }

/* Price helpers */
.tpm-price-original { text-decoration: line-through; color: var(--tpm-text-secondary); font-size: 0.95rem; margin-right: 0.5rem; }
.tpm-discount-badge { background: var(--tpm-accent); color: #fff; padding: 0.32rem 0.6rem; border-radius: 8px; font-weight: 800; margin-left: 0.5rem; font-size: 0.82rem; box-shadow: 0 6px 18px rgba(255,107,53,0.18); }

.tpm-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    will-change: transform;
}

.tpm-package-card:hover .tpm-grid-image {
    transform: scale(1.1) translateZ(0);
    filter: saturate(1.08) contrast(1.05) brightness(1.02);
}

/* Make anchor wrapping the card behave like a block and remove text link defaults */
.tpm-card-link-inner {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

/* Card Content */
.tpm-card-content {
    padding: 1rem; /* reduced padding to compact the card */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Header - title and code */
.tpm-card-header {
    margin-bottom: 0.4rem; /* tighten spacing under header */
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tpm-card-code {
    font-size: 0.75rem;
    color: var(--tpm-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.4rem;
    margin-top: 0;
    font-weight: 700;
    opacity: 0.8;
}

.tpm-card-title {
    margin: 0 0 0.45rem; /* reduced space under title */
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tpm-text-primary);
    line-height: 1.35;
    letter-spacing: -0.5px;
}

/* Card Excerpt - short description */
.tpm-card-excerpt {
    flex-grow: 1;
    margin: 0 0 0.4rem; /* reduced gap to tighten card */
    font-size: 0.875rem;
    color: var(--tpm-text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info badges - placeholder for future icons/badges */
.tpm-card-info-badges {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.6rem; /* reduced gap */
    flex-wrap: wrap;
}

.tpm-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    background: var(--tpm-primary-lighter);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tpm-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(0, 87, 184, 0.2);
}

/* Card Footer - price and CTA */
.tpm-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* reduced gap to compact footer */
    margin-top: auto;
    padding-top: 0.6rem; /* smaller top padding */
    border-top: 1px solid rgba(0, 87, 184, 0.06);
}

/* Price section in card footer */
.tpm-card-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem; /* reduced padding */
    background: linear-gradient(135deg, var(--tpm-primary-lighter) 0%, rgba(0, 87, 184, 0.03) 100%);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--tpm-text-primary);
    border: 1px solid rgba(0, 87, 184, 0.05);
}

.tpm-card-price-section.tpm-price-ask {
    background: var(--tpm-accent-light);
    color: var(--tpm-accent);
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.tpm-price-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: inherit;
    font-weight: 600;
    opacity: 0.85;
}

.tpm-price-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--tpm-primary);
    letter-spacing: -0.5px;
}

.tpm-price-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tpm-price-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA button in card */
.tpm-card-cta {
    display: inline-block;
    align-self: center; /* center the CTA */
    padding: 0.55rem 1rem; /* slightly tighter padding */
    background: linear-gradient(135deg, var(--tpm-primary) 0%, var(--tpm-primary-light) 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.22), 0 2px 6px rgba(0, 87, 184, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.tpm-card-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 0;
}

.tpm-card-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 87, 184, 0.35), 0 4px 10px rgba(0, 87, 184, 0.2);
}

.tpm-card-cta:hover::before {
    left: 100%;
}

/* Legacy card price styling (for backwards compat if needed) */
.tpm-card-price {
    background: var(--tpm-bg-light);
    padding: 1.2rem;
    margin: 1rem -1.6rem -1.6rem;
    border-top: 1px solid rgba(0, 87, 184, 0.1);
}

.tpm-card-price-category {
    font-size: 0.75rem;
    color: var(--tpm-text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.tpm-card-price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--tpm-primary);
    letter-spacing: -0.5px;
}

/* Card Button */

/* Primary CTA styling (used for the View Details element inside the card) */
.tpm-card-button {
    display: inline-block;
    align-self: center; /* center the button */
    padding: 0.55rem 1rem; /* smaller padding */
    background: linear-gradient(135deg, var(--tpm-primary) 0%, var(--tpm-primary-light) 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.22), 0 2px 6px rgba(0, 87, 184, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.6rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tpm-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 0;
}

.tpm-card-button:hover,
.tpm-card-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 87, 184, 0.35), 0 4px 10px rgba(0, 87, 184, 0.2);
    text-decoration: none;
    outline: none;
}

.tpm-card-button:hover::before,
.tpm-card-button:focus::before {
    left: 100%;
}

/* position CTA inside the content area so it sits nicely and is easy to spot */
.tpm-card-cta {
    margin-top: 0.8rem;
}

/* when the CTA is used as the last element, push it to the bottom on taller cards */
.tpm-card-content {
    display: flex;
    flex-direction: column;
}

.tpm-card-content .tpm-card-button {
    margin-top: auto;
}

/* small placeholder empty image styling */
.tpm-card-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    color: #888;
    font-size: 0.95rem;
}

/* ========================================================================
   PACKAGE DETAIL VIEW - Professional & Attractive Layout
   ======================================================================== */

.tpm-package-detail {
    background: #fff;
    margin: 0;
    padding: 0;
}

/* Hero Image Section - Full Width Booking.com Style */
.tpm-detail-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tpm-bg-light) 0%, rgba(0, 87, 184, 0.05) 100%);
}

.tpm-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.tpm-detail-hero:hover .tpm-hero-image {
    transform: scale(1.02);
}

.tpm-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent);
    padding: 6rem 2rem 3rem;
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    width: 100%;
    box-sizing: border-box;
}

.tpm-hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.tpm-detail-title {
    margin: 0 0 0.75rem;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.tpm-detail-code {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Fallback header when no image */
.tpm-detail-header-fallback {
    background: linear-gradient(135deg, var(--tpm-primary) 0%, var(--tpm-primary-light) 100%);
    color: #fff;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 87, 184, 0.15);
}

.tpm-detail-header-fallback .tpm-detail-title {
    color: #fff;
    font-size: 2.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tpm-detail-header-fallback .tpm-detail-code {
    color: rgba(255, 255, 255, 0.95);
}

/* Main Container Grid */
.tpm-detail-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 0.5rem;
    box-sizing: border-box;
}

/* Ensure the whole package detail wrapper centers independent of theme layout */
.tpm-package-detail {
    width: 100%;
    box-sizing: border-box;
    /* remove ash background to let theme/page background show through */
    background: transparent;
}

.tpm-detail-main {
    grid-column: 1 / 2;
}

.tpm-detail-sidebar {
    grid-column: 2 / 3;
    /* Make booking card static (not sticky) to avoid overlapping content */
    position: static;
    top: auto;
}

/* Responsive: stack layout on small screens */
@media (max-width: 900px) {
    .tpm-detail-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.2rem;
        gap: 2rem;
    }

    .tpm-detail-sidebar {
        position: static;
        top: auto;
    }

    .tpm-hero-content {
        padding: 0 1rem;
    }

    .tpm-detail-title {
        font-size: 2.4rem;
    }
}

/* On small screens show booking panel above the main content */
@media (max-width: 900px) {
    .tpm-detail-sidebar {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }
    .tpm-detail-main {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }
}

/* Panels that should visually match booking form */
.tpm-related-panel,
.tpm-content-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Make itinerary and main content use the same inner width as booking form */
.tpm-content-panel .tpm-detail-section {
    background: transparent;
    border-left: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.tpm-content-panel .tpm-section-title {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}

/* Detail Sections - Card Style with Visual Hierarchy */
.tpm-detail-section {
    margin-bottom: 2.8rem;
    padding: 2.2rem;
    background: #fff;
    border-radius: 12px;
    border-left: 5px solid var(--tpm-primary);
    box-shadow: 0 2px 12px rgba(0, 87, 184, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpm-detail-section:hover {
    box-shadow: 0 8px 24px rgba(0, 87, 184, 0.12);
    transform: translateX(4px);
    border-left-color: var(--tpm-primary-light);
}

.tpm-detail-section:last-child {
    margin-bottom: 0;
}

.tpm-section-title {
    margin: 0 0 1.6rem;
    padding-bottom: 1rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--tpm-text-primary);
    line-height: 1.3;
    border-bottom: 2px solid var(--tpm-primary-lighter);
    letter-spacing: -0.3px;
}

.tpm-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--tpm-primary);
    margin-right: 0.8rem;
    border-radius: 2px;
    vertical-align: middle;
}

/* Description */
.tpm-detail-description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--tpm-text-secondary);
}

.tpm-detail-description p {
    margin-bottom: 1.2rem;
}

.tpm-detail-description p:last-child {
    margin-bottom: 0;
}

.tpm-detail-description strong {
    color: var(--tpm-primary);
    font-weight: 700;
}

.tpm-detail-description ul,
.tpm-detail-description ol {
    margin: 1.2rem 0;
    padding-left: 2.2rem;
}

.tpm-detail-description li {
    margin: 0.6rem 0;
    color: var(--tpm-text-secondary);
}

/* ========================================================================
   PROFESSIONAL TIMELINE - Tour Itinerary (Modern Grid Design)
   ======================================================================== */

.tpm-itinerary-timeline {
    position: relative;
    padding-left: 0;
    /* switch from grid to vertical stacked layout */
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.tpm-itinerary-timeline::before {
    content: '';
    display: none;
}

.tpm-timeline-item {
    margin-bottom: 0;
    position: relative;
    /* make each timeline item stretch full width in vertical layout */
    width: 100%;
}

.tpm-timeline-marker {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 10;
    transition: none;
}

.tpm-timeline-item:hover .tpm-timeline-marker {
    transform: none;
    box-shadow: none;
}

.tpm-timeline-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tpm-timeline-card:hover {
    box-shadow: 0 12px 32px rgba(0, 87, 184, 0.15);
    transform: translateY(-6px);
}

.tpm-timeline-card.expanded {
    box-shadow: 0 12px 32px rgba(0, 87, 184, 0.15);
    border-color: transparent;
}

.tpm-timeline-card .tpm-timeline-header {
    padding: 0;
    background: transparent;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-direction: column;
}

.tpm-timeline-toggle {
    width: 100%;
    padding: 1.4rem;
    border: none;
    background: linear-gradient(135deg, var(--tpm-primary-lighter) 0%, rgba(0, 87, 184, 0.05) 100%);
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tpm-timeline-toggle:hover {
    background: var(--tpm-primary-lighter);
}

.tpm-timeline-toggle:focus {
    outline: 2px solid var(--tpm-primary);
    outline-offset: -2px;
}

.tpm-timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex: 0;
    flex-direction: column;
}

.tpm-day-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--tpm-primary) 0%, var(--tpm-primary-light) 100%);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0, 87, 184, 0.2);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.tpm-timeline-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tpm-text-primary);
    word-break: break-word;
    line-height: 1.35;
}

.tpm-toggle-icon {
    display: inline-block;
    color: var(--tpm-primary);
    font-size: 0.9rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    font-weight: bold;
}

.tpm-timeline-card.expanded .tpm-toggle-icon {
    transform: rotate(180deg);
}

.tpm-timeline-content {
    padding: 1.6rem;
    border-top: none;
    animation: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

.tpm-day-description {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--tpm-text-secondary);
    margin-bottom: 1.2rem;
}

.tpm-day-description p {
    margin: 0.5rem 0;
}

.tpm-day-activities {
    margin-top: 0;
}

.tpm-activities-title {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tpm-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tpm-activities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tpm-activity-item {
    padding: 1rem;
    background: linear-gradient(135deg, var(--tpm-primary-lighter) 0%, rgba(0, 87, 184, 0.05) 100%);
    border-left: 4px solid var(--tpm-primary);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 87, 184, 0.15);
}

.tpm-activity-item:hover {
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.08) 0%, rgba(0, 87, 184, 0.08) 100%);
    box-shadow: 0 2px 8px rgba(0, 87, 184, 0.08);
    transform: translateX(4px);
}

.tpm-activity-header {
    margin-bottom: 0.4rem;
}

.tpm-activity-title {
    display: block;
    font-size: 0.95rem;
    color: var(--tpm-primary);
    margin: 0;
    font-weight: 700;
}

.tpm-activity-description {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--tpm-text-secondary);
}

.tpm-post-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    border-left: none;
    border-radius: 8px;
    align-items: stretch;
    box-shadow: none;
}

.tpm-post-preview-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 87, 184, 0.1);
}

.tpm-post-preview:hover .tpm-post-preview-img {
    transform: scale(1.02);
}

.tpm-post-preview-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
}

.tpm-post-preview-title {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tpm-text-primary);
    line-height: 1.4;
}

.tpm-post-preview-link {
    display: inline-block;
    color: var(--tpm-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    align-self: flex-start;
}

.tpm-post-preview-link:hover {
    color: var(--tpm-primary-dark);
    text-decoration: underline;
}

/* Extra Content */
.tpm-extra-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--tpm-text-secondary);
}

.tpm-extra-content p {
    margin: 1rem 0;
}

.tpm-extra-content p:last-child {
    margin-bottom: 0;
}

.tpm-extra-content ul {
    margin: 1.2rem 0;
    padding-left: 2.2rem;
}

.tpm-extra-content ul li {
    margin-bottom: 0.6rem;
    color: var(--tpm-text-secondary);
}

/* ========================================================================
   BOOKING PANEL - Sidebar
   ======================================================================== */

.tpm-booking-panel {
    background: linear-gradient(135deg, #fff 0%, var(--tpm-primary-lighter) 100%);
    border: 2px solid var(--tpm-primary-lighter);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(0, 87, 184, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpm-booking-panel:hover {
    box-shadow: 0 12px 36px rgba(0, 87, 184, 0.18);
    transform: translateY(-4px);
}

/* Gallery thumbnails grid - Full Width Booking.com Style */
.tpm-gallery-thumbs {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    background: #f9f9f9;
}

.tpm-gallery-grid {
    /* center thumbnails as a group */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.tpm-gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    aspect-ratio: 16 / 12;
    cursor: pointer;
    position: relative;
    flex: 0 0 140px; /* fixed thumbnail width so group can be centered */
}

.tpm-gallery-thumb:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 87, 184, 0.2);
    border-color: var(--tpm-primary);
}

.tpm-gallery-thumb::after {
    /* removed default magnifier overlay */
    display: none !important;
}

.tpm-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpm-gallery-more {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 6px;
}

.tpm-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpm-gallery-thumb:hover img {
    transform: scale(1.08);
}

/* Lightbox Modal Styling */
.tpm-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive: show 4 thumbnails on narrow screens (mobile) */
@media (max-width: 600px) {
    .tpm-gallery-grid {
        gap: 0.45rem;
        padding: 0;
        justify-content: flex-start;
    }
    .tpm-gallery-thumb {
        flex: 0 0 calc((100% - 1.35rem) / 4); /* 4 thumbnails per row with small gaps */
        aspect-ratio: 4 / 3;
        box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    }
    .tpm-gallery-thumbs {
        padding: 0.9rem 1rem;
        margin-top: 1rem;
        margin-bottom: 1.2rem;
    }
    .tpm-gallery-more { font-size: 1rem; }
    /* Hide the 5th thumbnail on narrow screens so only 4 are visible */
    .tpm-hide-mobile { display: none !important; }
}

.tpm-lightbox-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.tpm-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpm-lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Smooth image fade for lightbox */
.tpm-lightbox-image {
    transition: opacity 260ms ease-in-out;
    opacity: 1;
}
.tpm-lightbox-content { background: #000; }

.tpm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
}

.tpm-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.tpm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.tpm-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.tpm-lightbox-nav.prev {
    left: 20px;
}

.tpm-lightbox-nav.next {
    right: 20px;
}

.tpm-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10001;
}

/* Related packages grid */
.tpm-related-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.6rem;
    align-items: start;
}

.tpm-related-package-card {
    background: #fff;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tpm-related-package-card:hover {
    box-shadow: 0 12px 32px rgba(0, 87, 184, 0.15);
    transform: translateY(-6px);
}

.tpm-related-package-card a {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    padding: 0;
    height: 100%;
}

.tpm-related-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
}

.tpm-related-thumb-empty {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--tpm-primary-lighter) 0%, rgba(0, 87, 184, 0.05) 100%);
    border-radius: 0;
    flex-shrink: 0;
}

.tpm-related-meta {
    padding: 1.4rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tpm-related-meta h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tpm-text-primary);
    line-height: 1.3;
}

.tpm-booking-header {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 2px solid rgba(0, 87, 184, 0.1);
}

.tpm-booking-code {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--tpm-primary);
    margin: 0;
    font-weight: 700;
}

.tpm-booking-price {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tpm-price-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--tpm-text-secondary);
    font-weight: 700;
    margin: 0;
}

.tpm-price-display {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--tpm-primary);
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -1px;
}

/* Booking Buttons */
.tpm-book-btn,
.tpm-ask-price-btn {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, var(--tpm-primary) 0%, var(--tpm-primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 87, 184, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tpm-book-btn::before,
.tpm-ask-price-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: 0;
}

.tpm-book-btn:hover,
.tpm-ask-price-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 87, 184, 0.35);
    outline: none;
}

.tpm-book-btn:hover::before,
.tpm-ask-price-btn:hover::before {
    left: 100%;
}

.tpm-book-btn:active,
.tpm-ask-price-btn:active {
    transform: translateY(-1px);
}

/* Ask Price Button - Alternate Style */
.tpm-ask-price-btn {
    background: linear-gradient(135deg, var(--tpm-accent) 0%, #FF8657 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
}

.tpm-ask-price-btn:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.35);
}

/* ========================================================================
   RESPONSIVE - Detail Page
   ======================================================================== */

@media (max-width: 900px) {
    .tpm-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .tpm-detail-sidebar {
        grid-column: 1 / -1;
        position: static;
    }

    .tpm-detail-title {
        font-size: 2.2rem;
    }

    .tpm-hero-overlay {
        padding: 3rem 1.5rem 1.8rem;
        min-height: 160px;
    }

    .tpm-detail-section {
        padding: 1.8rem;
    }

    .tpm-section-title {
        font-size: 1.45rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.9rem;
    }

    .tpm-itinerary-timeline {
        padding-left: 50px;
    }

    .tpm-timeline-marker {
        left: -40px;
    }

    .tpm-post-preview {
        grid-template-columns: 85px 1fr;
    }

    .tpm-post-preview-img {
        width: 85px;
        height: 65px;
    }

    .tpm-post-preview-meta {
        min-height: 65px;
    }
}

@media (max-width: 600px) {
    .tpm-detail-hero {
        height: 380px;
    }

    .tpm-detail-title {
        font-size: 1.8rem;
    }

    .tpm-detail-code {
        font-size: 0.9rem;
    }

    .tpm-hero-overlay {
        padding: 2rem 1.2rem 1.2rem;
        min-height: 140px;
    }

    .tpm-detail-container {
        padding: 1.2rem;
        gap: 1.8rem;
    }

    .tpm-detail-section {
        padding: 1.4rem;
        margin-bottom: 2.2rem;
    }

    .tpm-section-title {
        font-size: 1.25rem;
        margin-bottom: 1.1rem;
    }

    .tpm-detail-section {
        margin-bottom: 2.2rem;
        padding-bottom: 1.6rem;
    }

    .tpm-booking-panel {
        padding: 1.6rem;
    }

    .tpm-price-display {
        font-size: 2.2rem;
    }

    .tpm-book-btn,
    .tpm-ask-price-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .tpm-itinerary-timeline {
        padding-left: 30px;
    }

    .tpm-itinerary-timeline::before {
        left: 3px;
    }

    .tpm-timeline-marker {
        left: -30px;
        width: 14px;
        height: 14px;
        box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0d6efd;
    }

    .tpm-timeline-toggle {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .tpm-timeline-content {
        padding: 1rem;
    }

    .tpm-day-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .tpm-timeline-title {
        font-size: 0.95rem;
    }

    .tpm-post-preview {
        grid-template-columns: 70px 1fr;
    }

    .tpm-post-preview-img {
        width: 70px;
        height: 50px;
    }

    .tpm-post-preview-meta {
        min-height: 50px;
    }

    .tpm-post-preview-title {
        font-size: 0.85rem;
    }

    .tpm-post-preview-link {
        font-size: 0.8rem;
    }
}

/* ========================================================================
   PRICING BLOCK
   ======================================================================== */

.tpm-package-price {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-left: 4px solid #0073aa;
    border-radius: 6px;
}

/* Price header with package code */
.tpm-price-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.tpm-price-package-code {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 0;
    font-weight: 600;
}

.tpm-price-category {
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tpm-price-amount {
    color: #0d6efd;
    font-size: 2rem;
    font-weight: 700;
}

/* Booking buttons inside the detail view */
.tpm-book-btn,
.tpm-ask-price-btn {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
    background: linear-gradient(180deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(13,110,253,0.12);
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.tpm-book-btn:hover,
.tpm-ask-price-btn:hover,
.tpm-book-btn:focus,
.tpm-ask-price-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(13,110,253,0.16);
    outline: none;
}

/* make price label and amount more compact in sidebar */
.tpm-package-price .tpm-price-label,
.tpm-package-price .tpm-price-amount {
    display: block;
    text-align: left;
}

.tpm-price-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.35rem;
}

.tpm-price-amount {
    font-size: 2rem;
    color: #0d6efd;
}

/* ========================================================================
   SECTIONS & ITEMS
   ======================================================================== */

.tpm-package-sections {
    margin: 2rem 0;
    padding-top: 1.5rem;
}

.tpm-package-sections > h3 {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #0073aa;
}

.tpm-sections-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section */
.tpm-section {
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding: 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tpm-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tpm-section-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0073aa;
    margin-bottom: 0.5rem;
}

.tpm-section-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Items within section */
.tpm-section-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.tpm-item {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ddd;
    transition: all 0.3s ease;
}

.tpm-item:hover {
    border-left-color: #0073aa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.tpm-item-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.tpm-item-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

/* Attached blog post */
.tpm-item-post {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.tpm-item-post-link {
    font-size: 0.85rem;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.tpm-item-post-link:hover {
    text-decoration: underline;
}

/* ========================================================================
   MODAL - Detail & Booking
   ======================================================================== */

.tpm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: tpm-fade-in 0.3s ease;
}

@keyframes tpm-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tpm-modal-content {
    background: #fff;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: tpm-slide-up 0.3s ease;
}

@keyframes tpm-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tpm-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tpm-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* ========================================================================
   BOOKING FORM
   ======================================================================== */

.tpm-booking-form {
    margin-top: 2rem;
}

.tpm-form-group {
    margin-bottom: 1.5rem;
}

.tpm-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.tpm-form-input,
.tpm-form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tpm-form-input:focus,
.tpm-form-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.tpm-form-textarea {
    resize: vertical;
}

.tpm-form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tpm-form-submit:hover {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.tpm-form-submit:active {
    transform: translateY(0);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 768px) {
    .tpm-package-display {
        padding: 1.5rem;
    }

    .tpm-package-title {
        font-size: 1.8rem;
    }

    .tpm-section {
        padding: 1rem;
    }

    .tpm-modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tpm-packages-grid {
        grid-template-columns: 1fr;
    }

    .tpm-modal-content {
        max-height: 95vh;
    }

    .tpm-package-title {
        font-size: 1.5rem;
    }
}

/* Ensure blog post preview images show fully on small screens (no cropping) */
@media (max-width: 600px) {
    .tpm-post-preview-img {
        height: auto !important;
        object-fit: contain !important;
        border-radius: 6px;
    }
}

/* Make blog post preview image larger and full-width on small screens
   Stack the preview so the image sits above the meta and spans container width */
@media (max-width: 600px) {
    .tpm-post-preview {
        display: block;
        grid-template-columns: none;
    }

    .tpm-post-preview-img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 8px;
        margin-bottom: 0.8rem;
        display: block;
    }

    .tpm-post-preview-meta {
        display: block;
        margin-top: 0.6rem;
    }
}

/* Ensure on small screens the price/booking box is shown at the end
   Keep desktop/grid behaviour unchanged (desktop handled at min-width:900px) */
@media (max-width: 899px) {
    /* Mobile responsive already handled in detail section above */
}

/* ========================================================================
   BOOKING FORM STYLING
   ======================================================================== */

.tpm-booking-form-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.tpm-booking-form-title {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 1rem;
}

.tpm-booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tpm-form-group {
    display: flex;
    flex-direction: column;
}

.tpm-form-label {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.tpm-required {
    color: #dc3545;
    font-weight: bold;
}

.tpm-form-input,
.tpm-form-textarea {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tpm-form-input:focus,
.tpm-form-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.tpm-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.tpm-booking-submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(180deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
    transition: all 0.2s ease;
}

.tpm-booking-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.18);
}

.tpm-booking-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tpm-booking-message {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.tpm-booking-message.tpm-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.tpm-booking-message.tpm-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.tpm-booking-message p {
    margin: 0;
}

@media (max-width: 900px) {
    .tpm-booking-form-container {
        padding: 1.5rem;
    }

    .tpm-booking-form-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .tpm-booking-form-container {
        padding: 1rem;
    }

    .tpm-booking-form-title {
        font-size: 1rem;
    }

    .tpm-form-input,
    .tpm-form-textarea {
        font-size: 16px;
    }

    .tpm-booking-submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

