/* General */

.fab-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.fab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fab-button:hover::before {
    opacity: 1;
}

.fab-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.fab-button.chat-open {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    transform: rotate(45deg);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.fab-button.chat-open:hover {
    transform: rotate(45deg) scale(1.1) translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
}

.fab-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 50%;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tinabot-pulse 2s infinite;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    display: none;
}

.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 10001;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-overlay.show {
    visibility: visible;
    opacity: 1;
}

.chat-overlay.closing {
    visibility: visible;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.chat-container {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-overlay.closing .chat-container {
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease-out;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 24px 24px 0 0;
}

.chat-header > * {
    position: relative;
    z-index: 1;
}

.chat-header h1 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-button:active {
    transform: scale(0.95) rotate(90deg);
    transition: all 0.1s ease;
}

.status {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: tinabot-pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.status-dot.disconnected {
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

.status-dot.waiting {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: tinabot-pulse-fast 1s infinite;
}

@keyframes tinabot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes tinabot-pulse-fast {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.message {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: tinabot-message-appear 0.5s ease forwards;
}

@keyframes tinabot-message-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    flex-direction: row-reverse;
}

.message-content {
    padding: 16px 20px;
    border-radius: 20px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
}

.message.user .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border-bottom-left-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.message.streaming .message-content {
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
}

.message.streaming .message-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    animation: tinabot-streaming 1.5s infinite;
}

@keyframes tinabot-streaming {
    0% { left: -100%; }
    100% { left: 100%; }
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    animation: tinabot-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes tinabot-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Waiting message styles */
.waiting-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    border-bottom-left-radius: 8px;
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: tinabot-message-appear 0.5s ease forwards;
}

.waiting-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-top: 2px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.chat-input {
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    min-height: 52px;
    outline: none;
    transition: all 0.3s ease;
    color: #1e293b;
}

.message-input::placeholder {
    color: #64748b;
}

.message-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.message-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(241, 245, 249, 0.8);
}

.send-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.send-button:hover:not(:disabled) {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.send-button:active:not(:disabled) {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.send-button.loading {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.send-button.loading span {
    animation: spin 1s linear infinite;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1) !important;
}

.reconnect-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.reconnect-banner:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile First - Small screens (up to 480px) */
@media (max-width: 480px) {
    .chat-container {
        height: 90vh;
        border-radius: 0;
        max-width: none;
        margin: 0;
        width: 100vw;
        max-height: 100vh;
    }
    
    .chat-overlay {
        padding: 0;
    }
    
    .chat-header {
        border-radius: 0;
        padding: 20px;
    }
    
    .chat-header::before {
        border-radius: 0;
    }
    
    .message-content {
        max-width: 100%;
        font-size: 14px;
        padding: 14px 18px;
    }

    .fab-button {
        width: 56px;
        height: 56px;
        font-size: 22px;
        bottom: 20px;
        left: 20px;
    }

    .chat-header h1 {
        font-size: 20px;
    }

    .chat-messages {
        padding: 20px;
    }

    .chat-input {
        padding: 20px;
    }

    .message-input {
        font-size: 14px;
        padding: 14px 18px;
        min-height: 48px;
    }

    .send-button {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Medium Mobile - Tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .chat-container {
        height: 90vh;
        border-radius: 20px;
        margin: 5vh auto;
    }
    
    .chat-overlay {
        padding: 20px;
    }
    
    .message-content {
        max-width: 100%;
        font-size: 14px;
    }

    .fab-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .chat-header {
        padding: 22px;
        border-radius: 20px 20px 0 0;
    }

    .chat-header::before {
        border-radius: 20px 20px 0 0;
    }

    .chat-messages {
        padding: 22px;
    }

    .chat-input {
        padding: 22px;
    }

    .message-input {
        font-size: 14px;
        padding: 15px 19px;
        min-height: 50px;
    }

    .send-button {
        width: 50px;
        height: 50px;
        font-size: 19px;
    }

}

/* Large tablets and small desktops (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-container {
        border-radius: 24px;
    }

    .fab-button {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
}

/* Extra Large screens (1441px and up) */
@media (min-width: 1441px) {

    .chat-messages {
        padding: 28px;
    }

    .chat-input {
        padding: 28px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .chat-container {
        height: 90vh;
        border-radius: 16px;
    }

    .chat-header {
        padding: 16px 24px;
        border-radius: 16px 16px 0 0;
    }

    .chat-header::before {
        border-radius: 16px 16px 0 0;
    }

    .chat-header h1 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .status {
        font-size: 12px;
    }

    .chat-messages {
        padding: 20px 24px;
    }

    .chat-input {
        padding: 20px 24px;
    }

    .fab-button {
        width: 52px;
        height: 52px;
        font-size: 22px;
        bottom: 16px;
        left: 16px;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fab-button {
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
    }

    .chat-container {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .chat-overlay {
        background: rgba(0, 0, 0, 0.7);
    }

    .chat-container {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .chat-messages {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }

    .message.bot .message-content {
        background: rgba(30, 41, 59, 0.9);
        color: #f1f5f9;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .message-input {
        background: rgba(30, 41, 59, 0.8);
        color: #f1f5f9;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .message-input::placeholder {
        color: #64748b;
    }

    .message-input:focus {
        background: rgba(30, 41, 59, 0.95);
        border-color: #667eea;
    }

    .chat-input {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .typing-dot {
        background: #94a3b8;
    }

    .waiting-message {
        background: rgba(245, 158, 11, 0.15);
        border-color: rgba(245, 158, 11, 0.4);
        color: #fbbf24;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .fab-button,
    .chat-container,
    .chat-overlay,
    .status-dot,
    .typing-dot,
    .message,
    .waiting-spinner {
        animation: none !important;
        transition: none !important;
    }

    .fab-button:hover {
        transform: none !important;
    }

    .message.streaming .message-content::after {
        animation: none !important;
    }

    .send-button.loading span {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .fab-button {
        border: 3px solid #000000;
    }

    .message.bot .message-content {
        border: 2px solid #000000;
    }

    .message.user .message-content {
        border: 2px solid #ffffff;
    }

    .chat-container {
        border: 2px solid #000000;
    }
}

/* Tour */

.tour-message .message-content {
    padding: 16px;
    max-width: none;
    width: 100%;
}

.tour-intro {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

/* Horizontal scrollable container */
.tours-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.tours-container::-webkit-scrollbar {
    height: 6px;
}

.tours-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tours-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.tours-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Individual tour card */
.tour-card {
    min-width: 280px;
    max-width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Image section with slider */
.tour-image-section {
    position: relative;
    height: 160px;
    background: #f5f5f5;
    overflow: hidden;
}

.image-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.images-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.tour-image.active {
    opacity: 1;
}

.tour-image:not(.active) {
    opacity: 0;
}

.tour-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Slider navigation buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 8px;
}

.next-btn {
    right: 8px;
}

/* Image indicator */
.image-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.tour-star-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Info section */
.tour-info-section {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tour-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-type {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.tour-address {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottom section with price and score */
.tour-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.tour-price {
    font-size: 14px;
    font-weight: 600;
    color: #2196F3;
    direction: rtl;
}

.tour-score {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 500;
    background: #E8F5E8;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Scroll buttons */
.tours-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.tours-scroll-btn:active {
    transform: scale(0.95);
}

.tours-scroll-left {
    right: 5px;
}

.tours-scroll-right {
    left: 5px;
}

/* Rooms button */
.rooms-button {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rooms-button:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.rooms-button:active {
    transform: translateY(0);
}

/* RTL support */
@media (max-width: 480px) {
    .tour-card {
        min-width: 240px;
        max-width: 240px;
    }
    
    .tour-image-section {
        height: 140px;
    }
    
    .tour-info-section {
        padding: 12px;
    }
    
    .tour-title {
        font-size: 15px;
    }
}


/* Flights */

.flights-button {
    width: 50%;
    padding: 5px;
    margin-top: 5px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-top-color: currentcolor;
    border-right-color: currentcolor;
    border-bottom-color: currentcolor;
    border-left-color: currentcolor;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flight-class-button {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flight-class-button:hover {
    background: #bbdefb;
}

.flights-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 0;
    margin-top: 12px;
}

.flight-card {
    min-width: 280px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.flight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #2196f3;
}

.flight-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.flight-info {
    display: flex;
    flex-direction: column;
}

.flight-airline {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.flight-aircraft {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.flight-route-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    direction: ltr;
}

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

.location-code {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.location-time {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.flight-arrow {
    margin: 0 16px;
    font-size: 20px;
    color: #2196f3;
}

.flight-date-section {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 12px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.flight-classes-section {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.flight-class {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.class-name {
font-size: 12px;
color: #666;
margin-bottom: 4px;
}

.class-price {
    font-weight: bold;
    color: #2e7d32;
    font-size: 14px;
}

.flight-select-button {
    width: 100%;
    padding: 10px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.flight-select-button:hover {
    background: #1976d2;
}

.flights-intro {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.flights-message {
    margin: 12px 0;
}

/* Flights scroll */
.flights-scroll-wrapper {
    position: relative;
    width: 100%;
}

.flights-scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.scroll-button:active {
    transform: translateY(-50%) scale(0.95);
}

.flights-scroll-left {
    left: 10px;
}

.flights-scroll-right {
    right: 10px;
}

.flights-container {
    position: relative;
}

/* Rooms */

.rooms-message {
    margin-bottom: 15px;
    max-width: 100%;
    overflow: hidden;
}

.rooms-intro {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.rooms-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.room-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 250px;
    max-width: 280px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.room-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.room-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.room-capacity {
    color: #7f8c8d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-rates-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rates-title {
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
    margin-bottom: 5px;
}

.rate-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.rate-card:hover {
    background: #e9ecef;
}

.rate-card.unavailable {
    background: #f5f5f5;
    opacity: 0.6;
}

.rate-info {
    flex: 1;
}

.rate-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 5px;
}

.rate-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rate-inventory,
.rate-price {
    font-size: 12px;
    color: #6c757d;
}

.rate-price {
    font-weight: 600;
    color: #27ae60;
    font-size : 16px;
}

.rate-quantity-input {
    padding: 5px 8px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #fdfdfd;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rate-select-button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 60px;
}

.rate-select-button:hover:not(:disabled) {
    background: #2980b9;
}

.rate-select-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.rooms-container::after {
    content: '';
    flex-shrink: 0;
    width: 1px;
}
.rooms-container::-webkit-scrollbar {
    height: 8px;
}

.rooms-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.rooms-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.rooms-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
@media (max-width: 768px) {
    .rooms-container {
        gap: 12px;
        padding-bottom: 8px;
    }
    
    .room-card {
        padding: 12px;
        min-width: 250px;
    }
    
    .room-title {
        font-size: 15px;
    }
    
    .rate-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .rate-select-button {
        width: 100%;
        padding: 10px;
    }
}

.rooms-submit-button {
    display: block;
    margin: 16px auto;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.rooms-submit-button:hover {
    background-color: #45a049;
    transform: scale(1.03);
}

.rooms-submit-button:active {
    background-color: #3e8e41;
    transform: scale(0.97);
}

.rooms-scroll-wrapper {
    position: relative;
    width: 100%;
}

/* rates inputs */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.quantity-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: scale(1.05);
}

.quantity-btn:active:not(:disabled) {
    transform: scale(0.95);
    background: #004085;
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 0 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rate-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.rate-card.unavailable {
    opacity: 0.6;
    background: #f9f9f9;
}

.rate-info {
    margin-bottom: 12px;
}

.rate-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    color: #333;
}

.rate-price {
    font-size: 18px;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 8px;
}

.rate-details {
    font-size: 14px;
    color: #666;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .quantity-display {
        min-width: 45px;
        height: 36px;
        font-size: 18px;
    }
    
    .rate-card {
        padding: 12px;
    }
}

/* Rooms scroll */
.rooms-scroll-button {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 18px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: .5rem;
}

.rooms-scroll-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.rooms-scroll-button:active {
    transform: translateY(-50%) scale(0.95);
}

.rooms-scroll-left {
    left: 10px;
}

.rooms-scroll-right {
    right: 10px;
}

.rooms-container {
    position: relative;
}

/* Passenger Forms */

.forms-message {
    margin: 20px 0;
}

.forms-intro {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: right;
}

.forms-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.passenger-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: auto;
}

.passenger-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: black;
    text-align: right;
    padding: 20px 25px;
    position: relative;
}

.passenger-section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.passenger-section .forms-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 25px;
    overflow-x: auto;
    padding-bottom: 15px;
    min-width: max-content;
}

.passenger-form {
    flex: 0 0 auto;
    min-width: 300px;
    margin-bottom: 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.passenger-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.passenger-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.passenger-form-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f2f6;
    position: relative;
}

.passenger-form-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.passenger-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    text-align: right;
    position: relative;
}

.form-field label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-input,
.form-select {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    text-align: right;
    direction: rtl;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.form-input:focus,
.form-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.form-input:focus + label,
.form-select:focus + label {
    color: #667eea;
}

.form-input:invalid,
.form-select:invalid {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    padding-left: 40px;
}

.forms-submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 30px;
    align-self: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.forms-submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.forms-submit-button:hover:before {
    left: 100%;
}

.forms-submit-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.forms-submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.forms-container::-webkit-scrollbar,
.forms-row::-webkit-scrollbar {
    height: 8px;
}

.forms-container::-webkit-scrollbar-track,
.forms-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.forms-container::-webkit-scrollbar-thumb,
.forms-row::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.forms-container::-webkit-scrollbar-thumb:hover,
.forms-row::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
}

@media (max-width: 768px) {
    .forms-row {
        flex-direction: column;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .passenger-form {
        min-width: unset;
        max-width: unset;
        width: 100%;
        flex: 1 1 auto;
    }
    
    .passenger-form-grid {
        grid-template-columns: 1fr;
    }
    
    .forms-container {
        gap: 20px;
        overflow-x: visible;
    }
    
    .passenger-section {
        margin: 0 10px;
    }
    
    .forms-intro {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .passenger-section .forms-row {
        padding: 15px;
    }
    
    .passenger-form {
        padding: 20px;
    }
    
    .passenger-section-title {
        font-size: 18px;
        padding: 15px 20px;
    }
}

.form-input:invalid:focus,
.form-select:invalid:focus {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.form-field {
    position: relative;
}

.form-field .error-message {
    color: #f56565;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-field .form-input:invalid ~ .error-message,
.form-field .form-select:invalid ~ .error-message {
    display: block;
}

.passenger-buttons-container {
    display: flex;
    gap: 5px;
    margin-bottom: ۲0px;
    justify-content: center;
    flex-wrap: wrap;
}

.passenger-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.passenger-type-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.passenger-type-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.passenger-type-button:hover:before {
    left: 100%;
}

.passenger-type-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.passenger-type-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.remove-form-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.remove-form-button:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.remove-form-button:active {
    transform: scale(0.95);
}

/* Tour Confirmation */

.confirmation-message {
    max-width: 100%;
}

.confirmation-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.confirmation-title {
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

.sections-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 16px 0;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.sections-container::-webkit-scrollbar {
    height: 8px;
}

.sections-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.sections-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.sections-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.confirmation-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 400px;
}

/* Flight Section */
.flight-section {
    min-width: 350px;
}

/* Rooms Section */
.rooms-section {
    min-width: 320px;
}

/* Passengers Section */
.passengers-section {
    min-width: 380px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.section-icon {
    font-size: 20px;
    margin-left: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

/* Flight Information Styles */
.flight-info {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.flight-info:last-child {
    margin-bottom: 0;
}

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

.flight-type {
    font-weight: 600;
    color: #1e40af;
    font-size: 14px;
}

.flight-number {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.flight-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    color: #1e40af;
    font-size: 16px;
}

.arrow {
    color: #64748b;
    font-size: 18px;
}

.flight-time {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 14px;
}

.flight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 4px;
}

.class {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 8px;
    padding: 16px;
    border-right: 4px solid #f59e0b;
}

.room-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.room-name {
    font-weight: 600;
    color: #92400e;
    font-size: 15px;
}

.room-rate {
    color: #b45309;
    font-size: 13px;
}

.room-capacity,
.room-quantity {
    color: #78716c;
    font-size: 12px;
}

/* Passenger Information Styles */
.passengers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.passenger-info {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 8px;
    padding: 16px;
    border-right: 4px solid #8b5cf6;
}

.passenger-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.passenger-name {
    font-weight: 600;
    color: #6b21a8;
    font-size: 15px;
}

.passenger-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.passenger-type,
.passenger-gender,
.passenger-code,
.passenger-birth {
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    color: #7c3aed;
}

.phone-section {
    margin-bottom: 5px;
    text-align: center;
    min-width: auto;
    max-width: none;
}

.price-section {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #16a34a;
    text-align: center;
    margin-bottom: 0;
    min-width: auto;
    max-width: none;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.price-label {
    color: #15803d;
}

.price-amount {
    color: #166534;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 8px;
}

/* Payment Button Styles */
.payment-button {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.payment-button:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.payment-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.tour-flight-info {
    margin: 8px 0;
    padding: 0;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.flight-info-line {
    font-size: 12px;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.flight-info-line.departure-flight {
    color: #28a745;
}

.flight-info-line.return-flight {
    color: #dc3545;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .tour-flight-info {
        font-size: 11px;
    }
    
    .flight-info-line {
        font-size: 11px;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .confirmation-container {
        padding: 16px;
    }
    
    .sections-container {
        gap: 16px;
    }
    
    .confirmation-section {
        min-width: 280px;
        padding: 16px;
    }
    
    .flight-section {
        min-width: 300px;
    }
    
    .rooms-section {
        min-width: 280px;
    }
    
    .passengers-section {
        min-width: 320px;
    }
    
    .flight-meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .total-price {
        flex-direction: column;
        gap: 8px;
    }
    
    .passengers-list {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .confirmation-section {
        min-width: 260px;
    }
    
    .flight-section,
    .rooms-section,
    .passengers-section {
        min-width: 260px;
    }
    
    .sections-container {
        gap: 12px;
    }
}

/* No flights date selection */
.date-selection-message {
    margin-bottom: 20px;
}

.date-selection-intro {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 4px solid #ff6b6b;
}

.date-selection-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.date-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-section-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    padding: 0 4px;
}

.selected-date-display {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 20px;
}

.selected-date-display.selected {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    font-weight: 500;
}

.dates-grid-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
    border-radius: 12px;
    background: #fafafa;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 8px;
}

.date-button {
    padding: 10px 8px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #ffffff;
    color: #495057;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.date-button:hover {
    border-color: #4caf50;
    background: #f1f8e9;
    color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.date-button.selected {
    border-color: #4caf50;
    background: #4caf50;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.date-button:active {
    transform: translateY(0);
}

.date-submit-button {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    background: #ccc;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.date-submit-button.enabled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.date-submit-button.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.date-submit-button.enabled:active {
    transform: translateY(0);
}

.date-submit-button.loading {
    background: #6c757d;
    cursor: not-allowed;
    position: relative;
}

.date-submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .date-selection-container {
        padding: 16px;
        gap: 20px;
    }
    
    .dates-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .date-button {
        padding: 8px 6px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .date-submit-button {
        padding: 14px 24px;
        font-size: 14px;
    }
}

.dates-grid-container::-webkit-scrollbar {
    width: 6px;
}

.dates-grid-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dates-grid-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.dates-grid-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.date-error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #c33;
    text-align: center;
}

.date-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

