/* Add A Tour: the tour component, its date cards, and the sheet it slides up in. */

html.giggly-tour-sheet-open,
html.giggly-tour-sheet-open body {
    overflow: hidden;
}

/* The page stays behind, dimmed, so the sheet reads as rising over it and sinking back off it. */
.giggly-tour-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10049;
    background: rgba(3, 25, 38, 0.45);
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tour-sheet-backdrop.is-open {
    opacity: 1;
    transition: opacity 0.95s ease;
}

/* A transition is taken from the state being entered: the base rule is the way down, .is-open the way up. */
.giggly-tour-sheet {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    background: var(--bg, #ffffff);
    color: var(--text, #031926);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 40px rgba(3, 25, 38, 0.22);
    overflow: hidden;
    transform: translateY(105%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.9, 0.6);
    will-change: transform;
}

.giggly-tour-sheet.is-open {
    transform: translateY(0);
    transition: transform 0.95s cubic-bezier(0.32, 0.72, 0, 1);
}

/* The flyer's own colour behind the flyer and the dates; the date cards sit on it, white and raised. */
.giggly-tour-sheet--tinted {
    background: var(--tour-tint);
}

.giggly-tour-sheet .giggly-tour-card {
    background: var(--bg, #ffffff);
    box-shadow:
        0 1px 2px rgba(3, 25, 38, 0.1),
        0 6px 18px rgba(3, 25, 38, 0.12);
}

:root[data-theme='dark'] .giggly-tour-sheet .giggly-tour-card {
    background: color-mix(in srgb, var(--text, #e8eef0) 7%, var(--bg, #031926));
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 6px 18px rgba(0, 0, 0, 0.35);
}

.giggly-tour-sheet .giggly-tour__cards {
    gap: 12px;
}

/* An event opened from a date: over the sheet from the left, and back off to the left. Slow on purpose. */
.giggly-tour-event-panel {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: var(--bg, #ffffff);
    box-shadow: 12px 0 40px rgba(3, 25, 38, 0.25);
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.55, 0, 0.9, 0.5);
    will-change: transform;
}

.giggly-tour-event-panel.is-open {
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

.giggly-tour-event-panel__loading {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    color: var(--text-secondary, #475569);
}

.giggly-tour-event-panel__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: var(--bg, #ffffff);
    opacity: 0;
}

.giggly-tour-event-panel.is-loaded .giggly-tour-event-panel__frame {
    opacity: 1;
}

/* The tapped date, while its event is drawn off-screen ready to slide in. */
.giggly-tour-card--opening .giggly-tour-card__track {
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .giggly-tour-event-panel,
    .giggly-tour-event-panel.is-open,
    .giggly-tour-sheet,
    .giggly-tour-sheet.is-open,
    .giggly-tour-sheet-backdrop,
    .giggly-tour-sheet-backdrop.is-open {
        transition-duration: 0.01s;
    }
}

.giggly-tour-sheet__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 4px 16px;
}

.giggly-tour-sheet__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.giggly-tour-sheet__brand img {
    display: block;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.giggly-tour-sheet__mascot {
    width: 34px;
    height: 41px;
}

.giggly-tour-sheet__wordmark {
    height: 34px;
    width: auto;
    max-width: 44vw;
}

:root[data-theme='dark'] .giggly-tour-sheet__wordmark {
    filter: brightness(0) invert(1);
}

.giggly-tour-sheet__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--text, #031926) 8%, transparent);
    color: var(--text, #031926);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tour-sheet__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 24px;
}

.giggly-tour-sheet:not(:has(> .giggly-tour__dock:not([hidden]))) .giggly-tour-sheet__body {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/*
 * In the sheet the dock is not a bar: Edit / Save float over the bottom of the scrolling dates, so the
 * sheet's own colour (the flyer tint) runs all the way down. The body scrolls under them, with room
 * left so the last date can be scrolled clear of the button.
 */
.giggly-tour-sheet > .giggly-tour__dock:not([hidden]) {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 0;
    padding: 0 16px max(16px, env(safe-area-inset-bottom, 0px));
    background: transparent;
    border-top: 0;
    pointer-events: none;
}

.giggly-tour-sheet > .giggly-tour__dock:not([hidden]) > * {
    pointer-events: auto;
    box-shadow:
        0 2px 6px rgba(3, 25, 38, 0.18),
        0 8px 22px rgba(3, 25, 38, 0.22);
}

.giggly-tour-sheet:has(> .giggly-tour__dock:not([hidden])) .giggly-tour-sheet__body {
    padding-bottom: calc(80px + max(16px, env(safe-area-inset-bottom, 0px)));
}

.giggly-tour {
    max-width: 640px;
    margin: 0 auto;
    padding: 4px 16px 32px;
    box-sizing: border-box;
}

/* Room under the last date for its fields to rise above an on-screen keyboard. */
.giggly-tour.giggly-tour--editing {
    padding-bottom: 55vh;
}

.giggly-tour__row--actions {
    align-items: center;
    flex-wrap: wrap;
}

.giggly-tour__row--actions > .giggly-tour__btn {
    text-decoration: none;
    text-align: center;
}

.giggly-tour__pick {
    text-align: center;
    padding: 32px 8px;
}

.giggly-tour__pick-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 18px 16px;
    border: 2px solid var(--brand-teal, #77aca2);
    border-radius: 14px;
}

.giggly-tour__pick-option .giggly-tour__hint {
    margin: 0;
}

.giggly-tour__pick-option .giggly-tour__input {
    width: 100%;
    box-sizing: border-box;
}

.giggly-tour__pick-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.giggly-tour__flyer-btn {
    margin-right: auto;
}

.giggly-tour__heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
}

.giggly-tour__title {
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: none;
    color: color-mix(in srgb, var(--text, #031926) 58%, transparent);
    margin: 0 0 6px;
    line-height: 1.25;
}

.giggly-tour__subheading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 10px;
}

.giggly-tour__hint {
    color: color-mix(in srgb, var(--text, #031926) 62%, transparent);
    font-size: 0.9rem;
    margin: 6px 0 0;
}

.giggly-tour__error {
    color: #c0392b;
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.giggly-tour__notice {
    color: var(--brand-teal-deep, #468189);
    margin: 10px 0 0;
    font-weight: 600;
}

.giggly-tour__duplicate {
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 2px solid #c0392b;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.giggly-tour__duplicate-text {
    margin: 0;
    font-size: 0.95rem;
}

.giggly-tour__duplicate .giggly-tour__btn {
    text-decoration: none;
}

.giggly-tour__busy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 0;
    color: color-mix(in srgb, var(--text, #031926) 70%, transparent);
}

.giggly-tour__spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--brand-teal, #77aca2) 35%, transparent);
    border-top-color: var(--brand-teal-deep, #468189);
    animation: giggly-tour-spin 0.8s linear infinite;
}

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

.giggly-tour__flyer {
    margin: 0;
}

.giggly-tour__flyer-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand-teal, #77aca2) 18%, var(--bg, #ffffff));
}

.giggly-tour__flyer-img--reading {
    max-width: 320px;
    margin: 0 auto 8px;
    opacity: 0.85;
}

.giggly-tour__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* Copy and Edit / Save, centred in the sheet / page footer rather than a sticky row above it. */
.giggly-tour__dock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    min-height: calc(70px + env(safe-area-inset-bottom, 0px));
    padding: 10px 16px max(10px, env(safe-area-inset-bottom, 0px));
    background: var(--bg, #ffffff);
    border-top: 1px solid color-mix(in srgb, var(--text, #031926) 10%, transparent);
    z-index: 5;
}

.giggly-tour__dock[hidden] {
    display: none;
}

:root[data-theme='dark'] .giggly-tour__dock {
    border-top-color: color-mix(in srgb, var(--text, #e8eef0) 10%, transparent);
}

.giggly-tour__icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--text, #031926) 18%, transparent);
    background: var(--bg, #ffffff);
    color: var(--text, #031926);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Copy and Share under the flyer, on the right. */
.giggly-tour__share-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.giggly-tour__icon-btn--quiet {
    width: 42px;
    height: 42px;
}

.giggly-tour__icon-btn--quiet svg {
    width: 20px;
    height: 20px;
}

.giggly-tour__icon-btn--primary {
    background: var(--brand-teal-deep, #468189);
    border-color: transparent;
    color: #ffffff;
}

.giggly-tour__icon-btn[disabled] {
    opacity: 0.55;
    cursor: default;
}

.giggly-tour__dock .giggly-tour__btn {
    min-height: 48px;
    padding: 0 24px;
}

.giggly-tour__btn {
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 9px 18px;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tour__btn[disabled] {
    opacity: 0.55;
    cursor: default;
}

.giggly-tour__btn--primary {
    background: var(--brand-teal-deep, #468189);
    color: #ffffff;
}

.giggly-tour__btn--ghost {
    background: transparent;
    color: var(--text, #031926);
    border-color: color-mix(in srgb, var(--text, #031926) 22%, transparent);
}

.giggly-tour__link-btn {
    font: inherit;
    background: none;
    border: none;
    color: var(--brand-teal-deep, #468189);
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
}

.giggly-tour__info {
    margin-top: 16px;
}

.giggly-tour__artist {
    margin: 0 0 2px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text, #031926);
}

.giggly-tour__artist a {
    color: var(--text, #031926);
    text-decoration: none;
}

.giggly-tour__description {
    white-space: pre-wrap;
    margin: 10px 0 0;
    line-height: 1.45;
}

.giggly-tour__tabs {
    display: flex;
    gap: 4px;
    margin: 22px 0 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--text, #031926) 14%, transparent);
}

.giggly-tour__tabs,
.giggly-tour__dates-head {
    align-items: center;
}

.giggly-tour__tablist {
    display: flex;
    gap: 4px;
    min-width: 0;
}

.giggly-tour__dates-head {
    display: flex;
    gap: 12px;
    margin: 24px 0 10px;
}

.giggly-tour__dates-head .giggly-tour__subheading {
    margin: 0;
}

/* The festival map's pin and its label, bare on the sheet: a 44px-high target with no disc behind it. */
.giggly-tour__map-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 44px;
    margin: 0 -6px 0 auto;
    padding: 0 6px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    border-radius: 22px;
    background: transparent;
    color: var(--text, #031926);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tour__map-btn svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

.giggly-tour__tabs .giggly-tour__map-btn {
    margin-bottom: 6px;
}

.giggly-tour__map-btn:active {
    transform: scale(0.94);
}

@media (max-width: 380px) {
    .giggly-tour__tabs .giggly-tour__tab {
        padding-left: 9px;
        padding-right: 9px;
    }

    .giggly-tour__map-btn {
        font-size: 0.85rem;
    }
}


.giggly-tour__tab {
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    padding: 8px 14px 9px;
    color: color-mix(in srgb, var(--text, #031926) 55%, transparent);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tour__tab.is-active {
    color: var(--text, #031926);
    border-bottom-color: var(--brand-teal-deep, #468189);
}

.giggly-tour__details .giggly-tour__description:first-child {
    margin-top: 4px;
}

.giggly-tour__tour-tickets {
    display: inline-block;
    margin-top: 12px;
}

.giggly-tour__form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.giggly-tour__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    min-width: 0;
}

.giggly-tour__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--text, #031926) 72%, transparent);
}

.giggly-tour__input {
    font: inherit;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--text, #031926) 18%, transparent);
    background: var(--bg, #ffffff);
    color: var(--text, #031926);
}

.giggly-tour__textarea {
    resize: vertical;
    min-height: 96px;
}

.giggly-tour__row {
    display: flex;
    gap: 10px;
}

.giggly-tour__row > .giggly-tour__field {
    flex: 1 1 0;
}

.giggly-tour__toggle {
    display: inline-flex;
    gap: 6px;
}

.giggly-tour__toggle-btn {
    font: inherit;
    font-weight: 600;
    min-width: 72px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--text, #031926) 22%, transparent);
    background: transparent;
    color: var(--text, #031926);
    cursor: pointer;
}

.giggly-tour__toggle-btn.is-on {
    background: var(--brand-teal, #77aca2);
    border-color: var(--brand-teal, #77aca2);
    color: #ffffff;
}

.giggly-tour__link {
    margin: 0;
    word-break: break-all;
    font-weight: 600;
    color: var(--brand-teal-deep, #468189);
}

.giggly-tour__artist-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand-teal, #77aca2) 10%, var(--bg, #ffffff));
}

.giggly-tour__artist-chip img,
.giggly-tour__artist-ini {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}

.giggly-tour__artist-ini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-teal-deep, #468189);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
}

.giggly-tour__artist-name {
    font-weight: 700;
}

.giggly-tour__suggest-slot {
    display: contents;
}

.giggly-tour__suggest {
    list-style: none;
    margin: 0;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--text, #031926) 14%, transparent);
    background: var(--bg, #ffffff);
}

.giggly-tour__suggest button {
    font: inherit;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    border: none;
    background: none;
    color: var(--text, #031926);
    border-radius: 8px;
    cursor: pointer;
}

.giggly-tour__suggest button:hover {
    background: color-mix(in srgb, var(--brand-teal, #77aca2) 14%, transparent);
}

.giggly-tour__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.giggly-tour__empty {
    color: color-mix(in srgb, var(--text, #031926) 60%, transparent);
}

.giggly-tour__add-date {
    margin-top: 12px;
    width: 100%;
}

.giggly-tour__find-tickets {
    width: 100%;
    margin-bottom: 12px;
}

.giggly-tour__guest-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.giggly-tour__guest-chip .giggly-tour__artist-name {
    flex: 1 1 auto;
    min-width: 0;
}

.giggly-tour__guest-remove {
    font: inherit;
    font-size: 1.3rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: color-mix(in srgb, var(--text, #031926) 60%, transparent);
    cursor: pointer;
}

/* "With Support from A, B and C" under the tour title: running text, so the commas sit on the names. */
.giggly-tour__guests-line {
    margin: 8px 0 0;
    line-height: 1.4;
}

.giggly-tour__guests-label {
    color: color-mix(in srgb, var(--text, #031926) 60%, transparent);
}

.giggly-tour__guest {
    font-weight: 700;
    color: var(--text, #031926);
    text-decoration: none;
}

/* A date card is drawn like an artist card in the directory: square picture down the left edge,
   name in bold, and the status button where the artist card keeps its follow button. */
.giggly-tour-card {
    --tour-card-thumb: 5.25rem;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: color-mix(in srgb, var(--accent-blue, #77aca2) 8%, var(--bg, #ffffff));
}

:root[data-theme='dark'] .giggly-tour-card {
    background: color-mix(in srgb, var(--accent-blue, #77aca2) 12%, var(--bg));
}

.giggly-tour-card__track {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: var(--tour-card-thumb);
    background: inherit;
    transition: transform 0.22s ease;
}

.giggly-tour-card--editing .giggly-tour-card__track {
    touch-action: pan-y;
    cursor: pointer;
}

.giggly-tour-card__track[data-tour-action='open-event'] {
    cursor: pointer;
}

.giggly-tour-card.is-swiped .giggly-tour-card__track {
    transform: translateX(-88px);
}

.giggly-tour-card__delete {
    position: absolute;
    top: 0;
    right: 0;
    width: 88px;
    height: var(--tour-card-thumb);
    border: none;
    background: #e0736f;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.giggly-tour-card__icon {
    flex: 0 0 var(--tour-card-thumb);
    width: var(--tour-card-thumb);
    height: var(--tour-card-thumb);
    background: var(--brand-teal-deep, #468189);
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giggly-tour-card__icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.giggly-tour-card__icon-ini {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.giggly-tour-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 0;
}

.giggly-tour-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-tour-card__city,
.giggly-tour-card__date {
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--text, #031926) 68%, transparent);
    text-decoration: none;
}

.giggly-tour-card__supports {
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--text, #031926) 60%, transparent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-tour-card__note {
    font-size: 0.78rem;
    color: var(--brand-teal-deep, #468189);
    font-weight: 600;
}

.giggly-tour-card__festival {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-teal-deep, #468189);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-tour-card__festival-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.giggly-tour-card__delete-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid color-mix(in srgb, var(--text, #031926) 12%, transparent);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.giggly-tour-card__delete-pick input {
    width: 20px;
    height: 20px;
    accent-color: #c0392b;
}

.giggly-tour-card__delete-pick.is-on {
    color: #c0392b;
}

.giggly-tour__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.giggly-tour__toggle input {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-teal-deep, #468189);
}

.giggly-tour__festival .giggly-tour__input {
    margin-top: 8px;
}

.giggly-tour__suggest-note {
    font-weight: 400;
    font-size: 0.8em;
    opacity: 0.65;
    margin-left: 6px;
}

.giggly-tour__delete-tour {
    display: block;
    margin: 18px auto 0;
    color: #c0392b;
    border-color: color-mix(in srgb, #c0392b 45%, transparent);
}

.giggly-tour__delete-ask {
    margin: 18px 0 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, #c0392b 40%, transparent);
    background: color-mix(in srgb, #c0392b 6%, transparent);
}

.giggly-tour__delete-ask--pick {
    margin: 0 0 12px;
}

.giggly-tour__delete-text {
    margin: 0 0 10px;
    font-weight: 600;
}

.giggly-tour__btn--danger {
    background: #c0392b;
    color: #ffffff;
}

/* The date and the status share the bottom row, so the venue name above has the card's full width. */
.giggly-tour-card__body {
    padding-right: 10px;
}

.giggly-tour-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.giggly-tour-card__foot .giggly-tour-card__date {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-tour-card__foot .giggly-tour-card__status {
    flex: 0 0 auto;
    padding: 6px 12px;
}

.giggly-tour-card__status {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    display: inline-block;
}

span.giggly-tour-card__status {
    cursor: default;
}

.giggly-tour-card__editor {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: var(--bg, #ffffff);
    border-top: 1px solid color-mix(in srgb, var(--text, #031926) 10%, transparent);
}

.giggly-tour-card__editor-actions {
    display: flex;
    gap: 10px;
}

.giggly-tour-card__editor-actions .giggly-tour__btn {
    flex: 1 1 0;
}

.giggly-tour-card__remove-date {
    color: #c92a2a;
    border-color: color-mix(in srgb, #c92a2a 45%, transparent);
}

:root[data-theme='dark'] .giggly-tour-card__remove-date {
    color: #ff8787;
    border-color: color-mix(in srgb, #ff8787 45%, transparent);
}

/* The standalone page at giggly.uk/{artist}-{tour}. */
body.giggly-tour-page {
    margin: 0;
    background: var(--bg, #ffffff);
    color: var(--text, #031926);
}

body.giggly-tour-page .giggly-tour__dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 840px;
    margin: 0 auto;
}

body.giggly-tour-page:has(.giggly-tour__dock:not([hidden])) .giggly-tour {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.giggly-tour-page__brand {
    display: flex;
    justify-content: center;
    padding: max(14px, env(safe-area-inset-top)) 16px 8px;
}

.giggly-tour-page__brand img {
    height: 34px;
    width: auto;
}

/* Hold Add Tour until the tour lookup has answered — not until the whole page is marked drawn,
   so the overlay/dir slide can release as soon as the header picture is ready (owner, 5 Nov 2026). */
html:not([data-ac-tour-ready='1']) body.artist-channel-page #acHeroTourBtn {
    visibility: hidden !important;
}

/* Artist page: Add Tour / View Tour sits beside Follow on the followers row. */
body.artist-channel-page .ac-hero-subs-row__left .pc-hero-follow-btn.artist-channel-follow-btn {
    padding: 7px 9px;
    font-size: 0.78rem;
    white-space: nowrap;
}

body.artist-channel-page .ac-hero-subs-row__left {
    gap: 5px;
}

/* A tour on now is white on red in both themes, so it stands out from Follow. */
body.artist-channel-page .ac-hero-subs-row__left .pc-hero-follow-btn.ac-hero-tour-btn--live,
body.artist-channel-page .ac-hero-subs-row__left .pc-hero-follow-btn.ac-hero-tour-btn--live:hover,
body.artist-channel-page .ac-hero-subs-row__left .pc-hero-follow-btn.ac-hero-tour-btn--live:focus-visible {
    background: #d62839;
    border-color: #d62839;
    color: #ffffff;
}

body.artist-channel-page .ac-hero-subs-row__left .pc-hero__meta {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: calc(13.5px * var(--giggly-type-scale, 1));
}

/* Edit Gigs is a pencil, so the row has room for View Tour without squashing the follower count. */
body.artist-channel-page .ac-hero-stat-col .giggly-profile-feed__edit-gigs-btn.ac-edit-gigs-icon-btn {
    min-width: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.artist-channel-page .ac-hero-stat-col .giggly-profile-feed__edit-gigs-btn.ac-edit-gigs-icon-btn[hidden] {
    display: none !important;
}

body.artist-channel-page .ac-hero-stat-col {
    min-width: 64px;
}

/* Past / Future Gigs at the user profile's size (giggly-user-feed-profile-boot-v1.js sets 16px there). */
body.artist-channel-page .ac-hero-stat-col .giggly-profile-feed__stat strong {
    font-size: calc(16px * var(--giggly-type-scale, 1));
}

body.artist-channel-page .ac-hero-stat-col .giggly-profile-feed__stat span {
    margin-top: 2px;
    font-size: calc(10px * var(--giggly-type-scale, 1));
}

body.artist-channel-page .ac-hero-stat-col__counts {
    gap: 8px;
}

/* The tour's dates on a map: above the sheet, rising the same way. Pins as on Today's Map. */
.giggly-tour-map {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    flex-direction: column;
    background: var(--bg, #ffffff);
    color: var(--text, #031926);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.9, 0.6);
}

.giggly-tour-map.is-open {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.giggly-tour-map__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--text, #031926) 12%, transparent);
}

.giggly-tour-map__titles {
    flex: 1 1 auto;
    min-width: 0;
}

.giggly-tour-map__mascot {
    flex: 0 0 auto;
    display: block;
    width: 30px;
    height: 36px;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.giggly-tour-map__flyer {
    flex: 0 0 auto;
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--brand-teal-deep, #468189);
}

.giggly-tour-map__artist,
.giggly-tour-map__title {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giggly-tour-map__artist {
    font-weight: 700;
    font-size: 1.05rem;
}

.giggly-tour-map__title {
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--text, #031926) 58%, transparent);
}

/* Festival route: one heading (e.g. Nick Young's Mutations Festival 2026), may wrap. */
.giggly-tour-map--festival .giggly-tour-map__artist {
    white-space: normal;
    font-size: 1.22rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.giggly-tour-map__share.is-copied {
    background: var(--brand-teal-deep, #468189);
    color: #ffffff;
}

.giggly-tour-map__share,
.giggly-tour-map__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text, #031926) 8%, transparent);
    color: inherit;
    cursor: pointer;
}

/*
 * Festival map share: white disc, black glyph. Ink is forced on every SVG shape —
 * WebKit on iOS Home Screen apps has ignored currentColor / inherited stroke here before.
 */
.giggly-tour-map--festival .giggly-tour-map__share {
    background: #ffffff !important;
    color: #031926 !important;
}

.giggly-tour-map--festival .giggly-tour-map__share svg,
.giggly-tour-map--festival .giggly-tour-map__share svg * {
    stroke: #031926 !important;
    fill: none !important;
    color: #031926 !important;
}

.giggly-tour-map__share.giggly-tour-map__share--on-map {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1100;
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    box-shadow:
        0 1px 2px rgba(3, 25, 38, 0.12),
        0 4px 14px rgba(3, 25, 38, 0.16);
}

.giggly-tour-map--festival .giggly-tour-map__share.is-ready,
.giggly-tour-map--festival .giggly-tour-map__share.is-copied {
    background: var(--brand-teal-deep, #468189) !important;
    color: #ffffff !important;
}

.giggly-tour-map--festival .giggly-tour-map__share.is-ready svg,
.giggly-tour-map--festival .giggly-tour-map__share.is-ready svg *,
.giggly-tour-map--festival .giggly-tour-map__share.is-copied svg,
.giggly-tour-map--festival .giggly-tour-map__share.is-copied svg * {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.giggly-tour-map__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.giggly-tour-map__pane {
    position: absolute;
    inset: 0;
    background: #f2efe9;
}

/* The miles bar sits over the foot of the map, so Leaflet's corner controls move up out of its way. */
.giggly-tour-map__stage.has-miles .leaflet-bottom {
    bottom: 76px;
}

.giggly-tour-map__miles {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 1000;
    padding: 10px 14px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg, #ffffff) 86%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow:
        0 1px 2px rgba(3, 25, 38, 0.12),
        0 6px 18px rgba(3, 25, 38, 0.18);
    color: var(--text, #031926);
}

.giggly-tour-map__miles[hidden] {
    display: none;
}

.giggly-tour-map__miles-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 26px;
    margin-bottom: 9px;
}

.giggly-tour-map__miles-leg {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--text, #031926) 64%, transparent);
}

.giggly-tour-map__miles-count {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.giggly-tour-map__miles-n {
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.giggly-tour-map__miles-replay {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text, #031926) 9%, transparent);
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tour-map__miles-replay[hidden] {
    display: none;
}

.giggly-tour-map__miles-track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text, #031926) 12%, transparent);
}

.giggly-tour-map__miles.is-playing .giggly-tour-map__miles-track {
    cursor: pointer;
}

.giggly-tour-map__miles-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: var(--brand-teal-deep, #468189);
}

.giggly-tour-map__miles-tick {
    position: absolute;
    top: 50%;
    width: 2px;
    height: 10px;
    margin-left: -1px;
    border-radius: 1px;
    transform: translateY(-50%);
    background: color-mix(in srgb, var(--text, #031926) 28%, transparent);
}

.giggly-tour-map__miles-knob {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
    transform: translateY(-50%);
    background: #031926;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Venues the drive has not reached yet wait faded, and each lights up as the dot arrives. */
.giggly-tour-map-pin-wrap .giggly-tour-map-pin {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.giggly-tour-map-pin-wrap.is-ahead .giggly-tour-map-pin {
    opacity: 0.4;
    transform: scale(0.88);
}

.giggly-tour-map-pin-wrap.is-reached .giggly-tour-map-pin {
    animation: giggly-tour-pin-arrive 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* A pin folded into a neighbour's at this zoom; the lead pin carries the count. */
.giggly-tour-map-pin-wrap.is-clustered {
    display: none !important;
}

/* The venue the flyover has stopped at stands out until it moves on. */
.giggly-tour-map-pin-wrap.is-current {
    z-index: 1000 !important;
}

.giggly-tour-map-pin-wrap.is-current .giggly-tour-map-pin__card {
    transform: scale(1.35);
    transform-origin: 50% 100%;
    box-shadow:
        0 0 0 3px var(--brand-teal, #77aca2),
        0 6px 16px rgba(0, 0, 0, 0.35);
}

/* The city badge sits above the enlarged card while the flyover is at that venue. */
.giggly-tour-map-pin__city {
    position: absolute;
    left: 50%;
    top: -46px;
    z-index: 2;
    max-width: 160px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ffffff;
    color: #031926;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.9);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.giggly-tour-map-pin-wrap.is-current .giggly-tour-map-pin__city {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.giggly-tour-map-pin__card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Ten seconds after the drive the route fades; the miles bar stays. */
.giggly-tour-map-route {
    transition: opacity 1.2s ease;
}

.giggly-tour-map__stage.is-route-faded .giggly-tour-map-route {
    opacity: 0;
}

@keyframes giggly-tour-pin-arrive {
    0% {
        transform: scale(0.88);
    }
    55% {
        transform: scale(1.14);
    }
    100% {
        transform: scale(1);
    }
}

.giggly-tour-map__note {
    margin: 0;
    padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
    font-size: 0.9rem;
    text-align: center;
    color: color-mix(in srgb, var(--text, #031926) 62%, transparent);
}

.giggly-tour-map-pin-wrap.leaflet-div-icon {
    background: transparent;
    border: none;
    overflow: visible;
}

.giggly-tour-map-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 84px;
    cursor: pointer;
}

.giggly-tour-map-pin__card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    overflow: hidden;
    background: var(--brand-teal-deep, #468189);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.giggly-tour-map-pin__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #ffffff;
}

.giggly-tour-map-pin__ini {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.giggly-tour-map-pin__tip {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #77aca2;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

.giggly-tour-map-pin__date {
    margin-top: 4px;
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    text-shadow:
        0 0 3px #ffffff,
        0 0 6px #ffffff,
        0 1px 1px rgba(255, 255, 255, 0.95);
}

:root[data-theme='dark'] .giggly-tour-map-pin__date {
    color: #f8fafc;
    text-shadow:
        0 0 4px #000000,
        0 0 8px #000000,
        0 1px 2px rgba(0, 0, 0, 0.85);
}

.giggly-tour-map-pin__count {
    position: absolute;
    top: -6px;
    right: 12px;
    z-index: 1;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #77aca2;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.giggly-tour-map-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.giggly-tour-map-popup .leaflet-popup-content {
    margin: 12px 14px;
}

.giggly-tour-map-card__name {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #031926;
}

.giggly-tour-map-card__city {
    margin: 2px 0 6px;
    font-size: 13px;
    color: #5b6b74;
}

.giggly-tour-map-card__date {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-teal-deep, #468189);
    text-decoration: none;
}

/* A festival walk: the badge over the pin names the band seen there, so it needs room and stands out. */
.giggly-tour-map--festival .giggly-tour-map-pin__city {
    max-width: 220px;
    padding: 4px 11px;
    background: #031926;
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 0 0 2px var(--brand-teal, #77aca2), 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Share as a video: busy while the walk replays into the recorder, then ready to hand over. */
.giggly-tour-map__share[hidden] {
    display: none;
}

.giggly-tour-map__share.is-busy {
    animation: giggly-tour-map-rec 1s ease-in-out infinite alternate;
    pointer-events: none;
}

.giggly-tour-map__share.is-ready {
    background: var(--brand-teal-deep, #468189);
    color: #ffffff;
}

@keyframes giggly-tour-map-rec {
    to {
        box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.25);
    }
}

.giggly-tour-map__rec {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 1001;
    margin: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: #031926;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.giggly-tour-map__rec[hidden] {
    display: none;
}

.giggly-tour-map.is-recording .giggly-tour-map__pane {
    pointer-events: none;
}

/* Multi-day festival route: day label in the header, night overlay between days. */
.giggly-tour-map__day-chip {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-teal-deep, #468189);
}

.giggly-tour-map__day-chip[hidden] {
    display: none;
}

/* Above Leaflet markers (600) and the steps bar (1000) so moon / sunrise are actually visible. */
.giggly-tour-map__night {
    position: absolute;
    inset: 0;
    z-index: 2500;
    pointer-events: none;
}

.giggly-tour-map__night[hidden] {
    display: none;
}

.giggly-tour-map-pin--home .giggly-tour-map-pin__card {
    background: var(--brand-teal-deep, #468189);
}
