:root {
    --ink: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --card: #ffffff;
    --soft: #f8fafc;
    --brand: #2563eb;
    --brand-dark: #172554;
    --accent: #14b8a6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f8fb;
    color: var(--ink);
}

.navbar {
    padding: 1.1rem 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.modern-card {
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.search-panel {
    margin-top: -84px;
    position: relative;
    z-index: 3;
}

.search-card {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
}

.form-control,
.input-group-text,
.btn {
    min-height: 54px;
}

.form-control {
    border-color: #d0d5dd;
}

.input-group-text {
    border-color: #d0d5dd;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    font-weight: 700;
}

    .btn-primary:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
    }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 999px;
    padding: .45rem .8rem;
    font-size: .85rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 800;
    color: var(--brand);
}

.helper {
    color: var(--muted);
}

.results-wrap {
    margin-top: 3rem;
}

.avatar {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 2rem;
}

.accommodation-box {
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 1.2rem;
}

.label {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-bottom: .15rem;
}

.accommodation-box strong {
    display: block;
}

.table thead th {
    background: #f8fafc;
    color: #475467;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.d-none {
    display: none !important;
}

/* Updated Responsive Mobile Layout */
@media (max-width: 767px) {
    .search-panel {
        margin-top: -55px;
    }

    .display-title {
        font-size: 2.4rem !important;
    }

    .hero {
        padding-bottom: 7rem !important;
    }

    .input-group {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .input-group-text {
        display: none !important; /* Safely hides search glass icon to save mobile screen real estate */
    }

    .input-group > .form-control,
    .input-group > .btn {
        width: 100% !important;
        border-radius: 14px !important;
        margin: 0;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(20, 184, 166, .35), transparent 34%), linear-gradient(135deg, #071637 0%, #0f2b6c 55%, #2563eb 100%);
    color: #fff;
    padding-bottom: 9.5rem;
}

    /* Added pointer-events: none to prevent touch interception */
    .hero::after {
        content: "";
        position: absolute;
        inset: auto -10% -45% -10%;
        height: 58%;
        background: rgba(255, 255, 255, .08);
        filter: blur(35px);
        border-radius: 50% 50% 0 0;
        pointer-events: none;
    }

.display-title {
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.06em;
}

.hero-copy {
    max-width: 690px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.15rem;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 1rem 1.1rem;
    color: #fff;
}

    .stat-card b {
        display: block;
        font-size: 1.35rem;
    }

.portal-logo-large {
    height: 70px;
    width: auto;
    background: white;
    border-radius: 12px;
    padding: 6px;
}

/* ==========================================
   Delegate Itinerary Timeline
   ========================================== */
.itinerary-list {
    position: relative;
}

.itinerary-item {
    display: grid;
    grid-template-columns: 90px 42px 1fr;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 1.25rem;
}

    .itinerary-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 110px;
        top: 42px;
        bottom: 0;
        width: 2px;
        background: #e9ecef;
    }

.itinerary-time {
    text-align: right;
    padding-top: 0.35rem;
}

.time-main {
    font-weight: 700;
    color: #212529;
    line-height: 1.1;
}

.time-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.itinerary-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.itinerary-content {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

@media (max-width: 576px) {
    .itinerary-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-left: 0;
    }

        .itinerary-item::after {
            display: none;
        }

    .itinerary-time {
        text-align: left;
        display: flex;
        gap: 0.5rem;
        align-items: baseline;
    }

    .itinerary-dot {
        display: none;
    }
}

.rate-event-button {
    border-radius: 999px;
    min-height: 42px;
    padding: 0.55rem 1rem;
}

.rate-event-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(7, 22, 55, 0.24);
}

.rate-event-modal-header {
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, .38), transparent 38%),
        linear-gradient(135deg, #071637 0%, #0f2b6c 58%, #2563eb 100%);
    border: 0;
    color: #fff;
    padding: 1.35rem 1.5rem;
}

.rate-event-kicker {
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.itinerary-details {
    min-width: 0;
}

.event-rating-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
}

.event-rating-display {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.event-rating-label {
    color: #344054;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-rating-stars,
.rating-picker {
    color: #f59e0b;
}

.event-rating-score {
    color: #344054;
    font-weight: 700;
}

.event-rating-empty {
    color: var(--muted);
    font-style: italic;
}

.rating-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
    justify-content: flex-end;
}

.rating-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-picker label {
    color: #d0d5dd;
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.rating-picker label:hover,
.rating-picker label:hover ~ label,
.rating-picker input:checked ~ label {
    color: #f59e0b;
}

.rating-picker input:focus-visible + label {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.rating-picker label:hover {
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .event-rating-row {
        align-items: stretch;
        flex-direction: column;
    }

    .rate-event-button {
        align-self: flex-end;
    }
}
