/**
 * Frontend styles for JoinUP WooCommerce Dynamic plugin
 *
 * @package JoinUP_Woo_Dynamic
 * @since 0.1.0
 */

/* Error Messages */
.jud-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.jud-error-message {
    font-weight: 500;
}

/* Search Form */
.jud-search-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.jud-search-form h3 {
    margin-top: 0;
    color: #495057;
}

.jud-form-row {
    margin-bottom: 15px;
}

.jud-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.jud-form-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.jud-form-row input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.jud-search-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.jud-search-button:hover {
    background: #005a87;
}

/* Tours Layout */
.jud-tours-layout {
    display: flex;
    gap: 24px;
    margin: 0 auto;
    padding-top: 20px;
}

.jud-tours-sidebar-wrapper {
    flex: 0 0 300px;
    min-width: 300px;
}

.jud-tours-main {
    flex: 1;
    min-width: 0;
}

/* Tours Sidebar */
.jud-tours-sidebar {
    background: #fff;
    border-radius: 8px;
    border: solid 1px #ededed;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.jud-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jud-filter-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.jud-filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.jud-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.jud-filter-header:hover {
    background: #f9fafb;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0 -12px 16px -12px;
}

.jud-filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jud-filter-arrow {
    color: #6b7280;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.jud-filter-section.collapsed .jud-filter-arrow {
    transform: rotate(-90deg);
}

.jud-filter-options {
    transition: all 0.3s ease;
    overflow: hidden;
}

.jud-filter-section.collapsed .jud-filter-options {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
}

.jud-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jud-filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jud-filter-option:hover {
    font-weight: 600;
}

.jud-filter-option input[type="checkbox"] {
    display: none;
}

.jud-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.jud-filter-option input[type="checkbox"]:checked + .jud-checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.jud-filter-option input[type="checkbox"]:checked + .jud-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.jud-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    flex: 1;
}

.jud-option-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.jud-stars {
    color: #fbbf24;
    font-size: 16px;
    letter-spacing: 2px;
}

/* Hotel type pills */
.jud-filter-option input[name="hotel_type[]"] + .jud-checkbox-custom + .jud-option-label {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-left: 4px;
}

.jud-filter-option input[name="hotel_type[]"]:checked + .jud-checkbox-custom + .jud-option-label {
    background: #f59e0b;
    color: white;
}

.jud-select-all {
    color: #3b82f6;
    font-size: 12px;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
    transition: color 0.2s ease;
}

.jud-select-all:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Price Slider */
.jud-price-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jud-price-slider-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
}

.jud-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.jud-price-separator {
    color: #64748b;
    font-weight: 400;
}

.jud-price-slider-wrapper {
    position: relative;
    height: 20px;
    margin: 0 8px;
}

.jud-price-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.jud-price-slider::-webkit-slider-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
}

.jud-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.jud-price-slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.jud-price-slider::-moz-range-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    border: none;
}

.jud-price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.jud-price-slider::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dual slider track styling */
.jud-price-slider-wrapper::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    z-index: 1;
}

.jud-price-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 7px;
    left: var(--from-percent, 0%);
    width: calc(var(--to-percent, 100%) - var(--from-percent, 0%));
    height: 6px;
    background: #3b82f6;
    border-radius: 3px;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.jud-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.jud-price-min,
.jud-price-max {
    font-weight: 500;
}

