@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:opsz,wght@5..120,600;5..120,700&display=swap');

:root {
    --gg-ink: #15251f;
    --gg-forest: #174d3d;
    --gg-moss: #2d725d;
    --gg-cream: #fbf8f1;
    --gg-sand: #f1eadb;
    --gg-coral: #ed715c;
    --gg-citrus: #f3be42;
    --gg-line: rgba(21, 37, 31, .12);
    --gg-shadow: 0 18px 45px rgba(24, 45, 37, .10);
}

html { background: var(--gg-cream); }

body {
    background: var(--gg-cream);
    color: var(--gg-ink);
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -.01em;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--gg-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -.035em;
}

a, .btn-link {
    color: var(--gg-forest);
}

.btn-primary {
    color: #fff;
    background-color: var(--gg-forest);
    border-color: var(--gg-forest);
    border-radius: 999px;
    box-shadow: 0 7px 16px rgba(23, 77, 61, .18);
    font-weight: 700;
    padding: .7rem 1.25rem;
}

.btn-primary:hover, .btn-primary:focus { background-color: var(--gg-ink); border-color: var(--gg-ink); transform: translateY(-1px); }
.btn-outline-primary { border-color: var(--gg-forest); color: var(--gg-forest); border-radius: 999px; font-weight: 700; }
.btn-outline-primary:hover { background: var(--gg-forest); border-color: var(--gg-forest); }
.btn-light { border-radius: 999px; font-weight: 700; }
.btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }

