:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.78);
    --text: #172033;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #4f46e5;
    --brand-dark: #3730a3;
    --accent: #06b6d4;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
    --radius: 24px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 28rem),
        var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

.site-shell {
    width: min(1120px, 100% - 28px);
    margin: 18px auto;
}

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    color: #fff;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(6, 182, 212, 0.82)),
        linear-gradient(45deg, #0f172a, #1e293b);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8rem -10rem auto;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.hero > * { position: relative; z-index: 1; }
.hero h1 { margin: 0.15rem 0 0.5rem; font-size: clamp(2.1rem, 7vw, 4.9rem); line-height: 0.95; letter-spacing: -0.06em; }
.hero p { margin: 0; max-width: 42rem; color: rgba(255, 255, 255, 0.86); }

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.78); }

.user-pill {
    min-width: 170px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(14px);
}
.user-pill span, .user-pill strong { display: block; }
.user-pill span { color: rgba(255, 255, 255, 0.86); font-size: 0.86rem; }

.top-nav {
    position: sticky;
    top: 0.65rem;
    z-index: 20;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    margin: 0.9rem 0;
    padding: 0.45rem;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.top-nav a {
    flex: 0 0 auto;
    padding: 0.72rem 1rem;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.93rem;
    border-radius: 999px;
}
.top-nav a.active, .top-nav a:hover { color: var(--text); background: #eef2ff; }
.top-nav .nav-cta, .top-nav .nav-cta.active { color: #fff; background: var(--brand); }

.content { display: grid; gap: 1rem; }

.card {
    padding: clamp(1rem, 3vw, 1.6rem);
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius);
    box-shadow: 0 14px 45px rgba(15, 23, 42, 0.07);
}
.card h2, .card h3 { margin-top: 0; letter-spacing: -0.025em; }
.card p:last-child { margin-bottom: 0; }
.glass-card { background: var(--panel-soft); backdrop-filter: blur(18px); }
.narrow { max-width: 620px; margin-inline: auto; width: 100%; }

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); }
.hero-grid { align-items: stretch; }
.image-card { padding: 0; overflow: hidden; min-height: 300px; }
.image-card img { width: 100%; height: 100%; object-fit: cover; }

.action-row, .inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
    appearance: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0.78rem 1.08rem;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.20);
}
.btn:hover { transform: translateY(-1px); color: #fff !important; }
.btn-soft { color: var(--brand) !important; background: #eef2ff; box-shadow: none; }
.btn-danger { background: var(--danger); box-shadow: 0 12px 24px rgba(220, 38, 38, 0.16); }
.link-button { border: 0; background: none; color: var(--brand); font-weight: 800; cursor: pointer; padding: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-stack { display: grid; gap: 1rem; }
.span-2, .form-actions { grid-column: 1 / -1; }
label { display: grid; gap: 0.42rem; color: var(--text); font-weight: 760; }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.8rem 0.95rem;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    font: inherit;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(79, 70, 229, 0.16); border-color: var(--brand); background: #fff; }
.hint, .small-text { color: var(--muted); font-size: 0.86rem; font-weight: 500; }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); }

.alert { padding: 0.95rem 1rem; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.alert-success { color: #065f46; background: #ecfdf5; border-color: #bbf7d0; }
.alert-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.alert-danger { color: #991b1b; background: #fef2f2; border-color: #fecaca; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.045em; }

.trip-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.trip-card { padding: 0; overflow: hidden; }
.trip-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e2e8f0; }
.trip-card > div { padding: 1rem; }
.trip-card h3 { margin: 0.45rem 0; font-size: 1.25rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.88rem; }
.status { display: inline-flex; padding: 0.28rem 0.64rem; border-radius: 999px; font-weight: 850; font-size: 0.78rem; }
.status-open { color: #065f46; background: #d1fae5; }
.status-closed { color: #475569; background: #e2e8f0; }

.trip-detail h2 { font-size: clamp(2rem, 7vw, 4rem); line-height: 0.98; margin: 0.6rem 0; }
.cover-image { width: 100%; max-height: 530px; object-fit: cover; border-radius: 20px; margin: 1rem 0; background: #e2e8f0; }
.prose { white-space: normal; line-height: 1.65; color: #334155; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.8rem; margin: 1.2rem 0 0; }
.detail-grid div { padding: 1rem; border-radius: 18px; background: #f8fafc; border: 1px solid var(--line); }
dt { color: var(--muted); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
dd { margin: 0.28rem 0 0; font-weight: 800; }

.contact-card { display: flex; gap: 1rem; align-items: center; }
.avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); font-size: 1.4rem; font-weight: 900; }
.responsive-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 0.8rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

.profile-summary { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: #f8fafc; border: 1px solid var(--line); }
.footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); padding: 2rem 0.4rem; font-size: 0.9rem; }

@media (max-width: 760px) {
    .site-shell { width: min(100% - 16px, 1120px); margin: 8px auto; }
    .hero { border-radius: 26px; align-items: flex-start; flex-direction: column; }
    .user-pill { width: 100%; border-radius: 20px; }
    .top-nav { border-radius: 22px; }
    .grid.two, .form-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: stretch; flex-direction: column; }
    .card { border-radius: 22px; }
    .image-card { min-height: 220px; }
    .span-2 { grid-column: auto; }
    .btn { width: 100%; }
    .inline-form .btn, .inline-form .link-button { width: auto; }
    .contact-card { align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
    .btn, .top-nav a, .card { transition: 160ms ease; }
    .card:hover { transform: translateY(-1px); }
}