/* Responsive design for price slider */
@media (max-width: 768px) {
    .jud-price-display {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .jud-price-slider-wrapper {
        margin: 0 4px;
    }
    
    .jud-price-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .jud-price-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
}

/* Filter Actions */
.jud-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.jud-apply-filters,
.jud-clear-filters {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jud-apply-filters {
    background: #3b82f6;
    color: white;
}

.jud-apply-filters:hover {
    background: #2563eb;
}

.jud-clear-filters {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.jud-clear-filters:hover {
    background: #e5e7eb;
}

/* Tours List */
.jud-tours-list {
    margin: 20px 0;
}

.jud-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.jud-results-title h3 {
    color: #495057;
    margin: 0;
}



.jud-view-btn {
    border: none!important;
    padding: 8px 12px!important;
    border-radius: 6px!important;
    cursor: pointer!important;
    transition: all 0.3s ease!important;
    color: #6c757d!important;;
}

.jud-view-btn:hover {
    color: #495057;
    background: rgba(0, 124, 186, 0.1);
}

.jud-view-btn.active {
    background: #20a65a;
    color: white!important;
}

.jud-view-btn svg {
    width: 20px;
    height: 20px;
}

/* No results banner */
.jud-no-results-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.jud-no-results-content {
    text-align: center;
    max-width: 500px;
}

.jud-no-results-icon {
    margin-bottom: 24px;
    color: #94a3b8;
}

.jud-no-results-icon svg {
    opacity: 0.7;
}

.jud-no-results-title {
    font-size: 24px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.jud-no-results-message {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.jud-no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.jud-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.jud-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.jud-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.jud-btn-secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jud-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
}

.jud-btn svg {
    flex-shrink: 0;
}

/* No Filtered Results Banner */
.jud-no-filtered-results-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #f59e0b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.jud-no-filtered-results-content {
    text-align: center;
    max-width: 500px;
}

.jud-no-filtered-results-icon {
    margin-bottom: 24px;
    color: #f59e0b;
}

.jud-no-filtered-results-icon svg {
    opacity: 0.8;
}

.jud-no-filtered-results-title {
    font-size: 24px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.jud-no-filtered-results-message {
    font-size: 16px;
    color: #a16207;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.jud-no-filtered-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.jud-no-filtered-results-actions .jud-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.jud-no-filtered-results-actions .jud-btn-primary {
    background: #f59e0b;
    color: white;
}

.jud-no-filtered-results-actions .jud-btn-primary:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* Responsive design for no results banner */
@media (max-width: 768px) {
    .jud-no-results-banner {
        min-height: 300px;
        padding: 30px 15px;
    }
    
    .jud-no-results-title {
        font-size: 20px;
    }
    
    .jud-no-results-message {
        font-size: 14px;
    }
    
    .jud-no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .jud-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    /* No filtered results banner responsive */
    .jud-no-filtered-results-banner {
        min-height: 300px;
        padding: 30px 15px;
    }
    
    .jud-no-filtered-results-title {
        font-size: 20px;
    }
    
    .jud-no-filtered-results-message {
        font-size: 14px;
    }
    
    .jud-no-filtered-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .jud-no-filtered-results-actions .jud-btn {
        width: 100%;
        max-width: 200px;
    }
}

.jud-offers-container {
    margin-bottom: 30px;
}

/* Grid View (Default) */
.jud-offers-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* List View */
.jud-offers-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Offer Cards - Modern Design */
.jud-offer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgb(186 186 186 / 20%) !important;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.jud-offer-card:hover {
    transform: translateY(-6px);
    text-decoration: none;
    color: inherit;
}

/* List View Card Layout */
.jud-offers-container.list-view .jud-offer-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 250px;
}

.jud-offers-container.list-view .jud-offer-image {
    width: 35%;
    height: 100%;
    flex-shrink: 0;
}

.jud-offers-container.list-view .jud-offer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

/* Hotel Image Section */
.jud-offer-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.jud-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jud-offer-card:hover .jud-offer-image img {
    transform: scale(1.05);
}

.jud-offer-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    position: relative;
}

.jud-offer-image-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: jud-spin 1s linear infinite;
}

/* Tour Details Badges */
.jud-tour-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

/* Grid View Badges - Overlay on Image */
.jud-tour-badges-grid {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
}

/* Hide grid badges in list view */
.jud-offers-container.list-view .jud-tour-badges-grid {
    display: none;
}

/* List View Badges - Under Star Rating */
.jud-tour-badges-list {
    position: static;
    margin-top: 12px;
    margin-bottom: 16px;
    display: none; /* Hidden by default */
}

/* Show list badges only in list view */
.jud-offers-container.list-view .jud-tour-badges-list {
    display: flex;
}

.jud-tour-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.jud-tour-badge:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jud-tour-badge svg {
    color: #007cba;
    flex-shrink: 0;
}

.jud-tour-badge span {
    white-space: nowrap;
}

.jud-offer-image-loading {
    position: relative;
}

.jud-offer-image-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.jud-offer-image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: jud-spin 1s linear infinite;
    z-index: 2;
}

/* Action Icons */
.jud-offer-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jud-offer-card:hover .jud-offer-actions {
    opacity: 1;
}

.jud-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10; /* Ensure buttons are above the card link */
}

.jud-action-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jud-action-btn:active {
    transform: scale(0.95);
}

