/* Mobile Booking Widget Styles */

.mobile-booking-widget {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    max-height: 80vh;
    overflow: hidden;
}

.mobile-booking-widget.show {
    transform: translateY(0);
}

.mobile-booking-widget.expanded {
    transform: translateY(0);
}

.mobile-booking-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Price Section */
.mobile-price-section {
    flex: 1;
    min-width: 0;
}

.mobile-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

.mobile-current-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a4b89;
    line-height: 1;
}

.mobile-per-person {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.mobile-discount-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.mobile-discount-badge {
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Action Buttons */
.mobile-action-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-book-btn,
.mobile-enquiry-btn {
  padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.mobile-book-btn.primary {
    background: #1a4b89;
    color: white;
    min-width: 100px;
    justify-content: center;
}

.mobile-book-btn.primary:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.mobile-enquiry-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.mobile-enquiry-btn.secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Expand Button */
.mobile-expand-btn {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 24px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-expand-btn:hover {
    background: #f8f9fa;
}

.mobile-expand-btn i {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.mobile-booking-widget.expanded .mobile-expand-btn i {
    transform: rotate(180deg);
}

/* Expanded Content */
.mobile-booking-expanded {
    background: #f8f9fa;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-booking-widget.expanded .mobile-booking-expanded {
    max-height: 300px;
    padding: 16px 20px;
}

.mobile-expanded-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
}

.mobile-booking-widget.expanded .mobile-expanded-content {
    opacity: 1;
    transform: translateY(0);
}

.mobile-features {
    margin-bottom: 16px;
}

.mobile-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #495057;
}

.mobile-feature-item i {
    color: #28a745;
    font-size: 12px;
    width: 16px;
}

.mobile-contact-options {
    display: flex;
    gap: 12px;
}

.mobile-contact-btn {
    flex: 1;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.mobile-contact-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

/* Enquiry Modal */
.mobile-enquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-enquiry-modal.show {
    display: flex;
    align-items: flex-end;
    opacity: 1;
}

.mobile-enquiry-content {
    background: #fff;
    width: 100%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-enquiry-modal.show .mobile-enquiry-content {
    transform: translateY(0);
}

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

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

.mobile-enquiry-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
}

.mobile-enquiry-body {
    padding: 20px;
}

.mobile-enquiry-body p {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.mobile-enquiry-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-enquiry-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-enquiry-option:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
}

.mobile-enquiry-option i {
    width: 20px;
    text-align: center;
    color: #1a4b89;
}

/* Responsive Behavior */
@media (max-width: 767px) {
    .mobile-booking-widget {
        display: block;
    }
    
    /* Hide desktop sidebar on mobile */
    .tour-sidebar {
        display: none;
    }
    
    /* Add bottom padding to prevent content overlap */
    .tour-page {
        padding-bottom: 100px;
    }
}

@media (min-width: 768px) {
    .mobile-booking-widget {
        display: none !important;
    }
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-booking-widget.animate-in {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Prevent body scroll when modal is open */
body.mobile-enquiry-open {
    overflow: hidden;
}

/* Safe area for devices with notches */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-booking-widget {
        padding-bottom: env(safe-area-inset-bottom);
    }
}