/* The Morocco Guide Map (MoroccoGuideMap.razor, js/guidemap.js).
   The map fills the screen under the header; the app panel sits on it:
   a sidebar on a computer, a bottom sheet you drag on a phone.
   The guide text below it is the same content for search engines. */

.gm {
    --gm-ink: var(--color-near-black, #171412);
    --gm-muted: #6b625a;
    --gm-line: rgba(23, 20, 18, 0.1);
    --gm-soft: #ebe5d9;
    --gm-panel: #fbf9f4;
    --gm-teal: var(--color-teal, #155259);
    --gm-gold: var(--color-gold, #BF9765);
    --gm-terra: var(--color-terracotta, #BF755A);
    --gm-night: #0d2326;
    --gm-radius: 16px;
    position: relative;
    height: calc(100svh - 76px);
    min-height: 540px;
    overflow: hidden;
    background: var(--gm-night);
    font-family: var(--font-body);
    color: var(--gm-ink);
    isolation: isolate;
}

.gm__map {
    position: absolute;
    inset: 0;
    background: var(--gm-night);
}

    .gm__map:focus-visible {
        outline: 3px solid var(--gm-gold);
        outline-offset: -3px;
    }

/* ---------- The panel ---------- */
.gm-app {
    position: absolute;
    z-index: 1000;
    top: 14px;
    left: 14px;
    bottom: 14px;
    width: min(410px, calc(100% - 28px));
    display: flex;
    flex-direction: column;
    background: var(--gm-panel);
    border-radius: 20px;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.gm-app__grab {
    display: none;
}

.gm-app__head {
    padding: 18px 22px 10px;
}

.gm-app__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gm-muted);
}

.gm-beta {
    display: inline-block;
    padding: 3px 7px 2px;
    border-radius: 999px;
    background: var(--gm-terra);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
}

.gm-app__title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.gm-tabs {
    display: flex;
    gap: 4px;
    margin: 6px 14px 0;
    padding: 4px;
    border-radius: 12px;
    background: var(--gm-soft);
}

.gm-tab {
    flex: 1;
    min-width: 0;
    padding: 9px 4px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--gm-muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

    .gm-tab:hover {
        color: var(--gm-ink);
    }

.gm-tab--on {
    background: #fff;
    color: var(--gm-teal);
    box-shadow: 0 1px 4px rgba(23, 20, 18, 0.12);
}

.gm-app__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gm-view {
    padding: 18px 22px 28px;
    animation: gm-in 0.22s ease both;
}

@keyframes gm-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gm-view { animation: none; }
}

/* ---------- Type ---------- */
.gm-h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
}

.gm-h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gm-muted);
}

    .gm-h3 i {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--c);
    }

.gm-label {
    margin: 14px 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gm-muted);
}

.gm-lead {
    font-size: 1.02rem;
    line-height: 1.55;
    color: #3d3631;
}

.gm-view p {
    line-height: 1.55;
}

.gm-muted {
    color: var(--gm-muted);
}

.gm-small {
    font-size: 0.85rem;
}

.gm-center {
    text-align: center;
    margin-top: 22px;
}

.gm-eyebrow {
    margin: 0 0 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c, var(--gm-terra));
}

.gm-note {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f3ead8;
    color: #5a4421;
    font-size: 0.9rem;
}

    .gm-note strong {
        display: block;
        margin-bottom: 2px;
    }

.gm-note--warn {
    background: #fbe5dc;
    color: #7a3a22;
}

.gm-empty {
    padding: 18px 4px;
}

/* ---------- Buttons ---------- */
.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--gm-line);
    border-radius: 12px;
    background: #fff;
    color: var(--gm-ink);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

    .gm-btn:hover {
        text-decoration: none;
        border-color: rgba(23, 20, 18, 0.25);
    }

    .gm-btn:active {
        transform: scale(0.98);
    }

.gm-btn--primary {
    border-color: transparent;
    background: var(--gm-teal);
    color: #fff;
}

    .gm-btn--primary:hover {
        background: #0e3c41;
        color: #fff;
    }

.gm-btn--whatsapp {
    border-color: transparent;
    background: #25D366;
    color: #0b3d20;
}

    .gm-btn--whatsapp:hover {
        background: #1fbd5a;
        color: #0b3d20;
    }

.gm-btn--on {
    border-color: var(--gm-teal);
    background: #e3eeee;
    color: var(--gm-teal);
}

.gm-btn--big {
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    font-size: 1rem;
    border-radius: 14px;
}

.gm-btn--link {
    min-height: 0;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--gm-teal);
    font-size: 0.86rem;
}

    .gm-btn--link:hover {
        text-decoration: underline;
    }

.gm-steps {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

    .gm-steps .gm-btn--big {
        flex: 1;
        margin: 0;
    }

.gm-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

    .gm-actions .gm-btn--big {
        margin: 0;
    }

.gm-actions__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gm-back {
    margin: -4px 0 12px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--gm-teal);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Choices, chips, tiles ---------- */
.gm-choices {
    display: grid;
    gap: 10px;
    margin: 14px 0 6px;
}

.gm-choices--grid {
    grid-template-columns: 1fr 1fr;
}

.gm-choices--tiles {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

.gm-choices--row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gm-choices--center {
    justify-content: center;
}

.gm-choice,
.gm-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 16px;
    border: 1.5px solid var(--gm-line);
    border-radius: 14px;
    background: #fff;
    color: var(--gm-ink);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

    .gm-choice:hover,
    .gm-tile:hover {
        border-color: rgba(21, 82, 89, 0.45);
    }

    .gm-choice:active,
    .gm-tile:active {
        transform: scale(0.98);
    }

    .gm-choice small {
        color: var(--gm-muted);
        font-size: 0.84rem;
    }

    .gm-choice.on,
    .gm-tile.on {
        border-color: var(--gm-teal);
        background: #e8f1f1;
        box-shadow: inset 0 0 0 1px var(--gm-teal);
    }

.gm-tile {
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

    .gm-tile span {
        font-size: 1.6rem;
        line-height: 1;
    }

.gm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--gm-line);
    border-radius: 999px;
    background: #fff;
    color: var(--gm-ink);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .gm-chip:hover {
        border-color: rgba(23, 20, 18, 0.28);
    }

    .gm-chip.on {
        border-color: var(--gm-teal);
        background: var(--gm-teal);
        color: #fff;
    }

    .gm-chip button {
        padding: 0 0 0 2px;
        border: 0;
        background: none;
        color: inherit;
        font-size: 0.8rem;
        cursor: pointer;
    }

.gm-chip--layer.on {
    border-color: var(--gm-gold);
    background: #f5ecdc;
    color: #5a4421;
}

.gm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c);
}

.gm-chip.on .gm-dot {
    box-shadow: 0 0 0 2px #fff;
}

/* ---------- The planner ---------- */
.gm-h3 small {
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.8;
}

.gm-btn--soft {
    border-color: transparent;
    background: #e8f1f1;
    color: var(--gm-teal);
}

    .gm-btn--soft:hover {
        background: #d9e9e9;
        border-color: transparent;
    }

.gm-stepper {
    display: inline-flex;
    align-items: center;
    flex: none;
    border: 1px solid var(--gm-line);
    border-radius: 999px;
    background: #fff;
}

    .gm-stepper button {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        background: none;
        color: var(--gm-teal);
        font-size: 1.15rem;
        line-height: 1;
        cursor: pointer;
    }

        .gm-stepper button:hover:not(:disabled) {
            background: #e8f1f1;
        }

        .gm-stepper button:disabled {
            color: rgba(23, 20, 18, 0.25);
            cursor: default;
        }

    .gm-stepper output {
        min-width: 62px;
        font-size: 0.82rem;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }

.gm-setup-days {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

    .gm-setup-days .gm-choices {
        margin: 0;
    }

    .gm-setup-days .gm-stepper output {
        min-width: 70px;
        font-size: 0.95rem;
    }

    .gm-setup-days .gm-stepper button {
        width: 40px;
        height: 40px;
    }

.gm-start {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

    .gm-start .gm-btn--big {
        margin: 0;
    }

.gm-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gm-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--gm-line);
    border-radius: 14px;
    background: #fff;
    color: var(--gm-ink);
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .gm-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-card);
    }

    .gm-card img,
    .gm-card__icon {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        background: var(--gm-soft);
    }

.gm-card__icon {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #17444a, var(--gm-teal)) !important;
    font-size: 1.6rem;
}

.gm-card > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
}

.gm-card strong {
    font-size: 0.88rem;
    line-height: 1.3;
}

.gm-card small {
    color: var(--gm-muted);
    font-size: 0.78rem;
}

/* The trip so far */
.gm-view--builder {
    padding-top: 14px;
}

.gm-trip-head {
    position: sticky;
    top: -14px;
    z-index: 2;
    margin: -14px -22px 14px;
    padding: 14px 22px 12px;
    background: var(--gm-panel);
    border-bottom: 1px solid var(--gm-line);
}

    .gm-trip-head .gm-h2 {
        margin-bottom: 8px;
        font-size: 1.3rem;
    }

        .gm-trip-head .gm-h2 strong {
            color: var(--gm-teal);
            font-weight: 600;
        }

.gm-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--gm-soft);
}

    .gm-bar span {
        display: block;
        height: 100%;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--gm-teal), #2f8a8f);
        transition: width 0.35s ease;
    }

.gm-trip-head__drive {
    margin: 8px 0 0;
    color: var(--gm-muted);
    font-size: 0.8rem;
}

.gm-stops {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gm-leg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 0 15px;
    padding: 8px 0 8px 22px;
    border-left: 2px dashed rgba(191, 151, 101, 0.7);
    color: var(--gm-muted);
    font-size: 0.8rem;
}

.gm-leg--long > span:first-child {
    color: #9a4a16;
    font-weight: 600;
}

.gm-leg__tip {
    color: #7a4a1c;
}

    .gm-leg__tip button {
        display: block;
        margin-top: 4px;
        padding: 6px 10px;
        border: 1px dashed #c98a4a;
        border-radius: 999px;
        background: #fdf3e6;
        color: #7a4a1c;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
    }

.gm-stop {
    padding: 12px;
    border: 1px solid var(--gm-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(23, 20, 18, 0.04);
}

.gm-stop--new {
    animation: gm-pop 0.6s ease;
}

@keyframes gm-pop {
    0% { box-shadow: 0 0 0 0 rgba(21, 82, 89, 0.45); }
    100% { box-shadow: 0 0 0 12px rgba(21, 82, 89, 0); }
}

.gm-stop__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-stop__name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gm-ink);
    text-align: left;
    cursor: pointer;
}

    .gm-stop__name > span:last-child {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .gm-stop__name strong {
        font-family: var(--font-display);
        font-size: 1.02rem;
        font-weight: 600;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .gm-stop__name small {
        color: var(--gm-muted);
        font-size: 0.76rem;
    }

.gm-stop__pin {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gm-terra);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.gm-stop__remove {
    flex: none;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--gm-muted);
    cursor: pointer;
}

    .gm-stop__remove:hover {
        background: #fbe5dc;
        color: #7a3a22;
    }

.gm-stop__pics {
    display: flex;
    gap: 6px;
    margin: 10px -12px 0;
    padding: 0 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

    .gm-stop__pics::-webkit-scrollbar {
        display: none;
    }

    .gm-stop__pics img {
        flex: none;
        width: 46%;
        aspect-ratio: 4 / 3;
        border-radius: 10px;
        object-fit: cover;
        scroll-snap-align: start;
    }

        .gm-stop__pics img:only-child {
            width: 100%;
            aspect-ratio: 16 / 8;
        }

.gm-stop__days {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.gm-dayrow {
    padding: 10px 0 0;
    border-top: 1px solid var(--gm-line);
    margin-top: 10px;
}

    .gm-dayrow:first-child {
        border-top: 0;
        margin-top: 0;
    }

.gm-dayrow__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.gm-dayrow__n {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gm-soft);
    color: var(--gm-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gm-dayrow__title {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .gm-dayrow__title strong {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .gm-dayrow__title small {
        color: var(--gm-muted);
        font-size: 0.76rem;
    }

        .gm-dayrow__title small.gm-long {
            color: #9a4a16;
            font-weight: 600;
        }

.gm-day__warn {
    margin: 6px 0 0;
    color: #9a4a16;
    font-size: 0.78rem;
    font-weight: 600;
}

.gm-dayrow__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.gm-chip--act {
    min-height: 30px;
    padding: 4px 8px 4px 11px;
    font-size: 0.78rem;
}

.gm-addact {
    min-height: 30px;
    padding: 4px 12px;
    border: 1px dashed rgba(21, 82, 89, 0.45);
    border-radius: 999px;
    background: none;
    color: var(--gm-teal);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

    .gm-addact:hover {
        background: #e8f1f1;
        border-style: solid;
    }

.gm-picker {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 12px;
    background: var(--gm-soft);
}

.gm-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--gm-ink);
    text-align: left;
    cursor: pointer;
}

    .gm-pick:hover {
        box-shadow: inset 0 0 0 1px var(--gm-teal);
    }

    .gm-pick > span:first-child {
        flex: none;
        font-size: 1.2rem;
    }

    .gm-pick > span:nth-child(2) {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        font-size: 0.86rem;
    }

    .gm-pick small {
        color: var(--gm-muted);
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .gm-pick i {
        color: var(--gm-teal);
        font-style: normal;
        font-weight: 700;
    }

.gm-picker .gm-btn--link {
    justify-self: center;
}

/* Where next? */
.gm-next {
    margin-top: 18px;
    padding: 4px 0 0;
}

    .gm-next .gm-h3 {
        margin-top: 0;
        color: var(--gm-teal);
    }

.gm-options {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.gm-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 12px 8px 8px;
    border: 1.5px solid var(--gm-line);
    border-radius: 14px;
    background: #fff;
    color: var(--gm-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

    .gm-option:hover {
        border-color: var(--gm-teal);
        box-shadow: 0 6px 18px -10px rgba(21, 82, 89, 0.5);
    }

    .gm-option:active {
        transform: scale(0.99);
    }

    .gm-option img,
    .gm-option__icon {
        flex: none;
        width: 58px;
        height: 58px;
        border-radius: 10px;
        object-fit: cover;
    }

.gm-option__icon {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c) 18%, #fff);
    font-size: 1.4rem;
}

.gm-option__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

    .gm-option__text strong {
        font-size: 0.96rem;
    }

    .gm-option__text small {
        color: var(--gm-muted);
        font-size: 0.8rem;
    }

        .gm-option__text small.gm-long {
            color: #9a4a16;
            font-weight: 600;
        }

.gm-option > i {
    color: var(--gm-teal);
    font-size: 1.4rem;
    font-style: normal;
}

.gm-tag {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--gm-soft);
    color: var(--gm-muted);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 600;
}

.gm-tag--fav {
    background: #f5ecdc;
    color: #7a5a24;
}

.gm-tag--end {
    background: #e3eeee;
    color: var(--gm-teal);
}

.gm-next__more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

    .gm-next__more .gm-btn {
        font-size: 0.84rem;
    }

.gm-done {
    margin-top: 18px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f1f1, #f5ecdc);
    text-align: center;
}

.gm-done__icon {
    margin: 0;
    font-size: 2rem;
}

.gm-send {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--gm-line);
}

    .gm-send .gm-btn--big {
        margin: 0;
    }

.gm-preview-add {
    margin: 12px 0 4px;
    padding: 12px;
    border-radius: 14px;
    background: #e8f1f1;
}

    .gm-preview-add p {
        margin: 0;
        color: var(--gm-teal);
        font-weight: 600;
    }

    .gm-preview-add .gm-btn--big {
        margin-top: 10px;
    }

.gm-field {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gm-muted);
}

    .gm-field input,
    .gm-field select {
        width: 100%;
        min-height: 46px;
        padding: 10px 14px;
        border: 1px solid rgba(23, 20, 18, 0.18);
        border-radius: 12px;
        background: #fff;
        color: var(--gm-ink);
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 400;
    }

        .gm-field input:focus,
        .gm-field select:focus {
            outline: none;
            border-color: var(--gm-teal);
            box-shadow: 0 0 0 3px rgba(21, 82, 89, 0.15);
        }

.gm-field--inline {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 0;
}

    .gm-field--inline select {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.92rem;
    }

/* On the map: the next choices, labelled with the drive */
.gm-optlabel-wrap {
    background: none;
    border: 0;
}

.gm-optlabel {
    position: absolute;
    left: 0;
    top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 10px;
    border-radius: 10px;
    background: #fbf9f4;
    color: var(--gm-ink);
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
    cursor: pointer;
}

    .gm-optlabel strong {
        font-size: 0.78rem;
    }

    .gm-optlabel span {
        color: var(--gm-teal);
        font-weight: 600;
    }

.gm-pin-wrap--focus .gm-pin {
    transform: scale(1.35);
    box-shadow: 0 0 0 6px rgba(233, 196, 122, 0.55), 0 6px 18px rgba(0, 0, 0, 0.5);
}

.gm-pin-wrap--focus .gm-pin__label {
    opacity: 1;
}

/* ---------- Explore ---------- */
.gm-search input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px 12px 42px;
    border: 1px solid rgba(23, 20, 18, 0.16);
    border-radius: 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b625a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 15px center;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gm-ink);
}

    .gm-search input:focus {
        outline: none;
        border-color: var(--gm-teal);
        box-shadow: 0 0 0 3px rgba(21, 82, 89, 0.15);
    }

.gm-places {
    display: grid;
    gap: 2px;
    margin: 14px -8px 0;
    padding: 0;
    list-style: none;
}

.gm-place {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--gm-ink);
    text-align: left;
    cursor: pointer;
}

    .gm-place:hover {
        background: var(--gm-soft);
    }

    .gm-place img,
    .gm-place__icon {
        flex: none;
        width: 48px;
        height: 48px;
        border-radius: 10px;
        object-fit: cover;
    }

.gm-place__icon {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c) 18%, #fff);
    font-size: 1.3rem;
}

