/* =========================================================================
   Premium Tour Details UI
   Modern, Professional, Smooth Animations
========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f7f6;
    /* Premium soft background */
    font-family: 'Inter', sans-serif;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSoft {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Scroll Reveal Classes designed for script.js */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.sr-delay-100 {
    transition-delay: 100ms;
}

.sr-delay-200 {
    transition-delay: 200ms;
}

.sr-delay-300 {
    transition-delay: 300ms;
}

.sr-delay-400 {
    transition-delay: 400ms;
}

/* --- Layout --- */
.tour-page-container {
    max-width: 1200px;
    margin: 40px auto 100px auto;
    padding: 0 20px;
}

/* --- Hero Section --- */
.tour-hero {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.hero-left {
    flex: 1;
    padding: 30px;
}

.tour-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.tour-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    font-weight: 400;
}

.hero-right {
    flex: 1.2;
}

.hero-right img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.tour-hero:hover .hero-right img {
    transform: scale(1.02);
}

/* --- Content Layout --- */
.tour-main-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.tour-details-col {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* Consistent spacing between sections */
}

.tour-sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
}

/* --- Section Blocks --- */
.block-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.block-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 28px;
    background: linear-gradient(to bottom, #f38210, #ffaa00);
    border-radius: 6px;
}

.block-title.text-center {
    justify-content: center;
}

.block-title.text-center::before {
    display: none;
}

/* --- Highlight Cards --- */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.highlight-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.highlight-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.hc-content {
    padding: 25px;
}

.hc-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.hc-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* --- Map & Itinerary --- */
.map-itinerary-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: -15px;
}

.map-itinerary-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.tour-map-wrapper img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 4px solid #fff;
}

.accordion-itinerary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.itinerary-day {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
}

.itinerary-day:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.itinerary-day[open] {
    border-color: #0d5c46;
}

.itinerary-day summary {
    padding: 18px 45px 18px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    user-select: none;
    position: relative;
}

.itinerary-day summary::-webkit-details-marker {
    display: none;
}

.itinerary-day summary::after {
    content: '\f078';
    /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: transform 0.4s ease, color 0.4s ease;
    font-size: 14px;
}

.itinerary-day[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
    color: #f38210;
}

.itinerary-day-content {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        padding-top: 5px;
    }

    to {
        opacity: 1;
        padding-top: 0;
    }
}

/* --- Reviews --- */
.reviews-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-box {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    border-left: 4px solid #1e3a8a;
    transition: transform 0.3s ease;
}

.review-box:hover {
    transform: translateX(5px);
}

.reviewer-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.s-bg {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.j-bg {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.reviewer-details h4 {
    font-size: 15px;
    margin-bottom: 3px;
    color: #0f172a;
    font-weight: 700;
}

.review-stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 1px;
}

.review-date {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 8px;
}

.review-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
}

.write-review-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.write-review-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.form-group label span {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f38210;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(243, 130, 16, 0.15);
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
    font-size: 16px;
    cursor: pointer;
}

.rating-input i:hover,
.rating-input i:hover~i {
    color: #f59e0b;
}

.rating-note {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 10px;
}

.btn-submit-review,
.btn-submit-form {
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.2);
}

.btn-submit-review:hover,
.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* --- What's Included --- */
.included-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.included-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.included-item .check-icon {
    color: #10b981;
    font-size: 20px;
    background: #ecfdf5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- How It Works --- */
.how-it-works .steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step-card {
    background: #fff;
    padding: 35px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
}

.step-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fff, #f8fafc);
    color: #f38210;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 20px rgba(243, 130, 16, 0.15);
    border: 2px solid #fff;
}

.step-card h4 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* --- Guide Profile & Booking --- */
.guide-profile-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.guide-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

.guide-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

.guide-title {
    font-size: 13px;
    color: #f38210;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.guide-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: left;
}

.guide-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    text-align: left;
}

.guide-contact li {
    font-size: 13px;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.guide-contact li i {
    color: #1e3a8a;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Form Tabs */
.form-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #334155;
}

.tab-btn.active {
    color: #f38210;
    border-bottom-color: #f38210;
}

.enquiry-form,
.sidebar-form {
    text-align: left;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .tour-main-content {
        flex-direction: column;
    }

    .tour-sidebar {
        position: static;
        width: 100%;
        max-width: none;
        /* Make it full width on tablet */
        order: -1;
        /* Move it ABOVE the main content column, below the hero */
        margin-bottom: 30px;
    }

    .map-itinerary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tour-page-container {
        margin: 20px auto 60px auto;
    }

    /* Hero section */
    .tour-hero {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-radius: 12px;
    }

    .hero-left {
        padding: 10px;
        text-align: center;
    }

    .tour-hero-title {
        font-size: 28px;
    }

    .hero-right img {
        height: 250px;
    }

    /* Content grids */
    .highlights-grid,
    .reviews-split,
    .included-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works .steps-row {
        grid-template-columns: 1fr 1fr;
    }

    /* Sidebar forms */
    .guide-profile-card {
        padding: 25px 20px;
    }

    /* Section padding */
    .section-block {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .how-it-works .steps-row {
        grid-template-columns: 1fr;
    }

    .tour-hero-title {
        font-size: 24px;
    }

    .form-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}