/* ========================================
   1-PARKING — MAIN STYLESHEET
   Merged: temp/style.css + booking engine + book-form.css
   ======================================== */

/* ==================== FONTS ==================== */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* ==================== BRAND COLORS (CSS VARS) ==================== */
:root {
    --color-green: #A7D23C;
    --color-dark-green: #8BC34A;
    --color-blue: #0B77BC;
    --color-dark-blue: #20438F;
    --color-primary: #0B77BC;
    --color-primary-dark: #20438F;
    --color-primary-light: #dbeafe;
    --color-accent: #A7D23C;
    --transition: 280ms ease;
}

::selection {
    background-color: var(--color-blue);
    color: #fff;
}

/* ==================== GRADIENT BACKGROUNDS ==================== */
.gradient-bg {
    background: linear-gradient(to bottom, #0B77BC 0%, #20438F 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #A7D23C 0%, #8BC34A 100%);
}

/* ==================== NAVIGATION - TAB STYLE ==================== */
.tab-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.tab-link:hover {
    background-color: #f3f4f6;
    color: #0B77BC;
}

.tab-link.active {
    background-color: #0B77BC;
    color: white !important;
    position: relative;
    font-weight: 600;
}

/* ==================== STICKY HEADER ==================== */
.header-sticky {
    transition: box-shadow 0.3s ease;
}

.header-sticky.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ==================== BUTTONS ==================== */
.btn-primary-custom {
    background: linear-gradient(135deg, #A7D23C 0%, #8BC34A 100%);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 210, 60, 0.4);
}

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ==================== FAQ ACCORDION ==================== */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

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

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1.25rem;
}

.faq-question:hover {
    background: rgba(255,255,255,0.05);
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    color: #A7D23C;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 0 1.25rem 1.25rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Stagger delay utility */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ==================== SHADOW UTILITIES ==================== */
.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* ========================================================
   BOOKING ENGINE — Progress Bar
   ======================================================== */
.be-progress {
    margin-bottom: 2rem;
}

.be-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.be-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    min-width: 4.5rem;
}

.be-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.be-step-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

/* States */
.be-step-upcoming .be-step-number {
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
}

.be-step-upcoming .be-step-label {
    color: #94a3b8;
}

.be-step-active .be-step-number {
    background: var(--color-blue);
    color: #fff;
    border: 2px solid var(--color-blue);
    box-shadow: 0 0 0 4px rgba(11, 119, 188, 0.15);
}

.be-step-active .be-step-label {
    color: var(--color-blue);
}

.be-step-done .be-step-number {
    background: #dcfce7;
    color: #16a34a;
    border: 2px solid #bbf7d0;
}

.be-step-done .be-step-label {
    color: #16a34a;
}

/* Progress lines */
.be-progress-line {
    flex: 1;
    height: 2px;
    max-width: 5rem;
    transition: background var(--transition);
    margin: 0 0.25rem;
    align-self: flex-start;
    margin-top: 1.25rem;
}

.be-line-upcoming {
    background: #e2e8f0;
}

.be-line-done {
    background: #86efac;
}

/* ========================================================
   BOOKING ENGINE — Step Content
   ======================================================== */
.be-steps-wrapper {
    overflow: hidden;
    position: relative;
}

.be-step-content {
    padding: 2px;
    transition: transform 280ms ease, opacity 280ms ease;
    will-change: transform, opacity;
}

.be-step-content[data-loading]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ========================================================
   BOOKING FORM ELEMENTS
   ======================================================== */
select::-ms-expand {
    display: none;
}

select.appearance-none {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: opacity(0.5);
    cursor: pointer;
}

input[data-role="date"] {
    cursor: pointer;
}

/* Button animations for booking form */
#reserva_btn {
    transition: all 0.3s ease;
}

#reserva_btn:hover {
    transform: translateY(-2px);
}

#reserva_btn:active {
    transform: translateY(0);
}

#reserva_btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#reserva_btn:disabled:hover {
    transform: none;
}

/* Form group transitions */
.form-group input,
.form-group select {
    transition: all 0.2s ease;
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus) {
    border-color: #9ca3af;
}

/* Form icon styling */
.form-icon {
    pointer-events: none;
    transition: color 0.2s ease;
}

input:focus ~ .form-icon,
select:focus ~ .form-icon {
    color: #0B77BC;
}

/* Validation states */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group input.success,
.form-group select.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Booking form container */
.booking-form-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================================
   jQuery UI Datepicker Styling (brand colors)
   ======================================================== */
.ui-datepicker {
    background: white;
    border: 2px solid #0B77BC;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.ui-datepicker-header {
    background: linear-gradient(135deg, #0B77BC 0%, #20438F 100%);
    color: white;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.ui-datepicker-title {
    color: white;
    font-weight: 600;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    color: white;
}

.ui-state-default {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    text-align: center;
    color: #374151;
}

.ui-state-default:hover {
    background: #A7D23C;
    color: #1f2937;
    border-color: #A7D23C;
}

.ui-state-active {
    background: #0B77BC !important;
    color: white !important;
    border-color: #0B77BC !important;
    font-weight: bold;
}

.ui-state-highlight {
    background: #A7D23C;
    color: #1f2937;
    border-color: #8BC34A;
}

.ui-datepicker-today .ui-state-default {
    background: #dbeafe;
    border-color: #0B77BC;
    font-weight: 600;
}

.ui-state-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========================================================
   Line Clamp (for older browsers)
   ======================================================== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 768px) {
    .tab-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .form-group {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .be-progress-step {
        min-width: 3.5rem;
    }

    .be-step-label {
        font-size: 0.5625rem;
    }

    .be-step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .be-progress-line {
        margin-top: 1rem;
    }

    .ui-datepicker {
        font-size: 14px;
    }

    #reserva_btn {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

/* ========================================================
   PRINT STYLES
   ======================================================== */
@media print {
    nav, header, .be-progress, button, footer,
    .bg-gradient-to-r, .header-sticky {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    main {
        padding-top: 0 !important;
    }

    .be-step-content {
        transform: none !important;
        opacity: 1 !important;
    }

    .booking-form-container {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
