/**
 * Tour Pricing - Hotel and Flight Selection Styles
 * استایل قیمتگذاری تور - انتخاب هتل و پرواز
 */

/* Container */
.bc-tour-hotels-pricing {
    margin: 30px 0;
    direction: rtl;
}

.bc-tour-hotels-pricing .g-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.bc-tour-hotels-pricing .g-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.tour-duration-badge .badge {
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 20px;
}
.horizontal-prices td {
    padding: 10px 15px;
    text-align: center;
    border: 1px solid #eee;
}

.horizontal-prices {
    width: 100%;
}

/* Hotels List */
.hotels-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hotel Card */
.hotel-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 1;
    transform: translateY(20px);
}

.hotel-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.hotel-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #2196F3;
}

.hotel-card.is-default {
    border-color: #4CAF50;
    border-width: 2px;
}

.hotel-card.is-default::before {
    content: '⭐ پیشنهاد ویژه';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4CAF50;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 1;
}

/* Hotel Header */
.hotel-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #eee;
}

.hotel-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-image-placeholder i {
    font-size: 40px;
    color: #fff;
}

.hotel-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hotel-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.hotel-name .badge {
    font-size: 11px;
    vertical-align: middle;
    margin-right: 8px;
}

.hotel-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hotel-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.hotel-meta i {
    color: #2196F3;
}

/* Flight Selector */
.flight-selector {
    background: #f9f9f9;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.flight-selector-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.flight-selector-label i {
    color: #2196F3;
    margin-left: 5px;
}

.flight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flight-option {
    flex: 1;
    min-width: 200px;
}

.flight-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}

.flight-label:hover {
    border-color: #2196F3;
    background: #f0f7ff;
}

.flight-option.selected .flight-label {
    border-color: #2196F3;
    background: #e3f2fd;
}

.flight-radio {
    accent-color: #2196F3;
    width: 18px;
    height: 18px;
}

.flight-airline {
    font-weight: 600;
    color: #333;
}

.flight-number {
    color: #666;
    font-size: 13px;
}

.price-modifier {
    margin-right: auto;
    font-size: 13px;
    font-weight: 500;
}

.price-modifier.price-add {
    color: #d32f2f;
}

.price-modifier.price-minus {
    color: #388e3c;
}

.price-modifier.price-base {
    color: #666;
}

