@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --tp-primary: #004D43;
    --tp-accent: #D35400;
    --tp-accent-hover: #E67E22;
    --tp-bg: #FFFFFF;
    --tp-bg-alt: #F8F9FA;
    --tp-text: #1A1A1A;
    --tp-text-muted: #666666;
    --tp-border: #EEEEEE;
    --tp-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --tp-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.1);
    --tp-radius: 16px;
    --tp-radius-lg: 24px;
    --tp-font: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--tp-bg);
    color: var(--tp-text);
    font-family: var(--tp-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.tp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.tp-header {
    margin-bottom: 32px;
}

.tp-breadcrumbs {
    font-size: 14px;
    color: var(--tp-text-muted);
    margin-bottom: 12px;
}

.tp-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--tp-primary);
}

.tp-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    color: var(--tp-text-muted);
}

.tp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-rating {
    color: #F1C40F;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.tp-meta i {
    font-size: 18px;
    color: var(--tp-primary);
}

/* Layout Grid */
.tp-main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Gallery */
.tp-gallery-featured {
    width: 100%;
    height: 450px;
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
}

.tp-gallery-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tp-thumb {
    height: 120px;
    border-radius: var(--tp-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tp-thumb:hover {
    transform: translateY(-4px);
}

.tp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.tp-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--tp-border);
}

.tp-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tp-primary);
}

.tp-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--tp-accent);
    border-radius: 2px;
}

/* Itinerary Timeline */
.tp-itinerary {
    position: relative;
    padding-left: 32px;
}

.tp-itinerary::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--tp-border);
}

.tp-itinerary-item {
    position: relative;
    margin-bottom: 32px;
}

.tp-itinerary-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--tp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tp-itinerary-dot i {
    font-size: 12px;
    color: var(--tp-primary);
}

.tp-itinerary-content h4 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tp-primary);
}

.tp-itinerary-content p {
    color: var(--tp-text-muted);
    font-size: 15px;
}

/* Inclusions Grid */
.tp-inclusions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tp-incl-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tp-incl-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 77, 67, 0.1);
    color: var(--tp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-incl-icon.negative {
    background: rgba(211, 84, 0, 0.1);
    color: var(--tp-accent);
}

.tp-incl-content h5 {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.tp-incl-content p {
    font-size: 13px;
    color: var(--tp-text-muted);
}

/* Sidebar Booking Card */
.tp-booking-card {
    position: sticky;
    top: 40px;
    background: white;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    padding: 32px;
    box-shadow: var(--tp-shadow);
}

.tp-price-label {
    font-size: 14px;
    color: var(--tp-text-muted);
    margin-bottom: 4px;
}

.tp-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tp-primary);
    margin-bottom: 24px;
}

.tp-price-value span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--tp-text-muted);
}

.tp-form-group {
    margin-bottom: 20px;
}

.tp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--tp-primary);
}

.tp-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    font-family: inherit;
    font-size: 15px;
    background: var(--tp-bg-alt);
    transition: border-color 0.3s ease;
}

.tp-input:focus {
    outline: none;
    border-color: var(--tp-primary);
}

.tp-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--tp-bg-alt);
    padding: 8px 12px;
    border-radius: var(--tp-radius);
    border: 1px solid var(--tp-border);
}