.jud-action-btn.favorited {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.jud-action-btn.favorited svg {
    fill: #e74c3c;
}

/* Content Section */
.jud-offer-content {
    padding: 20px;
}

/* Location */
.jud-offer-location {
    color: #007cba;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.jud-location-separator {
    margin: 0 6px;
    color: #6c757d;
}

/* Hotel Name */
.jud-offer-hotel {
    margin: 0 0 12px 0;
    color: #212529;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

/* Description (for list view) */
.jud-offer-description {
    margin-bottom: 12px;
    display: none; /* Hidden by default, shown in list view */
}

.jud-offers-container.list-view .jud-offer-description {
    display: block;
}

.jud-offer-description p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    max-height: 3.2em; /* Limit to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Rating Stars */
.jud-offer-rating {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.jud-star {
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
}

.jud-star-filled {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
}

.jud-star-empty {
    color: #dee2e6;
}

/* Enhanced star rating display */
.jud-offer-rating.has-rating .jud-star-filled {
    color: #ffc107;
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.4));
}

.jud-offer-rating.no-rating {
    opacity: 0.6;
}

.jud-offer-rating.no-rating .jud-star {
    color: #dee2e6;
}

.jud-rating-text {
    margin-left: 8px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Availability Badges */
.jud-availability-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.jud-availability-badge.jud-unavailable {
    background: #dc3545;
    color: white;
}

.jud-availability-badge.jud-low-stock {
    background: #ffc107;
    color: #212529;
}

/* Booking Details */
.jud-booking-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.jud-booking-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jud-booking-icon {
    color: #007cba;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.jud-booking-text {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

/* Footer Section */
.jud-offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.jud-price-section {
    flex: 1;
}

.jud-price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.jud-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.jud-price-currency {
    font-size: 18px;
    color: #495057;
    font-weight: 600;
}

.jud-price-note {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.jud-room-types-info {
    margin-top: 4px;
}

.jud-room-types-text {
    font-size: 11px;
    color: #059669;
    font-weight: 500;
    background: #f0fdf4;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}

.jud-hotel-amenities {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.jud-hotel-amenities h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.jud-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jud-amenity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: #374151;
}

.jud-amenity-item svg {
    color: #059669;
    flex-shrink: 0;
}

/* Trip Overview Styles */
.jud-trip-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.jud-overview-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.jud-overview-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
}

.jud-timeline {
    position: relative;
}

.jud-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fbbf24;
}

.jud-timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.jud-timeline-marker {
    position: absolute;
    left: 11px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #fbbf24;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #fbbf24;
}

.jud-timeline-content {
    margin-left: 60px;
}

.jud-flight-card, .jud-transfer-card, .jud-hotel-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.jud-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.jud-flight-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.jud-flight-time {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

.jud-flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.jud-flight-airport {
    flex: 1;
    text-align: center;
}

.jud-flight-airport strong {
    display: block;
    font-size: 14px;
    color: #374151;
}

.jud-flight-airplane {
    margin: 0 20px;
    color: #6b7280;
}

.jud-flight-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.jud-flight-arrival {
    text-align: center;
}

.jud-flight-arrival strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
}

.jud-flight-arrival span {
    font-size: 12px;
    color: #6b7280;
}

.jud-flight-meta {
    text-align: center;
}

.jud-flight-airline, .jud-flight-number, .jud-flight-duration {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.jud-flight-baggage {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.jud-baggage-item {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
}

.jud-transfer-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.jud-transfer-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.jud-transfer-point svg {
    color: #6b7280;
}

.jud-transfer-point span {
    font-size: 12px;
    color: #374151;
    text-align: center;
}

.jud-transfer-bus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 20px;
    color: #059669;
}

.jud-transfer-bus span {
    font-size: 12px;
    font-weight: 600;
}

.jud-hotel-card {
    display: flex;
    gap: 20px;
}

.jud-hotel-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.jud-hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jud-hotel-info {
    flex: 1;
}

.jud-hotel-header h3 {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.jud-hotel-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.jud-hotel-rating {
    margin-bottom: 16px;
}

.jud-star {
    color: #fbbf24;
    font-size: 16px;
}

.jud-hotel-times {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.jud-time-label {
    font-size: 14px;
    color: #374151;
}

.jud-hotel-inclusions {
    display: flex;
    gap: 12px;
}

.jud-inclusion {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

/* Summary Sidebar */
.jud-overview-sidebar {
    position: sticky;
    top: 20px;
}

.jud-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.jud-summary-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.jud-summary-details {
    margin-bottom: 20px;
}

.jud-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.jud-summary-item:last-child {
    border-bottom: none;
}

.jud-summary-label {
    font-size: 14px;
    color: #6b7280;
}

.jud-summary-value {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.jud-summary-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.jud-summary-icon {
    background: #f3f4f6;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jud-summary-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.jud-price-label {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.jud-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.jud-nav-tabs {
    display: flex;
    margin-bottom: 20px;
}

.jud-nav-tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.jud-nav-tab:first-child {
    border-radius: 6px 0 0 6px;
}

.jud-nav-tab:last-child {
    border-radius: 0 6px 6px 0;
}

.jud-nav-tab.active {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.jud-summary-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.jud-continue-btn {
    flex: 1;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.jud-continue-btn:hover {
    background: #ea580c;
}

.jud-back-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.jud-back-btn:hover {
    background: #e5e7eb;
}

.jud-help-section {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.jud-help-section p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #92400e;
}

.jud-help-section p:last-of-type {
    margin-bottom: 12px;
}

.jud-help-btn {
    background: #fbbf24;
    color: #92400e;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    transition: background-color 0.2s;
}

.jud-help-btn:hover {
    background: #f59e0b;
}

/* Traveler Info Styles */
.jud-traveler-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.jud-traveler-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.jud-traveler-main {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.jud-form-section {
    margin-bottom: 40px;
}

.jud-form-section:last-child {
    margin-bottom: 0;
}

.jud-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.jud-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.jud-form-group {
    display: flex;
    flex-direction: column;
}

.jud-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.jud-form-group input,
.jud-form-group select {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.jud-form-group input:focus,
.jud-form-group select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.jud-form-group input.error {
    border-color: #dc2626;
}

.jud-phone-input {
    display: flex;
    gap: 8px;
}

.jud-country-code {
    flex-shrink: 0;
    width: 120px;
}

.jud-email-input {
    position: relative;
}

.jud-email-input svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.jud-date-input {
    position: relative;
}

.jud-date-input svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.jud-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jud-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.jud-checkbox input[type="checkbox"] {
    display: none;
}

.jud-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.jud-checkbox input[type="checkbox"]:checked + .jud-checkmark {
    background: #059669;
    border-color: #059669;
}

.jud-checkbox input[type="checkbox"]:checked + .jud-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.jud-tourist-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.jud-tourist-block:last-child {
    margin-bottom: 0;
}

.jud-tourist-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.jud-passport-upload {
    background: #fff;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.jud-passport-upload p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6b7280;
}

.jud-upload-btn {
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.jud-upload-btn:hover {
    background: #047857;
}

.jud-collapsible-section {
    margin-top: 20px;
}

.jud-collapsible-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e5e7eb;
}

.jud-collapsible-toggle svg {
    transition: transform 0.2s;
}

.jud-collapsible-content {
    display: none;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
}

.jud-collapsible-content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.jud-traveler-sidebar {
    position: sticky;
    top: 20px;
}

/* Select Button */
.jud-select-button {
    background: #20a65a;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none; /* Prevent button clicks since card is clickable */
}

.jud-offer-card:hover .jud-select-button {
    background: #1a9750;
    transform: translateY(-1px);
}

/* Pagination */
.jud-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.jud-pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.jud-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.jud-pagination-button {
    background: #007cba;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
}

.jud-pagination-button:hover {
    background: #005a87;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.jud-pagination-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.jud-pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #dee2e6;
}

.jud-pagination-page:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
    transform: translateY(-1px);
}

.jud-pagination-page-current {
    background: #007cba;
    color: white;
    border-color: #007cba;
    font-weight: 600;
}

.jud-pagination-page-current:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Loading States */
.jud-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
}

.jud-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: jud-spin 1s linear infinite;
    margin-bottom: 15px;
}

.jud-loading-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

@keyframes jud-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Trip Detail */
.jud-trip-detail {
    margin: 0 auto;
}

.jud-trip-header {
    margin-bottom: 30px;
}

.jud-trip-title {
    color: #212529;
    margin: 0;
}

.jud-trip-gallery {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.jud-trip-photo img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jud-trip-description {
    margin-bottom: 30px;
}

.jud-trip-description h3 {
    color: #495057;
    margin-bottom: 15px;
}

.jud-description-content {
    line-height: 1.6;
    color: #495057;
}

.jud-trip-booking {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
}

.jud-trip-booking h3 {
    margin-top: 0;
    color: #495057;
}

/* Flight Information */
.jud-flight-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jud-flight-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.jud-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.jud-flight-header h3 {
    margin: 0;
    color: #212529;
    font-size: 18px;
    font-weight: 600;
}

.jud-flight-date {
    background: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.jud-flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.jud-flight-departure,
.jud-flight-arrival {
    flex: 1;
    text-align: center;
}

.jud-airport-code {
    font-size: 24px;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 5px;
}

.jud-airport-name {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.jud-flight-time {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.jud-flight-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    color: #007cba;
}

.jud-flight-arrow svg {
    margin-bottom: 8px;
}

.jud-flight-duration {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.jud-flight-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.jud-airline-info,
.jud-aircraft-info,
.jud-flight-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jud-airline-info .jud-label,
.jud-aircraft-info .jud-label,
.jud-flight-number .jud-label {
    font-weight: 600;
    color: #495057;
}

.jud-airline-info .jud-value,
.jud-aircraft-info .jud-value,
.jud-flight-number .jud-value {
    color: #007cba;
    font-weight: 500;
}

.jud-booking-details {
    margin-bottom: 20px;
}

.jud-booking-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.jud-booking-detail:last-child {
    border-bottom: none;
}

.jud-booking-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.jud-add-to-cart-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.jud-add-to-cart-button:hover {
    background: #218838;
}

.jud-view-cart-button {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.jud-view-cart-button:hover {
    background: #5a6268;
    color: white;
}

/* Loading States */
.jud-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.jud-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: jud-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes jud-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* TD Search Bar */
.td-search-container {
    width: 100% !important;
    margin: 0 auto !important;

    box-sizing: border-box !important;
    z-index: 10;
    position: relative;
}

.td-search-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 55px !important;
    padding: 20px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid #ededed!important;
    box-sizing: border-box !important;
}

.td-search-form {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.td-search-field {
    flex: 1 !important;
    min-width: 150px !important;
    position: relative !important;
    border-right: 1px solid #e9ecef !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.td-search-field:last-of-type {
    border-right: none;
}

.td-field-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.td-field-content {
    position: relative;
    padding-left: 30px;
}

.td-field-select,
.td-field-input {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #212529 !important;
    padding: 8px 0 !important;
    outline: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.td-field-select:focus,
.td-field-input:focus {
    outline: none;
}

.td-field-label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    margin-top: 2px;
    text-transform: capitalize;
    font-weight: 600!important;
}

.td-search-button {
    margin-left: 20px;
}

.td-search-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%!important;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 37, 41, 0.3);
    border-radius: 50px;
    background: #000!important;
    color: #fff!important;
    height: 70px!important;
    width: 70px!important;
}

.td-search-btn:hover {
    background: #007cba;
    transform: translateY(-2px);
}

.td-search-btn:active {
    transform: translateY(0);
}

.td-search-field.active .td-field-icon {
    color: #007cba;
}

.td-field-label.has-value {
    color: #007cba;
    font-weight: 600;
}

.td-field-select:focus + .td-field-label,
.td-field-input:focus + .td-field-label {
    color: #007cba;
}

/* Date input specific styling */
.td-field-input[type="date"] {
    color-scheme: light;
    cursor: pointer;
}

.td-field-input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.td-field-input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

.td-field-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

.td-field-input[type="date"]::-webkit-datetime-edit-text {
    color: #6c757d;
    padding: 0 2px;
}

.td-field-input[type="date"]::-webkit-datetime-edit-month-field,
.td-field-input[type="date"]::-webkit-datetime-edit-day-field,
.td-field-input[type="date"]::-webkit-datetime-edit-year-field {
    color: #212529;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .jud-tours-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .jud-tours-sidebar-wrapper {
        flex: none;
        min-width: auto;
    }
    
    .jud-tours-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .jud-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .jud-view-toggle {
        align-self: flex-end;
    }
    
    .jud-offers-container.grid-view {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .jud-offers-container.list-view .jud-offer-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .jud-offers-container.list-view .jud-offer-image {
        width: 100%;
        height: 100%;
    }
    
    .jud-offers-container.list-view .jud-offer-content {
        padding: 20px;
    }
    
    .jud-tour-badges-grid {
        bottom: 8px;
        left: 8px;
        right: 8px;
        gap: 6px;
    }
    
    .jud-tour-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .jud-tour-badges-list {
        gap: 6px;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    
    /* Ensure badges are visible on mobile */
    .jud-offers-container.grid-view .jud-tour-badges-grid {
        display: flex;
    }
    
    .jud-offers-container.list-view .jud-tour-badges-list {
        display: flex;
    }
    
    .jud-booking-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .jud-offer-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .jud-select-button {
        text-align: center;
        width: 100%;
    }
    
    .jud-trip-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jud-booking-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jud-booking-actions button,
    .jud-booking-actions a {
        text-align: center;
    }
    
    .jud-pagination {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .jud-search-form,
    .jud-trip-booking {
        padding: 15px;
    }
    
    .jud-offer-content {
        padding: 16px;
    }
    
    .jud-offer-hotel {
        font-size: 18px;
    }
    
    .jud-price-amount {
        font-size: 20px;
    }
    
    .jud-booking-details {
        padding: 12px;
    }
    
    .jud-trip-gallery {
        grid-template-columns: 1fr;
    }
    
    .jud-offer-actions {
        opacity: 1; /* Always show on mobile */
    }
    
    /* TD Search Bar Mobile */
    .td-search-container {
        padding: 10px;
    }
    
    .td-search-bar {
        padding: 15px;
        border-radius: 15px;
    }
    
    .td-search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .td-search-field {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 0 0 15px 0;
        min-width: auto;
    }
    
    .td-search-field:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .td-search-button {
        margin-left: 0;
        margin-top: 10px;
        align-self: center;
    }
    
    .td-search-btn {
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   ENHANCED TRIP DETAIL PAGE STYLES
   ======================================== */

/* Override existing trip detail styles */
.jud-trip-detail {
    margin: 0 auto !important;
    padding: 0 !important;
    background: #fff !important;
    min-height: 100vh !important;
}

/* Header Section */
.jud-trip-header {
    color: rgb(0, 0, 0) !important;
    margin-bottom: 0 !important;
}

.jud-breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.jud-breadcrumbs a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.jud-breadcrumbs a:hover {
    opacity: 0.8;
}

.jud-breadcrumb-separator {
    margin: 0 8px;
    opacity: 0.7;
}

.jud-trip-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: rgb(0, 0, 0) !important;
    margin-top: -20px;
}

.jud-trip-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.jud-trip-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jud-trip-actions {
    display: flex;
    gap: 12px;
}

.jud-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jud-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Content Layout */
.jud-trip-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    padding-top: 20px;
    margin: 0 auto;
}

.jud-trip-main {
    min-width: 0; /* Prevent grid overflow */
}

/* Enhanced Image Gallery */
.jud-trip-gallery {
    margin-bottom: 40px !important;
}

.jud-gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8f9fa;
    min-height: 550px;
}

.jud-gallery-main-img {
    width: 100%;
    height: 400px; /* Set explicit height to prevent layout shift */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jud-gallery-main:hover .jud-gallery-main-img {
    transform: scale(1.05);
}

.jud-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jud-gallery-main:hover .jud-gallery-overlay {
    opacity: 1;
}

.jud-gallery-zoom {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jud-gallery-zoom:hover {
    background: white;
    transform: scale(1.1);
}

.jud-gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.jud-gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.jud-gallery-thumb.active {
    border-color: #007cba;
}

.jud-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jud-gallery-more {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.jud-gallery-more:hover {
    background: #e9ecef;
}

/* Sections */
.jud-trip-section {
    margin-bottom: 40px;
}

.jud-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.jud-description-content {
    line-height: 1.7 !important;
    color: #495057 !important;
    font-size: 16px !important;
}

/* Facilities Grid */
.jud-facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.jud-facility-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.jud-facility-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.jud-facility-item svg {
    color: #28a745;
    flex-shrink: 0;
}

/* Room Types */
.jud-room-types {
    display: grid;
    gap: 20px;
}

.jud-room-type {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
}

.jud-room-type h3 {
    margin: 0 0 12px 0;
    color: #212529;
    font-size: 1.2rem;
}

.jud-room-type p {
    margin: 0 0 12px 0;
    color: #6c757d;
}

.jud-room-capacity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 14px;
}

/* Sidebar */
.jud-trip-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Enhanced Booking Card */
.jud-booking-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.jud-booking-card h3 {
    margin: 0 0 20px 0 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
}

.jud-booking-details {
    margin-bottom: 24px !important;
}

.jud-booking-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f3f4 !important;
}

.jud-booking-detail:last-child {
    border-bottom: none !important;
}

.jud-label {
    font-weight: 500 !important;
    color: #6c757d !important;
}

.jud-value {
    font-weight: 600 !important;
    color: #212529 !important;
}

.jud-booking-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jud-add-to-cart-button {
    background: #007cba !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jud-add-to-cart-button:hover {
    background: #005a87 !important;
    transform: translateY(-2px);
}

.jud-view-cart-button {
    background: #6c757d !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center;
    transition: all 0.3s ease;
}

.jud-view-cart-button:hover {
    background: #5a6268 !important;
    color: white !important;
    text-decoration: none !important;
}

/* Hotel Info */
.jud-hotel-info {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jud-hotel-info h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
}

.jud-info-grid {
    display: grid;
    gap: 12px;
}

.jud-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.jud-info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

.jud-info-value {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

/* Distances */
.jud-distances {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jud-distances h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
}

.jud-distance-list {
    display: grid;
    gap: 12px;
}

.jud-distance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.jud-distance-item svg {
    color: #007cba;
    flex-shrink: 0;
}

.jud-distance-item span {
    color: #6c757d;
    font-size: 14px;
}

.jud-distance-item strong {
    color: #212529;
    font-weight: 600;
    margin-left: auto;
}

/* Lightbox */
.jud-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.jud-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jud-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.jud-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jud-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.jud-lightbox-prev,
.jud-lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.jud-lightbox-prev:hover,
.jud-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.jud-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ========================================
   NEW DROPDOWN STYLES (Simplified)
   ======================================== */

/* Dropdown Container */
.td-dropdown-container {
    position: relative;
    width: 100%;
}

/* Dropdown Button */
.td-dropdown-button {
    width: 100%;
    height: 48px;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    text-align: left;
    background: #ffffff00 !important;
}

.td-dropdown-button:hover {
    border-color: #ffffff00!important;
}

.td-dropdown-button.active {
    border-color: #ffffff00!important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.td-button-text {
    flex: 1;
    text-align: left;
    margin-left: -20px!important;
}

.td-dropdown-arrow {
    color: #6c757d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.td-dropdown-button.active .td-dropdown-arrow {
    transform: rotate(180deg);
    color: #007cba;
}

/* Dropdown Panel */
.td-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
    overflow: hidden;
    max-height: 300px;
    display: none;
}

.td-dropdown-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
    width: 300px;
}

/* Panel Header */
.td-panel-header {
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    background: #f8f9fa;
}

.td-panel-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Panel Search */
.td-panel-search {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    box-shadow: 
  0 4px 6px -1px rgba(0, 0, 0, 0.1),
  0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.td-search-field.departure {
    border-right: 0px!important;;
}

.td-search-field.departure .td-field-content {
    padding-left: 0px;
}

.td-search-field-input {
    width: 100%;
    height: 40px;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
    padding: 0 40px 0 12px;
    font-size: 14px;
    color: #495057;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.td-search-field-input:focus {
    outline: none;
    border-color: #007cba;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.td-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

/* Panel Options */
.td-panel-options {
    max-height: 200px;
    overflow-y: auto;
}

.td-option {
    padding: 12px 16px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
}

.td-option:last-child {
    border-bottom: none;
    margin-bottom: 20px;
}

.td-option:hover {
    background: #f8f9fa;
    color: #212529;
}

.td-option.selected {
    background: #ff8c00;
    color: white;
    font-weight: 600;
}

.td-option.selected:hover {
    background: #e67e00;
}

/* Hide search for persons dropdown */
.td-dropdown-container[data-field="persons"] .td-panel-search {
    display: none;
}

/* Calendar Container */
.td-calendar-container {
    position: relative;
}

.td-calendar-button {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff00!important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.td-calendar-button:hover {
    border-color: #ffffff00!important;
}

.td-calendar-button.active {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Calendar Panel */
.td-calendar-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    margin-top: 8px;
    padding: 20px;
    min-width: 320px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.td-calendar-panel.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Calendar Widget */
.td-calendar-widget {
    width: 100%;
}

/* Calendar Header */
.td-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.td-calendar-nav {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-calendar-nav:hover {
    background: #f3f4f6;
    color: #374151;
}

.td-calendar-month-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.td-calendar-month {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
}

.td-calendar-year {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Calendar Body */
.td-calendar-body {
    width: 100%;
}

.td-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.td-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    padding: 8px 4px;
    text-transform: uppercase;
}

.td-weekday:first-child {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 4px;
}

/* Calendar Days */
.td-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.td-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    min-height: 36px;
}

.td-calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: none;
}

.td-calendar-day.available {
    color: #374151;
    cursor: pointer;
}

.td-calendar-day.available:hover {
    background: #f3f4f6;
    color: #111827;
}

.td-calendar-day.selected {
    background: #f97316;
    color: #fff;
    font-weight: 600;
}

.td-calendar-day.selected:hover {
    background: #ea580c;
}

.td-calendar-day.other-month {
    color: #d1d5db;
    cursor: not-allowed;
}

.td-calendar-day.other-month.available {
    color: #9ca3af;
}

.td-calendar-day.other-month.available:hover {
    background: #f9fafb;
    color: #6b7280;
}

/* Tours Page Layout */
.jud-tours-page {
    margin: 0 auto;
}

.jud-search-section {
    padding-bottom: 20px;
}

.jud-search-container {
    max-width: 100%;
}

.jud-search-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.jud-results-section {
    background: #fff;
    border-radius: 12px;
}

/* Responsive adjustments for tours page */
@media (max-width: 768px) {
    .jud-tours-page {
        padding: 15px;
    }
    
    .jud-search-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .jud-search-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .jud-results-section {
        padding: 15px;
    }
}

/* Loading state */
.td-option.loading {
    color: #6c757d;
    font-style: italic;
    cursor: default;
}

.td-option.loading:hover {
    background: transparent;
}

/* No results state */
.td-option.no-results {
    color: #6c757d;
    font-style: italic;
    cursor: default;
    text-align: center;
    padding: 20px;
}

.td-option.no-results:hover {
    background: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .td-dropdown-button {
        height: 44px;
        padding: 0 12px;
        font-size: 15px;
    }
    
    .td-dropdown-panel {
        border-radius: 10px;
    }
    
    .td-search-field-input {
        height: 36px;
        font-size: 13px;
    }
    
    .td-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .td-panel-header {
        padding: 12px;
    }
    
    .td-panel-header h3 {
        font-size: 12px;
    }
}

/* ========================================
   SELECTWOO/SELECT2 CUSTOM STYLES (DEPRECATED)
   ======================================== */

/* Make the SelectWoo control look like our field */
.td-field-content .select2-container--default .select2-selection--single {
    height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #e6e8ee !important;
    padding-left: 42px !important; /* space for our svg icon */
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    box-shadow: none !important;
}

.td-field-content .select2-container--default .select2-selection--single:focus {
    outline: none !important;
    border-color: #007cba !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2) !important;
}

/* Arrow */
.td-field-content .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
    top: 0 !important;
}

.td-field-content .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6c757d transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    height: 0 !important;
    left: 50% !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
    position: absolute !important;
    top: 50% !important;
    width: 0 !important;
}

/* Selected value text */
.td-field-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 48px !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
}

/* Placeholder text */
.td-field-content .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Dropdown */
.td-field-content .select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid #e6e8ee !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Search input in dropdown */
.td-field-content .select2-search--dropdown .select2-search__field {
    height: 44px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    border: 1px solid #e6e8ee !important;
    font-size: 14px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
    box-sizing: border-box !important;
}

.td-field-content .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: #007cba !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2) !important;
}

/* Dropdown options */
.td-field-content .select2-results__option {
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #495057 !important;
    border-bottom: 1px solid #f1f3f4 !important;
    transition: all 0.2s ease !important;
}

.td-field-content .select2-results__option:last-child {
    border-bottom: none !important;
}

.td-field-content .select2-results__option--highlighted {
    background: #007cba !important;
    color: white !important;
}

.td-field-content .select2-results__option--selected {
    background: #f8f9fa !important;
    color: #007cba !important;
    font-weight: 600 !important;
}

/* Clear button */
.td-field-content .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #6c757d !important;
    font-size: 18px !important;
    font-weight: bold !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
}

.td-field-content .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545 !important;
}

/* Position our existing icon on top of the SelectWoo */
.td-search-field .td-field-icon {
    position: absolute !important;
    z-index: 3 !important;
    left: 14px !important;
    top: 73% !important;
    transform: translateY(-50%) !important;
    color: #96a0b5 !important;
    pointer-events: none !important;
}

.td-search-field .td-field-content {
    position: relative !important;
}

/* Active state for field with SelectWoo */
.td-search-field.active .td-field-icon {
    color: #007cba !important;
}

/* Hide the original select element */
.td-field-content .td-field-select.select2-hidden-accessible {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* Loading state */
.td-field-content .select2-container--default .select2-selection--single .select2-selection__rendered[title*="Loading"] {
    color: #6c757d !important;
    font-style: italic !important;
}

/* Responsive adjustments for SelectWoo */
@media (max-width: 768px) {
    .td-field-content .select2-container--default .select2-selection--single {
        height: 44px !important;
        padding-left: 38px !important;
    }
    
    .td-field-content .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 44px !important;
        font-size: 15px !important;
    }
    
    .td-search-field .td-field-icon {
        left: 12px !important;
    }
    
    .td-field-content .select2-dropdown {
        border-radius: 10px !important;
    }
    
    .td-field-content .select2-search--dropdown .select2-search__field {
        height: 40px !important;
        font-size: 13px !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .jud-trip-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 30px 20px !important;
    }
    
    .jud-trip-sidebar {
        order: -1;
    }
    
    .jud-booking-card {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .jud-trip-header {
        padding: 30px 20px !important;
    }
    
    .jud-trip-title {
        font-size: 2rem !important;
    }
    
    .jud-trip-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .jud-trip-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .jud-gallery-main-img {
        height: 250px !important;
    }
    
    .jud-facilities-grid {
        grid-template-columns: 1fr !important;
    }
    
    .jud-booking-actions {
        flex-direction: column !important;
    }
    
    .jud-lightbox-nav {
        display: none !important;
    }
}

/* Travel Details Card */
.jud-travel-details-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

/* Dynamic Meal Type Selector */
.jud-meal-type-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
}

.jud-meal-type-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.jud-meal-type-select option {
    padding: 8px;
}

.jud-travel-details-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.jud-travel-details-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jud-travel-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.jud-travel-detail-item:last-of-type {
    border-bottom: none;
}

.jud-travel-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.jud-travel-detail-label svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.jud-travel-detail-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.jud-travelers-select,
.jud-meal-select,
.jud-room-type-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
    min-width: 80px;
    cursor: pointer;
}

.jud-travelers-select:focus,
.jud-meal-select:focus,
.jud-room-type-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.jud-travel-detail-price {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #f1f5f9;
    margin-top: 8px;
}

.jud-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
}

.jud-travel-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.jud-cart-btn {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jud-cart-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.jud-cart-btn svg {
    color: #64748b;
}

.jud-continue-btn {
    flex: 1;
    height: 48px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jud-continue-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.jud-continue-btn svg {
    flex-shrink: 0;
}

/* Room Types Collapsible */
.jud-room-types-collapsible {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jud-room-type-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.jud-room-type-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.jud-room-type-item.jud-room-type-open {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.jud-room-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jud-room-type-header:hover {
    background: #f1f5f9;
}

.jud-room-type-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.jud-room-type-price {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
}

.jud-room-type-arrow {
    color: #64748b;
    transition: transform 0.2s ease;
}

.jud-room-type-arrow svg {
    transition: transform 0.2s ease;
}

.jud-room-type-open .jud-room-type-arrow svg {
    transform: rotate(180deg);
}

.jud-room-type-content {
    padding: 20px;
    background: white;
}

.jud-room-type-details {
    display: flex;
    gap: 20px;
}

.jud-room-type-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.jud-room-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jud-room-type-info {
    flex: 1;
}

.jud-room-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.jud-room-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.jud-room-spec {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.jud-spec-label {
    color: #64748b;
}

.jud-spec-value {
    color: #1e293b;
    font-weight: 600;
}

.jud-room-capacity-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.jud-room-amenities h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.jud-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.jud-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.jud-amenity-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Travel Details and Room Types Responsive */
@media (max-width: 768px) {
    .jud-travel-details-card {
        padding: 20px 16px;
    }
    
    .jud-travel-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .jud-travel-detail-value {
        width: 100%;
    }
    
    .jud-travelers-select,
    .jud-meal-select,
    .jud-room-type-select {
        width: 100%;
        min-width: auto;
    }
    
    .jud-travel-detail-actions {
        flex-direction: column;
    }
    
    .jud-cart-btn {
        width: 100%;
    }
    
    .jud-room-type-details {
        flex-direction: column;
    }
    
    .jud-room-type-image {
        width: 100%;
        height: 120px;
    }
    
    .jud-amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* Add loading placeholder */
.jud-gallery-main {
    background: #f8f9fa;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hotel amenities preview in booking page */
.jud-hotel-amenities-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.jud-hotel-amenities-preview h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 0.95em;
    font-weight: 600;
}

.jud-amenities-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jud-amenity-preview {
    display: inline-block;
    padding: 4px 8px;
    background: #007cba;
    color: white;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.jud-amenity-more {
    display: inline-block;
    padding: 4px 8px;
    background: #6c757d;
    color: white;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Hidden form for POST requests */
form[style*="display: none"] {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
}
