/**
 * Tour Pricing Components - Modular CSS
 * استایل‌های کامپوننت‌های قیمت‌گذاری تور
 * 
 * Components:
 * 1. Duration Info (.tour-duration-info-box)
 * 2. Cities Timeline (.tour-cities-timeline)
 * 3. Packages (.tour-packages-list)
 * 4. Single City Pricing (.tour-single-city-pricing)
 * 5. Dates Sidebar (.tour-dates-sidebar)
 * 6. Contact Box (.tour-contact-box)
 */

/* ==========================================
   Wrapper & Layout
   ========================================== */
.bc-tour-pricing-wrapper {
    background: #f8f9fa;
    padding: 30px 0;
    direction: rtl;
}

.tour-sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* ==========================================
   1. Duration Info Component
   ========================================== */
.tour-duration-info-box {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.tour-duration-info-box .start-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tour-duration-info-box .start-label {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
}

.tour-duration-info-box .start-date {
    font-size: 20px;
    font-weight: bold;
}

.tour-duration-info-box .duration-info {
    background: rgba(255,255,255,0.15);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-duration-info-box .duration-info i {
    font-size: 18px;
}

/* ==========================================
   2. Cities Timeline Component
   ========================================== */
.tour-cities-timeline {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tour-cities-timeline .section-title {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1e88e5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-cities-timeline .section-title i {
    color: #1e88e5;
}

.tour-cities-timeline .cities-list {
    position: relative;
    padding-right: 50px;
}

.tour-cities-timeline .city-item {
    position: relative;
    padding-bottom: 30px;
}

.tour-cities-timeline .city-item:last-child {
    padding-bottom: 0;
}

.tour-cities-timeline .city-item::before {
    content: '';
    position: absolute;
    right: -35px;
    top: 35px;
    bottom: -30px;
    width: 3px;
    background: linear-gradient(180deg, #1e88e5, #1565c0);
}

.tour-cities-timeline .city-item:last-child::before {
    display: none;
}

.tour-cities-timeline .city-marker {
    position: absolute;
    right: -50px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(30, 136, 229, 0.3);
}

.tour-cities-timeline .marker-number {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.tour-cities-timeline .city-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-right: 4px solid #1e88e5;
}

.tour-cities-timeline .city-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tour-cities-timeline .city-name {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.tour-cities-timeline .city-country {
    color: #666;
    font-size: 14px;
}

.tour-cities-timeline .city-nights {
    background: #e3f2fd;
    color: #1565c0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-cities-timeline .city-flights {
    margin-top: 15px;
}

.tour-cities-timeline .city-flights strong {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.tour-cities-timeline .flight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    margin: 5px 5px 5px 0;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.tour-cities-timeline .flight-badge:hover {
    border-color: #1e88e5;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.15);
}

.tour-cities-timeline .flight-badge.default {
    background: #e3f2fd;
    border-color: #1e88e5;
}

.tour-cities-timeline .flight-badge i {
    color: #1e88e5;
}

/* ==========================================
   3. Packages Component
   ========================================== */
.tour-packages-list {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tour-packages-list .section-title {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1e88e5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-packages-list .section-title i {
    color: #1e88e5;
}

.tour-packages-list .packages-container {
    display: grid;
    gap: 25px;
}

.tour-packages-list .package-item {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    transition: all 0.3s;
}

.tour-packages-list .package-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tour-packages-list .package-item.recommended {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f8fff8, #e8f5e9);
}

.tour-packages-list .recommended-badge {
    position: absolute;
    top: -12px;
    right: 25px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.tour-packages-list .package-header h5 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
}

.tour-packages-list .package-hotels {
    margin-bottom: 20px;
}

.tour-packages-list .hotels-title {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-packages-list .hotels-title i {
    color: #1e88e5;
}

.tour-packages-list .hotels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-packages-list .hotel-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tour-packages-list .hotel-city {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.tour-packages-list .hotel-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tour-packages-list .hotel-name {
    font-weight: bold;
    color: #333;
}

.tour-packages-list .hotel-stars {
    color: #ffc107;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.tour-packages-list .hotel-stars .stars-text {
    color: #666;
    font-size: 12px;
    margin-right: 5px;
}

.tour-packages-list .hotel-facilities {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-packages-list .hotel-facilities i {
    color: #4caf50;
}

/* Package Prices */
.tour-packages-list .package-prices {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.tour-packages-list .prices-title {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-packages-list .prices-title i {
    color: #4caf50;
}

.tour-packages-list .prices-table {
    width: 100%;
    border-collapse: collapse;
}

.tour-packages-list .prices-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    background: #f8f9fa;
}

.tour-packages-list .prices-table .label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.tour-packages-list .prices-table .price {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #1e88e5;
}

.tour-packages-list .prices-table .currency {
    display: block;
    font-size: 11px;
    color: #999;
}

.tour-packages-list .package-action {
    text-align: center;
}

.tour-packages-list .btn-book {
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 30px;
    transition: all 0.3s;
}

.tour-packages-list .btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* ==========================================
   4. Single City Pricing Component
   ========================================== */
.tour-single-city-pricing {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tour-single-city-pricing .duration-badge {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.tour-single-city-pricing .duration-badge i {
    font-size: 18px;
}

.tour-single-city-pricing .section-title {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1e88e5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-single-city-pricing .section-title i {
    color: #1e88e5;
}

/* Global Flights Section */
.tour-single-city-pricing .global-flights-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.tour-single-city-pricing .global-flights-section .section-title {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom-width: 2px;
}

.tour-single-city-pricing .flights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-single-city-pricing .flight-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.tour-single-city-pricing .flight-item:hover {
    border-color: #1e88e5;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.15);
}

.tour-single-city-pricing .flight-item.selected,
.tour-single-city-pricing .flight-item.default {
    border-color: #1e88e5;
    background: #e3f2fd;
}

.tour-single-city-pricing .flight-radio {
    flex-shrink: 0;
}

.tour-single-city-pricing .flight-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #1e88e5;
}

.tour-single-city-pricing .flight-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.tour-single-city-pricing .flight-info .airline {
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-single-city-pricing .flight-info .airline i {
    color: #1e88e5;
}

.tour-single-city-pricing .flight-info .flight-date {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-single-city-pricing .flight-info .flight-date i {
    color: #4caf50;
}

.tour-single-city-pricing .price-mod {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-right: auto;
}

.tour-single-city-pricing .price-mod.up {
    background: #ffebee;
    color: #c62828;
}

.tour-single-city-pricing .price-mod.down {
    background: #e8f5e9;
    color: #2e7d32;
}

.tour-single-city-pricing .price-mod.default-price {
    background: #e3f2fd;
    color: #1565c0;
}

/* Hotels List */
.tour-single-city-pricing .hotels-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-single-city-pricing .hotel-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}

.tour-single-city-pricing .hotel-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tour-single-city-pricing .hotel-card.default-hotel {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f8fff8, #e8f5e9);
}

.tour-single-city-pricing .default-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.tour-single-city-pricing .hotel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.tour-single-city-pricing .hotel-header h5 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.tour-single-city-pricing .stars {
    color: #ffc107;
}

.tour-single-city-pricing .hotel-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-single-city-pricing .hotel-location i {
    color: #1e88e5;
}

.tour-single-city-pricing .hotel-flights {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.tour-single-city-pricing .hotel-flights strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
}

.tour-single-city-pricing .hotel-flights strong i {
    color: #1e88e5;
}

.tour-single-city-pricing .hotel-flights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tour-single-city-pricing .hotel-flights-list .flight-item {
    padding: 8px 12px;
    font-size: 13px;
}

.tour-single-city-pricing .hotel-prices {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.tour-single-city-pricing .prices-table {
    width: 100%;
    border-collapse: collapse;
}

.tour-single-city-pricing .prices-table tr {
    border-bottom: 1px solid #eee;
}

.tour-single-city-pricing .prices-table tr:last-child {
    border-bottom: none;
}

.tour-single-city-pricing .prices-table td {
    padding: 12px 5px;
}

.tour-single-city-pricing .prices-table .type-name {
    color: #666;
    font-size: 14px;
}

.tour-single-city-pricing .prices-table .type-price {
    text-align: left;
    font-weight: bold;
    color: #1e88e5;
    font-size: 16px;
}

.tour-single-city-pricing .prices-table .currency {
    font-size: 12px;
    color: #999;
    margin-right: 5px;
}

.tour-single-city-pricing .hotel-action {
    text-align: center;
    margin-top: 15px;
}

.tour-single-city-pricing .btn-book-hotel {
    padding: 12px 35px;
    font-size: 15px;
    border-radius: 25px;
    transition: all 0.3s;
}

.tour-single-city-pricing .btn-book-hotel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* ==========================================
   5. Dates Sidebar Component
   ========================================== */
.tour-dates-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tour-dates-sidebar .sidebar-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e88e5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-dates-sidebar .sidebar-title i {
    color: #1e88e5;
}

.tour-dates-sidebar .dates-list {
    max-height: 400px;
    overflow-y: auto;
}

.tour-dates-sidebar .date-item {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.tour-dates-sidebar .date-item:hover,
.tour-dates-sidebar .date-item.selected {
    border-color: #1e88e5;
    box-shadow: 0 4px 15px rgba(30,136,229,0.15);
}

.tour-dates-sidebar .date-item.full {
    opacity: 0.6;
    cursor: not-allowed;
}

.tour-dates-sidebar .date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tour-dates-sidebar .day-name {
    font-weight: bold;
    color: #1e88e5;
}

.tour-dates-sidebar .start-date {
    font-size: 14px;
    color: #333;
}

.tour-dates-sidebar .date-range {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.tour-dates-sidebar .capacity {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.tour-dates-sidebar .flight-info {
    font-size: 12px;
    color: #1565c0;
    background: #e3f2fd;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-dates-sidebar .price-modifier {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.tour-dates-sidebar .price-modifier.up {
    color: #c62828;
}

.tour-dates-sidebar .price-modifier.down {
    color: #2e7d32;
}

.tour-dates-sidebar .status {
    text-align: center;
}

.tour-dates-sidebar .available-status {
    color: #2e7d32;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tour-dates-sidebar .full-status {
    color: #c62828;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ==========================================
   6. Contact Box Component
   ========================================== */
.tour-contact-box {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.tour-contact-box .contact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tour-contact-box .contact-header i {
    font-size: 28px;
}

.tour-contact-box .contact-header h5 {
    margin: 0;
    font-size: 18px;
}

.tour-contact-box .contact-description {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.tour-contact-box .btn-phone {
    display: block;
    background: #fff;
    color: #2e7d32;
    padding: 12px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.tour-contact-box .btn-phone:hover {
    background: #f5f5f5;
    color: #2e7d32;
    text-decoration: none;
    transform: translateY(-2px);
}

.tour-contact-box .btn-whatsapp {
    display: block;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tour-contact-box .btn-whatsapp:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 991px) {
    .tour-sidebar-sticky {
        position: relative;
        top: 0;
    }
    
    .tour-duration-info-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tour-cities-timeline .cities-list {
        padding-right: 40px;
    }
    
    .tour-cities-timeline .city-marker {
        right: -40px;
    }
    
    .tour-cities-timeline .city-item::before {
        right: -27px;
    }
}

@media (max-width: 768px) {
    .bc-tour-pricing-wrapper {
        padding: 15px 0;
    }
    
    .tour-packages-list .prices-table td {
        padding: 8px 5px;
    }
    
    .tour-packages-list .prices-table .price {
        font-size: 14px;
    }
    
    .tour-cities-timeline .cities-list {
        padding-right: 35px;
    }
    
    .tour-cities-timeline .city-marker {
        width: 28px;
        height: 28px;
        right: -35px;
    }
    
    .tour-cities-timeline .marker-number {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tour-packages-list .hotel-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tour-packages-list .hotel-info {
        width: 100%;
    }
}

/* ==========================================
   LTR Support
   ========================================== */
[dir="ltr"] .bc-tour-pricing-wrapper {
    direction: ltr;
}

[dir="ltr"] .tour-cities-timeline .cities-list {
    padding-left: 50px;
    padding-right: 0;
}

[dir="ltr"] .tour-cities-timeline .city-marker {
    left: -50px;
    right: auto;
}

[dir="ltr"] .tour-cities-timeline .city-item::before {
    left: -35px;
    right: auto;
}

[dir="ltr"] .tour-cities-timeline .city-content {
    border-left: 4px solid #1e88e5;
    border-right: none;
}

[dir="ltr"] .tour-cities-timeline .city-nights {
    margin-left: auto;
    margin-right: 0;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .tour-sidebar-sticky {
        position: relative;
    }
    
    .tour-contact-box {
        display: none;
    }
    
    .tour-packages-list .btn-book {
        display: none;
    }
}