.tp-step-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: white;
    color: var(--tp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.tp-step-btn:hover {
    background: var(--tp-primary);
    color: white;
}

.tp-step-val {
    font-weight: 600;
    font-size: 16px;
}

.tp-price-breakdown {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px dashed var(--tp-border);
    border-bottom: 1px dashed var(--tp-border);
}

.tp-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.tp-total-row {
    font-weight: 700;
    font-size: 18px;
    color: var(--tp-accent);
}

.tp-btn {
    width: 100%;
    padding: 18px;
    border-radius: var(--tp-radius);
    border: none;
    background: var(--tp-accent);
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tp-btn:hover {
    background: var(--tp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.2);
}

/* Radio Modalidade */
.tp-modalidade-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tp-radio-card {
    position: relative;
    cursor: pointer;
}

.tp-radio-card input {
    position: absolute;
    opacity: 0;
}

.tp-radio-content {
    padding: 12px;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--tp-bg-alt);
    transition: all 0.2s ease;
}

.tp-radio-card input:checked+.tp-radio-content {
    background: var(--tp-primary);
    color: white;
    border-color: var(--tp-primary);
}

/* Flatpickr Modern Adjustments */
.flatpickr-calendar.inline {
    width: 100% !important;
    box-shadow: none !important;
    border: 1px solid var(--tp-border) !important;
    border-radius: var(--tp-radius) !important;
    background: var(--tp-bg-alt) !important;
    margin-top: 10px;
}

.flatpickr-day.selected {
    background: var(--tp-accent) !important;
    border-color: var(--tp-accent) !important;
}

.flatpickr-day:hover {
    background: var(--tp-primary) !important;
    color: white !important;
}

.flatpickr-months .flatpickr-month {
    background: var(--tp-primary) !important;
    color: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--tp-primary) !important;
}

.flatpickr-weekday {
    background: var(--tp-primary) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.flatpickr-innerContainer {
    padding: 10px;
}

.tp-form-group #tp-inline-calendar {
    overflow: hidden;
    border-radius: var(--tp-radius);
}

/* Related Products Carousel */
.tp-related-products {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--tp-border);
}

.tp-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.tp-related-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tp-primary);
    margin-bottom: 8px;
}

.tp-related-title p {
    color: var(--tp-text-muted);
    font-size: 16px;
}

.tp-carousel-nav {
    display: flex;
    gap: 12px;
}

.tp-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--tp-border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--tp-primary);
}

.tp-nav-btn:hover {
    background: var(--tp-bg-alt);
    border-color: var(--tp-primary);
}

.tp-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.tp-carousel-track::-webkit-scrollbar {
    display: none;
}

.tp-product-card {
    flex: 0 0 calc(33.333% - 16px);
    background: white;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tp-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tp-shadow-hover);
}

.tp-card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.tp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-card-body {
    padding: 24px;
}

.tp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tp-card-header h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--tp-primary) !important;
    line-height: 1.3 !important;
}

.tp-card-rating {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
    font-weight: 700 !important;
    color: var(--tp-text) !important;
    font-size: 14px !important;
}

.tp-card-rating i {
    color: #F1C40F;
    font-size: 12px;
}

.tp-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--tp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.tp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--tp-border);
}

.tp-card-price {
    font-weight: 700;
    color: var(--tp-primary);
}

.tp-card-price span {
    font-weight: 400;
    font-size: 12px;
    color: var(--tp-text-muted);
}

.tp-card-link {
    color: var(--tp-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Responsive Improvements --- */
@media (max-width: 1024px) {
    .tp-container {
        padding: 20px 15px;
    }

    .tp-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tp-title {
        font-size: 2.5rem !important;
    }

    .tp-product-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .tp-title {
        font-size: 2rem !important;
    }

    .tp-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .tp-gallery-featured {
        height: 350px;
    }

    .tp-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .tp-booking-card {
        padding: 24px;
        position: static;
        /* Remove sticky on mobile */
    }

    .tp-related-title h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    .tp-product-card {
        flex: 0 0 85%;
    }
}

@media (max-width: 480px) {
    .tp-title {
        font-size: 1.75rem !important;
    }

    .tp-gallery-featured {
        height: 250px;
    }

    .tp-gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-meta-item {
        font-size: 13px;
    }

    .tp-section {
        margin-top: 32px;
        padding-top: 32px;
    }

    .tp-section-title {
        font-size: 1.25rem;
    }

    .tp-inclusions-grid {
        grid-template-columns: 1fr;
    }

    .tp-booking-card {
        padding: 20px 16px;
    }

    .tp-price-value {
        font-size: 1.75rem;
    }

    .tp-btn {
        padding: 16px;
        font-size: 15px;
    }

    .tp-product-card {
        flex: 0 0 90%;
    }

    .tp-related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}