.gm-place > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gm-place strong {
    font-size: 0.94rem;
}

.gm-place small {
    overflow: hidden;
    color: var(--gm-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- Details ---------- */
.gm-view--detail {
    padding-top: 12px;
}

.gm-photos {
    position: relative;
    margin: 4px 0 16px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--gm-soft);
    box-shadow: 0 10px 26px -18px rgba(23, 20, 18, 0.55);
}

.gm-photos__strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

    .gm-photos__strip::-webkit-scrollbar {
        display: none;
    }

    .gm-photos__strip img {
        flex: none;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        scroll-snap-align: start;
    }

.gm-photos__count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(13, 35, 38, 0.7);
    color: #fff;
    font-size: 0.74rem;
}

.gm-photos--empty {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 1.3;
    font-size: 2.4rem;
}

.gm-facts {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.gm-fact {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--gm-line);
    font-size: 0.9rem;
    line-height: 1.4;
}

    .gm-fact small {
        display: block;
        color: var(--gm-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

.gm-strip {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}

    .gm-strip span {
        padding: 6px 0;
        border-radius: 5px;
        background: var(--c);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        text-align: center;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    }

.gm-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.92rem;
}

    .gm-list li {
        margin-bottom: 6px;
    }

.gm-actlist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .gm-actlist li {
        display: flex;
        gap: 12px;
        font-size: 0.9rem;
        line-height: 1.4;
    }

        .gm-actlist li > span:first-child {
            flex: none;
            font-size: 1.2rem;
        }

    .gm-actlist small {
        display: block;
        color: var(--gm-muted);
        font-size: 0.82rem;
    }

.gm-links {
    display: grid;
    gap: 8px;
}

.gm-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gm-line);
    border-radius: 12px;
    background: #fff;
    color: var(--gm-ink);
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

    .gm-link:hover {
        border-color: var(--gm-teal);
        text-decoration: none;
    }

    .gm-link > span {
        flex: 1;
        min-width: 0;
    }

    .gm-link small {
        display: block;
        color: var(--gm-muted);
        font-size: 0.8rem;
    }

    .gm-link i {
        color: var(--gm-teal);
        font-style: normal;
    }

.gm-roadhero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 -22px 16px;
    padding: 22px;
    background: linear-gradient(135deg, var(--gm-night), #17444a);
    color: #fff;
}

    .gm-roadhero > span {
        flex: none;
        padding: 6px 10px;
        border-radius: 8px;
        background: var(--c);
        color: var(--gm-night);
        font-family: var(--font-mono);
        font-weight: 700;
    }

    .gm-roadhero p {
        margin: 0;
        font-size: 0.9rem;
    }

    .gm-roadhero i {
        color: var(--c);
        font-style: normal;
    }

.gm-light {
    color: #8a5a1c;
    font-size: 0.9rem;
}

.gm-quote {
    margin: 10px 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.45;
}

.gm-who span {
    color: var(--gm-gold);
}

/* ---------- Seasons ---------- */
.gm-months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin: 14px 0;
}

    .gm-months button {
        min-height: 40px;
        border: 1px solid var(--gm-line);
        border-radius: 10px;
        background: #fff;
        color: var(--gm-ink);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
    }

        .gm-months button.on {
            border-color: var(--gm-teal);
            background: var(--gm-teal);
            color: #fff;
        }

.gm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--gm-muted);
}

    .gm-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .gm-legend i {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--c);
    }

.gm-zone p {
    margin: 0 0 8px;
    font-size: 0.88rem;
    color: #4a423c;
}

.gm-zone strong {
    color: var(--gm-ink);
}

/* ---------- Drive times ---------- */
.gm-fromto {
    position: relative;
}

.gm-swap {
    position: absolute;
    right: 12px;
    top: 50%;
    z-index: 1;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    border: 1px solid var(--gm-line);
    border-radius: 50%;
    background: #fff;
    color: var(--gm-teal);
    font-size: 1rem;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(23, 20, 18, 0.1);
}

.gm-drive {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gm-night), #17444a);
    color: #fff;
}

    .gm-drive .gm-muted {
        color: rgba(255, 255, 255, 0.7);
    }

.gm-drive__route {
    margin: 0 0 4px;
    font-size: 0.85rem;
    color: #E9C47A;
}

.gm-drive__big {
    display: flex;
    flex-direction: column;
    margin: 0 0 6px;
}

    .gm-drive__big strong {
        font-family: var(--font-display);
        font-size: 2rem;
        font-weight: 500;
    }

.gm-drive .gm-btn {
    width: 100%;
    margin-top: 6px;
}

/* ---------- On the map ---------- */
.gm-mapbar {
    position: absolute;
    z-index: 900;
    right: 12px;
    top: 96px;
}

.gm-mapbar__btn {
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(251, 249, 244, 0.95);
    color: var(--gm-ink);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.gm .leaflet-control-zoom {
    margin: 12px 12px 0 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

    .gm .leaflet-control-zoom a {
        width: 36px;
        height: 36px;
        line-height: 36px;
        border: 0;
        background: rgba(251, 249, 244, 0.95);
        color: var(--gm-ink);
    }

.gm .leaflet-control-attribution {
    background: rgba(13, 35, 38, 0.6);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.62rem;
}

    .gm .leaflet-control-attribution a {
        color: rgba(255, 255, 255, 0.85);
    }

.gm .leaflet-container {
    font-family: var(--font-body);
}

.gm-pin-wrap {
    background: none;
    border: 0;
}

.gm-pin {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 3px solid var(--c);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.25s ease, filter 0.25s ease, border-color 0.25s ease, width 0.2s ease, height 0.2s ease;
}

    .gm-pin img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gm-pin-wrap:hover .gm-pin {
    transform: scale(1.12);
}

.gm-pin--faded {
    opacity: 0.25;
    filter: grayscale(0.9);
    transform: scale(0.7);
}

.gm-pin__label {
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(13, 35, 38, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.15s ease;
}

.gm-pin-wrap:hover .gm-pin__label,
.gm--labels .gm-pin__label {
    opacity: 1;
}

.gm--labels .gm-pin--faded + .gm-pin__label {
    opacity: 0;
}

/* Zoomed out: small dots, so the country stays readable. */
.gm--dots .gm-pin {
    width: 13px;
    height: 13px;
    margin: 15.5px;
    border-width: 2px;
    background: var(--c);
}

    .gm--dots .gm-pin img,
    .gm--dots .gm-pin span {
        display: none;
    }

.gm--seasons .gm-pin {
    border-width: 4px;
}

.gm-mini {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 10px;
    background: var(--gm-night);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    font-size: 1rem;
    cursor: pointer;
}

    .gm-mini img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gm-mini--practical {
    border-radius: 50%;
    background: #fff;
}

.gm-mini--event {
    border-color: #E9C47A;
}

.gm-culture {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(233, 196, 122, 0.6);
    border-radius: 999px;
    background: rgba(13, 35, 38, 0.78);
    color: #E9C47A;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-style: italic;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.gm-road-badge-wrap {
    background: none;
    border: 0;
}

.gm-road-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--c);
    color: var(--gm-night);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

    .gm-road-badge span {
        display: none;
        font-family: var(--font-body);
    }

.gm--labels .gm-road-badge span,
.gm-road-badge:hover span {
    display: inline;
}

.gm--dots .gm-road-badge {
    display: none;
}

.gm-road-hit {
    cursor: pointer;
}

.gm-daymark {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border: 2px solid #fff;
    border-radius: 15px 15px 15px 4px;
    background: var(--gm-terra);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

/* ---------- Phone: the panel becomes a bottom sheet ---------- */
@media (max-width: 900px) {
    .gm {
        height: calc(100svh - var(--gm-head, 64px));
        height: calc(100dvh - var(--gm-head, 64px));
        min-height: 480px;
    }

    .gm-app {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: 52%;
        border-radius: 22px 22px 0 0;
        transition: height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, 0.55);
    }

    .gm-app[data-sheet="peek"] { height: 150px; }
    .gm-app[data-sheet="half"] { height: 52%; }
    .gm-app[data-sheet="full"] { height: 92%; }

    .gm-app--dragging {
        transition: none;
    }

    .gm-app__grab {
        display: grid;
        place-items: center;
        flex: none;
        height: 22px;
        padding: 0;
        border: 0;
        background: none;
        cursor: grab;
        touch-action: none;
    }

        .gm-app__grab span {
            width: 42px;
            height: 5px;
            border-radius: 3px;
            background: rgba(23, 20, 18, 0.2);
        }

    .gm-app__head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        padding: 0 18px 4px;
    }

    .gm-app__eyebrow {
        order: 2;
        margin: 0;
    }

        .gm-app__eyebrow {
            font-size: 0;
        }

            .gm-app__eyebrow .gm-beta {
                font-size: 0.6rem;
            }

    .gm-app__title {
        font-size: 1.25rem;
    }

    .gm-tabs {
        margin: 4px 12px 0;
    }

    .gm-tab {
        font-size: 0.8rem;
        padding: 8px 2px;
    }

    .gm-view {
        padding: 16px 18px 32px;
    }

    .gm-roadhero {
        margin-left: -18px;
        margin-right: -18px;
    }

    .gm-mapbar {
        top: 12px;
        right: auto;
        left: 12px;
    }
}

@media (max-width: 380px) {
    .gm-tab {
        font-size: 0.74rem;
    }

    .gm-choices--tiles {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- The guide, as text (below the map) ---------- */
.gm-guide {
    padding: var(--space-6) 0;
    background: var(--color-bg);
}

.gm-guide__inner {
    width: min(var(--content-max), calc(100% - 32px));
    margin: 0 auto;
}

.gm-guide__eyebrow {
    margin: 0 0 var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-terracotta);
}

.gm-guide h2 {
    margin-top: var(--space-6);
    font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
}

    .gm-guide h2:first-of-type {
        margin-top: 0;
    }

.gm-guide__lede {
    max-width: 70ch;
    font-size: 1.08rem;
    color: #3d3631;
}

.gm-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.gm-guide__group h3 {
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-gold);
    font-size: 1.1rem;
}

.gm-guide__group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gm-guide__group li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(23, 20, 18, 0.07);
    font-size: 0.9rem;
    color: #5b524b;
}

    .gm-guide__group li strong {
        color: var(--color-ink);
    }

    .gm-guide__group li a strong {
        color: var(--color-teal);
    }

.gm-guide__roads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-3);
}

.gm-guide__road {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-card);
}

    .gm-guide__road h3 {
        margin-bottom: var(--space-2);
        font-size: 1.1rem;
    }

    .gm-guide__road p {
        margin: 0 0 var(--space-2);
        font-size: 0.92rem;
    }

.gm-guide__facts {
    font-family: var(--font-mono);
    font-size: 0.78rem !important;
    color: var(--color-terracotta);
}

.gm-guide__table {
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-card);
    padding: var(--space-3);
}

    .gm-guide__table table {
        width: 100%;
        min-width: 640px;
        border-collapse: separate;
        border-spacing: 3px;
        font-size: 0.85rem;
    }

    .gm-guide__table th {
        font-weight: 600;
        text-align: center;
    }

        .gm-guide__table th[scope="row"] {
            padding-right: var(--space-3);
            text-align: left;
            white-space: nowrap;
        }

    .gm-guide__table td {
        height: 26px;
        border-radius: 5px;
    }

