/* ════════════════════════════════════════════════════════════════════
   AREA PAGE composition styles (AREA-PAGE-COMPOSITION-DESIGN-2026-12-02
   §5.4). Moved verbatim from the retired monolith's inline <style> block
   (L987-1219) into a static, cacheable file loaded only by the composed
   area view. Variant partials keep their styles scoped INSIDE the variant
   file — zero bytes on the shared bundles.
   ════════════════════════════════════════════════════════════════════ */

.area-section {
    overflow: hidden;
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-button {
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.bookingForm .form-control {
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.bookingForm .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    transition: all 0.3s ease;
}

.bookingForm .btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
}

@media (max-width: 991px) {
    .area-section {
        padding: 2rem 0 !important;
    }

    .display-5 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 767px) {
    .pulse-button {
        animation: none;
    }

    .bookingForm .btn-success {
        padding: 0.75rem 1rem !important;
    }

    .display-5 {
        font-size: 2rem !important;
    }
}

@media (max-width: 575px) {
    .display-5 {
        font-size: 1.75rem !important;
    }

    .fs-3 {
        font-size: 1.5rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

.area-rich-text {
    line-height: 1.8;
}

.area-rich-text p {
    margin-bottom: 1rem;
}

.area-rich-text h2,
.area-rich-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.bookingForm button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bookingForm button[type="submit"]:disabled::after {
    content: '';
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    display: inline-block;
}

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

.accordion-button:focus-visible {
    outline: 3px solid #28a745;
    outline-offset: -3px;
}

.area-content-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.area-content-section .card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

.rush-hour-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rush-hour-section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.bg-sunrise {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.bg-sunset {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.traffic-map-container {
    position: relative;
}

.traffic-map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0,0,0,0.05);
    border-radius: 0.375rem;
    pointer-events: none;
}

.nearby-areas-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.nearby-areas-section .card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

.fa-shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}
