/* Tour details page styles */

.tour-details-page {
    background: #f7f5ef;
}

.tour-details-hero {
    padding: 170px 0 90px;
    background: linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
        url('https://cf.bstatic.com/xdata/images/hotel/max1024x768/614196300.jpg?k=fba32f24195d9ce21e532da0a59355423dc012e03cd29a6324e507bd71602b3d&o=') center/cover no-repeat;
    color: #fff;
}

.tour-details-hero .container {
    text-align: center;
}

.tour-details-hero h1 {
    margin: 0 0 12px;
    font-size: 52px;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.tour-details-hero p {
    margin: 0;
    font-size: 18px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.92);
}

.offer-context-badge {
    margin: 14px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.tour-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tour-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
}

.tour-details-main {
    padding: 42px 0 80px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 26px;
    align-items: start;
}

.details-left {
    display: grid;
    gap: 18px;
}

.details-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ece9df;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    padding: 24px;
}

.details-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.details-card h3 {
    margin: 0 0 12px;
    color: var(--secondary-color);
    font-size: 20px;
}

.details-card p {
    margin: 0;
    color: #586270;
    line-height: 1.8;
    font-size: 15px;
}

.route-list {
    margin: 0 auto;
    padding: 10px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    counter-reset: route-step;
    max-width: 860px;
}

.route-list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: 7px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0 13px,
        rgba(230, 126, 34, 0.28) 13px 26px
    );
    box-shadow: 0 0 0 1px rgba(230, 126, 34, 0.2), 0 6px 20px rgba(230, 126, 34, 0.12);
}

.route-list li {
    counter-increment: route-step;
    position: relative;
    width: calc(50% - 40px);
    padding: 14px 16px;
    background: linear-gradient(145deg, #ffffff 0%, #fdf8ef 100%);
    border: 1px solid #f0e4cf;
    border-radius: 12px;
    color: #505a66;
    line-height: 1.6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
}

.route-list li:nth-child(odd) {
    align-self: flex-start;
    border-radius: 12px 4px 4px 12px;
}

.route-list li:nth-child(even) {
    align-self: flex-end;
    border-radius: 4px 12px 12px 4px;
}

.route-list li::before {
    content: counter(route-step);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(230, 126, 34, 0.2);
    z-index: 2;
}

.route-list li::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 36px;
    height: 22px;
    transform: translateY(-50%);
}

.route-list li:nth-child(odd)::before {
    right: -55px;
}

.route-list li:nth-child(odd)::after {
    right: -36px;
    border-top: 2px solid rgba(230, 126, 34, 0.6);
    border-right: 2px solid rgba(230, 126, 34, 0.6);
    border-top-right-radius: 16px;
}

.route-list li:nth-child(even)::before {
    left: -55px;
}

.route-list li:nth-child(even)::after {
    left: -36px;
    border-top: 2px solid rgba(230, 126, 34, 0.6);
    border-left: 2px solid rgba(230, 126, 34, 0.6);
    border-top-left-radius: 16px;
}

.split-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.check-list,
.x-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.check-list li,
.x-list li {
    position: relative;
    padding-left: 28px;
    color: #57606a;
    font-size: 14px;
    line-height: 1.5;
}

.check-list li::before,
.x-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #1f8f4f;
    background: rgba(31, 143, 79, 0.15);
}

.x-list li::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #b94949;
    background: rgba(185, 73, 73, 0.14);
}

.details-right {
    position: sticky;
    top: 110px;
}

.booking-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ece9df;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    padding: 24px;
}

.booking-label {
    margin: 0;
    color: #6d7580;
    font-size: 13px;
}

.booking-price {
    margin: 4px 0 8px;
    color: var(--secondary-color);
    font-size: 30px;
    font-weight: 700;
}

.booking-offer-meta {
    margin: 0 0 16px;
    color: #1f8f4f;
    font-size: 13px;
    font-weight: 600;
}

.quick-facts {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.quick-facts li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #ece7dc;
    padding-bottom: 8px;
}

.quick-facts li span {
    color: #6f7782;
    font-size: 13px;
}

.quick-facts li strong {
    color: #2f3a48;
    font-size: 13px;
}

.request-btn {
    width: 100%;
    text-align: center;
    display: inline-block;
}

.booking-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #7a818c;
    line-height: 1.6;
}

.tour-not-found {
    text-align: center;
    background: #fff;
    border: 1px solid #ece9df;
    border-radius: 14px;
    padding: 34px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.tour-not-found h2 {
    margin: 0 0 12px;
    color: var(--secondary-color);
}

.tour-not-found p {
    margin: 0 0 18px;
    color: #66707d;
}

@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-right {
        position: static;
    }
}

@media (max-width: 768px) {
    .tour-details-hero {
        padding: 145px 0 72px;
    }

    .tour-details-hero h1 {
        font-size: 38px;
    }

    .tour-details-hero p {
        font-size: 15px;
    }

    .details-card {
        padding: 18px;
    }

    .details-card h2 {
        font-size: 24px;
    }

    .route-list::before {
        left: 14px;
        transform: none;
        width: 5px;
    }

    .route-list li {
        width: calc(100% - 58px);
        margin-right: auto !important;
        border-radius: 10px;
        padding: 12px 12px 12px 14px;
    }

    .route-list li:nth-child(odd) {
        margin-left: 36px !important;
    }

    .route-list li:nth-child(even) {
        margin-left: 52px !important;
    }

    .route-list li::before {
        left: -26px !important;
        right: auto !important;
        width: 24px;
        height: 24px;
        font-size: 11px;
        box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(230, 126, 34, 0.22);
    }

    .route-list li::after {
        left: -14px !important;
        right: auto !important;
        width: 14px;
        height: 2px;
        border: none;
        background: rgba(230, 126, 34, 0.6);
    }

    .split-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .booking-price {
        font-size: 26px;
    }
}