.gm-rate--g { background: #2FA35A; }
.gm-rate--o { background: #A3C55A; }
.gm-rate--h { background: #EE8A2C; }
.gm-rate--c { background: #5AA9E0; }
.gm-rate--r { background: #8C9BB5; }

.gm-guide__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: var(--space-3) 0 0;
    font-size: 0.82rem;
    color: #5b524b;
}

    .gm-guide__legend .gm-rate {
        display: inline-block;
        width: 14px;
        height: 14px;
        border-radius: 4px;
        margin-left: 8px;
    }

        .gm-guide__legend .gm-rate:first-child {
            margin-left: 0;
        }

.gm-guide__faq {
    display: grid;
    gap: var(--space-2);
    max-width: 820px;
}

    .gm-guide__faq details {
        border-radius: var(--radius-md);
        background: #fff;
        box-shadow: 0 2px 10px rgba(23, 20, 18, 0.06);
    }

    .gm-guide__faq summary {
        padding: var(--space-3) var(--space-4);
        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }

        .gm-guide__faq summary::-webkit-details-marker {
            display: none;
        }

        .gm-guide__faq summary::after {
            content: "+";
            float: right;
            color: var(--color-teal);
            font-size: 1.2rem;
            line-height: 1;
        }

    .gm-guide__faq details[open] summary::after {
        content: "−";
    }

    .gm-guide__faq details p {
        margin: 0;
        padding: 0 var(--space-4) var(--space-3);
        color: #4a423c;
    }

.gm-guide__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

@media (max-width: 900px) {
    .gm-trip-head {
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .gm-stop__pics img {
        width: 62%;
    }
}

/* ---------- Stops on the way, and the finishing touches ---------- */
.gm-dayrow__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .gm-dayrow__head:hover .gm-dayrow__title strong {
        color: var(--gm-teal);
    }

/* The road of a drive day: start, the stops, the end, on one line down the side. */
.gm-way {
    position: relative;
    display: grid;
    gap: 2px;
    margin: 10px 0 2px;
    padding: 2px 0 2px 26px;
}

    .gm-way::before {
        content: "";
        position: absolute;
        left: 9px;
        top: 10px;
        bottom: 10px;
        width: 2px;
        border-radius: 1px;
        background: linear-gradient(var(--gm-gold), #E9C47A);
    }

.gm-way__end {
    position: relative;
    color: var(--gm-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

    .gm-way__end::before {
        content: "";
        position: absolute;
        left: -21px;
        top: 50%;
        width: 10px;
        height: 10px;
        margin-top: -5px;
        border: 2px solid var(--gm-gold);
        border-radius: 50%;
        background: var(--gm-panel);
    }

.gm-way__stop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 10px 7px 8px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #fbf3e3, rgba(251, 243, 227, 0));
    color: var(--gm-ink);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

    .gm-way__stop:hover {
        background: #f5e7cc;
    }

    .gm-way__stop:active {
        transform: scale(0.99);
    }

.gm-way__icon {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: -26px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f5e7cc;
    box-shadow: 0 2px 6px rgba(23, 20, 18, 0.15);
    font-size: 0.95rem;
}

.gm-way__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .gm-way__text strong {
        font-size: 0.84rem;
        line-height: 1.3;
    }

    .gm-way__text small {
        color: var(--gm-muted);
        font-size: 0.74rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.gm-way__stop em {
    flex: none;
    color: #8a5a1c;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.gm-option__way {
    color: #8a5a1c;
    font-size: 0.74rem;
    line-height: 1.3;
}

/* Waiting for a drive time: a soft shimmer instead of a blank. */
.gm-wait {
    border-radius: 6px;
    color: transparent !important;
    background: linear-gradient(90deg, var(--gm-soft) 25%, #f6f2ea 50%, var(--gm-soft) 75%);
    background-size: 200% 100%;
    animation: gm-shimmer 1.2s linear infinite;
    min-width: 110px;
    display: inline-block;
}

@keyframes gm-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* The trip's road draws itself in when a stop is added. */
.gm-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: gm-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes gm-draw {
    to { stroke-dashoffset: 0; }
}

/* Numbered stops on the map: richer, and lifted when their card is hovered. */
.gm-daymark {
    background: linear-gradient(160deg, #d08a6e, var(--gm-terra));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gm-daymark--hot {
    transform: translateY(-4px) scale(1.18);
    box-shadow: 0 0 0 5px rgba(233, 196, 122, 0.55), 0 8px 18px rgba(0, 0, 0, 0.5);
}

.gm-waypin {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid #E9C47A;
    border-radius: 50%;
    background: #fbf3e3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.gm-pin-wrap:hover .gm-waypin {
    transform: scale(1.15);
}


.gm--dots .gm-waypin {
    width: 14px;
    height: 14px;
    margin: 7px;
    font-size: 0;
}

.gm-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--gm-panel);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
}

.gm-popup .leaflet-popup-content {
    margin: 0;
    width: 240px !important;
}

.gm-popup .leaflet-popup-tip {
    background: var(--gm-panel);
}

.gm-waypop {
    font-family: var(--font-body);
    color: var(--gm-ink);
}

    .gm-waypop img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .gm-waypop .gm-eyebrow {
        margin: 12px 14px 4px;
        color: #8a5a1c;
    }

    .gm-waypop strong {
        display: block;
        margin: 0 14px;
        font-family: var(--font-display);
        font-size: 1.05rem;
    }

    .gm-waypop p:not(.gm-eyebrow) {
        margin: 6px 14px 0;
        color: #4a423c;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .gm-waypop small {
        display: block;
        margin: 8px 14px 12px;
        color: var(--gm-teal);
        font-size: 0.76rem;
        font-weight: 600;
    }

/* The finished trip */
.gm-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

    .gm-ribbon li {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 4px;
    }

        .gm-ribbon li:not(:last-child)::after {
            content: "";
        }

        .gm-ribbon li + li::before {
            content: "→";
            position: relative;
            top: 0;
            margin-bottom: -18px;
            align-self: flex-start;
            margin-left: -10px;
            color: var(--gm-gold);
            font-weight: 700;
        }

    .gm-ribbon strong {
        font-size: 0.82rem;
    }

    .gm-ribbon small {
        color: var(--gm-muted);
        font-size: 0.7rem;
    }

.gm-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 12px 0 14px;
}

    .gm-tiles span {
        display: flex;
        flex-direction: column;
        padding: 10px 4px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.75);
        color: var(--gm-muted);
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .gm-tiles strong {
        font-family: var(--font-display);
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--gm-teal);
    }

/* A note after a change, with Undo */
.gm-toast {
    position: absolute;
    z-index: 1200;
    left: 50%;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 32px);
    padding: 10px 10px 10px 18px;
    border-radius: 999px;
    background: rgba(13, 35, 38, 0.94);
    color: #fff;
    font-size: 0.88rem;
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gm-toast--on {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.gm-toast button {
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: #E9C47A;
    color: var(--gm-night);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 901px) {
    .gm-toast {
        left: calc(50% + 212px);
    }
}

@media (max-width: 900px) {
    .gm-toast {
        top: 64px;
        bottom: auto;
        transform: translate(-50%, -16px);
    }

    .gm-toast--on {
        transform: translate(-50%, 0);
    }
}

/* Finer touches */
.gm-stop {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .gm-stop:hover {
        border-color: rgba(21, 82, 89, 0.25);
        box-shadow: 0 10px 28px -16px rgba(21, 82, 89, 0.45);
    }

.gm-stop__pin {
    background: linear-gradient(160deg, #d08a6e, var(--gm-terra));
    box-shadow: 0 3px 8px -2px rgba(191, 117, 90, 0.6);
}

.gm-option {
    position: relative;
    overflow: hidden;
}

    .gm-option:hover {
        transform: translateY(-1px);
    }

@media (prefers-reduced-motion: reduce) {
    .gm-draw { animation: none; stroke-dasharray: none; }
    .gm-wait { animation: none; }
    .gm-toast, .gm-daymark, .gm-stop__pics img { transition: none; }
}

/* The ribbon, simply: places in a row with an arrow between. */
.gm-ribbon li { position: relative; padding: 0 12px; }
.gm-ribbon li + li::before { position: absolute; left: -6px; top: 1px; margin: 0; }

.gm-picker__head {
    margin: 2px 4px 2px;
    color: var(--gm-teal);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* An open card: a close button (phones), and on a phone the card has the sheet to itself. */
.gm-close {
    display: none;
}

@media (max-width: 900px) {
    .gm-app--card .gm-app__head,
    .gm-app--card .gm-tabs {
        display: none;
    }

    .gm-app--card .gm-back {
        display: none;
    }

    .gm-app--card .gm-view--detail {
        position: relative;
        padding-top: 0;
    }

    .gm-close {
        position: sticky;
        top: 8px;
        z-index: 3;
        float: right;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        margin: 8px -6px -44px 0;
        border: 0;
        border-radius: 50%;
        background: rgba(13, 35, 38, 0.72);
        color: #fff;
        font-size: 1rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(6px);
    }

    .gm-app--card .gm-view--detail > .gm-photos:first-of-type,
    .gm-app--card .gm-view--detail > .gm-roadhero:first-of-type {
        margin-top: 0;
    }

    /* A card with no photo at the top: keep its first line clear of the button. */
    .gm-app--card .gm-view--detail > .gm-back + .gm-eyebrow {
        padding-right: 44px;
    }
}

/* Phones: the sheet's own content scrolls on its own; the handle, title and tabs never move the page. */
@media (max-width: 900px) {
    .gm-app__body {
        overscroll-behavior: contain;
    }

    .gm-app__head,
    .gm-tabs {
        touch-action: none;
    }
}

/* Photo gallery arrows */
.gm-photos__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: rgba(251, 249, 244, 0.92);
    color: var(--gm-ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease, transform 0.12s ease;
}

    .gm-photos__nav:hover {
        background: #fff;
    }

    .gm-photos__nav:active {
        transform: scale(0.92);
    }

    .gm-photos__nav:disabled {
        opacity: 0;
        pointer-events: none;
    }

.gm-photos__nav--prev {
    left: 10px;
}

.gm-photos__nav--next {
    right: 10px;
}

/* On a phone the close button sits over the photo's corner: keep the photo clear of it. */
@media (max-width: 900px) {
    .gm-app--card .gm-view--detail > .gm-photos:first-of-type {
        margin-top: 52px;
    }
}

/* ---------- Map only: hide the panel, bring it back ---------- */
.gm-app {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gm-app__head {
    position: relative;
}

.gm-app__hide {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--gm-line);
    border-radius: 999px;
    background: #fff;
    color: var(--gm-muted);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

    .gm-app__hide:hover {
        border-color: var(--gm-teal);
        color: var(--gm-teal);
    }

.gm-app--hidden {
    transform: translateX(calc(-100% - 30px));
    opacity: 0;
    pointer-events: none;
}

.gm-reopen {
    position: absolute;
    z-index: 1000;
    left: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--gm-teal);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    animation: gm-in 0.25s ease both;
}

    .gm-reopen[hidden] {
        display: none;
    }

    .gm-reopen:hover {
        background: #0e3c41;
    }

/* ---------- The trip's toolbar: back, trip length, start over ---------- */
.gm-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 12px;
}

.gm-tool {
    flex: none;
    padding: 8px 12px;
    border: 1px solid var(--gm-line);
    border-radius: 999px;
    background: #fff;
    color: var(--gm-teal);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .gm-tool:hover {
        border-color: var(--gm-teal);
        background: #e8f1f1;
    }

    .gm-tool:active {
        transform: scale(0.97);
    }

.gm-tools__days .gm-stepper output {
    min-width: 58px;
}

/* Re-drawing the same view: no entrance animation, so taps feel instant. */
.gm-view--still {
    animation: none;
}

.gm-label small {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 900px) {
    .gm-app__head {
        padding-right: 60px;
    }

    .gm-app__hide {
        top: -2px;
        right: 12px;
        padding: 7px;
    }

        .gm-app__hide span {
            display: none;
        }

    .gm-app--hidden {
        transform: translateY(calc(100% + 20px));
    }

    .gm-reopen {
        top: auto;
        left: 50%;
        bottom: 22px;
        transform: translateX(-50%);
        animation: none;
    }

    .gm-tool {
        padding: 7px 10px;
    }
}

/* ---------- Our own map (MapLibre, /moroccoguidemap-next) ---------- */
.gm .maplibregl-map {
    font-family: var(--font-body);
}

.gm .maplibregl-ctrl-top-right {
    top: 2px;
    right: 2px;
}

.gm .maplibregl-ctrl-group {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(251, 249, 244, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

    .gm .maplibregl-ctrl-group button {
        width: 36px;
        height: 36px;
    }

.gm .maplibregl-ctrl-attrib {
    font-size: 0.62rem;
}

.gm .maplibregl-marker {
    cursor: pointer;
}

.gm-popup .maplibregl-popup-content {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--gm-panel, #fbf9f4);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
}

    .gm-popup .maplibregl-popup-content .gm-waypop {
        width: 240px;
    }

.gm-popup .maplibregl-popup-close-button {
    z-index: 2;
    width: 26px;
    height: 26px;
    margin: 6px;
    border-radius: 50%;
    background: rgba(13, 35, 38, 0.6);
    color: #fff;
    font-size: 16px;
}

.gm-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
    border-top-color: var(--gm-panel, #fbf9f4);
}

.gm-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip {
    border-bottom-color: var(--gm-panel, #fbf9f4);
}

.gm-mapbar {
    display: flex;
    gap: 6px;
}

.gm-mapbar__btn[aria-pressed="true"] {
    background: var(--gm-teal, #155259);
    color: #fff;
}

.gm-fly {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #17444a, var(--gm-teal, #155259));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px -8px rgba(21, 82, 89, 0.8);
}

    .gm-fly:hover {
        filter: brightness(1.1);
    }

@media (min-width: 901px) {
    .gm .maplibregl-ctrl-top-right {
        top: 2px;
    }

    .gm-mapbar {
        top: 140px;
    }
}

/* MapLibre sets its box to position: relative; keep it stretched over the whole section. */
.gm .gm__map.maplibregl-map {
    position: absolute;
    inset: 0;
}

/* ---------- Photo credits ---------- */
.gm-photo {
    position: relative;
    flex: none;
    width: 100%;
    margin: 0;
    scroll-snap-align: start;
}

    .gm-photo img {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }

.gm-photos__credit {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 90px);
    padding: 3px 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(13, 35, 38, 0.6);
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.64rem;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none !important;
}

    a.gm-photos__credit:hover {
        background: rgba(13, 35, 38, 0.85);
    }

.gm-guide__credits {
    margin-top: var(--space-5);
    font-size: 0.85rem;
    color: #5b524b;
}

    .gm-guide__credits summary {
        font-weight: 600;
        cursor: pointer;
    }

    .gm-guide__credits ul {
        columns: 2 280px;
        margin: var(--space-2) 0 0;
        padding-left: 18px;
    }

    .gm-guide__credits li {
        margin-bottom: 4px;
        break-inside: avoid;
    }

/* ---------- The flyover panel ---------- */
.gm-flight {
    position: absolute;
    z-index: 1100;
    left: 50%;
    top: 16px;
    width: min(440px, calc(100% - 32px));
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(13, 35, 38, 0.9);
    color: #fff;
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
    transform: translateX(-50%);
    backdrop-filter: blur(6px);
}

    .gm-flight[hidden] {
        display: none;
    }

.gm-flight__route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

    .gm-flight__route i {
        color: #E9C47A;
        font-style: normal;
    }

.gm-flight__bar {
    position: relative;
    height: 4px;
    margin: 10px 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
}

    .gm-flight__bar span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: 2px;
        background: #E9C47A;
    }

    .gm-flight__bar i {
        position: absolute;
        top: -3px;
        width: 10px;
        height: 10px;
        margin-left: -5px;
        border: 2px solid #E9C47A;
        border-radius: 50%;
        background: #0d2326;
    }

.gm-flight__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}

    .gm-flight__row button {
        flex: none;
        padding: 6px 12px;
        border: 0;
        border-radius: 999px;
        background: #fff;
        color: #0d2326;
        font-size: 0.78rem;
        font-weight: 700;
        cursor: pointer;
    }

@media (min-width: 901px) {
    .gm-flight {
        left: calc(50% + 212px);
    }
}

.gm-drive .gm-fly {
    width: 100%;
    justify-content: center;
    margin: 0 0 12px;
    padding: 10px;
    background: #E9C47A;
    color: #0d2326;
}

/* ---------- The drawn icon set ---------- */
.gm-i {
    display: inline-block;
    flex: none;
    width: 1.05em;
    height: 1.05em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.16em;
}

.gm-btn .gm-i,
.gm-tool .gm-i,
.gm-addact .gm-i,
.gm-fly .gm-i,
.gm-chip .gm-i {
    margin-right: 0.4em;
}

.gm-fly .gm-i {
    fill: currentColor;
    stroke: none;
}

.gm-pin > span .gm-i,
.gm-place__icon .gm-i,
.gm-option__icon .gm-i,
.gm-card__icon .gm-i {
    width: 22px;
    height: 22px;
    color: var(--c, #155259);
    vertical-align: middle;
}

.gm-card__icon .gm-i {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.gm--dots .gm-pin > span .gm-i {
    display: none;
}

.gm-eyebrow .gm-i {
    margin-right: 0.35em;
}

.gm-fact__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f3ead8;
    color: #8a5a1c;
}

    .gm-fact__icon .gm-i {
        width: 16px;
        height: 16px;
    }

.gm-mini--event .gm-i {
    width: 16px;
    height: 16px;
    color: #E9C47A;
}

.gm-photos--empty {
    flex-direction: column;
    gap: 6px;
    color: var(--gm-muted);
}

    .gm-photos--empty .gm-i {
        width: 34px;
        height: 34px;
        opacity: 0.6;
    }

    .gm-photos--empty small {
        font-size: 0.75rem;
    }

/* A drive's time, with a small car before it */
[data-leg-text]:not(.gm-wait)::before,
.gm-leg > span:first-child:not(.gm-wait)::before,
#gm-trip-drive::before {
    content: "";
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.35em;
    vertical-align: -0.2em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 15.5 7 10.5h10l1.5 5'/%3E%3Crect x='3.5' y='15.5' width='17' height='3.5' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 15.5 7 10.5h10l1.5 5'/%3E%3Crect x='3.5' y='15.5' width='17' height='3.5' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.75;
}

/* ---------- The day, as a driver writes it ---------- */
.gm-dayrow__time {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 8px 0 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: #6b5a47;
}

    .gm-dayrow__time span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .gm-dayrow__time em {
        flex-basis: 100%;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 9px;
        border-radius: 8px;
        background: #eef1f6;
        color: #3c4f73;
        font-family: var(--font-body);
        font-size: 0.78rem;
        font-style: normal;
        font-weight: 600;
        letter-spacing: 0;
    }

.gm-dayrow__time--dark span:last-child {
    color: #3c4f73;
}

.gm-said {
    position: relative;
    margin: 10px 0 2px;
    padding: 10px 12px 9px 14px;
    border-left: 3px solid var(--gm-gold, #BF9765);
    border-radius: 0 10px 10px 0;
    background: #faf4e8;
}

    .gm-said p {
        margin: 0;
        font-family: var(--font-display);
        font-size: 0.92rem;
        font-style: italic;
        line-height: 1.45;
        color: #4a3a2c;
    }

    .gm-said cite {
        display: block;
        margin-top: 4px;
        font-family: var(--font-mono);
        font-size: 0.64rem;
        font-style: normal;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #9a7444;
    }

        .gm-said cite::before {
            content: "— ";
        }

.gm-pace {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.4;
    color: #5a4a3c;
}

.gm-day__warn {
    padding-left: 18px;
    background: no-repeat left 0.2em / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a4a16' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E");
}

.gm-dayrow__n {
    font-family: var(--font-mono);
}

/* ---------- The road book, on paper ---------- */
.gm-roadbook {
    display: none;
}

html.gm-printing body > *:not(.gm-roadbook) {
    display: none !important;
}

html.gm-printing .gm-roadbook {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px;
    color: #1f1a16;
    font-family: var(--font-body);
    background: #fff;
}

@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    html.gm-printing .gm-roadbook {
        padding: 0;
        max-width: none;
    }
}

.rb-head {
    padding-bottom: 14px;
    border-bottom: 2px solid #1f1a16;
}

.rb-brand {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

    .rb-brand span {
        margin-left: 8px;
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 400;
        color: #BF755A;
    }

.rb-head h1 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
}

.rb-route {
    margin: 0;
    font-size: 0.95rem;
}

.rb-total {
    margin: 6px 0 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #6b5a47;
}

.rb-map {
    display: block;
    width: 100%;
    margin: 16px 0 6px;
    border-radius: 6px;
    break-inside: avoid;
}

.rb-day {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e4dccd;
    break-inside: avoid;
}

.rb-day__n {
    margin: 2px 0 0;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #BF755A;
}

.rb-day h2 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.rb-day p {
    margin: 4px 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.rb-day__meta {
    font-family: var(--font-mono);
    font-size: 0.74rem !important;
    color: #6b5a47;
}

.rb-day__tip {
    font-family: var(--font-display);
    font-style: italic;
    color: #4a3a2c;
}

    .rb-day__tip span {
        margin-left: 6px;
        font-family: var(--font-mono);
        font-size: 0.66rem;
        font-style: normal;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #9a7444;
    }

.rb-day__night {
    font-weight: 600;
    color: #155259;
}

.rb-foot {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #5b524b;
}

    .rb-foot p {
        margin: 2px 0;
    }

.gm-glyph { display: inline-flex; color: #8a5a1c; }
.gm-glyph .gm-i { width: 18px; height: 18px; }
.gm-way__icon .gm-i { width: 15px; height: 15px; color: #8a5a1c; }
.gm-waypin .gm-i { width: 14px; height: 14px; color: #7a5620; }
.gm--dots .gm-waypin .gm-i { display: none; }
.gm-mini .gm-i { width: 16px; height: 16px; color: #fff; }
.gm-mini--practical .gm-i { color: #155259; }
.gm-chip--act .gm-i { width: 14px; height: 14px; }

/* ---------- Your driver ---------- */
.gm-driver {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 14px;
    background: #f3ead8;
}

    .gm-driver img,
    .gm-driver__mark {
        flex: none;
        width: 52px;
        height: 52px;
        border: 2px solid #fff;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 3px 10px -4px rgba(23, 20, 18, 0.5);
    }

.gm-driver__mark {
    display: grid;
    place-items: center;
    background: var(--gm-teal, #155259);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.gm-driver p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #4a3a2c;
}

    .gm-driver p strong {
        display: block;
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        color: var(--gm-ink, #171412);
    }

.rb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .rb-brand img {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
    }

/* ---------- The setup questions: one small form of dropdowns ---------- */
.gm-ask {
    display: grid;
    gap: 12px;
    margin: 18px 0 4px;
}

.gm-ask__row {
    display: grid;
    gap: 6px;
}

    .gm-ask__row > span {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--gm-muted);
    }

        .gm-ask__row > span small {
            font-weight: 500;
            letter-spacing: 0;
            text-transform: none;
        }

.gm-ask select,
.gm-multi summary {
    width: 100%;
    min-height: 50px;
    padding: 12px 42px 12px 14px;
    border: 1px solid rgba(23, 20, 18, 0.16);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155259' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
    color: var(--gm-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .gm-ask select:hover,
    .gm-multi summary:hover {
        border-color: rgba(21, 82, 89, 0.45);
    }

    .gm-ask select:focus-visible,
    .gm-multi summary:focus-visible,
    .gm-multi[open] summary {
        outline: none;
        border-color: var(--gm-teal);
        box-shadow: 0 0 0 3px rgba(21, 82, 89, 0.15);
    }

.gm-multi {
    position: relative;
}

    .gm-multi summary {
        display: flex;
        align-items: center;
        list-style: none;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

        .gm-multi summary::-webkit-details-marker {
            display: none;
        }

    .gm-multi[open] summary {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155259' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
    }

.gm-multi__list {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    max-height: 280px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(23, 20, 18, 0.12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px -16px rgba(23, 20, 18, 0.45);
    animation: gm-in 0.15s ease both;
}

.gm-multi__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

    .gm-multi__item:hover {
        background: var(--gm-soft);
    }

    .gm-multi__item input {
        flex: none;
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--gm-teal, #155259);
    }

@media (max-width: 380px) {
    .gm-multi__list {
        grid-template-columns: 1fr;
    }
}

/* ---------- The phone sheet: bigger grab, open/close button, smooth settle ---------- */
.gm-sheet-toggle {
    display: none;
}

@media (max-width: 900px) {
    .gm-app {
        transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: height;
    }

    .gm-app--dragging {
        transition: none;
    }

    .gm-app__grab {
        height: 30px;
        cursor: grab;
    }

        .gm-app__grab span {
            width: 48px;
            height: 5px;
            border-radius: 3px;
            background: rgba(23, 20, 18, 0.22);
            transition: background-color 0.15s ease, width 0.15s ease;
        }

    .gm-app--dragging .gm-app__grab span {
        width: 60px;
        background: var(--gm-teal, #155259);
    }

    .gm-app__head {
        padding-right: 104px;
        cursor: grab;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
    }

    .gm-app--dragging .gm-app__head,
    .gm-app--dragging .gm-app__grab {
        cursor: grabbing;
    }

    .gm-sheet-toggle {
        position: absolute;
        top: -2px;
        right: 56px;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid var(--gm-line);
        border-radius: 50%;
        background: #fff;
        color: var(--gm-teal, #155259);
        cursor: pointer;
        transition: border-color 0.15s ease, background-color 0.15s ease;
    }

        .gm-sheet-toggle:active {
            background: #e8f1f1;
        }

        .gm-sheet-toggle svg {
            transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        }

    .gm-app[data-sheet="full"] .gm-sheet-toggle svg {
        transform: rotate(180deg);
    }

    .gm-app__hide {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .gm-app,
    .gm-sheet-toggle svg {
        transition: none;
    }
}

/* =====================================================================
   Easy to read, easy to tap (most guests are American, many are seniors)
   Text a size up everywhere in the panel, every control at least 44 px,
   and the map's own buttons always above the place photos.
   ===================================================================== */

/* ---------- Layers: buttons over pins, always ---------- */
.gm__map {
    z-index: 0; /* its pins and photos stay inside the map's layer */
}

.gm .maplibregl-control-container > div,
.gm .leaflet-top,
.gm .leaflet-bottom {
    z-index: 900;
}

.gm-mapbar {
    z-index: 950;
}

.gm-reopen {
    z-index: 1050;
}

.gm .maplibregl-popup {
    z-index: 960;
}

/* ---------- The panel: a little wider, a size up ---------- */
@media (min-width: 901px) {
    .gm-app {
        width: min(440px, calc(100% - 28px));
    }
}

.gm-app {
    font-size: 1.04rem;
}

.gm-app__title {
    font-size: 1.6rem;
}

.gm-tab {
    min-height: 44px;
    font-size: 0.92rem;
}

.gm-h2 {
    font-size: 1.5rem;
}

.gm-h3,
.gm-label,
.gm-ask__row > span {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.gm-lead {
    font-size: 1.05rem;
}

.gm-muted,
.gm-view p {
    line-height: 1.55;
}

.gm-small {
    font-size: 0.92rem;
}

.gm-eyebrow {
    font-size: 0.74rem;
}

/* ---------- Controls: 44–48 px, clear labels ---------- */
.gm-btn {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 1rem;
}

.gm-btn--big {
    min-height: 56px;
    font-size: 1.06rem;
}

.gm-btn--link {
    min-height: 44px;
    font-size: 0.95rem;
}

.gm-chip {
    min-height: 44px;
    padding: 9px 15px;
    font-size: 0.95rem;
}

.gm-chip--act {
    min-height: 40px;
    font-size: 0.88rem;
}

    .gm-chip--act button,
    .gm-chip button {
        min-width: 32px;
        min-height: 32px;
        font-size: 0.95rem;
    }

.gm-tool {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 0.92rem;
}

.gm-stepper button {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
}

.gm-stepper output {
    min-width: 76px;
    font-size: 0.95rem;
}

.gm-stop__remove {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
}

.gm-addact {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.92rem;
}

.gm-fly {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.92rem;
}

.gm-back {
    min-height: 44px;
    font-size: 1rem;
}

.gm-photos__nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    font-size: 1.7rem;
}

.gm-mapbar__btn {
    min-height: 44px;
    padding: 9px 16px;
    font-size: 0.92rem;
}

.gm .maplibregl-ctrl-group button,
.gm .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    line-height: 44px;
}

.gm-ask select,
.gm-multi summary {
    min-height: 54px;
    font-size: 1.05rem;
}

.gm-multi__item {
    min-height: 44px;
    font-size: 1rem;
}

    .gm-multi__item input {
        width: 22px;
        height: 22px;
    }

.gm-search input {
    min-height: 52px;
    font-size: 1.05rem;
}

.gm-field input,
.gm-field select {
    min-height: 50px;
    font-size: 1.05rem;
}

.gm-swap {
    width: 44px;
    height: 44px;
}

/* ---------- Reading the trip ---------- */
.gm-stop__name strong {
    font-size: 1.15rem;
}

.gm-stop__name small,
.gm-dayrow__title small,
.gm-leg,
.gm-trip-head__drive,
.gm-option__text small,
.gm-option__way,
.gm-way__text small,
.gm-pick small,
.gm-actlist small,
.gm-link small,
.gm-place small {
    font-size: 0.88rem;
}

.gm-dayrow__title strong,
.gm-way__text strong,
.gm-option__text strong {
    font-size: 1rem;
}

.gm-dayrow__n {
    font-size: 0.78rem;
}

.gm-dayrow__time {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #5a4733;
}

    .gm-dayrow__time em {
        font-size: 0.9rem;
    }

.gm-said p {
    font-size: 1rem;
}

.gm-said cite {
    font-size: 0.72rem;
}

.gm-pace {
    font-size: 0.98rem;
}

.gm-tag {
    font-size: 0.8rem;
    padding: 2px 9px;
}

.gm-fact {
    font-size: 0.98rem;
}

    .gm-fact small {
        font-size: 0.76rem;
    }

.gm-option img,
.gm-option__icon {
    width: 64px;
    height: 64px;
}

/* The jump to the next choice on a long trip */
.gm-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--gm-teal, #155259);
    border-radius: 12px;
    background: #e8f1f1;
    color: var(--gm-teal, #155259);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}

    .gm-jump:hover {
        background: #d9e9e9;
    }

/* On the map: labels you can read */
.gm-pin__label {
    font-size: 0.82rem;
    padding: 3px 9px;
}

.gm-optlabel {
    font-size: 0.82rem;
    padding: 5px 11px;
}

    .gm-optlabel strong {
        font-size: 0.88rem;
    }

.gm-road-badge {
    font-size: 0.74rem;
}

.gm-toast {
    font-size: 1rem;
    padding: 12px 12px 12px 20px;
}

    .gm-toast button {
        min-height: 40px;
        padding: 8px 18px;
        font-size: 0.95rem;
    }

.gm-flight__route {
    font-size: 1.05rem;
}

.gm-flight__row {
    font-size: 0.95rem;
}

    .gm-flight__row button {
        min-height: 40px;
        padding: 8px 16px;
        font-size: 0.92rem;
    }

/* ---------- Keyboard: always visible where you are ---------- */
.gm-app :focus-visible,
.gm-mapbar :focus-visible,
.gm-reopen:focus-visible,
.gm-flight :focus-visible,
.gm-toast :focus-visible {
    outline: 3px solid #E9A23B;
    outline-offset: 2px;
}

/* ---------- Phones ---------- */
@media (max-width: 900px) {
    .gm-app__title {
        font-size: 1.3rem;
    }

    .gm-tab {
        font-size: 0.88rem;
        padding: 8px 2px;
    }

    .gm-view {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gm-trip-head,
    .gm-photos,
    .gm-roadhero {
        margin-left: -16px;
        margin-right: -16px;
    }

    .gm-photos {
        margin-left: 0;
        margin-right: 0;
    }

    .gm-trip-head {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gm-sheet-toggle,
    .gm-app__hide {
        width: 44px;
        height: 44px;
        top: -6px;
    }

    .gm-sheet-toggle {
        right: 62px;
    }

    .gm-app__head {
        padding-right: 116px;
    }

    /* The map buttons sit clear of the header and of each other */
    .gm-mapbar {
        top: 12px;
        left: 12px;
        gap: 8px;
    }

    .gm .maplibregl-ctrl-top-right {
        top: 4px;
        right: 4px;
    }

    .gm-tools {
        gap: 6px;
    }

    .gm-tool {
        padding: 8px 11px;
        font-size: 0.88rem;
    }

    .gm-tools__days .gm-stepper output {
        min-width: 64px;
    }

    .gm-next__more {
        grid-template-columns: 1fr;
    }

    .gm-actions__row {
        grid-template-columns: 1fr;
    }

    .gm-tiles {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 380px) {
    .gm-tab {
        font-size: 0.8rem;
    }

    .gm-tool span,
    .gm-tool {
        font-size: 0.84rem;
    }
}

/* Last small bits, a size up */
.gm-leg__tip button {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.gm-stop__name {
    min-height: 44px;
}

.gm-app__grab {
    height: 36px;
}

.gm-beta {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.gm-eyebrow,
.gm-trip-head .gm-eyebrow {
    font-size: 0.8rem;
}

.gm-dayrow__n {
    font-size: 0.82rem;
}

.gm-said cite,
.gm-way__end {
    font-size: 0.8rem;
}

.gm-way__stop em {
    font-size: 0.82rem;
}

@media (min-width: 901px) {
    .gm-app__hide {
        min-height: 44px;
    }
}

/* Focus the panel moves by itself (to the title, a heading) shows no box; only real controls do */
.gm [tabindex="-1"]:focus,
.gm [tabindex="-1"]:focus-visible {
    outline: none;
}

/* =====================================================================
   The map's control rail: one column on the right, one width, one card.
   Zoom and compass on top; under them two picture tiles (map style, 3D)
   whose picture shows what you'll switch to.
   ===================================================================== */
.gm {
    --rail-w: 64px;
    --rail-gap: 12px;
    --rail-top: 14px;
    --rail-right: 14px;
    --rail-btn: 48px;
    --rail-card: rgba(251, 249, 244, 0.97);
    --rail-line: rgba(31, 26, 20, 0.1);
    --rail-shadow: 0 1px 2px rgba(31, 26, 20, 0.12), 0 10px 28px -10px rgba(31, 26, 20, 0.45);
}

/* Zoom and compass: a single card */
.gm .maplibregl-ctrl-top-right,
.gm .leaflet-top.leaflet-right {
    top: var(--rail-top);
    right: var(--rail-right);
}

    .gm .maplibregl-ctrl-top-right .maplibregl-ctrl,
    .gm .leaflet-top.leaflet-right .leaflet-control {
        margin: 0;
    }

.gm .maplibregl-ctrl-group,
.gm .leaflet-control-zoom {
    width: var(--rail-w);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    overflow: hidden;
    background: var(--rail-card);
    box-shadow: var(--rail-shadow);
    backdrop-filter: blur(8px);
}

    .gm .maplibregl-ctrl-group button,
    .gm .leaflet-control-zoom a {
        display: grid;
        place-items: center;
        width: 100%;
        height: var(--rail-btn);
        line-height: var(--rail-btn);
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--gm-ink, #1f1a14);
        transition: background 0.15s ease;
    }

        .gm .maplibregl-ctrl-group button + button,
        .gm .leaflet-control-zoom a + a {
            border-top: 1px solid var(--rail-line);
        }

        .gm .maplibregl-ctrl-group button:hover,
        .gm .leaflet-control-zoom a:hover {
            background: rgba(21, 82, 89, 0.08);
        }

        .gm .maplibregl-ctrl-group button:active,
        .gm .leaflet-control-zoom a:active {
            background: rgba(21, 82, 89, 0.16);
        }

    /* Crisper, slightly heavier + and − */
    .gm .maplibregl-ctrl-group .maplibregl-ctrl-icon {
        width: 100%;
        height: 100%;
        background-size: 30px;
        opacity: 0.85;
    }

.gm .leaflet-control-zoom a {
    font-size: 24px;
    font-weight: 400;
}

/* The style and 3D tiles, right under the card */
.gm-mapbar,
.gm-mapbar[class] {
    position: absolute;
    z-index: 950;
    top: calc(var(--rail-top) + var(--rail-btn) * 3 + 3px + var(--rail-gap));
    right: var(--rail-right);
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: var(--rail-w);
}

.gm-mapbar--leaflet,
.gm-mapbar[data-engine="leaflet"] {
    top: calc(var(--rail-top) + var(--rail-btn) * 2 + 3px + var(--rail-gap));
}

.gm-mapbar__btn,
.gm-mapbar__btn[class] {
    position: relative;
    display: block;
    width: var(--rail-w);
    height: var(--rail-w);
    min-height: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 16px;
    overflow: hidden;
    background: #e9e1d2;
    box-shadow: var(--rail-shadow);
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(.22, 1, .36, 1), box-shadow 0.18s ease;
}

    .gm-mapbar__btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 1px 2px rgba(31, 26, 20, 0.12), 0 14px 30px -10px rgba(31, 26, 20, 0.55);
    }

    .gm-mapbar__btn:active {
        transform: scale(0.96);
    }

    .gm-mapbar__btn[aria-pressed="true"] {
        border-color: var(--gm-teal, #155259);
        background: #e9e1d2;
        color: inherit;
    }

.gm-tile__img {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.gm-mapbar__btn:hover .gm-tile__img {
    transform: scale(1.06);
}

/* What each tile previews */
.gm-mapbar__btn[data-to="satellite"] .gm-tile__img {
    background-image: url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/8/104/123");
    background-color: #6b5a44;
}

.gm-mapbar__btn[data-to="map"] .gm-tile__img {
    background-color: #efe7d8;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M-4 44C10 38 18 46 30 36S50 18 70 22' fill='none' stroke='%23d9a441' stroke-width='3'/%3E%3Cpath d='M8 -4C14 10 12 22 22 30S30 52 26 70' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3Cpath d='M38 6c6 2 12 10 20 8M34 52c8-4 18 2 30-2' fill='none' stroke='%23c8b89c' stroke-width='1.2'/%3E%3Ccircle cx='30' cy='36' r='3.2' fill='%23C2683F' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E"),
        radial-gradient(circle at 70% 30%, #e3d6bd 0 18%, transparent 19%);
}

.gm-mapbar__btn[data-to="3d"] .gm-tile__img,
.gm-mapbar__btn[data-to="2d"] .gm-tile__img {
    background-color: #e7dcc8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f6efe2'/%3E%3Cstop offset='1' stop-color='%23e3d5bd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' fill='url(%23s)'/%3E%3Cpath d='M-2 46 14 26l9 10 13-20 15 18 15-6v40H-2z' fill='%23b98a5e'/%3E%3Cpath d='M14 26l9 10 13-20 15 18-14-8-9 12-6-6z' fill='%23d8b48a'/%3E%3Cpath d='M32 22l4-6 4 5-4-1z' fill='%23fff'/%3E%3Cpath d='M-2 52c16-6 30 4 66-4v20H-2z' fill='%23946a45'/%3E%3C/svg%3E");
}

.gm-mapbar__btn[data-to="2d"] .gm-tile__img {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23efe7d8'/%3E%3Cpath d='M6 14h52M6 32h52M6 50h52M14 6v52M32 6v52M50 6v52' stroke='%23d9ccb3' stroke-width='1'/%3E%3Cpath d='M8 46C20 40 26 24 40 26s14-12 18-14' fill='none' stroke='%23d9a441' stroke-width='3'/%3E%3C/svg%3E");
}

.gm-tile__label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 12px 2px 4px;
    background: linear-gradient(to top, rgba(20, 16, 12, 0.78), rgba(20, 16, 12, 0));
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gm-mapbar__btn[data-to="map"] .gm-tile__label,
.gm-mapbar__btn[data-to="3d"] .gm-tile__label,
.gm-mapbar__btn[data-to="2d"] .gm-tile__label {
    background: linear-gradient(to top, rgba(21, 82, 89, 0.92), rgba(21, 82, 89, 0));
}

.gm-mapbar :focus-visible,
.gm .maplibregl-ctrl-group button:focus-visible {
    outline: 3px solid #E9A23B;
    outline-offset: 2px;
}

/* Phones: the same rail, a touch smaller, clear of the sheet */
@media (max-width: 900px) {
    .gm {
        --rail-w: 56px;
        --rail-btn: 44px;
        --rail-top: 12px;
        --rail-right: 12px;
        --rail-gap: 10px;
    }

    .gm-mapbar,
    .gm-mapbar[class] {
        top: calc(var(--rail-top) + var(--rail-btn) * 3 + 3px + var(--rail-gap));
        right: var(--rail-right);
        left: auto;
        gap: 8px;
    }

    .gm-tile__label {
        font-size: 0.72rem;
    }
}

/* A proper compass needle: terracotta north, with an N */
.gm .maplibregl-ctrl-group .maplibregl-ctrl-compass .maplibregl-ctrl-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ctext x='20' y='9.5' text-anchor='middle' font-family='Arial,sans-serif' font-size='8' font-weight='700' fill='%23C2683F'%3EN%3C/text%3E%3Cpath d='M20 11.5l4.2 9.5H15.8z' fill='%23C2683F'/%3E%3Cpath d='M20 30.5l-4.2-9.5h8.4z' fill='%23b8ad9c'/%3E%3Ccircle cx='20' cy='21' r='1.6' fill='%23fbf9f4'/%3E%3C/svg%3E");
    background-size: 34px;
    opacity: 1;
}

.gm .maplibregl-ctrl-group .maplibregl-ctrl-compass .maplibregl-ctrl-icon {
    background-size: 40px;
}

@media (max-width: 900px) {
    .gm {
        --rail-w: 60px;
    }

    .gm-tile__label {
        font-size: 0.7rem;
        letter-spacing: 0;
    }
}

/* =====================================================================
   Phones: the sheet's header is one tidy row, and the trip summary
   scrolls away with the plan instead of staying pinned over it.
   ===================================================================== */
@media (max-width: 900px) {
    .gm-app .gm-app__head {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 2px 14px 8px 18px;
    }

    .gm-app .gm-app__title {
        flex: 0 1 auto;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        font-size: 1.18rem;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .gm-app .gm-app__eyebrow {
        order: 2;
        flex: 0 0 auto;
        margin: 0 auto 0 0;
    }

    .gm-app .gm-sheet-toggle,
    .gm-app .gm-app__hide {
        position: static;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        min-height: 44px;
        margin: 0;
        box-shadow: 0 1px 2px rgba(31, 26, 20, 0.08);
    }

    .gm-app .gm-sheet-toggle {
        order: 3;
        margin-left: 4px;
    }

    .gm-app .gm-app__hide {
        order: 4;
    }

    /* The summary scrolls with the plan */
    .gm-app .gm-trip-head {
        position: static;
        margin-top: -16px;
        padding-top: 14px;
    }
}

@media (max-width: 359px) {
    .gm-app .gm-app__eyebrow {
        display: none;
    }
}

/* Phones: the place name gets its own full line; nights and remove sit under it */
@media (max-width: 520px) {
    .gm-stop__head {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .gm-stop__head .gm-stop__name {
        flex: 1 0 100%;
    }

    .gm-stop__head .gm-stepper {
        margin-left: 42px;
    }

    .gm-stop__head .gm-stop__remove {
        margin-left: auto;
    }
}

@media (max-width: 400px) {
    .gm-app .gm-app__title {
        font-size: 1.08rem;
    }

    .gm-app .gm-app__head {
        gap: 6px;
        padding-left: 16px;
        padding-right: 12px;
    }

    .gm-app .gm-sheet-toggle {
        margin-left: 0;
    }
}

/* ---------- Desktop: a resizable panel ---------- */
.gm-resize {
    display: none;
}

@media (min-width: 901px) {
    .gm-app {
        width: min(var(--gm-panel-w, 440px), calc(100% - 28px));
    }

    .gm-resize {
        position: absolute;
        z-index: 6;
        top: 0;
        right: 0;
        bottom: 0;
        display: grid;
        place-items: center;
        width: 14px;
        cursor: ew-resize;
        touch-action: none;
    }

        /* The grip: a quiet pill at mid-height that wakes up when you reach for it */
        .gm-resize span {
            width: 5px;
            height: 44px;
            border-radius: 3px;
            background: rgba(31, 26, 20, 0.16);
            transition: background-color 0.15s ease, height 0.2s cubic-bezier(.22, 1, .36, 1);
        }

        .gm-resize::before {
            content: "";
            position: absolute;
            top: 18px;
            right: 0;
            bottom: 18px;
            width: 2px;
            border-radius: 2px;
            background: transparent;
            transition: background-color 0.15s ease;
        }

        .gm-resize:hover span,
        .gm-resize:focus-visible span,
        .gm-app--resizing .gm-resize span {
            height: 64px;
            background: var(--gm-teal, #155259);
        }

        .gm-resize:hover::before,
        .gm-app--resizing .gm-resize::before {
            background: rgba(21, 82, 89, 0.35);
        }

        .gm-resize:focus-visible {
            outline: none;
        }

    .gm-app--resizing {
        transition: none;
    }

    .gm-resizing,
    .gm-resizing * {
        cursor: ew-resize !important;
        user-select: none !important;
    }

    .gm-app--hidden .gm-resize {
        display: none;
    }
}

/* =====================================================================
   Phones, an open card: the header carries the place's name and a line
   about it, with Close beside the other buttons; the photo follows right
   under it.
   ===================================================================== */
.gm-app__card,
.gm-app__close {
    display: none;
}

@media (max-width: 900px) {
    .gm-app.gm-app--card .gm-app__head {
        display: flex;
    }

    .gm-app--card .gm-app__title,
    .gm-app--card .gm-app__eyebrow,
    .gm-app--card .gm-close {
        display: none;
    }

    .gm-app--card .gm-app__card {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 4px;
    }

    .gm-app__card-name {
        margin: 0;
        overflow: hidden;
        color: var(--gm-teal, #155259);
        font-family: var(--font-display);
        font-size: 1.3rem;
        font-weight: 600;
        line-height: 1.15;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .gm-app__card-sub {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 3px 0 0;
        overflow: hidden;
        color: var(--gm-muted, #6b5d4f);
        font-size: 0.88rem;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

        .gm-app__card-sub::before {
            content: "";
            flex: 0 0 auto;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--c);
        }

    .gm-app--card .gm-app__close {
        order: 5;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--gm-teal, #155259);
        color: #fff;
        cursor: pointer;
        box-shadow: 0 6px 14px -6px rgba(21, 82, 89, 0.7);
        transition: transform 0.15s ease, background-color 0.15s ease;
    }

        .gm-app--card .gm-app__close:active {
            transform: scale(0.94);
            background: #0f3f45;
        }

    /* The name is in the header now: no repeat under the photo, no gap above it */
    .gm-app--card .gm-view--detail > .gm-eyebrow:first-of-type,
    .gm-app--card .gm-view--detail > .gm-h2:first-of-type {
        display: none;
    }

    .gm-app--card .gm-view--detail {
        padding-top: 4px;
    }

        .gm-app--card .gm-view--detail > .gm-photos:first-of-type,
        .gm-app--card .gm-view--detail > .gm-roadhero:first-of-type {
            margin-top: 0;
        }

        .gm-app--card .gm-view--detail > .gm-photos:first-of-type + .gm-eyebrow + .gm-h2 + .gm-lead,
        .gm-app--card .gm-view--detail > .gm-roadhero:first-of-type + .gm-eyebrow + .gm-h2 + * {
            margin-top: 4px;
        }
}

@media (max-width: 400px) {
    .gm-app__card-name {
        font-size: 1.15rem;
    }

    .gm-app--card .gm-app__head {
        gap: 5px;
    }
}

/* Phones: a slimmer control rail */
@media (max-width: 900px) {
    .gm {
        --rail-w: 50px;
        --rail-btn: 40px;
        --rail-top: 10px;
        --rail-right: 10px;
        --rail-gap: 8px;
    }

    .gm-mapbar,
    .gm-mapbar[class] {
        gap: 7px;
    }

    .gm-mapbar__btn,
    .gm-mapbar__btn[class],
    .gm .maplibregl-ctrl-group {
        border-radius: 13px;
    }

    .gm .maplibregl-ctrl-group .maplibregl-ctrl-icon {
        background-size: 26px;
    }

    .gm .maplibregl-ctrl-group .maplibregl-ctrl-compass .maplibregl-ctrl-icon {
        background-size: 34px;
    }

    .gm-tile__label {
        padding: 10px 1px 3px;
        font-size: 0.64rem;
    }
}

/* =====================================================================
   The start screen: numbered questions, one big "Plan my trip",
   and my own trips as photo cards.
   ===================================================================== */
.gm-ask--steps {
    counter-reset: ask;
    gap: 18px;
    margin-top: 20px;
}

.gm-ask__row > label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gm-muted);
}

.gm-ask__row--n > span,
.gm-ask__row--n > label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gm-ink, #1f1a14);
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
}

    .gm-ask__row--n > span::before,
    .gm-ask__row--n > label::before {
        counter-increment: ask;
        content: counter(ask);
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--gm-teal, #155259);
        color: #fff;
        font-size: 0.82rem;
        font-weight: 700;
    }

/* The exact arrival day, when they know it */
.gm-exact {
    margin-top: 2px;
}

    .gm-exact summary {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 4px 2px;
        color: var(--gm-teal, #155259);
        font-size: 0.98rem;
        font-weight: 700;
        list-style: none;
        cursor: pointer;
    }

        .gm-exact summary::-webkit-details-marker {
            display: none;
        }

        .gm-exact summary svg {
            width: 18px;
            height: 18px;
        }

.gm-exact__body {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .gm-exact__body input[type="date"] {
        flex: 1;
        min-width: 0;
        min-height: 54px;
        padding: 10px 14px;
        border: 1px solid rgba(23, 20, 18, 0.16);
        border-radius: 12px;
        background: #fff;
        color: var(--gm-ink);
        font-family: var(--font-body);
        font-size: 1.05rem;
        font-weight: 500;
    }

        .gm-exact__body input[type="date"]:focus-visible {
            outline: none;
            border-color: var(--gm-teal);
            box-shadow: 0 0 0 3px rgba(21, 82, 89, 0.15);
        }

.gm-exact__note {
    margin: 6px 0 0;
    color: var(--gm-muted);
    font-size: 0.88rem;
}

/* The two ways to begin */
.gm-view--setup .gm-start {
    gap: 4px;
    margin-top: 26px;
    text-align: center;
}

    .gm-view--setup .gm-start .gm-btn--primary {
        width: 100%;
        min-height: 60px;
        font-size: 1.12rem;
        box-shadow: 0 12px 26px -12px rgba(21, 82, 89, 0.75);
    }

.gm-start__own {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: var(--gm-teal, #155259);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* My trips, as cards */
.gm-starters {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--gm-line);
}

.gm-routes {
    display: grid;
    gap: 10px;
}

.gm-route {
    display: grid;
    grid-template-columns: 96px 1fr 18px;
    align-items: center;
    gap: 14px;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--gm-line);
    border-radius: 16px;
    background: #fff;
    color: var(--gm-ink);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(.22, 1, .36, 1), box-shadow 0.18s ease, border-color 0.15s ease;
}

    .gm-route:hover {
        transform: translateY(-1px);
        border-color: rgba(21, 82, 89, 0.35);
        box-shadow: 0 12px 24px -16px rgba(31, 26, 20, 0.5);
    }

.gm-route__img {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 76px;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(135deg, #17444a, var(--gm-teal, #155259));
    color: #fff;
}

    .gm-route__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gm-route__img em {
        position: absolute;
        left: 6px;
        bottom: 6px;
        padding: 2px 8px;
        border-radius: 999px;
        background: rgba(20, 16, 12, 0.72);
        color: #fff;
        font-size: 0.76rem;
        font-style: normal;
        font-weight: 700;
    }

.gm-route__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

    .gm-route__text strong {
        font-family: var(--font-display);
        font-size: 1.08rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .gm-route__text small {
        color: var(--gm-muted);
        font-size: 0.88rem;
        line-height: 1.35;
    }

.gm-route > i {
    color: var(--gm-teal, #155259);
    font-size: 1.5rem;
    font-style: normal;
}

/* ---------- The trip, with dates ---------- */
.gm-trip-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -2px 0 6px;
    color: var(--gm-teal, #155259);
    font-size: 0.98rem;
    font-weight: 700;
}

    .gm-trip-dates svg {
        width: 18px;
        height: 18px;
    }

.gm-dayrow__n small {
    display: block;
    margin-top: 1px;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.gm-tag--long {
    background: #fbeee3;
    color: #9a4a22;
}

.gm-ask--compact {
    gap: 14px;
    margin: 0 0 16px;
    text-align: left;
}

.rb-day__n small {
    display: block;
    font-size: 0.7em;
    letter-spacing: 0;
}

.rb-when {
    margin: 4px 0 0;
    font-size: 1.05rem;
}

/* "Drafting your trip…" */
.gm-btn--busy {
    cursor: progress;
    opacity: 0.92;
}

.gm-spin {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gm-spin 0.8s linear infinite;
}

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

/* "Based on my 8-Day Sahara & Essaouira Tour, fitted to you" */
.gm-based {
    margin: -2px 0 6px;
    color: var(--gm-muted);
    font-size: 0.92rem;
}

    .gm-based a {
        color: var(--gm-teal, #155259);
        font-weight: 700;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }

/* =====================================================================
   Our own dropdowns and calendar
   ===================================================================== */
.gm-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

/* The box */
.gm-pick-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 1.5px solid rgba(31, 26, 20, 0.14);
    border-radius: 14px;
    background: linear-gradient(#fff, #fdfbf7);
    box-shadow: 0 1px 2px rgba(31, 26, 20, 0.06), inset 0 1px 0 #fff;
    color: var(--gm-ink, #1f1a14);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}

    .gm-pick-btn:hover {
        border-color: rgba(21, 82, 89, 0.45);
        box-shadow: 0 4px 14px -8px rgba(21, 82, 89, 0.45);
    }

    .gm-pick-btn.is-open,
    .gm-pick-btn:focus-visible {
        outline: none;
        border-color: var(--gm-teal, #155259);
        box-shadow: 0 0 0 4px rgba(21, 82, 89, 0.14);
    }

.gm-pick-btn__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gm-pick-btn__chev {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--gm-teal, #155259);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s cubic-bezier(.22, 1, .36, 1);
}

.gm-pick-btn.is-open .gm-pick-btn__chev {
    transform: rotate(180deg);
}

/* The date box */
.gm-pick-btn--date {
    margin-top: 10px;
    border-style: dashed;
    background: transparent;
    box-shadow: none;
    color: var(--gm-teal, #155259);
}

    .gm-pick-btn--date > .gm-i {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
    }

    .gm-pick-btn--date.is-set {
        border-style: solid;
        background: #eef5f4;
        border-color: rgba(21, 82, 89, 0.4);
    }

.gm-pick-btn__opt {
    color: var(--gm-muted);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
}

.gm-ask__row .gm-exact__note {
    margin: 2px 0 0;
}

/* ---------- The list / calendar window ---------- */
.gm-pop-shade {
    position: fixed;
    inset: 0;
    z-index: 2400;
    background: rgba(20, 16, 12, 0.42);
    backdrop-filter: blur(2px);
    animation: gm-fade 0.2s ease both;
}

.gm-pop {
    position: fixed;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(31, 26, 20, 0.08);
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 2px 4px rgba(31, 26, 20, 0.06), 0 24px 50px -16px rgba(31, 26, 20, 0.45);
    color: var(--gm-ink, #1f1a14);
    font-family: var(--font-body);
    animation: gm-pop-in 0.2s cubic-bezier(.22, 1, .36, 1) both;
}

    .gm-pop[hidden],
    .gm-pop-shade[hidden] {
        display: none;
    }

@keyframes gm-pop-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes gm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gm-pop__head {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px 20px;
    border-bottom: 1px solid var(--gm-line, rgba(31, 26, 20, 0.1));
}

.gm-pop__title {
    flex: 1;
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gm-teal, #155259);
}

.gm-pop__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f1ebe0;
    color: var(--gm-ink, #1f1a14);
    cursor: pointer;
}

    .gm-pop__close .gm-i {
        width: 20px;
        height: 20px;
        transform: rotate(45deg);
    }

/* The list */
.gm-pop__list {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}

.gm-pop__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

    .gm-pop__opt span {
        flex: 1;
    }

    .gm-pop__opt:hover,
    .gm-pop__opt:focus {
        outline: none;
        background: #f4eee3;
    }

    .gm-pop__opt:focus-visible {
        box-shadow: inset 0 0 0 2px var(--gm-teal, #155259);
    }

    .gm-pop__opt.is-on {
        background: #e6f0ef;
        color: var(--gm-teal, #155259);
        font-weight: 700;
    }

    .gm-pop__opt .gm-i {
        width: 22px;
        height: 22px;
        stroke-width: 2.6;
    }

/* The calendar */
.gm-pop--calendar .gm-pop__head {
    display: flex;
}

.gm-cal {
    padding: 12px 16px 16px;
}

.gm-cal__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .gm-cal__nav strong {
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 600;
    }

.gm-cal__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gm-line, rgba(31, 26, 20, 0.12));
    border-radius: 50%;
    background: #fff;
    color: var(--gm-teal, #155259);
    cursor: pointer;
}

    .gm-cal__arrow .gm-i {
        width: 20px;
        height: 20px;
    }

    .gm-cal__arrow--next .gm-i {
        transform: rotate(180deg);
    }

    .gm-cal__arrow:disabled {
        opacity: 0.3;
        cursor: default;
    }

.gm-cal__week,
.gm-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px 0;
}

.gm-cal__week span {
    padding: 6px 0;
    color: var(--gm-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.gm-cal__day {
    position: relative;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gm-ink, #1f1a14);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

    .gm-cal__day::before {
        content: "";
        position: absolute;
        inset: 2px;
        z-index: -1;
        border-radius: 50%;
        transition: background-color 0.12s ease;
    }

    .gm-cal__day {
        isolation: isolate;
    }

        .gm-cal__day:hover:not(:disabled)::before {
            background: #efe7d8;
        }

        .gm-cal__day:focus-visible {
            outline: none;
        }

            .gm-cal__day:focus-visible::before {
                box-shadow: 0 0 0 2px var(--gm-teal, #155259);
            }

        .gm-cal__day:disabled {
            color: rgba(31, 26, 20, 0.25);
            cursor: default;
        }

    .gm-cal__day.is-today {
        color: var(--gm-accent, #C2683F);
    }

        .gm-cal__day.is-today::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 6px;
            width: 4px;
            height: 4px;
            margin-left: -2px;
            border-radius: 50%;
            background: currentColor;
        }

    /* The trip's days: a band from the day you land to the last day */
    .gm-cal__day.is-trip,
    .gm-cal__day.is-preview {
        background: #e3eeed;
    }

    .gm-cal__day.is-end,
    .gm-cal__day.is-preview-end {
        border-radius: 0 999px 999px 0;
    }

    .gm-cal__day.is-on {
        color: #fff;
    }

        .gm-cal__day.is-on::before {
            background: var(--gm-teal, #155259);
            box-shadow: 0 6px 14px -6px rgba(21, 82, 89, 0.8);
        }

        .gm-cal__day.is-on:hover::before {
            background: var(--gm-teal, #155259);
        }

.gm-cal__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f4eee3;
    color: var(--gm-ink, #1f1a14);
    font-size: 0.95rem;
}

    .gm-cal__note .gm-i {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        color: var(--gm-teal, #155259);
    }

.gm-cal__note--hint {
    background: transparent;
    padding: 6px 2px 0;
    color: var(--gm-muted);
}

.gm-cal__foot {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

/* ---------- Phones: a sheet from the bottom ---------- */
.gm-pop--sheet {
    top: auto !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    width: auto !important;
    max-height: 78vh;
    max-height: 78dvh;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: gm-sheet-in 0.32s cubic-bezier(.22, 1, .36, 1) both;
}

    .gm-pop--sheet .gm-pop__head {
        display: flex;
    }

    .gm-pop--sheet::before {
        content: "";
        align-self: center;
        flex: 0 0 auto;
        width: 44px;
        height: 5px;
        margin-top: 8px;
        border-radius: 3px;
        background: rgba(31, 26, 20, 0.18);
    }

    .gm-pop--sheet .gm-pop__list {
        padding: 8px 10px 14px;
    }

    .gm-pop--sheet .gm-pop__opt {
        min-height: 56px;
        font-size: 1.1rem;
    }

    .gm-pop--sheet .gm-cal__day {
        height: 48px;
        font-size: 1.08rem;
    }

@keyframes gm-sheet-in {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gm-pop,
    .gm-pop--sheet,
    .gm-pop-shade {
        animation: none;
    }
}

/* The interests list, in the same family */
.gm-multi summary {
    min-height: 56px;
    border: 1.5px solid rgba(31, 26, 20, 0.14);
    border-radius: 14px;
    background-color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

.gm-multi__list {
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(31, 26, 20, 0.06), 0 24px 50px -16px rgba(31, 26, 20, 0.45);
}

.gm-multi__item {
    min-height: 52px;
    border-radius: 12px;
}

    .gm-multi__item input {
        accent-color: var(--gm-teal, #155259);
    }

/* The popups live outside the map section: the same colours */
.gm-pop {
    --gm-ink: var(--color-near-black, #171412);
    --gm-muted: #6b625a;
    --gm-line: rgba(23, 20, 18, 0.1);
    --gm-teal: var(--color-teal, #155259);
    --gm-accent: #C2683F;
}

/* The months table scrolls inside its card on a phone, instead of widening the whole page */
.gm-guide__inner > *,
.gm-guide__inner section,
.gm-guide__table {
    min-width: 0;
    max-width: 100%;
}

.gm-guide__table {
    width: 100%;
    contain: inline-size;
}

.gm-guide__table {
    position: relative;
}

/* The trip band: flows out of the chosen day, rounds off at the ends of each week */
.gm-cal__day.is-on.has-trip {
    background: linear-gradient(to right, transparent 50%, #e3eeed 50%);
}

.gm-cal__day.is-on.has-trip:nth-child(7n) {
    background: none;
}

.gm-cal__day.is-trip:nth-child(7n+1),
.gm-cal__day.is-preview:nth-child(7n+1) {
    border-radius: 999px 0 0 999px;
}

.gm-cal__day.is-trip:nth-child(7n),
.gm-cal__day.is-preview:nth-child(7n) {
    border-radius: 0 999px 999px 0;
}

.gm-cal__day.is-end:nth-child(7n+1),
.gm-cal__day.is-preview-end:nth-child(7n+1) {
    border-radius: 999px;
}

/* =====================================================================
   About this map: a round "i" at the foot of the control rail.
   Phones: the page stays put (every swipe is the panel's) and the guide
   opens as its own full-screen page. Computers: the button glides down.
   ===================================================================== */
.gm-mapbar__about {
    order: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: var(--rail-w);
    height: var(--rail-w);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: var(--rail-card, rgba(251, 249, 244, 0.97));
    box-shadow: var(--rail-shadow);
    color: var(--gm-teal, #155259);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(.22, 1, .36, 1), background-color 0.15s ease;
}

    .gm-mapbar__about:hover {
        transform: translateY(-1px);
        background: #fff;
    }

    .gm-mapbar__about:active {
        transform: scale(0.96);
    }

.gm-guide__bar {
    display: none;
}

@media (max-width: 900px) {
    .gm-mapbar__about {
        border-radius: 13px;
        font-size: 0.6rem;
    }

        .gm-mapbar__about svg {
            width: 19px;
            height: 19px;
        }

    /* The page itself doesn't scroll on a phone: the map and its panel are the page. */
    html.gm-locked,
    html.gm-locked body {
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    html.gm-locked .gm-guide {
        display: none;
    }

    /* The guide, opened: its own page over the map */
    html.gm-locked.gm-guide-open .gm-guide {
        position: fixed;
        inset: 0;
        z-index: 3000;
        display: block;
        padding-top: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        animation: gm-guide-in 0.3s cubic-bezier(.22, 1, .36, 1) both;
    }

    html.gm-guide-open .gm-guide__bar {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        padding: 12px 16px;
        padding-top: calc(12px + env(safe-area-inset-top));
        background: rgba(244, 241, 234, 0.94);
        border-bottom: 1px solid rgba(23, 20, 18, 0.08);
        backdrop-filter: blur(8px);
    }

    html.gm-guide-open .gm-guide__inner {
        padding-top: var(--space-4);
        padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
    }

    .gm-guide__back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 10px 18px 10px 14px;
        border: 0;
        border-radius: 999px;
        background: var(--color-teal, #155259);
        color: #fff;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 8px 18px -10px rgba(21, 82, 89, 0.8);
    }

    html.gm-guide-open .floating-whatsapp,
    html.gm-guide-open .back-to-top {
        z-index: 3100;
    }
}

@keyframes gm-guide-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html.gm-locked.gm-guide-open .gm-guide {
        animation: none;
    }
}

/* =====================================================================
   Day by day: the day to plan now, its choices, the days still to come
   ===================================================================== */
html.gm-page .floating-whatsapp {
    display: none !important;
}

.gm-start__note {
    margin: 2px 0 0;
    color: var(--gm-muted);
    font-size: 0.88rem;
}

/* The day to plan now */
.gm-today {
    position: relative;
    margin: 22px 0 8px;
    padding: 18px 16px 16px;
    border: 2px solid var(--gm-teal, #155259);
    border-radius: 20px;
    background: linear-gradient(180deg, #f2f7f6, #fbfaf6 140px);
    box-shadow: 0 18px 36px -24px rgba(21, 82, 89, 0.6);
    scroll-margin-top: 16px;
    animation: gm-today-in 0.45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes gm-today-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.gm-today__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.gm-today__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 64px;
    padding: 6px 8px;
    border-radius: 16px;
    background: var(--gm-teal, #155259);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 8px 18px -10px rgba(21, 82, 89, 0.9);
}

    .gm-today__day small {
        margin-top: 3px;
        font-family: var(--font-body);
        font-size: 0.7rem;
        font-weight: 600;
        opacity: 0.9;
        white-space: nowrap;
    }

.gm-today__q {
    margin: 2px 0 4px;
    color: var(--gm-ink, #1f1a14);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.gm-today__sub {
    margin: 0;
    color: var(--gm-muted);
    font-size: 0.98rem;
}

    .gm-today__sub strong {
        color: var(--gm-ink, #1f1a14);
    }

.gm-today__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fbefe4;
    color: #7a3d1c;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
}

    .gm-today__note .gm-i {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        margin-top: 1px;
    }

.gm-today__help {
    margin: 14px 0 0;
    text-align: center;
}

.gm-linkbtn {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: var(--gm-teal, #155259);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* The choices */
.gm-choices {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.gm-choices__or {
    margin: 8px 2px 0;
    color: var(--gm-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gm-choice {
    overflow: hidden;
    border: 1.5px solid rgba(31, 26, 20, 0.12);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(.22, 1, .36, 1);
}

    .gm-choice:hover {
        border-color: rgba(21, 82, 89, 0.45);
        box-shadow: 0 12px 24px -16px rgba(31, 26, 20, 0.5);
    }

/* The stay card is itself a button; a drive card holds its main button and a "look first" link */
.gm-choice--stay,
.gm-choice__main {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px 10px 10px;
    border: 0;
    background: none;
    color: var(--gm-ink, #1f1a14);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
}

.gm-choice--stay {
    border: 1.5px solid rgba(31, 26, 20, 0.12);
    background: #fff;
}

.gm-choice--best {
    border-color: var(--gm-teal, #155259);
    box-shadow: 0 0 0 3px rgba(21, 82, 89, 0.12);
}

.gm-choice__img {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #efe7d8;
}

    .gm-choice__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gm-choice__img i {
        position: absolute;
        right: 4px;
        bottom: 4px;
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.94);
        color: var(--gm-teal, #155259);
    }

        .gm-choice__img i .gm-i {
            width: 16px;
            height: 16px;
        }

.gm-choice__icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--c, #155259);
    color: #fff;
}

.gm-choice__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .gm-choice__text strong {
        font-family: var(--font-display);
        font-size: 1.12rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .gm-choice__text small {
        color: var(--gm-muted);
        font-size: 0.92rem;
    }

    .gm-choice__text .gm-tag {
        align-self: flex-start;
        margin-top: 2px;
    }

.gm-choice__way {
    color: var(--gm-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.gm-choice__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--gm-teal, #155259);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: 0 6px 14px -8px rgba(21, 82, 89, 0.9);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.gm-choice--stay:hover .gm-choice__go,
.gm-choice__main:hover .gm-choice__go {
    background: #0f4247;
}

.gm-choice--stay:active .gm-choice__go,
.gm-choice__main:active .gm-choice__go {
    transform: scale(0.96);
}

.gm-choice__look {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px 10px 94px;
    border: 0;
    border-top: 1px solid rgba(31, 26, 20, 0.07);
    background: #fcfaf6;
    color: var(--gm-teal, #155259);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

    .gm-choice__look .gm-i {
        width: 17px;
        height: 17px;
    }

    .gm-choice__look:hover {
        background: #f4eee3;
    }

.gm-choice--stay:focus-visible,
.gm-choice__main:focus-visible,
.gm-choice__look:focus-visible {
    outline: 3px solid #E9A23B;
    outline-offset: -3px;
}

/* The days still to come: quiet placeholders, so the whole trip is always in view */
.gm-later {
    display: grid;
    gap: 6px;
    margin: 12px 0 18px;
    padding: 0;
    list-style: none;
}

    .gm-later li {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 6px 12px 6px 6px;
        border: 1.5px dashed rgba(31, 26, 20, 0.16);
        border-radius: 14px;
        color: var(--gm-muted);
    }

.gm-later__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 6px;
    border-radius: 10px;
    background: #efe9dd;
    color: #6b5d4f;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

    .gm-later__day small {
        font-size: 0.7rem;
        font-weight: 600;
        white-space: nowrap;
    }

.gm-later__what {
    font-size: 0.95rem;
    font-weight: 600;
}

.gm-later__more {
    justify-content: center;
    border-style: none !important;
    font-size: 0.9rem;
}

/* The day just added glows for a moment */
.gm-stop--new {
    animation: gm-new-stop 1.6s ease both;
}

@keyframes gm-new-stop {
    0% { box-shadow: 0 0 0 0 rgba(233, 162, 59, 0); }
    20% { box-shadow: 0 0 0 4px rgba(233, 162, 59, 0.55); }
    100% { box-shadow: 0 0 0 0 rgba(233, 162, 59, 0); }
}

/* Phones: the choice button under the text when space is short */
@media (max-width: 420px) {
    .gm-today {
        padding: 16px 12px 14px;
    }

    .gm-today__day {
        min-width: 56px;
        min-height: 56px;
        font-size: 1rem;
    }

    .gm-today__q {
        font-size: 1.2rem;
    }

    .gm-choice--stay,
    .gm-choice__main {
        grid-template-columns: 60px 1fr;
        grid-template-areas: "img text" "go go";
        row-gap: 10px;
    }

    .gm-choice__img {
        grid-area: img;
        width: 60px;
        height: 60px;
    }

    .gm-choice__text {
        grid-area: text;
    }

    .gm-choice__go {
        grid-area: go;
        width: 100%;
    }

    .gm-choice__look {
        padding-left: 14px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gm-today,
    .gm-stop--new {
        animation: none;
    }
}

.gm-today__note--calm {
    background: #e6f0ef;
    color: var(--gm-teal, #155259);
}

/* Phones: "Day 3: … · Undo" at the foot of the screen, clear of the panel's title */
@media (max-width: 900px) {
    .gm-toast {
        top: auto;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: max-content;
        max-width: calc(100% - 24px);
        border-radius: 18px;
        transform: translate(-50%, 16px);
    }

    .gm-toast--on {
        transform: translate(-50%, 0);
    }
}

/* The trip summary scrolls away on a computer too: the day being planned gets the room */
.gm-app .gm-trip-head {
    position: static;
}

/* In the side panel (and narrow phones) the Choose button sits under the text */
.gm-choices {
    container-type: inline-size;
}

@container (max-width: 480px) {
    .gm-choice--stay,
    .gm-choice__main {
        grid-template-columns: 64px 1fr;
        grid-template-areas: "img text" "go go";
        row-gap: 10px;
    }

    .gm-choice__img {
        grid-area: img;
        width: 64px;
        height: 64px;
    }

    .gm-choice__text {
        grid-area: text;
    }

    .gm-choice__go {
        grid-area: go;
        width: 100%;
    }

    .gm-choice__look {
        justify-content: center;
        padding-left: 14px;
    }
}

/* "✓ Day 3: Dades Valley → Merzouga · Undo", right where the eye is */
.gm-stepdone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 0 16px;
    padding: 8px 8px 8px 12px;
    border-radius: 14px;
    background: #e3f1e8;
    color: #1d5a35;
    font-size: 0.98rem;
    font-weight: 600;
    animation: gm-today-in 0.35s cubic-bezier(.22, 1, .36, 1) both;
}

    .gm-stepdone .gm-i {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        stroke-width: 2.4;
    }

    .gm-stepdone span {
        flex: 1;
        min-width: 0;
    }

    .gm-stepdone button {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 6px 16px;
        border: 1.5px solid rgba(29, 90, 53, 0.35);
        border-radius: 999px;
        background: #fff;
        color: #1d5a35;
        font-family: var(--font-body);
        font-size: 0.92rem;
        font-weight: 700;
        cursor: pointer;
    }

        .gm-stepdone button:hover {
            border-color: #1d5a35;
        }

.gm-done .gm-stepdone {
    margin: 0 0 14px;
}

.gm-today__hint {
    margin: 2px 2px 4px;
    color: var(--gm-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* ---------- Desktop: the panel's scrollbar on the left, in the page's colours ---------- */
@media (min-width: 901px) {
    .gm-app__body {
        direction: rtl; /* puts the scrollbar on the left… */
        scrollbar-width: auto; /* Chrome, Edge and Safari draw the styled bar below */
        scrollbar-color: auto;
        scrollbar-gutter: stable;
    }

    /* Firefox has no styled bar: a thin one in the same colours */
    @supports not selector(::-webkit-scrollbar) {
        .gm-app__body {
            scrollbar-width: thin;
            scrollbar-color: rgba(21, 82, 89, 0.55) rgba(31, 26, 20, 0.05);
        }
    }

        .gm-app__body > * {
            direction: ltr; /* …while everything inside reads normally */
        }

        .gm-app__body::-webkit-scrollbar {
            width: 12px;
        }

        .gm-app__body::-webkit-scrollbar-track {
            margin: 10px 0;
            border-radius: 999px;
            background: rgba(31, 26, 20, 0.05);
        }

        .gm-app__body::-webkit-scrollbar-thumb {
            min-height: 48px;
            border: 3px solid transparent;
            border-radius: 999px;
            background: rgba(21, 82, 89, 0.5) padding-box;
        }

            .gm-app__body::-webkit-scrollbar-thumb:hover {
                background: rgba(21, 82, 89, 0.8) padding-box;
            }

            .gm-app__body::-webkit-scrollbar-thumb:active {
                background: var(--gm-teal, #155259) padding-box;
            }
}

/* =====================================================================
   The trip toolbar: Back · trip length · Start over, in one frosted bar.
   On a computer it stays at the top of the panel while the plan scrolls.
   ===================================================================== */
.gm-view--builder > .gm-toolbar {
    z-index: 6;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    margin: -18px -22px 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--gm-line);
    background: rgba(251, 249, 244, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gm-view--builder > .gm-toolbar + .gm-trip-head {
    margin-top: 0;
    padding-top: 16px;
}

/* Back and Start over: quiet buttons that tint on hover */
.gm-toolbar .gm-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--gm-teal, #155259);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .gm-toolbar .gm-tool:hover {
        background: #ebf2f1;
    }

    .gm-toolbar .gm-tool:active {
        background: #dde9e8;
    }

    .gm-toolbar .gm-tool .gm-i {
        width: 18px;
        height: 18px;
        stroke-width: 2.2;
    }

    .gm-toolbar .gm-tool[data-act="restart"] {
        color: #8a4a2a;
    }

        .gm-toolbar .gm-tool[data-act="restart"]:hover {
            background: #f8ece3;
        }

/* The trip length: one pill in the middle */
.gm-toolbar .gm-tools__days {
    display: flex;
    justify-content: center;
}

    .gm-toolbar .gm-tools__days .gm-stepper {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        padding: 3px;
        border: 1.5px solid rgba(21, 82, 89, 0.22);
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(31, 26, 20, 0.06);
    }

        .gm-toolbar .gm-tools__days .gm-stepper button {
            display: grid;
            place-items: center;
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 50%;
            background: #eef4f3;
            color: var(--gm-teal, #155259);
            font-size: 1.25rem;
            line-height: 1;
            cursor: pointer;
            transition: background-color 0.15s ease;
        }

            .gm-toolbar .gm-tools__days .gm-stepper button:hover:not(:disabled) {
                background: #dbe9e7;
            }

            .gm-toolbar .gm-tools__days .gm-stepper button:disabled {
                opacity: 0.35;
                cursor: default;
            }

        .gm-toolbar .gm-tools__days .gm-stepper output {
            min-width: 72px;
            padding: 0 4px;
            color: var(--gm-ink, #1f1a14);
            font-size: 0.98rem;
            font-weight: 700;
            text-align: center;
        }

/* A computer: pinned to the top of the panel */
@media (min-width: 901px) {
    .gm-view--builder > .gm-toolbar {
        position: sticky;
        top: 0;
        box-shadow: 0 10px 18px -16px rgba(31, 26, 20, 0.45);
    }
}

/* Phones: the same bar, in the flow of the plan */
@media (max-width: 900px) {
    .gm-view--builder > .gm-toolbar {
        margin: -16px -16px 0;
        padding: 8px 10px;
        gap: 4px;
    }

    .gm-toolbar .gm-tool {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .gm-toolbar .gm-tools__days .gm-stepper output {
        min-width: 60px;
        font-size: 0.92rem;
    }

    .gm-toolbar .gm-tools__days .gm-stepper button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 360px) {
    .gm-toolbar .gm-tool span,
    .gm-toolbar .gm-tool {
        font-size: 0.84rem;
    }
}

.gm-toolbar .gm-tool {
    white-space: nowrap;
}

@media (min-width: 901px) {
    .gm-view--builder > .gm-toolbar {
        gap: 4px;
        padding: 10px 10px;
    }

    .gm-toolbar .gm-tool {
        padding: 8px 10px;
    }

    .gm-toolbar .gm-tools__days .gm-stepper output {
        min-width: 62px;
    }
}

/* The day they fly, when the last night isn't in the departure city */
.gm-depart {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #e6f0ef;
    color: var(--gm-teal, #155259);
    font-size: 0.98rem;
    line-height: 1.45;
    text-align: left;
}

    .gm-depart .gm-i {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }

/* One more day? */
.gm-more-day {
    margin-top: 16px;
    padding: 14px;
    border: 1.5px dashed rgba(21, 82, 89, 0.3);
    border-radius: 16px;
    background: #fff;
}

.gm-more-day__q {
    margin: 0 0 10px;
    color: var(--gm-ink, #1f1a14);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.gm-more-day__row {
    display: grid;
    gap: 8px;
}

    .gm-more-day__row .gm-btn {
        width: 100%;
        margin: 0;
        justify-content: center;
    }

/* "Open my itinerary": the finished trip, to print, save or share */
.gm-itin-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    border: 2px solid var(--gm-teal, #155259) !important;
    background: #fff !important;
    color: var(--gm-teal, #155259) !important;
    text-align: left;
    text-decoration: none !important;
}

    .gm-itin-link .gm-i {
        width: 24px;
        height: 24px;
    }

    .gm-itin-link span {
        display: flex;
        flex-direction: column;
        font-weight: 700;
    }

    .gm-itin-link small {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--gm-muted);
    }

    .gm-itin-link:hover {
        background: #eef5f4 !important;
    }

/* The departure: the last row of a finished trip */
.gm-stop--depart {
    border-style: dashed;
    background: #f6faf9;
}

.gm-stop__pin--plane {
    display: grid;
    place-items: center;
    background: var(--gm-teal, #155259) !important;
    color: #fff;
}

    .gm-stop__pin--plane .gm-i {
        width: 18px;
        height: 18px;
    }

.gm-depart__steps {
    display: grid;
    gap: 10px;
    margin: 12px 0 2px;
    padding: 0;
    list-style: none;
}

    .gm-depart__steps li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: var(--gm-ink, #1f1a14);
        font-size: 0.98rem;
        line-height: 1.45;
    }

        .gm-depart__steps li > .gm-i {
            flex: 0 0 auto;
            width: 20px;
            height: 20px;
            margin-top: 1px;
            color: var(--gm-teal, #155259);
        }

    .gm-depart__steps small {
        display: block;
        color: var(--gm-muted);
        font-size: 0.88rem;
    }

/* ---------- Editing the trip: change a place, skip a stop, your own plans, the departure day ---------- */

/* Change this place (beside the ✕) */
.gm-stop__tool {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--gm-muted);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .gm-stop__tool .gm-i {
        width: 18px;
        height: 18px;
    }

    .gm-stop__tool:hover,
    .gm-stop__tool.is-on {
        background: #e3eeee;
        color: var(--gm-teal);
    }

.gm-change {
    display: grid;
    gap: 8px;
    margin: 10px 0 4px;
    padding: 12px;
    border: 1.5px solid rgba(21, 82, 89, 0.25);
    border-radius: 16px;
    background: #f3f7f6;
    animation: gm-change-in 0.25s cubic-bezier(.22, 1, .36, 1);
}

@keyframes gm-change-in {
    from { opacity: 0; transform: translateY(-4px); }
}

.gm-change__head {
    margin: 0 0 2px;
    color: var(--gm-ink);
    font-size: 0.95rem;
}

.gm-change__list {
    display: grid;
    gap: 6px;
}

.gm-change__opt {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 10px 8px 8px;
    border: 1.5px solid rgba(31, 26, 20, 0.1);
    border-radius: 14px;
    background: #fff;
    color: var(--gm-ink);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

    .gm-change__opt:hover {
        border-color: rgba(21, 82, 89, 0.45);
        box-shadow: 0 10px 20px -16px rgba(31, 26, 20, 0.5);
    }

.gm-change__img {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gm-soft);
}

    .gm-change__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gm-change__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .gm-change__text strong {
        font-family: var(--font-display);
        font-size: 1.02rem;
        font-weight: 600;
    }

    .gm-change__text small {
        color: var(--gm-muted);
        font-size: 0.82rem;
    }

.gm-change__opt .gm-choice__go {
    min-width: 0;
    min-height: 38px;
    padding: 6px 14px;
    font-size: 0.9rem;
}

.gm-change > .gm-btn--link {
    justify-self: center;
}

/* Stops on the way: each one can be skipped */
.gm-way__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .gm-way__item .gm-way__stop {
        flex: 1;
        min-width: 0;
    }

.gm-way__skip {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--gm-muted);
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.75;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

    .gm-way__skip:hover,
    .gm-way__skip:focus-visible {
        background: #fbe5dc;
        color: #7a3a22;
        opacity: 1;
    }

.gm-way__restore {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin: 2px 0 0 -4px;
    padding: 4px 12px;
    border: 1px dashed rgba(138, 90, 28, 0.45);
    border-radius: 999px;
    background: #fff;
    color: #8a5a1c;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

    .gm-way__restore .gm-i {
        width: 14px;
        height: 14px;
    }

    .gm-way__restore:hover {
        background: #fbf3e3;
    }

/* Their own plan for a day */
.gm-own {
    display: grid;
    gap: 6px;
    margin-top: 4px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(31, 26, 20, 0.08);
}

.gm-own__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gm-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

    .gm-own__label .gm-i {
        width: 15px;
        height: 15px;
        color: var(--gm-teal);
    }

.gm-own__row {
    display: flex;
    gap: 8px;
}

    .gm-own__row input {
        flex: 1;
        min-width: 0;
        min-height: 46px;
        padding: 10px 12px;
        border: 1.5px solid rgba(31, 26, 20, 0.18);
        border-radius: 12px;
        background: #fff;
        color: var(--gm-ink);
        font: inherit;
        font-size: 16px; /* no zoom on iPhones */
    }

        .gm-own__row input:focus {
            outline: none;
            border-color: var(--gm-teal);
            box-shadow: 0 0 0 3px rgba(21, 82, 89, 0.15);
        }

    .gm-own__row .gm-btn {
        flex: none;
        min-height: 46px;
        margin: 0;
        padding: 0 18px;
    }

.gm-chip--own {
    background: #fff7e8 !important;
    border-color: rgba(191, 151, 101, 0.55) !important;
    color: #5b3d14 !important;
}

/* The departure day, offered once every day is planned */
.gm-depart-offer {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 12px 12px 10px;
    border: 2px solid var(--gm-teal);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 82, 89, 0.1);
    color: var(--gm-ink);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s cubic-bezier(.22, 1, .36, 1);
}

    .gm-depart-offer:hover {
        box-shadow: 0 0 0 4px rgba(21, 82, 89, 0.18), 0 14px 26px -18px rgba(31, 26, 20, 0.6);
    }

.gm-depart-offer__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gm-teal);
    color: #fff;
}

    .gm-depart-offer__icon .gm-i {
        width: 24px;
        height: 24px;
    }

.gm-depart-offer__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .gm-depart-offer__text strong {
        font-family: var(--font-display);
        font-size: 1.1rem;
        font-weight: 600;
    }

    .gm-depart-offer__text small {
        color: var(--gm-muted);
        font-size: 0.86rem;
        line-height: 1.4;
    }

.gm-depart-offer .gm-choice__go {
    gap: 4px;
    min-width: 0;
}

    .gm-depart-offer .gm-choice__go .gm-i {
        width: 16px;
        height: 16px;
    }

@media (max-width: 420px) {
    .gm-depart-offer {
        grid-template-columns: 44px 1fr;
    }

    .gm-depart-offer__icon {
        width: 44px;
        height: 44px;
    }

    .gm-depart-offer .gm-choice__go {
        grid-column: 1 / -1;
        width: 100%;
    }

    .gm-change__opt .gm-choice__go {
        display: none;
    }

    .gm-change__opt {
        grid-template-columns: 52px 1fr;
    }
}

/* Opened from the dashboard: save the route to a private itinerary */
.gm-private {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding: 12px;
    border: 2px solid var(--gm-teal);
    border-radius: 16px;
    background: #eef5f4;
}

.gm-private__text {
    display: grid;
    gap: 2px;
}

    .gm-private__text strong {
        color: var(--gm-ink);
        font-size: 1rem;
    }

    .gm-private__text small {
        color: var(--gm-muted);
        font-size: 0.86rem;
    }

.gm-private .gm-btn {
    width: 100%;
    margin: 0;
    justify-content: center;
}

.gm-private__back {
    justify-self: center;
    color: var(--gm-muted);
    font-size: 0.84rem;
}

/* The departure day: plans before the flight, and "my flight is on the last day" */
.gm-depart__acts {
    display: block !important;
    padding-left: 0 !important;
}

    .gm-depart__acts .gm-dayrow__acts {
        margin: 2px 0;
    }

.gm-depart-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1.5px dashed rgba(21, 82, 89, 0.35);
    border-radius: 14px;
    background: #fff;
    color: var(--gm-ink);
    font-family: var(--font-body);
    font-size: 0.92rem;
    text-align: left;
    cursor: pointer;
}

    .gm-depart-last:hover {
        border-style: solid;
        border-color: var(--gm-teal);
    }

    .gm-depart-last .gm-i {
        flex: none;
        width: 18px;
        height: 18px;
        color: var(--gm-teal);
    }

/* A place in the trip: nights, Change and Remove on their own row under the name */
.gm-stop__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 2px 40px;
}

.gm-stop__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1.5px solid rgba(31, 26, 20, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--gm-teal);
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

    .gm-stop__btn .gm-i {
        width: 15px;
        height: 15px;
    }

    .gm-stop__btn:hover,
    .gm-stop__btn.is-on {
        border-color: var(--gm-teal);
        background: #eef5f4;
    }

.gm-stop__btn--remove {
    color: #8a4a2c;
}

    .gm-stop__btn--remove:hover {
        border-color: #c0573b;
        background: #fbe5dc;
    }

/* A stop of their own on a drive */
.gm-way__add {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin: 4px 0 0 -4px;
    padding: 4px 12px;
    border: 1px dashed rgba(21, 82, 89, 0.45);
    border-radius: 999px;
    background: #fff;
    color: var(--gm-teal);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

    .gm-way__add .gm-i {
        width: 14px;
        height: 14px;
    }

.gm-dayrow > .gm-way__add {
    margin: 8px 0 0;
}

.gm-way__stop--own {
    background: linear-gradient(90deg, #fff7e8, rgba(255, 247, 232, 0));
    cursor: default;
}

.gm-own--stop {
    margin: 6px 0 0 -26px;
}

/* The tools row uses the card's full width; Change and Remove sit at its right */
.gm-stop__tools {
    flex-wrap: nowrap;
    margin-left: 0;
}

    .gm-stop__tools .gm-stop__btn:first-of-type {
        margin-left: auto;
    }

.gm-stop__btn {
    min-height: 38px;
    padding: 5px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
}

@media (max-width: 360px) {
    .gm-stop__tools {
        flex-wrap: wrap;
    }
}
