/**
 * Ezy Travels Pro - Premium Frontend Styles
 * Better than Viator & TripAdvisor
 */

:root {
    --ezy-primary: #0066FF;
    --ezy-primary-dark: #0052CC;
    --ezy-primary-light: #E6F0FF;
    --ezy-secondary: #FF6B35;
    --ezy-secondary-dark: #E85A2A;
    --ezy-success: #00C853;
    --ezy-warning: #FFB300;
    --ezy-danger: #FF3D00;
    --ezy-dark: #1A1A2E;
    --ezy-gray-900: #212529;
    --ezy-gray-800: #343A40;
    --ezy-gray-700: #495057;
    --ezy-gray-600: #6C757D;
    --ezy-gray-500: #ADB5BD;
    --ezy-gray-400: #CED4DA;
    --ezy-gray-300: #DEE2E6;
    --ezy-gray-200: #E9ECEF;
    --ezy-gray-100: #F8F9FA;
    --ezy-white: #FFFFFF;
    --ezy-radius-sm: 8px;
    --ezy-radius: 12px;
    --ezy-radius-lg: 16px;
    --ezy-radius-xl: 24px;
    --ezy-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --ezy-shadow: 0 4px 16px rgba(0,0,0,0.08);
    --ezy-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --ezy-shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --ezy-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ezy-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
.ezy-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ezy-section {
    padding: 64px 0;
}

/* Typography */
.ezy-title {
    font-family: var(--ezy-font);
    font-weight: 700;
    color: var(--ezy-gray-900);
    line-height: 1.2;
}

.ezy-title-xl { font-size: 48px; }
.ezy-title-lg { font-size: 36px; }
.ezy-title-md { font-size: 28px; }
.ezy-title-sm { font-size: 22px; }

/* Buttons */
.ezy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--ezy-font);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--ezy-radius);
    border: none;
    cursor: pointer;
    transition: var(--ezy-transition);
    text-decoration: none;
}

.ezy-btn-primary {
    background: var(--ezy-primary);
    color: var(--ezy-white);
}

.ezy-btn-primary:hover {
    background: var(--ezy-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--ezy-shadow);
}

.ezy-btn-secondary {
    background: var(--ezy-secondary);
    color: var(--ezy-white);
}

.ezy-btn-secondary:hover {
    background: var(--ezy-secondary-dark);
    transform: translateY(-2px);
}

.ezy-btn-outline {
    background: transparent;
    border: 2px solid var(--ezy-primary);
    color: var(--ezy-primary);
}

.ezy-btn-outline:hover {
    background: var(--ezy-primary);
    color: var(--ezy-white);
}

.ezy-btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.ezy-btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.ezy-btn-block {
    width: 100%;
}

/* Cards */
.ezy-card {
    background: var(--ezy-white);
    border-radius: var(--ezy-radius-lg);
    overflow: hidden;
    box-shadow: var(--ezy-shadow-sm);
    transition: var(--ezy-transition);
}

.ezy-card:hover {
    box-shadow: var(--ezy-shadow-lg);
    transform: translateY(-4px);
}

/* Tour Card */
.ezy-tour-card {
    position: relative;
    background: var(--ezy-white);
    border-radius: var(--ezy-radius-lg);
    overflow: hidden;
    box-shadow: var(--ezy-shadow-sm);
    transition: var(--ezy-transition);
}

.ezy-tour-card:hover {
    box-shadow: var(--ezy-shadow-lg);
    transform: translateY(-6px);
}

.ezy-tour-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ezy-tour-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ezy-transition);
}

.ezy-tour-card:hover .ezy-tour-card__image img {
    transform: scale(1.08);
}

.ezy-tour-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ezy-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.ezy-badge-featured {
    background: var(--ezy-secondary);
    color: var(--ezy-white);
}

.ezy-badge-bestseller {
    background: var(--ezy-success);
    color: var(--ezy-white);
}

.ezy-badge-new {
    background: var(--ezy-primary);
    color: var(--ezy-white);
}

.ezy-tour-card__wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--ezy-transition);
    backdrop-filter: blur(8px);
}

.ezy-tour-card__wishlist:hover {
    background: var(--ezy-danger);
    color: var(--ezy-white);
    transform: scale(1.1);
}

.ezy-tour-card__wishlist.active {
    background: var(--ezy-danger);
    color: var(--ezy-white);
}

.ezy-tour-card__content {
    padding: 20px;
}

.ezy-tour-card__category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ezy-primary);
    margin-bottom: 8px;
}

.ezy-tour-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ezy-gray-900);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ezy-tour-card__title a {
    color: inherit;
    text-decoration: none;
}

