/* Global Stylesheet - Core Styling */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --page-red-top: #c30204;
    --page-red-seam: #dc0504;
    --page-red-bottom: #c30204;
}

/* Body Gradient Background */
body {
    background: linear-gradient(
        to bottom,
        var(--page-red-top) 0%,
        var(--page-red-seam) 34%,
        var(--page-red-bottom) 100%
    );
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #C30204;
}

/* Layout Components */
#app-header {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


section {
    margin-bottom: 2rem;
}

footer {
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

aside {
    padding: 1rem;
}

/* Logo Styles */
.app-logo {
    max-width: 112.5px;
    height: auto;
    display: block;
}

/* Hamburger Menu */
.hamburger {
    position: absolute;
    left: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    gap: 6px;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background-color: #f0f0f0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(12px, 12px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

body.is-itinerary-view #section-banner,
body.is-itinerary-view #app-main > .section:not(#section-itinerary),
body.is-itinerary-view #app-sidebar,
body.is-itinerary-view #app-footer,
body.is-itinerary-view .payment-status-banner,
body.is-itinerary-view .bt-screen {
    display: none !important;
}

.itinerary-section {
    margin: 0;
    padding: 0 1rem 3rem;
}

.itinerary-section[hidden] {
    display: none;
}

.itinerary-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.itinerary-shell--empty {
    padding-top: 2rem;
}

.itinerary-hero,
.itinerary-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(32, 13, 13, 0.18);
}

.itinerary-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
}

.itinerary-eyebrow,
.itinerary-card__label {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #c30204;
}

.itinerary-title {
    margin: 0.25rem 0 0.6rem;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.05;
    color: #1f2230;
}

.itinerary-copy {
    max-width: 56ch;
    color: #506072;
}

.itinerary-pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.itinerary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(20, 32, 51, 0.08);
    color: #172131;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.itinerary-pill--success {
    background: rgba(23, 138, 91, 0.12);
    color: #11714c;
}

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.itinerary-card {
    padding: 1.25rem;
    color: #1d2736;
}

.itinerary-card--vehicle,
.itinerary-card--instructions,
.itinerary-card--empty {
    grid-column: 1 / -1;
}

.itinerary-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.itinerary-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(195, 2, 4, 0.1);
    color: #8f0507;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
}

.itinerary-vehicle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.itinerary-vehicle__image {
    width: min(100%, 260px);
    max-height: 150px;
    object-fit: contain;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(240, 242, 247, 0.96), rgba(255, 255, 255, 0.96));
    padding: 0.8rem;
}

.itinerary-detail-list,
.itinerary-list,
.itinerary-instructions {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.itinerary-detail-list li,
.itinerary-list__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(21, 31, 46, 0.08);
}

.itinerary-detail-list li:last-child,
.itinerary-list__item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.itinerary-detail-list strong,
.itinerary-list__item strong {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.82rem;
}

.itinerary-detail-list span,
.itinerary-list__item span {
    text-align: right;
    color: #4c5a6a;
}

.itinerary-instructions {
    list-style: decimal;
    padding-left: 1.25rem;
}

.itinerary-instructions li {
    color: #425162;
    padding-left: 0.15rem;
}

.itinerary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.itinerary-btn {
    min-height: 48px;
    padding: 0.9rem 1.15rem;
    border: none;
    border-radius: 16px;
    background: #142033;
    color: #fff;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.itinerary-btn--secondary {
    background: rgba(20, 32, 51, 0.08);
    color: #142033;
}

.payment-status-banner {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1400;
    width: min(92vw, 720px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    color: #142033;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(7, 14, 28, 0.2);
    backdrop-filter: blur(12px);
}

.payment-status-banner[data-tone="success"] {
    border: 1px solid rgba(31, 162, 106, 0.26);
}

.payment-status-banner[data-tone="warning"] {
    border: 1px solid rgba(217, 138, 32, 0.28);
}

.payment-status-banner[data-tone="error"] {
    border: 1px solid rgba(206, 69, 69, 0.3);
}

.payment-status-banner[data-tone="info"] {
    border: 1px solid rgba(33, 90, 168, 0.24);
}

.payment-status-banner__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.payment-status-banner__title {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.payment-status-banner__message {
    font-size: 0.88rem;
    line-height: 1.45;
}

.payment-status-banner__close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(20, 32, 51, 0.08);
    color: #142033;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .itinerary-section {
        padding: 0 0.75rem 2rem;
    }

    .itinerary-hero,
    .itinerary-vehicle,
    .itinerary-detail-list li,
    .itinerary-list__item {
        flex-direction: column;
    }

    .itinerary-grid {
        grid-template-columns: 1fr;
    }

    .itinerary-pill-group {
        justify-content: flex-start;
    }

    .itinerary-detail-list span,
    .itinerary-list__item span {
        text-align: left;
    }

    .payment-status-banner {
        top: 0.75rem;
        width: calc(100vw - 1rem);
        padding: 0.9rem;
        border-radius: 16px;
    }

    .payment-status-banner__message {
        font-size: 0.84rem;
    }
}