.form-control, .form-select { border: 1px solid var(--gg-line); border-radius: .9rem; background: #fffdf9; padding: .75rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--gg-moss); box-shadow: 0 0 0 .22rem rgba(45, 114, 93, .14); }

/* A clear, edge-to-edge app header: navigation stays central while account actions anchor the far edge. */
.desktop-nav { background: rgba(251, 248, 241, .92); border-bottom: 1px solid var(--gg-line); position: sticky; top: 0; z-index: 1020; }
.navbar.app-nav { background: transparent !important; border: 0; border-radius: 0; box-shadow: none; margin: 0 auto; max-width: 1440px; min-height: 76px; padding: .8rem clamp(1.25rem, 3.4vw, 3.6rem); }
.app-nav .navbar-brand { margin-right: clamp(1.6rem, 4vw, 4rem); padding: 0; }
.app-nav .navbar-brand img { display: block; filter: saturate(.9); max-height: 45px; }
.app-nav-links, .app-nav-account { align-items: center; gap: .22rem; }
.app-nav .nav-item { padding: 0; }
.app-nav .nav-link { align-items: center; border-radius: 999px; color: var(--gg-ink) !important; font-size: .9rem; font-weight: 700; gap: .1rem; padding: .62rem .88rem !important; }
.app-nav .nav-link i { color: var(--gg-moss); font-size: .92rem; width: 1rem; }
.app-nav .nav-link.active, .app-nav .nav-link:hover { background: var(--gg-sand); color: var(--gg-forest) !important; }
.app-nav-account { border-left: 1px solid var(--gg-line); padding-left: .8rem; }
.app-nav-account .nav-link:last-child { color: #7a4f27 !important; }
.app-nav-account .nav-link:last-child i { color: #a35e3d; }
.nav-avatar { align-items: center; background: #dcefe8; border-radius: 50%; color: var(--gg-forest); display: inline-flex; height: 1.65rem; justify-content: center; margin-right: .48rem; width: 1.65rem; }
.nav-avatar i { color: var(--gg-forest) !important; font-size: .76rem !important; margin: 0; width: auto !important; }

.card { border: 1px solid var(--gg-line); border-radius: 1.25rem; box-shadow: 0 8px 24px rgba(24,45,37,.05); overflow: hidden; }
.card-header { border-bottom: 1px solid var(--gg-line); font-family: 'DM Sans', sans-serif; font-weight: 700; padding: 1rem 1.25rem; }
.bg-primary { background-color: var(--gg-forest) !important; }
.bg-secondary { background-color: var(--gg-moss) !important; }
.bg-light, .bg-light-subtle { background-color: var(--gg-cream) !important; }
.text-primary { color: var(--gg-moss) !important; }
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3, .bg-secondary h4, .bg-secondary h5, .bg-secondary h6,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 { color: #fffaf0 !important; }
.bg-primary, .bg-secondary, .text-white { color: #fffaf0; }

.list-group-item { border-color: var(--gg-line); padding: 1rem 1.15rem; }
.list-group-item-action:hover { background: #fffdf9; color: var(--gg-forest); }

.mobile-brand { align-items: center; background: rgba(251,248,241,.95); border-bottom: 1px solid var(--gg-line); display: flex; min-height: 58px; padding: .65rem 1rem; position: sticky; top: 0; z-index: 1020; }
.mobile-brand .navbar-brand { display: inline-flex; margin: 0; }
.mobile-brand img { display: block; max-height: 31px; }
.mobile-tabs nav { background: rgba(251,248,241,.94) !important; backdrop-filter: blur(16px); border-color: var(--gg-line) !important; box-shadow: 0 -8px 22px rgba(24,45,37,.06); }
.mobile-tabs .nav-link { color: #68736d; border: 0; font-weight: 700; }
.mobile-tabs .nav-link i { font-size: 1.05rem; margin-bottom: .16rem; }
.mobile-tabs .nav-link.active { background: transparent; color: var(--gg-forest); }
.mobile-more-menu { background: #fffdf9; border: 1px solid var(--gg-line); border-radius: 1.1rem; box-shadow: var(--gg-shadow); min-width: 155px; }
.mobile-more-menu .dropdown-item { border-radius: .7rem; color: var(--gg-ink); font-weight: 700; padding: .65rem .7rem; }
.mobile-more-menu .dropdown-item i { color: var(--gg-moss); width: 1rem; }

/* Editorial home experience */
.home-hero { background: #ecdfc6 !important; border: 1px solid var(--gg-line); border-radius: 1.75rem; display: grid; grid-template-columns: minmax(0, .93fr) minmax(390px, 1.07fr); margin: 1rem auto 0; max-width: 1220px; min-height: 390px; overflow: hidden; position: relative; }
.home-hero-copy { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.8rem, 4vw, 3.5rem); position: relative; z-index: 1; }
.home-kicker { color: var(--gg-moss); font-size: .72rem; font-weight: 800; letter-spacing: .15em; margin-bottom: 1.4rem; text-transform: uppercase; }
.home-logo { height: auto; margin-bottom: 1.3rem; max-width: 174px; }
.home-hero h1 { font-size: clamp(2.6rem, 4.2vw, 4.1rem); line-height: 1; margin: 0 0 1rem; max-width: 600px; }
.home-hero .lead { color: #41514a; font-size: 1.1rem; line-height: 1.55; margin: 0 0 1.7rem; max-width: 470px; }
.home-hero .btn { padding: .88rem 1.6rem; }
.home-hero-media { min-height: 100%; overflow: hidden; position: relative; }
.home-hero-media > img { display: block; height: 100%; min-height: 390px; object-fit: cover; object-position: 68% center; width: 100%; }
.hero-stamp { align-items: center; background: var(--gg-coral); border: 3px solid #fff9ec; border-radius: 50%; bottom: 1.65rem; color: white; display: flex; font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; font-weight: 700; height: 112px; justify-content: center; line-height: 1.05; position: absolute; right: 1.65rem; rotate: 11deg; text-align: center; width: 112px; }
.features { padding-block: 5.5rem !important; }
.features-intro { margin: 0 auto 2.3rem; max-width: 670px; text-align: center; }
.features-intro > span { color: var(--gg-coral); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.features-intro h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.04; margin-top: .7rem; }
.feature-grid > div { display: flex; padding: .6rem; }
.feature-card { background: #fffdf9; border: 1px solid var(--gg-line); border-radius: 1.45rem; display: flex; flex: 1; flex-direction: column; min-height: 265px; overflow: hidden; padding: 1.5rem; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { box-shadow: var(--gg-shadow); transform: translateY(-6px) rotate(-.35deg); }
.feature-card::after { background: currentColor; border-radius: 50%; content: ''; height: 140px; opacity: .05; position: absolute; right: -42px; top: -45px; width: 140px; }
.feature-card .feature-number { color: rgba(21,37,31,.45); font-size: .7rem; font-weight: 800; letter-spacing: .12em; margin-bottom: auto; }
.features .feature-card i { align-items: center; background: rgba(255,255,255,.55); border-radius: 1rem; color: currentColor !important; display: inline-flex; font-size: 1.5rem !important; height: 3.25rem; justify-content: center; margin-top: 1rem; position: relative; width: 3.25rem; z-index: 1; }
.features .feature-card h4 { font-family: 'DM Sans', sans-serif; font-size: 1.13rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; margin-top: 1.2rem !important; position: relative; z-index: 1; }
.features .feature-card p { color: currentColor; font-size: .94rem; line-height: 1.5; margin: 0; opacity: .78; position: relative; z-index: 1; }
.feature-grid:nth-of-type(2) .col-md-4:nth-child(1) .feature-card { background: #dcefe8; color: #174d3d; }
.feature-grid:nth-of-type(2) .col-md-4:nth-child(2) .feature-card { background: #f8ddd4; color: #8e3f31; transform: translateY(18px); }
.feature-grid:nth-of-type(2) .col-md-4:nth-child(3) .feature-card { background: #f6e8ae; color: #6a4d04; }
.feature-grid:nth-of-type(3) .col-md-4:nth-child(1) .feature-card { background: #dbe8ef; color: #275b6e; transform: translateY(-7px); }
.feature-grid:nth-of-type(3) .col-md-4:nth-child(2) .feature-card { background: #e9dfef; color: #60456f; }
.feature-grid:nth-of-type(3) .col-md-4:nth-child(3) .feature-card { background: #f2e7d8; color: #704d27; transform: translateY(13px); }
.testimonials { background: var(--gg-ink) !important; color: #fffaf0; display: grid; gap: 3rem; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-top: 1.5rem; overflow: hidden; padding: clamp(3rem, 7vw, 7rem) max(1.5rem, calc((100vw - 1160px) / 2)); position: relative; width: 100vw; }
.testimonials::before { border: 1px solid rgba(243,190,66,.22); border-radius: 50%; content: ''; height: 38rem; left: -19rem; position: absolute; top: -17rem; width: 38rem; }
.testimonial-heading { align-self: start; position: sticky; top: 2rem; z-index: 1; }
.testimonial-heading > span { color: var(--gg-citrus); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.testimonial-heading h3 { color: #fffaf0; font-size: clamp(2.45rem, 4vw, 4.5rem); line-height: .95; margin: .8rem 0 1.75rem; }
.traveler-reel { display: flex; padding-left: .3rem; }
.traveler { border: 3px solid var(--gg-ink); border-radius: 50%; height: 56px; margin-left: -12px; object-fit: cover; width: 56px; }
.traveler:first-child { margin-left: 0; }
.traveler-one { object-position: 69% 42%; }
.traveler-two { object-position: 84% 37%; }
.traveler-three { object-position: 57% 43%; }
.testimonial-quotes { display: grid; gap: 1.1rem; position: relative; z-index: 1; }
.testimonial-quotes blockquote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 1.25rem; margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem); transition: background .2s ease, transform .2s ease; }
.testimonial-quotes blockquote:hover { background: rgba(255,255,255,.11); transform: translateX(.4rem); }
.testimonial-quotes p { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.17; margin: 0 0 1.25rem; }
.testimonial-quotes footer { color: var(--gg-citrus); font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.testimonial-quotes footer span { color: rgba(255,250,240,.62); font-weight: 500; margin-left: .6rem; }
.cta { background: var(--gg-coral) !important; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); overflow: hidden; position: relative; width: 100vw; }
.cta::before { border: 2px solid rgba(255,255,255,.25); border-radius: 50%; content: ''; height: 18rem; left: -7rem; position: absolute; top: -9rem; width: 18rem; }
.cta .container { position: relative; }
.footer { background: var(--gg-ink) !important; border-top: 1px solid rgba(255,255,255,.12); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); position: relative; width: 100vw; }

@media (max-width: 767.98px) {
    .home-hero { border-radius: 0; border-inline: 0; display: flex; flex-direction: column; margin-top: .4rem; }
    .home-hero-copy { align-items: center; padding: 2rem 1.25rem 1.5rem; text-align: center; }
    .home-hero h1 { font-size: clamp(2.35rem, 8vw, 3rem); }
    .home-hero-media { height: 200px; min-height: 0; width: 100%; }
    .home-hero-media > img { min-height: 0; object-position: 69% center; }
    .hero-stamp { bottom: 1rem; height: 88px; right: 1rem; width: 88px; }
    .features { padding-block: 3.5rem !important; }
    .feature-card, .feature-grid:nth-of-type(2) .feature-card, .feature-grid:nth-of-type(3) .feature-card { min-height: 225px; transform: none; }
    .testimonials { display: block; margin-top: .5rem; padding-block: 4rem; }
    .testimonial-heading { position: static; }
    .testimonial-quotes { margin-top: 2.25rem; }
    .content.container { padding-inline: 1rem; }
}

/* Signed-in experience: the same editorial travel system beyond the home page. */
.trip-detail-page { max-width: 1160px; }
.trip-detail-hero { border: 0; border-radius: 1.75rem; box-shadow: var(--gg-shadow); }
.trip-detail-hero .btn-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.trip-detail-hero .btn-group .btn { border-radius: 999px !important; }
.trip-detail-page > .card:not(.trip-detail-hero) { border-radius: 1.35rem; box-shadow: 0 12px 28px rgba(24,45,37,.06); }
.trip-detail-page > .card .card-header { padding: 1.1rem 1.25rem; }
.auth-page { min-height: calc(100vh - 9rem); align-items: center; display: flex; position: relative; }
.auth-page::before { background: url('/images/gogroops-hero-mediterranean.png') center / cover; border-radius: 50%; content: ''; height: 19rem; opacity: .16; position: absolute; right: 5%; top: 6%; width: 19rem; }
.auth-page .row { width: 100%; z-index: 1; }
.auth-card { background: rgba(255,253,249,.94); border-radius: 1.6rem; box-shadow: var(--gg-shadow); }
.auth-card .card-body { padding: clamp(1.7rem, 4vw, 3rem) !important; }
.auth-card h2 { font-size: 2.4rem; }
.account-page { max-width: 1160px; }
.account-page > h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .25rem; }
.account-page > h2 { color: var(--gg-moss) !important; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.account-page hr { border-color: var(--gg-line); margin-block: 1.5rem; }
.account-layout > div:first-child { background: #f1eadb; border-radius: 1.25rem; padding: 1.1rem; }
.account-layout > div:last-child { align-self: start; background: #fffdf9; border: 1px solid var(--gg-line); border-radius: 1.25rem; box-shadow: 0 8px 24px rgba(24,45,37,.04); padding: 1.5rem; }
.account-layout > div:last-child > h1, .account-layout > div:last-child > h2, .account-layout > div:last-child > h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.account-layout > div:last-child .card { border: 0; box-shadow: none; background: transparent; padding: 0; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* essential for google maps */
.pac-container {
    z-index: 1060 !important; /* Must be higher than Bootstrap modal (1055) */
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

    .gsi-material-button .gsi-material-button-icon {
        height: 20px;
        margin-right: 12px;
        min-width: 20px;
        width: 20px;
    }

    .gsi-material-button .gsi-material-button-content-wrapper {
        -webkit-align-items: center;
        align-items: center;
        display: flex;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: nowrap;
        flex-wrap: nowrap;
        height: 100%;
        justify-content: space-between;
        position: relative;
        width: 100%;
    }

    .gsi-material-button .gsi-material-button-contents {
        -webkit-flex-grow: 1;
        flex-grow: 1;
        font-family: 'Roboto', arial, sans-serif;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
    }

    .gsi-material-button .gsi-material-button-state {
        -webkit-transition: opacity .218s;
        transition: opacity .218s;
        bottom: 0;
        left: 0;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 0;
    }

    .gsi-material-button:disabled {
        cursor: default;
        background-color: #ffffff61;
        border-color: #1f1f1f1f;
    }

        .gsi-material-button:disabled .gsi-material-button-contents {
            opacity: 38%;
        }

        .gsi-material-button:disabled .gsi-material-button-icon {
            opacity: 38%;
        }

    .gsi-material-button:not(:disabled):active .gsi-material-button-state,
    .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
        background-color: #303030;
        opacity: 12%;
    }

    .gsi-material-button:not(:disabled):hover {
        -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
        box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    }

        .gsi-material-button:not(:disabled):hover .gsi-material-button-state {
            background-color: #303030;
            opacity: 8%;
        }

.chat-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    width: 100%;
}

    .chat-row.me {
        justify-content: flex-end;
    }

    .chat-row.other {
        align-items: flex-start;
    }

.chat-bubble {
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    width: 80%;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-row.me .chat-bubble {
    background-color: #f3ddcf;
    color: #3d3025;
    text-align: left;
}

.chat-row.other .chat-bubble {
    background-color: #f4eee3;
    color: #35463d;
    text-align: left;
}

.trip-messages-heading { margin-top: 1.5rem; }
.trip-messages-heading h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.trip-thread-card { border-color: #e0d0ba; box-shadow: 0 10px 24px rgba(69,52,33,.06); }
.general-thread-card .card-header { background: #174d3d !important; padding: 1rem 1.15rem; }
.trip-thread-card .card-header { background: #f1eadb; border-bottom-color: #e4d6c3; }
.trip-thread-card .card-footer { background: #fffaf3 !important; border-top-color: #e4d6c3; }
.trip-thread-card .input-group .form-control { border-color: #dbc6aa; }
.trip-thread-card .btn-outline-primary { border-color: #9b6c43; color: #744821; }
.trip-thread-card .btn-outline-primary:hover { background: #744821; border-color: #744821; color: #fffaf0; }
.message-send-button { background: #174d3d; border: 1px solid #174d3d; border-radius: .75rem; box-shadow: 0 6px 14px rgba(23,77,61,.16); color: #fffaf0; font-weight: 750; padding-inline: 1rem; }
.message-send-button:hover, .message-send-button:focus { background: #a9533e; border-color: #a9533e; color: #fffaf0; }
.message-send-button:disabled { background: #9bbbab; border-color: #9bbbab; color: #fffaf0; opacity: 1; }
.chat-bubble { box-shadow: 0 4px 12px rgba(60,45,29,.07); }
.chat-time { color: #857866; }

/* Journal entries are contained as an intentional writing surface, with one button system. */
.journal-editor-page { margin: 1.75rem auto 3rem; max-width: 920px; }
.journal-editor-heading h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.journal-editor-card { background: #fffdf9; border: 1px solid #dfcdb7; border-radius: 1.35rem; box-shadow: var(--gg-shadow); }
.journal-editor-card .ql-toolbar { background: #f5eddf; border-color: #dfcdb7 !important; border-radius: .85rem .85rem 0 0; }
.journal-editor-card .ql-container { border-color: #dfcdb7 !important; border-radius: 0 0 .85rem .85rem; }
.journal-action { align-items: center; border-radius: 999px; display: inline-flex; font-weight: 750; gap: .45rem; padding: .62rem 1rem; }
.journal-action-primary { background: var(--gg-forest); border-color: var(--gg-forest); color: #fffaf0; }
.journal-action-primary:hover { background: var(--gg-ink); border-color: var(--gg-ink); color: #fffaf0; }
.journal-action-secondary { background: #fffaf3; border-color: #caa983; color: #714b28; }
.journal-action-secondary:hover { background: #f1e2d0; border-color: #b98c5d; color: #563817; }
.journal-action-danger { background: #fffaf3; border-color: #c98778; color: #984538; }
.journal-action-danger:hover { background: #a9533e; border-color: #a9533e; color: #fffaf0; }

/* One unmistakable action color everywhere: controls should never introduce a competing palette. */
.btn-primary, .btn-secondary, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger, .btn-outline-dark,
.message-send-button, .journal-action-primary, .journal-action-secondary, .journal-action-danger {
    background: var(--gg-forest) !important;
    border-color: var(--gg-forest) !important;
    color: #fffaf0 !important;
}
.btn-primary:hover, .btn-secondary:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-danger:hover, .btn-outline-dark:hover,
.message-send-button:hover, .journal-action-primary:hover, .journal-action-secondary:hover, .journal-action-danger:hover {
    background: var(--gg-ink) !important;
    border-color: var(--gg-ink) !important;
    color: #fffaf0 !important;
}
.btn-primary:disabled, .btn-secondary:disabled, .message-send-button:disabled {
    background: #8bac9e !important;
    border-color: #8bac9e !important;
    color: #fffaf0 !important;
}

/* Keep every text link in the travel palette as well—Bootstrap's default blue never surfaces. */
a:not(.btn), a:not(.btn):visited, .btn-link { color: var(--gg-forest) !important; }
a:not(.btn):hover, .btn-link:hover { color: #7a4f27 !important; }
.account-page .nav-pills .nav-link { border-radius: .8rem; color: #355247 !important; font-weight: 700; margin-bottom: .25rem; padding: .72rem .78rem; }
.account-page .nav-pills .nav-link i { color: #8a5b31; }
.account-page .nav-pills .nav-link.active, .account-page .nav-pills .nav-link:hover { background: #e6d7c2; color: #174d3d !important; }
.account-page .nav-pills .nav-link.active i, .account-page .nav-pills .nav-link:hover i { color: #174d3d; }

/* Shared account screens: account recovery and confirmation pages belong in the same calm, centered space as login. */
.account-utility-shell { background: #fffdf9; border: 1px solid #dfcdb7; border-radius: 1.45rem; box-shadow: var(--gg-shadow); margin: clamp(2rem, 9vh, 6rem) auto 3rem; max-width: 560px; padding: clamp(1.6rem, 4vw, 3rem); }
.account-utility-shell h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; margin-bottom: .65rem; }
.account-utility-shell h2 { color: #6f6558; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-bottom: 1.5rem; }
.account-utility-shell hr { border-color: #e4d6c3; opacity: 1; }
.account-utility-shell > .row { margin-inline: 0; }
.account-utility-shell > .row > [class*="col-"] { padding-inline: 0; width: 100%; }
.account-utility-shell .account-utility-copy { color: #5f665e; font-size: 1rem; margin-bottom: 1.5rem; }
.account-utility-shell:has(.auth-page) { background: transparent; border: 0; box-shadow: none; margin: 0; max-width: none; padding: 0; }
.account-utility-shell .auth-page { padding-block: 3rem !important; }
.external-registration { border-top: 1px solid #e4d6c3; margin-top: 2.25rem; padding-top: 1.75rem !important; }
.external-registration-divider { color: #8a7b69; font-size: .72rem; font-weight: 800; letter-spacing: .1em; margin-bottom: .9rem; text-transform: uppercase; }
.external-registration h3 { color: #34473d; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 750; letter-spacing: 0; margin-bottom: 1rem; }

.chat-header {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: normal;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chat-time {
    font-size: 0.75rem;
    color: #888;
}

.chat-text {
    font-size: 0.95rem;
}

.chat-message-content { width: 80%; min-width: 0; }
.chat-message-content .chat-bubble { width: 100%; }
.web-chat-language { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; }
.web-chat-language select { border: 1px solid #c9d9cf; border-radius: .45rem; background: #fffdf9; color: #174d3d; padding: .2rem .35rem; }
.web-chat-actions, .web-chat-reactions { display: flex; flex-wrap: wrap; gap: .35rem; padding: .2rem .35rem; }
.chat-row.me .web-chat-reactions { justify-content: flex-end; }
.web-chat-actions button, .web-chat-reactions button, .web-chat-reactions span { border: 0; border-radius: 999px; background: transparent; color: #63766b; font-size: .78rem; padding: .15rem .4rem; }
.web-chat-actions button:hover, .web-chat-reactions button:hover, .web-chat-reactions button.selected { background: #e5efe9; color: #174d3d; }
.web-chat-picker { display: flex; flex-wrap: wrap; gap: .15rem; width: fit-content; max-width: 100%; border: 1px solid #dfd2c0; border-radius: 999px; background: #fffdf9; box-shadow: 0 8px 20px rgba(35,45,37,.12); padding: .25rem; }
.web-chat-picker button { border: 0; border-radius: 999px; background: transparent; font-size: 1.2rem; width: 2.35rem; height: 2.35rem; }
.web-chat-picker button:hover { background: #e5efe9; }
.web-chat-translation { border-top: 1px solid #d8d3c8; margin-top: .5rem; padding-top: .5rem; color: #174d3d; }
.web-chat-error { display: block; color: #9b3b32; padding: .2rem .35rem; }

@media (max-width: 768px) {
    .chat-bubble {
        width: 95%;
    }
    .chat-message-content { width: 95%; }
    .web-chat-language { font-size: 0; }
    .web-chat-language select { font-size: .8rem; }
}

.ql-container {
    min-height: 6em; /* approximately 5 lines */
}

/* Trip page: presentation of the shared TripPlanning and DatePlanner components.
   Scoped under .trip-detail-page so it outranks the components' inline styles; :not(.card *) leaves the Final itinerary card alone. */
.trip-detail-page { --pl-primary: #245744; --pl-border: #e4dccb; --pl-muted: #617168; --pl-accent: #b5623f; --pl-surface: #fcfaf5; --pl-text: #233f35; accent-color: #5fa98a; }
.trip-detail-page .trip-planning { border-color: var(--pl-border); border-radius: 1.35rem; box-shadow: 0 12px 28px rgba(24,45,37,.06); }
.trip-detail-page .trip-planning > header { margin-bottom: 14px; }
.trip-detail-page .planning-eyebrow, .trip-detail-page .planner-eyebrow { color: var(--pl-accent); font-size: 10px; letter-spacing: .08em; }
.trip-detail-page .planning-workspace { gap: 28px; align-items: start; }
.trip-detail-page .planning-muted, .trip-detail-page .planner-intro { margin: 4px 0 12px; color: var(--pl-muted); font-size: 13.5px; line-height: 1.5; }

.trip-detail-page .trip-planning :where(button:not(.card *)), .trip-detail-page .date-planner button { min-height: 40px; margin: 6px 6px 0 0; padding: 0 16px; border: 1px solid var(--pl-border); border-radius: 999px; background: #fff; color: var(--pl-primary); font-size: 13px; font-weight: 600; transition: background-color .15s, border-color .15s; }
.trip-detail-page .trip-planning :where(button:not(.card *)):hover:not(:disabled), .trip-detail-page .date-planner button:hover:not(:disabled) { border-color: var(--pl-primary); background: #f1f6f2; }
.trip-detail-page .trip-planning :where(button:not(.card *)):disabled, .trip-detail-page .date-planner button:disabled { opacity: .45; }
.trip-detail-page .trip-planning > header > button, .trip-detail-page .date-planner > header > button { margin: 0; }
.trip-detail-page .trip-planning .planning-primary, .trip-detail-page .trip-planning :where(button[aria-pressed=true]:not(.card *)), .trip-detail-page .date-planner .planner-primary, .trip-detail-page .date-planner .planner-chosen,
.trip-detail-page .trip-planning .planning-primary:hover:not(:disabled), .trip-detail-page .trip-planning :where(button[aria-pressed=true]:not(.card *)):hover:not(:disabled), .trip-detail-page .date-planner .planner-primary:hover:not(:disabled), .trip-detail-page .date-planner .planner-chosen:hover:not(:disabled) { border-color: var(--pl-primary); background: var(--pl-primary); color: #fff; }
.trip-detail-page .trip-planning .planning-link, .trip-detail-page .date-planner .planner-link,
.trip-detail-page .trip-planning .planning-link:hover:not(:disabled), .trip-detail-page .date-planner .planner-link:hover:not(:disabled) { margin: 0 16px 0 0; padding: 0; border: 0; background: transparent; color: var(--pl-accent); text-decoration: none; }
.trip-detail-page .trip-planning .planning-link:hover:not(:disabled), .trip-detail-page .date-planner .planner-link:hover:not(:disabled) { text-decoration: underline; }

.trip-detail-page .trip-planning :where(details:not(.card *)), .trip-detail-page .date-planner-toggle { margin: 8px 0; padding: 0 16px; border: 1px solid var(--pl-border, #e4dccb); border-radius: 14px; background: var(--pl-surface, #fcfaf5); }
.trip-detail-page .trip-planning :where(details[open]:not(.card *)), .trip-detail-page .date-planner-toggle[open] { padding-bottom: 16px; }
.trip-detail-page .trip-planning :where(summary:not(.card *)), .trip-detail-page .date-planner-toggle summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0; list-style: none; color: var(--pl-text, #233f35); font-size: 14px; font-weight: 600; cursor: pointer; }
.trip-detail-page .trip-planning :where(summary:not(.card *))::-webkit-details-marker, .trip-detail-page .date-planner-toggle summary::-webkit-details-marker { display: none; }
.trip-detail-page .trip-planning :where(summary:not(.card *))::after, .trip-detail-page .date-planner-toggle summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 1.7px solid #617168; border-bottom: 1.7px solid #617168; transform: rotate(45deg); transition: transform .15s; }
.trip-detail-page .trip-planning :where(details[open]:not(.card *)) > summary::after, .trip-detail-page .date-planner-toggle[open] > summary::after, .trip-detail-page .date-planner-toggle details[open] > summary::after { transform: rotate(225deg); }

.trip-detail-page .planning-option, .trip-detail-page .planner-option { margin: 10px 0; padding: 16px; border: 1px solid var(--pl-border); border-radius: 14px; background: var(--pl-surface); }
.trip-detail-page .planner-option { margin: 0; background: #fff; }
.trip-detail-page .planner-option.planner-confirmed { border: 2px solid var(--pl-primary); }
.trip-detail-page .planning-option h3, .trip-detail-page .planner-option h3 { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 500; line-height: 1.3; }
.trip-detail-page .trip-planning .planning-option details, .trip-detail-page .planner-people, .trip-detail-page .planner-discussion { margin: 0; padding: 0; border-width: 1px 0 0; border-radius: 0; background: transparent; font-size: 13px; }
.trip-detail-page .trip-planning .planning-option details[open], .trip-detail-page .planner-people[open], .trip-detail-page .planner-discussion[open] { padding-bottom: 10px; }
.trip-detail-page .planner-comment, .trip-detail-page .planner-people li { padding: 8px 0; border-bottom: 1px solid var(--pl-border); font-size: 13px; }
.trip-detail-page .planner-people ul { margin: 0; }
.trip-detail-page .planner-people li strong { color: var(--pl-muted); font-weight: 500; }
.trip-detail-page .planning-confirm, .trip-detail-page .planner-confirm { margin-top: 8px; padding: 12px; border-radius: 12px; background: #f3eee4; font-size: 13px; }
.trip-detail-page .planning-error, .trip-detail-page .planner-error { border-radius: 12px; font-size: 13px; }

.trip-detail-page .trip-planning :where(label:not(.card *)), .trip-detail-page .date-planner label { margin: 10px 0 0; color: var(--pl-muted); font-size: 12px; font-weight: 600; }
.trip-detail-page .date-planner label span { font-weight: 400; }
.trip-detail-page .trip-planning :where(input:not(.card *)), .trip-detail-page .trip-planning :where(textarea:not(.card *)), .trip-detail-page .date-planner input, .trip-detail-page .date-planner textarea { min-height: 44px; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--pl-border); border-radius: 12px; background: #fff; color: var(--pl-text); font-size: 15px; font-weight: 400; }
.trip-detail-page .trip-planning :where(textarea:not(.card *)), .trip-detail-page .date-planner textarea { min-height: 84px; line-height: 1.4; }
.trip-detail-page .trip-planning :where(input:not(.card *)):focus, .trip-detail-page .trip-planning :where(textarea:not(.card *)):focus, .trip-detail-page .date-planner input:focus, .trip-detail-page .date-planner textarea:focus { outline: 2px solid var(--pl-primary); outline-offset: -1px; }
.trip-detail-page .trip-planning .planning-checkbox { min-height: 0; margin: 0 6px 0 0; }
.trip-detail-page .planning-fields, .trip-detail-page .planner-date-inputs { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; align-items: end; }
.trip-detail-page .planning-fields > label, .trip-detail-page .planner-date-inputs > label { min-width: 0; }
.trip-detail-page .trip-planning :where(input[type=date]:not(.card *)), .trip-detail-page .trip-planning :where(input[type=time]:not(.card *)), .trip-detail-page .date-planner input[type=date] { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: 44px; }

.trip-detail-page .planning-chat { padding: 0; border: 0; }
.trip-detail-page .trip-planning .planning-chat > details { margin: 0; padding: 4px 16px 16px; border: 0; border-radius: 16px; background: #e7eee8; }
.trip-detail-page .trip-planning .planning-chat > details > summary { justify-content: flex-start; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 500; }
.trip-detail-page .trip-planning .planning-chat > details > summary::before { content: "✦"; color: var(--pl-accent); font-size: 14px; }
.trip-detail-page .trip-planning .planning-chat > details > summary::after { margin-left: auto; }
.trip-detail-page .planning-chat-turn { max-width: 92%; margin: 8px 0; padding: 10px 13px; border: 0; border-radius: 16px 16px 16px 4px; background: #fff; font-size: 14px; }
.trip-detail-page .planning-chat-turn strong { display: block; margin-bottom: 2px; color: var(--pl-muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.trip-detail-page .planning-chat-turn p { margin: 0; line-height: 1.5; }
.trip-detail-page .planning-chat-turn.planning-question { width: fit-content; margin-left: auto; border-radius: 16px 16px 4px 16px; background: var(--pl-primary); color: #fff; }
.trip-detail-page .planning-chat-turn.planning-question strong { color: #bfd3ca; }
.trip-detail-page .planning-chat-turn.planning-question p { color: #fff; }
.trip-detail-page .planning-chat .planning-option { background: #fff; }
.trip-detail-page .trip-planning .planning-chat > details > .planning-primary { width: 100%; margin: 10px 0 0; }

.trip-detail-page .date-planner-toggle { margin: 18px 0; padding: 0 22px; border-radius: 1.35rem; background: #fffdf9; box-shadow: 0 12px 28px rgba(24,45,37,.06); }
.trip-detail-page .date-planner-toggle[open] { padding-bottom: 22px; }
.trip-detail-page .date-planner-toggle > summary { min-height: 60px; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 500; }
.trip-detail-page .date-planner { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.trip-detail-page .date-planner > header { justify-content: flex-end; margin-top: -4px; }
.trip-detail-page .date-planner > header > div { display: none; }
.trip-detail-page .planner-add { margin: 8px 0 14px; padding: 0 16px; border: 1px dashed var(--pl-border); border-radius: 14px; }
.trip-detail-page .planner-add[open] { padding-bottom: 16px; border-style: solid; background: #fff; }
.trip-detail-page .planner-by { margin: 0 0 6px; color: var(--pl-muted); }
.trip-detail-page .planner-status { color: var(--pl-primary); font-size: 11px; letter-spacing: .04em; }
.trip-detail-page .planner-responses { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin: 8px 0 4px; }
.trip-detail-page .date-planner .planner-responses button { flex-direction: column-reverse; justify-content: center; gap: 2px; min-width: 0; min-height: 56px; margin: 0; padding: 4px 6px; border-radius: 14px; font-size: 11px; line-height: 1.2; text-align: center; }
.trip-detail-page .planner-people { margin-top: 8px; }

/* Targets of the trip header links that jump to sections further down the page. */
#trip-dates, #trip-itinerary, #trip-ideas, #trip-members { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }

/* Trip page layout: compact hero with tabs, a main column of numbered steps and a sidebar. */
.trip-detail-page .trip-hero-compact { margin: 0; border-radius: 1.35rem; }
.trip-detail-page .trip-hero-media { height: 230px; }
.trip-detail-page .trip-hero-status { position: absolute; top: 14px; left: 18px; padding: 5px 12px; border-radius: 999px; background: #f6f1e7; color: #8e3b2e; font-size: 12px; font-weight: 600; }
.trip-detail-page .trip-hero-copy { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 48px 22px 16px; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)); color: #fff; }
.trip-detail-page .trip-hero-text { min-width: 0; }
.trip-detail-page .trip-hero-title { margin: 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 500; line-height: 1.15; }
.trip-detail-page .trip-hero-dates { margin: 4px 0 0; color: #f2c99a; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.trip-detail-page .trip-hero-desc { margin: 4px 0 0; color: #f3ede2; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.trip-detail-page .trip-hero-desc p { margin: 0; }
.trip-detail-page .trip-hero-actions { display: flex; flex: none; align-items: center; gap: 12px; font-size: 13px; }
.trip-detail-page .trip-hero-people { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 13px; }
.trip-detail-page .trip-hero-avatars { display: inline-flex; padding-left: 8px; }
.trip-detail-page .trip-hero-avatars > * { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -8px; border: 2px solid #fff; border-radius: 50%; background: #c98b5a; color: #fff; font-size: 10px; font-weight: 700; object-fit: cover; }
.trip-detail-page .trip-hero-going { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--pl-primary); font-weight: 700; }
.trip-detail-page .trip-hero-rsvp { min-height: 38px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: var(--pl-primary); font-size: 14px; font-weight: 700; }
.trip-detail-page .trip-hero-unrsvp { min-height: 38px; padding: 0 4px; border: 0; background: transparent; color: #fff; font-size: 12px; text-decoration: underline; }

.trip-detail-page .trip-tabs { display: flex; align-items: center; gap: 24px; padding: 0 22px; overflow-x: auto; background: #fffdf9; scrollbar-width: none; }
.trip-detail-page .trip-tabs button { flex: none; padding: 14px 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--pl-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.trip-detail-page .trip-tabs button:hover { color: var(--pl-text); }
.trip-detail-page .trip-tabs button.active { border-bottom-color: #c98b5a; color: var(--pl-text); font-weight: 700; }
.trip-detail-page .trip-tabs-jump { display: inline-flex; flex: none; align-items: center; gap: 12px; margin-left: auto; color: var(--pl-muted); font-size: 13px; white-space: nowrap; }
.trip-detail-page .trip-tabs-jump button { color: var(--pl-primary); font-size: 13px; font-weight: 700; }

.trip-detail-page .trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; margin-top: 20px; }
.trip-detail-page .trip-main, .trip-detail-page .trip-side { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 991px) { .trip-detail-page .trip-layout { grid-template-columns: minmax(0, 1fr); } .trip-detail-page .trip-hero-copy { flex-direction: column; align-items: flex-start; gap: 10px; } .trip-detail-page .trip-hero-media { height: 270px; } .trip-detail-page .trip-tabs-jump { display: none; } }

.trip-detail-page .trip-planning { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.trip-detail-page .trip-planning > header { display: none; }
.trip-detail-page .planning-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.trip-detail-page .planning-workspace > div { display: grid; gap: 16px; min-width: 0; }
.trip-detail-page .trip-step, .trip-detail-page .date-planner-toggle, .trip-detail-page .trip-side-card { margin: 0; border: 1px solid var(--pl-border); border-radius: 1.1rem; background: #fffdf9; box-shadow: 0 8px 22px rgba(24,45,37,.05); }
.trip-detail-page .trip-step-eyebrow { display: block; color: var(--pl-accent); font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.trip-detail-page .trip-step-title { display: block; margin: 0; padding: 0; border: 0; color: var(--pl-text); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 500; line-height: 1.3; }
.trip-detail-page .date-planner-toggle > summary { min-height: 68px; }

.trip-detail-page .trip-itinerary { overflow: hidden; }
.trip-detail-page .trip-step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; }
.trip-detail-page .trip-step-tools { display: flex; align-items: center; gap: 10px; }
.trip-detail-page .itinerary-filter-menu { position: relative; }
.trip-detail-page .itinerary-filter-menu > summary { min-height: 38px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--pl-border); border-radius: 999px; background: #fff; color: var(--pl-text); cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.trip-detail-page .itinerary-filter-menu > summary::-webkit-details-marker { display: none; }
.trip-detail-page .itinerary-filter-menu > div { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; width: min(440px, calc(100vw - 40px)); padding: 14px; border: 1px solid var(--pl-border); border-radius: 12px; background: #fffdf9; box-shadow: 0 8px 28px rgba(30,40,30,.14); }
.trip-detail-page .itinerary-filter-menu label { margin: 0; color: var(--pl-muted); font-size: 12px; }
.trip-detail-page .itinerary-filter-menu select, .trip-detail-page .itinerary-filter-menu input { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 8px; border: 1px solid var(--pl-border); border-radius: 8px; background: #fff; color: var(--pl-text); font: inherit; }
.trip-detail-page .trip-segment { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #eae3d4; }
.trip-detail-page .trip-segment button { min-height: 32px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--pl-muted); font-size: 13px; font-weight: 600; }
.trip-detail-page .trip-segment button.selected { background: #fff; color: var(--pl-primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.trip-detail-page .trip-pill-primary, .trip-detail-page .trip-pill-primary:hover { min-height: 38px; margin: 0; padding: 0 16px; border: 1px solid var(--pl-primary); border-radius: 999px; background: var(--pl-primary); color: #fff; font-size: 13px; font-weight: 700; }
.trip-detail-page .trip-empty { margin: 0 22px 20px; padding: 18px; border: 1px dashed #c9bfa8; border-radius: 12px; color: var(--pl-muted); font-size: 13.5px; text-align: center; }
.trip-detail-page .trip-itinerary .list-group-item { border-color: var(--pl-border); background: transparent; }
.trip-detail-page .trip-itinerary .trip-day-header { padding: 14px 22px 6px; border: 0; color: var(--pl-accent); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.trip-detail-page .trip-side-card { padding: 16px 18px; }
.trip-detail-page .trip-side-card h2 { margin: 0; color: var(--pl-text); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 500; }
.trip-detail-page .trip-next-step { border-color: var(--pl-primary); background: var(--pl-primary); color: #d8e5db; }
.trip-detail-page .trip-next-step .trip-step-eyebrow { color: #f2c99a; }
.trip-detail-page .trip-next-step h2 { margin: 2px 0 6px; color: #fff; }
.trip-detail-page .trip-next-step p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; }
.trip-detail-page .trip-next-step button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--pl-primary); font-size: 13px; font-weight: 700; }
.trip-detail-page .trip-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.trip-detail-page .trip-side-link { color: var(--pl-accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.trip-detail-page .trip-side-card .list-group-item { padding-right: 0 !important; padding-left: 0 !important; border-color: var(--pl-border); background: transparent; }
.trip-detail-page .trip-invite { display: flex; gap: 6px; margin-top: 12px; padding: 4px 4px 4px 14px; border: 1px solid var(--pl-border); border-radius: 999px; background: #fff; }
.trip-detail-page .trip-invite input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--pl-text); font-size: 13.5px; }
.trip-detail-page .trip-invite button { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--pl-primary); color: #fff; font-size: 13px; font-weight: 700; }
.trip-detail-page .trip-invite:focus-within { border-color: var(--pl-primary); }
.trip-detail-page .trip-side-note { margin-top: 12px; color: var(--pl-muted); font-size: 12.5px; }
.trip-detail-page .trip-side-note summary { cursor: pointer; font-weight: 600; }
.trip-detail-page .trip-side-note p { margin: 6px 0 0; line-height: 1.45; }
.trip-detail-page .date-planner > header { display: none; }
.trip-detail-page .trip-day-header span { margin-left: .35em; }
.trip-detail-page .trip-planning .planning-more { margin: 10px 0 0; padding: 0; border-width: 1px 0 0; border-radius: 0; background: transparent; box-shadow: none; }
.trip-detail-page .trip-planning .planning-more[open] { padding-bottom: 4px; }

/* Page titles inside the signed-in site stay modest; only the public home page uses display sizes. */
h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.account-page .nav-pills .nav-link span { white-space: nowrap; }

/* Trip member page */
.trip-user-page { max-width: 720px; margin: 0 auto; padding: 1.25rem 0 2.5rem; --tu-primary: #245744; --tu-border: #e4dccb; --tu-muted: #617168; --tu-accent: #b5623f; }
.trip-user-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1rem; color: var(--tu-primary); font-size: .9rem; font-weight: 700; text-decoration: none; }
.trip-user-back:hover { text-decoration: underline; }
.trip-user-card { padding: 1.5rem; border: 1px solid var(--tu-border); border-radius: 1.35rem; background: #fffdf9; box-shadow: 0 8px 22px rgba(24,45,37,.05); }
.trip-user-head { display: flex; align-items: center; gap: 1rem; }
.trip-user-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--tu-primary); color: #fff; font-size: 1.5rem; font-weight: 700; object-fit: cover; }
.trip-user-eyebrow { display: block; color: var(--tu-accent); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.trip-user-head h1 { margin: .1rem 0 .3rem; font-size: 1.6rem; }
.trip-user-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; background: #f3eee4; color: #7a4a23; font-size: .78rem; font-weight: 700; }
.trip-user-contact { display: grid; gap: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--tu-border); }
.trip-user-contact > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--tu-border); }
.trip-user-contact dt { color: var(--tu-muted); font-size: .85rem; font-weight: 600; }
.trip-user-contact dt i { margin-right: .35rem; color: var(--tu-accent); }
.trip-user-contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.trip-user-contact a { color: var(--tu-primary); }
.trip-user-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.trip-user-page button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: 0 1.1rem; border: 1px solid var(--tu-border); border-radius: 999px; background: #fff; color: var(--tu-primary); font-size: .9rem; font-weight: 700; transition: background-color .15s, border-color .15s; }
.trip-user-page button:hover { border-color: var(--tu-primary); background: #f1f6f2; }
.trip-user-page button img { height: 18px; }
.trip-user-page .trip-user-primary, .trip-user-page .trip-user-primary:hover, .trip-user-venmo button, .trip-user-venmo button:hover { border-color: var(--tu-primary); background: var(--tu-primary); color: #fff; }
.trip-user-page .trip-user-link, .trip-user-page .trip-user-link:hover { min-height: 42px; padding: 0 .25rem; border: 0; background: transparent; color: var(--tu-accent); font-size: .9rem; font-weight: 700; text-decoration: none; }
.trip-user-venmo { margin-top: 1.25rem; }
.trip-user-venmo label { display: block; margin-bottom: .4rem; color: var(--tu-muted); font-size: .85rem; font-weight: 600; }
.trip-user-venmo > div { display: flex; gap: .4rem; max-width: 380px; padding: 4px 4px 4px 14px; border: 1px solid var(--tu-border); border-radius: 999px; background: #fff; }
.trip-user-venmo > div:focus-within { border-color: var(--tu-primary); }
.trip-user-venmo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.trip-user-venmo button { min-height: 36px; }
.trip-user-related { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--tu-border); }
.trip-user-leader { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--tu-border); color: var(--tu-muted); font-size: .85rem; }
.trip-user-page .trip-user-danger { border-color: #e2c1b6; color: #9b3b32; }
.trip-user-page .trip-user-danger:hover { border-color: #9b3b32; background: #fbf0ec; }

/* ---- Site-wide consistency pass ---- */
/* Heading scale under the page title. */
h2 { font-size: clamp(1.3rem, 2vw, 1.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); }
h4 { font-size: 1.1rem; }

/* Buttons: filled forest for the main action, outlined forest for secondary ones, terracotta outline for destructive ones. */
.btn-success, .btn-info, .btn-warning { background: var(--gg-forest) !important; border-color: var(--gg-forest) !important; color: #fffaf0 !important; border-radius: 999px; font-weight: 700; }
.btn-success:hover, .btn-info:hover, .btn-warning:hover { background: var(--gg-ink) !important; border-color: var(--gg-ink) !important; }
.btn-secondary, .btn-outline-primary, .btn-outline-secondary, .btn-outline-dark, .journal-action-secondary { background: #fffdf9 !important; border-color: #cfd8d0 !important; color: var(--gg-forest) !important; border-radius: 999px; font-weight: 700; }
.btn-secondary:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-dark:hover, .journal-action-secondary:hover { background: #eef4ef !important; border-color: var(--gg-forest) !important; color: var(--gg-forest) !important; }
.btn-danger, .btn-outline-danger, .journal-action-danger { background: #fffdf9 !important; border-color: #e2c1b6 !important; color: #9b3b32 !important; border-radius: 999px; font-weight: 700; }
.btn-danger:hover, .btn-outline-danger:hover, .journal-action-danger:hover { background: #fbf0ec !important; border-color: #9b3b32 !important; color: #9b3b32 !important; }
.btn:disabled, .btn.disabled { opacity: .5; }
.alert-info { background: #f3eee4; border-color: #e4dccb; color: #4b5a51; }
.nav-tabs { border-bottom-color: #e4dccb; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: #617168; font-weight: 600; }
.nav-tabs .nav-link:hover { border-bottom-color: #e4dccb; color: var(--gg-forest); }
.nav-tabs .nav-link.active { background: transparent; border-bottom-color: #c98b5a; color: var(--gg-ink); }
input[type=file]::file-selector-button { margin-right: .75rem; padding: .45rem 1rem; border: 1px solid #cfd8d0; border-radius: 999px; background: #fffdf9; color: var(--gg-forest); font-weight: 700; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--gg-forest); background: #eef4ef; }
.gsi-material-button { display: flex; width: 100%; justify-content: center; }

/* Shared page pieces for simple pages. */
.gg-page { max-width: 760px; margin: 0 auto; padding: 1.25rem 0 2.5rem; }
.gg-page--wide { max-width: 1000px; }
.gg-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .9rem; padding: 0; border: 0; background: transparent; color: var(--gg-forest); font-size: .9rem; font-weight: 700; text-decoration: none; }
.gg-back:hover { text-decoration: underline; }
.gg-eyebrow { display: block; color: #b5623f; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gg-page-title { margin: .1rem 0 1rem; }
.gg-page-lead { margin: -.5rem 0 1rem; color: #617168; }
.gg-card { padding: 1.25rem 1.4rem; border: 1px solid #e4dccb; border-radius: 1.2rem; background: #fffdf9; box-shadow: 0 8px 22px rgba(24,45,37,.05); }
.gg-card + .gg-card { margin-top: .75rem; }
.gg-empty { padding: 1.5rem; border: 1px dashed #c9bfa8; border-radius: 1rem; color: #617168; text-align: center; }
.gg-empty a { color: var(--gg-forest); font-weight: 700; }
.gg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .8rem 0; border-bottom: 1px solid #e4dccb; }
.gg-row:last-child { border-bottom: 0; }
.gg-row small { display: block; color: #617168; }
.gg-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.gg-segment { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #eae3d4; }
.gg-segment button { min-height: 36px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; color: #617168; font-size: .9rem; font-weight: 600; }
.gg-segment button.selected { background: #fff; color: var(--gg-forest); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.gg-check { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; }
.gg-check small { color: #617168; }

/* Inbox */
.inbox-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.inbox-list .list-group-item { border-color: #e4dccb; background: transparent; padding-left: 0; padding-right: 0; }
.inbox-list .card { border: 0; background: transparent; box-shadow: none; }

/* Trip chat: your own messages match the app (forest green), and bubbles hug their text. */
.chat-bubble { width: auto; max-width: 78%; }
.chat-row.me .chat-bubble { background-color: var(--gg-forest); color: #fffaf0; }
.chat-row.me .chat-bubble small, .chat-row.me .chat-bubble .text-muted, .chat-row.me .chat-bubble strong { color: #d8e5db !important; }
.chat-message-content { width: auto; max-width: 78%; }
.chat-message-content .chat-bubble { width: auto; max-width: 100%; }
.chat-row.me .chat-time { color: #c9dccf; }
.btn-secondary:disabled { background: #fffdf9 !important; border-color: #cfd8d0 !important; color: var(--gg-forest) !important; }

/* Day by day is a view of the itinerary card on the website, not a section of its own. */
.trip-detail-page .trip-days-view { padding: 0 22px 20px; }
.trip-detail-page .trip-days-view .day-plan { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.trip-detail-page .trip-days-view .day-plan > header { display: none; }
.trip-detail-page .trip-step-tools { flex-wrap: wrap; justify-content: flex-end; }

/* Trip map beside the itinerary. On wide screens it heads the sidebar; on narrow screens it moves above the plan. */
.trip-detail-page .trip-map-card { padding: 14px 14px 16px; }
.trip-detail-page .trip-map-card .trip-side-head { padding: 0 4px; }
.trip-detail-page .trip-map-count { color: var(--pl-muted); font-size: 12.5px; font-weight: 600; }
.trip-detail-page .trip-map-canvas { height: 340px; margin-top: 6px; overflow: hidden; border-radius: 12px; background: #e9e6dc; }
.trip-detail-page .trip-map-empty { margin: 8px 4px 0; color: var(--pl-muted); font-size: 13.5px; line-height: 1.45; }
.trip-map-info { color: #1f3b32; font: 600 13px/1.4 inherit; }
.trip-map-info div { color: #617168; font-weight: 400; }
.trip-detail-page .item-map-number { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--pl-primary); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.trip-detail-page .itinerary-item.is-highlighted { animation: trip-map-flash 1.6s ease-out; }
@keyframes trip-map-flash { 0%, 30% { background: #e6efe9; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .trip-detail-page .itinerary-item.is-highlighted { animation: none; outline: 2px solid var(--pl-primary); } }
@media (max-width: 991px) {
  .trip-detail-page .trip-layout { display: flex; flex-direction: column; }
  .trip-detail-page .trip-side { display: contents; }
  .trip-detail-page .trip-map-card { order: -1; }
  .trip-detail-page .trip-map-canvas { height: 260px; }
}