.ezy-tour-card__title a:hover {
    color: var(--ezy-primary);
}

.ezy-tour-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--ezy-gray-600);
}

.ezy-tour-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ezy-tour-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ezy-rating-stars {
    display: flex;
    gap: 2px;
    color: var(--ezy-warning);
}

.ezy-rating-value {
    font-weight: 700;
    color: var(--ezy-gray-900);
}

.ezy-rating-count {
    color: var(--ezy-gray-600);
}

.ezy-tour-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--ezy-gray-200);
}

.ezy-tour-card__price {
    display: flex;
    flex-direction: column;
}

.ezy-tour-card__price-label {
    font-size: 12px;
    color: var(--ezy-gray-600);
}

.ezy-tour-card__price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ezy-gray-900);
}

.ezy-tour-card__price-value small {
    font-size: 14px;
    font-weight: 400;
    color: var(--ezy-gray-600);
}

.ezy-tour-card__features {
    display: flex;
    gap: 8px;
}

.ezy-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ezy-gray-100);
    border-radius: 8px;
    color: var(--ezy-gray-600);
    font-size: 14px;
}

.ezy-feature-icon[title]:hover {
    background: var(--ezy-primary-light);
    color: var(--ezy-primary);
}

/* Tours Grid */
.ezy-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* Search Widget */
.ezy-search-widget {
    background: var(--ezy-white);
    border-radius: var(--ezy-radius-xl);
    padding: 24px;
    box-shadow: var(--ezy-shadow-lg);
}

.ezy-search-widget--horizontal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ezy-search-widget--horizontal .ezy-search-field {
    flex: 1;
}

.ezy-search-field {
    position: relative;
}

.ezy-search-field__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ezy-gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ezy-search-field__input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--ezy-font);
    font-size: 16px;
    border: 2px solid var(--ezy-gray-200);
    border-radius: var(--ezy-radius);
    transition: var(--ezy-transition);
    background: var(--ezy-gray-100);
}

.ezy-search-field__input:focus {
    outline: none;
    border-color: var(--ezy-primary);
    background: var(--ezy-white);
    box-shadow: 0 0 0 4px var(--ezy-primary-light);
}

/* Transfer Booking Form */
.ezy-transfer-form {
    background: var(--ezy-white);
    border-radius: var(--ezy-radius-xl);
    padding: 40px;
    box-shadow: var(--ezy-shadow-lg);
}

.ezy-transfer-form__header {
    text-align: center;
    margin-bottom: 40px;
}

.ezy-transfer-form__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ezy-gray-900);
    margin-bottom: 8px;
}

.ezy-transfer-form__subtitle {
    font-size: 16px;
    color: var(--ezy-gray-600);
}

.ezy-transfer-form__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--ezy-gray-100);
    padding: 6px;
    border-radius: var(--ezy-radius);
}

.ezy-transfer-form__tab {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--ezy-font);
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: var(--ezy-radius-sm);
    cursor: pointer;
    transition: var(--ezy-transition);
    color: var(--ezy-gray-600);
}

.ezy-transfer-form__tab.active,
.ezy-transfer-form__tab:hover {
    background: var(--ezy-white);
    color: var(--ezy-gray-900);
    box-shadow: var(--ezy-shadow-sm);
}

.ezy-transfer-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ezy-transfer-form__field--full {
    grid-column: span 2;
}

.ezy-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ezy-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ezy-gray-700);
}

.ezy-form-input {
    padding: 16px 20px;
    font-family: var(--ezy-font);
    font-size: 16px;
    border: 2px solid var(--ezy-gray-200);
    border-radius: var(--ezy-radius);
    transition: var(--ezy-transition);
}

.ezy-form-input:focus {
    outline: none;
    border-color: var(--ezy-primary);
    box-shadow: 0 0 0 4px var(--ezy-primary-light);
}

/* Vehicle Selection */
.ezy-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.ezy-vehicle-card {
    position: relative;
    background: var(--ezy-white);
    border: 2px solid var(--ezy-gray-200);
    border-radius: var(--ezy-radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--ezy-transition);
}

.ezy-vehicle-card:hover,
.ezy-vehicle-card.selected {
    border-color: var(--ezy-primary);
    box-shadow: var(--ezy-shadow);
}

.ezy-vehicle-card.selected {
    background: var(--ezy-primary-light);
}

.ezy-vehicle-card__image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 16px;
}

.ezy-vehicle-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ezy-gray-900);
    margin-bottom: 8px;
}

.ezy-vehicle-card__capacity {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--ezy-gray-600);
    margin-bottom: 16px;
}

