/**
 * MuscatHeights Booking System - Public Styles
 *
 * @package    MuscatHeights_Booking
 * @subpackage MuscatHeights_Booking/public/css
 * @author     Atabak Rafati <atabakrafati@gmail.com>
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.muscatheights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.muscatheights-section {
    padding: 3rem 0;
}

.muscatheights-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.muscatheights-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.muscatheights-section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Search Form Styles
   ========================================================================== */

.muscatheights-search-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.muscatheights-search-form .form-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.muscatheights-search-form .form-control,
.muscatheights-search-form .form-select {
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.muscatheights-search-form .form-control:focus,
.muscatheights-search-form .form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: white;
}

.muscatheights-search-form .btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.muscatheights-search-form .btn-primary:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #ff6f00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

/* ==========================================================================
   Car Listing Styles
   ========================================================================== */

.muscatheights-car-listing {
    padding: 2rem 0;
}

.muscatheights-car-listing .filters-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.muscatheights-car-listing .results-info {
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: 500;
}

.car-item-grid,
.car-item-list {
    transition: transform 0.3s ease;
}

.car-item-grid:hover,
.car-item-list:hover {
    transform: translateY(-5px);
}

.car-item-grid .card,
.car-item-list .card {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.car-item-grid:hover .card,
.car-item-list:hover .card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.car-image {
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-item-grid:hover .car-image img,
.car-item-list:hover .car-image img {
    transform: scale(1.1);
}

.placeholder-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #000;
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
    z-index: 2;
}

.car-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.car-category {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.car-features {
    margin: 1rem 0;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.feature-item i {
    color: #0d6efd;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.pricing {
    text-align: center;
    margin: 1rem 0;
}

.pricing .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #198754;
    line-height: 1;
}

.pricing .currency,
.pricing .period {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}

.car-actions .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.car-actions .btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
}

.car-actions .btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.car-actions .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.car-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

/* ==========================================================================
   Booking Form Styles
   ========================================================================== */

.muscatheights-booking-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
}

.booking-progress {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 2rem;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #e9ecef 0%, #e9ecef 100%);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: #f8f9fa;
    padding: 0 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 3px solid #f8f9fa;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
}

.step.completed .step-label {
    color: #198754;
}

.booking-step {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.step-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.step-header h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.car-summary .card,
.price-summary .card,
.booking-summary .card {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.car-summary .card-header,
.price-summary .card-header,
.booking-summary .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1rem 1.5rem;
}

.extra-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.extra-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1);
}

.extra-item.selected {
    background: #e7f3ff;
    border-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.extra-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #198754;
}

.step-actions {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
    margin-top: 2rem;
}

.step-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.step-actions .btn-primary,
.step-actions .btn-success {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.step-actions .btn-primary:hover,
.step-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

.step-actions .btn-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
}

.step-actions .btn-success:hover {
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.6);
}

/* ==========================================================================
   Featured Cars Styles
   ========================================================================== */

.muscatheights-featured-cars {
    padding: 2rem 0;
}

.featured-car-item .card {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-car-item .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: #0d6efd;
}

.featured-car-item .car-image-container {
    position: relative;
    overflow: hidden;
}

.featured-car-item .price-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95) 0%, rgba(11, 94, 215, 0.95) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    z-index: 2;
}

.featured-car-item .car-features .feature {
    text-align: center;
    padding: 0.75rem 0.5rem;
    transition: all 0.3s ease;
}

.featured-car-item .car-features .feature:hover {
    transform: scale(1.1);
}

.featured-car-item .car-features .feature i {
    font-size: 1.5rem;
    color: #0d6efd;
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: #2c3e50;
}

.modal-body {
    padding: 2rem;
}

.car-specs .spec-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.car-specs .spec-item:hover {
    background: #e7f3ff;
    transform: translateY(-3px);
}

.car-specs .spec-item i {
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.pricing-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.price-display {
    margin-bottom: 1.5rem;
}

.price-display .amount {
    font-weight: 700;
    color: #198754;
}

.price-display .currency,
.price-display .period {
    color: #6c757d;
    font-weight: 500;
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */

.pagination {
    margin: 2rem 0;
}

.page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    border: 2px solid #e9ecef;
    color: #0d6efd;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .muscatheights-section-title {
        font-size: 2rem;
    }
    
    .muscatheights-search-form {
        padding: 1.5rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
        margin: 0;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        flex: 1 1 45%;
        background: transparent;
    }
    
    .booking-step {
        padding: 1rem;
    }
    
    .step-actions {
        text-align: center;
    }
    
    .step-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .car-item-list .row {
        flex-direction: column;
    }
    
    .featured-car-item .card:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .muscatheights-section {
        padding: 2rem 0;
    }
    
    .muscatheights-section-title {
        font-size: 1.75rem;
    }
    
    .car-name {
        font-size: 1.1rem;
    }
    
    .pricing .price {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .muscatheights-booking-form .step-actions,
    .car-actions,
    .filters-section {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}