/* Flight Info (single flight) */
.flight-info {
    padding: 10px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.flight-info i {
    color: #2196F3;
    margin-left: 5px;
}

/* Pricing Table */
.pricing-table-wrapper {
    overflow-x: auto;
    padding: 0 20px 20px;
}

.pricing-table {
    width: 100%;
    margin: 20px 0 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.pricing-table th,
.pricing-table td {
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.pricing-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.pricing-table td {
    background: #fff;
    transition: background-color 0.3s ease;
}

.pricing-table td.price-updated {
    background-color: #e3f2fd;
}

.pricing-table .amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 3px;
}

.pricing-table .currency {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Hotel Actions */
.hotel-actions {
    padding: 15px 20px 20px;
    text-align: center;
}

.btn-book {
    width: 100%;
    max-width: 300px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.btn-book i {
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bc-tour-hotels-pricing .g-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bc-tour-hotels-pricing .g-header h3 {
        font-size: 20px;
    }
    
    .hotel-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hotel-image {
        width: 100px;
        height: 100px;
    }
    
    .hotel-info {
        align-items: center;
    }
    
    .hotel-meta {
        justify-content: center;
    }
    
    .flight-option {
        min-width: 100%;
    }
    
    .pricing-table {
        font-size: 12px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 10px 5px;
    }
    
    .pricing-table .amount {
        font-size: 14px;
    }
    
    .pricing-table .currency {
        font-size: 10px;
    }
    
    .btn-book {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hotel-image {
        width: 80px;
        height: 80px;
    }
    
    .hotel-name {
        font-size: 16px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 8px 3px;
    }
    
    .pricing-table .amount {
        font-size: 12px;
    }
}

/* LTR Support */
[dir="ltr"] .bc-tour-hotels-pricing {
    direction: ltr;
}

[dir="ltr"] .flight-selector-label i {
    margin-right: 5px;
    margin-left: 0;
}

[dir="ltr"] .price-modifier {
    margin-left: auto;
    margin-right: 0;
}

[dir="ltr"] .btn-book i {
    margin-right: 8px;
    margin-left: 0;
}

/* Print Styles */
@media print {
    .hotel-card {
        page-break-inside: avoid; /* Fallback for older browsers */
        break-inside: avoid;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .btn-book {
        display: none;
    }
    
    .flight-radio {
        display: none;
    }
}

/* Hotel Link Styles */
.hotel-link {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hotel-link:hover {
    color: #1976D2;
    text-decoration: underline;
}

.hotel-link i {
    font-size: 12px;
    margin-right: 5px;
    opacity: 0.7;
}

.hotel-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.hotel-image a:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Flight Schedule Info */
.flight-schedule {
    display: inline-block;
    font-size: 12px;
    color: #555;
    margin-right: 15px;
    padding: 3px 8px;
    background: #f0f8ff;
    border-radius: 4px;
}

.flight-schedule i {
    margin-left: 5px;
    color: #2196F3;
}

.flight-departure {
    background: #e8f5e9;
}

.flight-departure i {
    color: #4CAF50;
}

.flight-return {
    background: #fff3e0;
}

.flight-return i {
    color: #FF9800;
}

.flight-time {
    font-weight: 600;
    color: #333;
}

/* Single Flight Info */
.flight-info {
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.flight-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.flight-info-header i {
    color: #2196F3;
}

.flight-info-schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.flight-departure-info,
.flight-return-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
}

.flight-departure-info {
    background: #e8f5e9;
    color: #2e7d32;
}

.flight-departure-info i {
    color: #4CAF50;
}

.flight-return-info {
    background: #fff3e0;
    color: #ef6c00;
}

.flight-return-info i {
    color: #FF9800;
}

/* Responsive */
@media (max-width: 768px) {
    .flight-schedule {
        display: block;
        margin: 5px 0;
    }
    
    .flight-info-schedule {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================
   Multi-City Tour Styles
   ========================================== */

/* Multi-city container */
.bc-tour-multi-city-pricing {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    direction: rtl;
}

.bc-tour-multi-city-pricing .g-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.bc-tour-multi-city-pricing .g-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

/* Cities Timeline */
.cities-timeline {
    position: relative;
    padding-right: 30px;
}

.city-timeline-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.city-timeline-item:before {
    content: '';
    position: absolute;
    right: -25px;
    top: 25px;
    bottom: -20px;
    width: 2px;
    background: #ddd;
}

.city-timeline-item:last-child:before {
    display: none;
}

.city-number {
    width: 30px;
    height: 30px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 15px;
    flex-shrink: 0;
}

.city-content {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.city-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.city-country {
    color: #666;
    font-size: 14px;
}

.city-duration {
    color: #555;
    font-size: 14px;
    margin-top: 5px;
}

.city-hotels-list,
.city-flights-list {
    margin-top: 8px;
}

.city-hotels-list .badge,
.city-flights-list .badge {
    margin-left: 5px;
    margin-bottom: 5px;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.package-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.package-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.package-card.is-recommended {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.package-header {
    margin-bottom: 15px;
}

.package-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.package-hotels {
    margin-top: 10px;
}

.hotels-combination-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.hotels-combination-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
}

.hotels-combination-list li:last-child {
    border-bottom: none;
}

/* Package Prices Table */
.package-prices-table {
    margin-top: 15px;
}

.package-prices-table .table {
    margin-bottom: 0;
}

.package-prices-table .price-amount {
    font-weight: bold;
    color: #28a745;
    font-size: 14px;
}

.package-prices-table small {
    color: #888;
    font-size: 11px;
}

.package-actions {
    margin-top: 15px;
    text-align: center;
}

.btn-book-package {
    width: 100%;
    padding: 10px 20px;
    font-weight: 600;
}

/* ==========================================
   Tour Dates Styles
   ========================================== */

.bc-tour-dates {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    direction: rtl;
}

.bc-tour-dates .g-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.bc-tour-dates .g-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.tour-dates-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.tour-dates-table td {
    vertical-align: middle;
}

/* Responsive for multi-city and dates */
@media (max-width: 768px) {
    .bc-tour-multi-city-pricing .g-header,
    .bc-tour-dates .g-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cities-timeline {
        padding-right: 20px;
    }
    
    .city-timeline-item:before {
        right: -15px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-prices-table .table th,
    .package-prices-table .table td {
        font-size: 11px;
        padding: 5px;
    }
    
    .tour-dates-table th,
    .tour-dates-table td {
        font-size: 12px;
        padding: 8px 5px;
    }
}

/* LTR Support for multi-city */
[dir="ltr"] .bc-tour-multi-city-pricing,
[dir="ltr"] .bc-tour-dates {
    direction: ltr;
}

[dir="ltr"] .cities-timeline {
    padding-left: 30px;
    padding-right: 0;
}

[dir="ltr"] .city-timeline-item:before {
    left: -25px;
    right: auto;
}

[dir="ltr"] .city-number {
    margin-right: 15px;
    margin-left: 0;
}

[dir="ltr"] .city-hotels-list .badge,
[dir="ltr"] .city-flights-list .badge {
    margin-right: 5px;
    margin-left: 0;
}