.ezy-vehicle-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--ezy-primary);
}

/* Booking Summary */
.ezy-booking-summary {
    background: var(--ezy-gray-100);
    border-radius: var(--ezy-radius-lg);
    padding: 32px;
    position: sticky;
    top: 24px;
}

.ezy-booking-summary__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ezy-gray-900);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ezy-gray-300);
}

.ezy-booking-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.ezy-booking-summary__row--total {
    font-size: 20px;
    font-weight: 700;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid var(--ezy-gray-300);
}

/* Reviews Section */
.ezy-reviews {
    padding: 40px 0;
}

.ezy-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.ezy-reviews__summary {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ezy-reviews__score {
    text-align: center;
}

.ezy-reviews__score-value {
    font-size: 64px;
    font-weight: 700;
    color: var(--ezy-gray-900);
    line-height: 1;
}

.ezy-reviews__score-label {
    font-size: 14px;
    color: var(--ezy-gray-600);
    margin-top: 8px;
}

.ezy-review-card {
    background: var(--ezy-white);
    border-radius: var(--ezy-radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--ezy-shadow-sm);
}

.ezy-review-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ezy-review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ezy-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ezy-primary);
}

.ezy-review-card__meta {
    flex: 1;
}

.ezy-review-card__author {
    font-weight: 600;
    color: var(--ezy-gray-900);
}

.ezy-review-card__date {
    font-size: 14px;
    color: var(--ezy-gray-600);
}

.ezy-review-card__rating {
    display: flex;
    gap: 4px;
    color: var(--ezy-warning);
}

.ezy-review-card__content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ezy-gray-700);
}

/* Customer Dashboard */
.ezy-dashboard {
    padding: 40px 0;
}

.ezy-dashboard__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--ezy-gray-200);
}

.ezy-dashboard__tab {
    padding: 16px 24px;
    font-family: var(--ezy-font);
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ezy-gray-600);
    position: relative;
    transition: var(--ezy-transition);
}

.ezy-dashboard__tab.active {
    color: var(--ezy-primary);
}

.ezy-dashboard__tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ezy-primary);
}

/* Booking Card in Dashboard */
.ezy-booking-card {
    background: var(--ezy-white);
    border-radius: var(--ezy-radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--ezy-shadow-sm);
    display: flex;
    gap: 24px;
    transition: var(--ezy-transition);
}

.ezy-booking-card:hover {
    box-shadow: var(--ezy-shadow);
}

.ezy-booking-card__image {
    width: 160px;
    height: 120px;
    border-radius: var(--ezy-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.ezy-booking-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ezy-booking-card__content {
    flex: 1;
}

.ezy-booking-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ezy-gray-900);
    margin-bottom: 8px;
}

.ezy-booking-card__details {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--ezy-gray-600);
    margin-bottom: 12px;
}

.ezy-booking-card__status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ezy-booking-card__status--confirmed {
    background: var(--ezy-success);
    color: var(--ezy-white);
}

.ezy-booking-card__status--pending {
    background: var(--ezy-warning);
    color: var(--ezy-dark);
}

.ezy-booking-card__status--cancelled {
    background: var(--ezy-danger);
    color: var(--ezy-white);
}

.ezy-booking-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .ezy-tours-grid {
        grid-template-columns: 1fr;
    }
    
    .ezy-transfer-form__grid {
        grid-template-columns: 1fr;
    }
    
    .ezy-transfer-form__field--full {
        grid-column: span 1;
    }
    
    .ezy-search-widget--horizontal {
        flex-direction: column;
    }
    
    .ezy-booking-card {
        flex-direction: column;
    }
    
    .ezy-booking-card__image {
        width: 100%;
        height: 180px;
    }
    
    .ezy-title-xl { font-size: 32px; }
    .ezy-title-lg { font-size: 28px; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ezy-animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading States */
.ezy-loading {
    position: relative;
    pointer-events: none;
}

.ezy-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ezy-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--ezy-gray-200);
    border-top-color: var(--ezy-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notices */
.ezy-notice {
    padding: 16px 24px;
    border-radius: var(--ezy-radius);
    margin-bottom: 16px;
}

.ezy-notice-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid var(--ezy-success);
}

.ezy-notice-warning {
    background: #FFF8E1;
    color: #F57C00;
    border-left: 4px solid var(--ezy-warning);
}

.ezy-notice-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid var(--ezy-danger);
}

.ezy-notice-info {
    background: var(--ezy-primary-light);
    color: var(--ezy-primary-dark);
    border-left: 4px solid var(--ezy-primary);
}
