/* Preserve hidden state when display utilities are present. */
[hidden] { display: none !important; }
/* tag defaults */
html {
    font-size: 14px;
    padding: 0px;
    margin: 0px;
}

header {
    width: 100%;
    height: 60px;
    margin: 0px !important;
    padding: 0px !important;
    background-size: inherit;
}

body {
    font-family: var(--bs-body-font-family);
    height: 100%;
    padding: 0px;
    margin: 0px;
    background-color: #fff7cb !important;
    overflow: hidden;
}

/* startup status */
#startupStatus {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff7cb;
    color: #263238;
    font-family: Tahoma, sans-serif;
    text-align: center;
}

.startup-status-card {
    box-sizing: border-box;
    width: min(640px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: clamp(12px, 2vw, 16px);
    padding-bottom: calc(clamp(12px, 2vw, 16px) + 8px);
    overflow: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.startup-splash-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
    height: auto;
    margin: 0 auto 16px;
    object-fit: contain;
    border-radius: 8px;
}

#startupStatus[data-error="true"] .startup-status-spinner {
    display: none !important;
}

#startupRetry {
    display: none;
    margin: 16px auto 0;
    padding: 8px 18px;
    border: 1px solid #00753a;
    border-radius: 6px;
    background: #fff;
    color: #00753a;
    font: inherit;
    cursor: pointer;
}

#startupStatus[data-error="true"] #startupRetry {
    display: block;
}

h4 {
    font-size: 1.3em !important;
    margin-right: auto;
}

h5 {
    font-size: 1.2em !important;
    font-weight: bold !important;
    background-color: #FFFFFF;
}

/* body dom */

a {
    overflow-wrap: break-word;
    color: rgb(0 117 58);
}

.two-pane {
    display: flex;
    position: relative;
}

#top-pane {
    background-color: #faf8f8;
    overflow: hidden;
}

#bottom-pane {
    position: relative;
    background-color: #faf8f8;
    overflow: hidden;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    background-image: var(--bg-url, none);
}

#btmHeader {
    width: 100%;
    overflow-y: auto;
}

#detailMenu,
#listPanel {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    border-color: #d5dae0;
}

/* Short details must not clip the dropdown below their header. */
#detailMenu {
    overflow: visible;
}

#sidebarResizeHandle {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    padding: 0;
    z-index: 1001;
    cursor: col-resize;
    touch-action: none;
}

#sidebarResizeHandle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 56px;
    transform: translateY(-50%);
    border: 1px solid #adb5bd;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

#sidebarResizeHandle::after {
    content: "⋮";
    position: absolute;
    top: 50%;
    left: 1px;
    width: 10px;
    transform: translateY(-52%);
    color: #495057;
    font-size: 22px;
    line-height: 1;
    text-align: center;
}

#sidebarResizeHandle:hover::before,
body.is-resizing-sidebar #sidebarResizeHandle::before {
    border-color: rgb(0, 117, 58);
    background: rgb(224, 243, 233);
}

#sidebarResizeHandle:hover::after,
body.is-resizing-sidebar #sidebarResizeHandle::after {
    color: rgb(0, 117, 58);
}

body.is-resizing-sidebar,
body.is-resizing-sidebar * {
    cursor: inherit !important;
    user-select: none !important;
}

.footerSpace {
    height: 100px !important;
}

#btmHeader:has(#detailMenu:not(.d-none)) .footerSpace {
    display: none;
}

#btmHeader:has(#detailMenu:not(.d-none)) {
    padding-bottom: 0 !important;
}

#detailMenu:not(.d-none) {
    margin-bottom: 0 !important;
}

/* Let the globe fill the remaining mobile detail space after resizing. */

#detailArea {
    overflow-y: auto;
}

#panelProgress {
    height: 6px
}

#detailHeader {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bs-accordion-active-bg);
    color: var(--bs-accordion-active-color);
    border-bottom: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}

#detailHeader,
#listHeader {
    padding: 4px 5px !important;
}

#detailHeader .dropdown {
    margin-right: 4px !important;
}

#btnMenuButton {
    width: 40px !important;
    height: 40px !important;
}

#detailHeader .detailTitle {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--bs-accordion-active-color);
}

#detailHeaderClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #000;
    font-size: 24px;
    line-height: 1;
}

#listHeader {
    min-height: 48px;
    background-color: var(--bs-accordion-active-bg);
    color: var(--bs-accordion-active-color);
    border-bottom: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}

#listHeader .detailTitle {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-window-controls .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #000;
}

div.showcase {
    margin: 0px 0px 0px 0px !important;
    padding: 0px !important;
    overflow-x: auto;
    width: fit-content;
    max-width: calc(100vw - 0px);
    display: flex;
    user-select: none;

    /* padding-right はイベント領域を広げるので避ける */
    padding-right: 0 !important;
}

div.showcase::-webkit-scrollbar {
    display: block;
    height: 4px;
}

div.showcase::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.5);
}

div.showcase::-webkit-scrollbar-thumb {
    height: 5px;
    background-color: #404080;
}

/* Activity Modal Icon Size */
h4 img {
    height: 1.5em;
    margin-right: 0.3em;
}

.globalMessage {
    display: block;
    margin: 0;
    color: #111;
    font-weight: 600;
}

.global-status-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(73, 80, 87, 0.35);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.global-status-message:not(:has(.globalMessage:not(:empty))):not(:has(#globalSpinner:not(.d-none))) {
    display: none;
}

#globalStatus {
    position: absolute;
    z-index: 100;
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 0 !important;
    pointer-events: none;
    transform: none !important;
}

.menu {
    margin: 2px 0px;
    border: 1px solid;
    width: initial !important;
    height: 100%;
}

.pointer {
    cursor: pointer;
}

p {
    line-height: 1.5;
    margin-bottom: 0.5rem;
    margin-left: 0.5em;
}

span {
    font-size: 16px;
}

.modal-body { overflow-x: hidden; }

input[type="search"] {
    font-size: 14px;
    display: inline-block;
    width: calc(180px - 4em);
}

tr.selected td {
    background-color: #d9efff !important;
}

.detailTitle {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    text-wrap-mode: nowrap;
    height: 30px;
}

#splashImage {
    display: none;
}

#PinchImage {
    display: none;
    height: auto;
    position: fixed;
    z-index: 10000;
    cursor: zoom-out;
    user-select: none;
    -webkit-user-drag: none;
}

#PinchImageBK {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #000000A0;
    top: 0px;
    left: 0px;
}

#FullScreenVideo {
    display: none;
    position: fixed;
    z-index: 10000;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    cursor: pointer;
}

#PinchImageClose,
#FullScreenVideoClose {
    display: none;
    position: fixed;
    z-index: 10001;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 24px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
}

#PinchImageClose:hover,
#PinchImageClose:focus-visible,
#FullScreenVideoClose:hover,
#FullScreenVideoClose:focus-visible {
    background-color: rgba(0, 0, 0, 0.9);
}

#scrollHand {
    pointer-events: none;
    display: none;
    z-index: 3000;
    position: absolute;
}

#mapid {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #4286f4, #373B44); /*宇宙をイメージした暗めのグラデーション背景色*/
}

.list-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

@keyframes swing {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* メッセージを画面中央に配置 */
.fade-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    width: max-content;
    max-width: calc(100vw - 40px);
    white-space: nowrap;
    box-sizing: border-box;
    padding: 20px 20px;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 3s ease;
    z-index: 9999;
    text-align: center;
    font-size: clamp(0.75rem, 4vw, 1.2rem);
}

.fade-message.hide {
    opacity: 0;
}

/* パネル */
.basemenu {
    background-image: var(--bg-url, none);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    max-width: unset;
}

/* タイトル/サブ：読みやすく、派手にしない */
.basemenu .title {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.2;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.basemenu .subtitle {
    color: #6b7280;
    font-size: .85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

/* 1行目の高さを少しだけ確保 */
.basemenu>.col-12.p-1.me-2.d-flex.align-items-center:first-child {
    min-height: 54px;
}

/* 2行目：間隔だけ微調整、装飾は最小限 */
.basemenu .col-12.p-1.me-2.d-flex.align-items-center:nth-of-type(2) {
    gap: .5rem;
}

/* セレクトは標準のまま＋縁だけ薄く */
.basemenu .form-select {
    background: #fff;
}

/* アイコンボタンは小さめ・軽めに（統一サイズ） */
.basemenu .btn {
    border-radius: 10px !important;
}

.basemenu .btn.menu,
.basemenu .col-12.p-1.me-2.d-flex.align-items-center:nth-of-type(2) .btn {
    height: 36px;
    min-width: 36px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding-right: 38px;
    /* ボタン分の余白 */
    border-radius: 10px;
    border: 1px solid #ccc;
    height: 38px;
}

.search-box .search-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #555;
    cursor: pointer;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box .search-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

#snow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#listArea .list-group-item {
    position: relative;
    min-height: 2.75rem;
    padding: .65rem 5.5rem .65rem .75rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    line-height: 1.45;
}
#listArea .list-group-item:first-child { border-top: 0; }
#listArea .list-group-item:last-child { border-bottom: 0; }
#listArea .list-group-item:focus-visible { z-index: 1; outline: 2px solid #0d6efd; outline-offset: -2px; }
#listArea .list-facility-item > .list-detail-button > .row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 2px;
    margin: 0;
}
#listArea .list-facility-item > .list-detail-button > .row > div { width: auto; min-width: 0; padding: 0; }
#listArea .list-facility-name { grid-column: 2; grid-row: 1; font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
#listArea .list-facility-ref { grid-column: 2; grid-row: 2; font-size: .75rem; color: #697580; overflow-wrap: anywhere; }
#listArea .list-facility-meta { grid-column: 2; font-size: .8rem; color: #697580; overflow-wrap: anywhere; }
#listArea .list-facility-item .list-icon { position: absolute; left: .75rem; top: .75rem; width: 24px; height: 24px; margin: 0; object-fit: contain; }
#listArea .list-facility-item > .list-detail-button > small { margin-left: 36px; font-size: .75rem; }
#listArea .list-group-item.list-area-item { padding-right: .75rem; }
#listArea .list-area-item .list-area-name { padding-right: 5rem; }
#listArea .list-name-fallback { color: #6c757d; }
.poi-status-toggle { color: var(--bs-body-color); }
.poi-status-toggle i { font-size: 1.3rem; }
.poi-status-toggle[aria-pressed="true"] { color: #0d6efd; }
#listArea .list-status-button { position: absolute; top: .35rem; width: 40px; height: 40px; padding: 0; }
#listArea .list-visited { right: 2.75rem; }
#listArea .list-favorite { right: .25rem; }

/* Shared map UI components. */
.basemenu {
    background-color: rgba(255, 255, 255, 0.94);
}

.basemenu #list_category {
    min-width: 0;
}

#baselist {
    max-width: 100vw;
}

.basemenu > div,
.basemenu a.col,
.basemenu .search-box {
    min-width: 0;
}

.basemenu > .col-12:first-child {
    margin-right: 0 !important;
}

.basemenu a.col .title,
.basemenu a.col .subtitle {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.participation-link {
    border: 0;
    background: transparent;
    color: #126d49;
    padding: 3px 0;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.participation-link:hover {
    color: #08452d;
}

.cMap-intro {
    position: absolute;
    top: var(--cmap-intro-top, 110px);
    left: 1vw;
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    max-width: 760px;
    padding: 0.8rem 0.9rem 0.8rem 1rem;
    border: 1px solid rgba(0, 117, 58, 0.35);
    border-radius: 0.7rem;
    background: rgba(244, 255, 249, 0.96);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    color: #173a2a;
}

.cMap-intro__body {
    min-width: 0;
}

.cMap-intro h2 {
    margin: 0 0 0.3rem;
    color: #075b31;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.cMap-intro p {
    margin: 0;
    font-size: 1.0rem;
    line-height: 1.5;
}

.cMap-intro__close {
    display: inline-flex;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(0, 117, 58, 0.45);
    border-radius: 50%;
    background: #fff;
    color: #075b31;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.cMap-intro__close:hover,
.cMap-intro__close:focus-visible {
    background: #dff3e8;
}

.cMap-intro__close:focus-visible {
    outline: 3px solid rgba(0, 117, 58, 0.25);
    outline-offset: 2px;
}

/* Avoid map notifications covering an open modal. */
.modal-open:has(.modal.show) .fade-message { visibility: hidden; }
.changes-modal__thumbnail { object-fit: cover; }
.changes-modal__item, .changes-modal__name, .changes-modal__editor,
.changes-modal__review-body, .modal-title { overflow-wrap: anywhere; }
.changes-modal__list .news-ticker__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
    background: #fff;
    text-decoration: none;
}
.changes-modal__list .news-ticker__headline,
.changes-modal__list .news-ticker__headline-text {
    white-space: normal;
    overflow-wrap: anywhere;
}
.changes-modal__list .news-ticker__headline-track { display: block; }
.changes-modal__list .news-ticker__headline-text--clone,
.changes-modal__list .news-ticker__mobile-label { display: none; }
.changes-modal__list .news-ticker__meta { color: #495057; }

.news-ticker {
    position: absolute;
    left: 50%;
    bottom: 46px;
    z-index: 20;
    width: min(760px, calc(100% - 32px));
    transform: translateX(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

#mapid:has(.showcase:not(.d-none) img.slide) .news-ticker {
    bottom: calc(46px + 9vh + 8px);
}

.news-ticker-toggle {
    position: absolute;
    left: 16px;
    bottom: 46px;
    z-index: 21;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    background: rgba(10, 24, 40, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.news-ticker-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#mapid:has(.showcase:not(.d-none) img.slide) .news-ticker-toggle {
    bottom: calc(46px + 9vh + 8px);
}

.news-ticker.news-ticker--collapsible {
    left: 16px;
    bottom: 92px;
    width: min(380px, calc(100% - 80px));
    max-height: min(30vh, 220px);
    transform: none;
}

#mapid:has(.showcase:not(.d-none) img.slide) .news-ticker--collapsible {
    bottom: calc(92px + 9vh + 8px);
}

.news-ticker--collapsible .news-ticker__button,
.news-ticker--collapsible .news-ticker__source { display: none; }

.news-ticker--collapsible .news-ticker__content--list {
    display: block;
    max-height: min(30vh, 220px);
    overflow-y: auto;
    border-radius: 0.6rem;
    background: rgba(10, 24, 40, 0.95);
    pointer-events: auto;
    touch-action: pan-y;
    scrollbar-width: thin;
}

.news-ticker--collapsible .news-ticker__item {
    display: block;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-size: 0.82rem;
}

.news-ticker--collapsible .news-ticker__headline {
    display: block;
    white-space: normal;
}

.news-ticker--collapsible .news-ticker__headline-track,
.news-ticker--collapsible .news-ticker__headline-text {
    display: inline;
    white-space: normal;
}

.news-ticker--collapsible .news-ticker__headline-text--clone {
    display: none;
}

.news-ticker__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    border-radius: 0.6rem;
    cursor: grab;
    touch-action: none;
}

.news-ticker__content.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.news-ticker__content.is-dragging .news-ticker__item {
    will-change: transform, opacity;
}

.news-ticker__item {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.6rem;
    background: rgba(10, 24, 40, 0.92);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.35;
    text-decoration: none;
    pointer-events: auto;
}

.news-ticker__item--entering-next {
    animation: news-ticker-enter-from-right 0.45s ease-out both;
}

.news-ticker__item--leaving-next {
    z-index: 1;
    pointer-events: none;
    animation: news-ticker-leave-to-left 0.45s ease-out both;
}

.news-ticker__item--entering-previous {
    animation: news-ticker-enter-from-left 0.45s ease-out both;
}

.news-ticker__item--leaving-previous {
    z-index: 1;
    pointer-events: none;
    animation: news-ticker-leave-to-right 0.45s ease-out both;
}

.news-ticker__button {
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(10, 24, 40, 0.92);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
}

.news-ticker__button:hover,
.news-ticker__button:focus-visible {
    background: rgba(38, 85, 122, 0.98);
}

.news-ticker__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.news-ticker__button:disabled {
    opacity: 0.45;
    cursor: default;
}

.news-ticker__button-icon--mobile {
    display: none;
}

.news-ticker__source {
    position: absolute;
    top: calc(100% + 0.2rem);
    right: 3.5rem;
    color: rgba(10, 24, 40, 0.82);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.news-ticker__source:hover,
.news-ticker__source:focus-visible {
    color: #07111d;
    text-decoration: underline;
}

.news-ticker__item:hover {
    color: #fff;
    background: rgba(20, 42, 67, 0.96);
}

.news-ticker__meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.news-ticker__year,
.news-ticker__date,
.news-ticker__region {
    flex: 0 0 auto;
}

.news-ticker__mobile-label {
    display: none;
}

.news-ticker__year {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.news-ticker__date,
.news-ticker__region {
    font-size: 0.78rem;
    color: #bde4ff;
}

.news-ticker__region {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(61, 154, 215, 0.24);
}

.news-ticker__region--national {
    color: #ffe09a;
    background: rgba(229, 159, 35, 0.25);
}

.news-ticker__headline {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-ticker__headline-track {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-ticker__headline-text {
    display: inline-block;
}

.news-ticker__headline-text--clone {
    display: none;
}

@keyframes news-ticker-enter-from-right {
    from {
        transform: translateX(calc(100% + 12px));
    }
    to {
        transform: translateX(0);
    }
}

@keyframes news-ticker-leave-to-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 12px));
    }
}

@keyframes news-ticker-enter-from-left {
    from {
        transform: translateX(calc(-100% - 12px));
    }
    to {
        transform: translateX(0);
    }
}

@keyframes news-ticker-leave-to-right {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100% + 12px));
    }
}

@keyframes news-headline-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Keep attribution at the map's lower-left edge, below visible thumbnails. */
#mapid:has(.showcase:not(.d-none) img.slide) .maplibregl-ctrl-bottom-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

#mapid:has(.showcase:not(.d-none) img.slide) .showcase {
    order: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0 !important;
}

#mapid:has(.showcase:not(.d-none) img.slide) .maplibregl-ctrl-attrib {
    order: 1;
    align-self: flex-start;
    white-space: nowrap;
}

img.slide { flex: 0 0 auto; }

.list-actions .btn {
    min-height: 36px;
    opacity: 1 !important;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.maplibregl-ctrl .list-actions .btn-success:hover,
.maplibregl-ctrl .list-actions .btn-success:focus-visible {
    border-color: #0f5132;
    background-color: #146c43;
    color: #fff;
}

:root .btn.btn-light:hover,
:root .btn.btn-light:focus-visible,
:root .btn.btn-light:active,
:root .btn.btn-light.show {
    border-color: #6c757d;
    background-color: #e9ecef;
    color: #111;
}

.area-feature-summary[hidden],
.basemenu > .col-12:first-child {
    flex-wrap: wrap;
}

.map-display-status {
    min-width: 0;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    pointer-events: auto;
}

#globalStatus:has(.globalMessage:not(:empty), #globalSpinner:not(.d-none)) .map-display-status {
    display: none;
}

.map-display-row,
.map-display-targets,
.area-feature-summary {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.map-display-targets {
    flex-wrap: wrap;
}

.map-display-conditions {
    margin-top: 3px;
}

.map-display-condition-chip {
    padding: 1px 6px;
    border-radius: 4px;
    background: #e8f4ed;
    color: #1f5135;
    font-size: 0.76rem;
}

.map-display-label {
    flex: none;
    color: #475569;
    font-size: 0.78rem;
}

.map-display-target {
    border: 1px solid #adb5bd;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 0.78rem;
    line-height: 1.4;
    padding: 2px 7px;
}

.map-display-target[data-visible="false"] {
    border-color: #d1d5db;
    background: #f1f3f5;
    color: #6b7280;
}

.map-display-reason {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    color: #334155;
    font-size: 0.78rem;
}

.map-display-reason .btn {
    padding: 0 4px;
    font-size: 1rem;
    line-height: 1;
}

.area-feature-summary {
    margin-top: 4px;
}

.area-feature-summary strong {
    flex: none;
    white-space: nowrap;
}

.area-feature-summary .btn {
    flex: none;
    white-space: nowrap;
}

.area-feature-chips {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.area-feature-chips::-webkit-scrollbar {
    display: none;
}

.area-feature-chip,
.area-status-badge {
    flex: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dff2e5;
    color: #174728;
    font-size: 0.78rem;
    white-space: nowrap;
}

.area-status-badge {
    position: static;
    display: inline-flex;
    width: auto !important;
    max-width: max-content;
    margin: 0 0 4px;
}

[data-area-status="missing"] { border-left: 5px solid #dc3545; }
[data-area-status="stale"] { border-left: 5px solid #f0ad4e; }
[data-area-status="recent"] { border-left: 5px solid #198754; }
.area-status-missing { background: #f8d7da; color: #842029; }
.area-status-stale { background: #fff3cd; color: #664d03; }

.list-activity-count {
    margin-top: 3px;
    text-align: right;
}

.list-area-features {
    color: #334155;
    font-size: 0.9rem;
}

.area-match-reason {
    margin: 12px 0;
    padding: 12px;
    border-left: 5px solid #198754;
    border-radius: 8px;
    background: #edf8f0;
}

.area-match-reason h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

/* The changes modal belongs to the park list; its mobile entry is a map control. */
.poi-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
    height: 36px;
    min-width: 36px;
    font-size: 0.85rem;
    border-radius: 10px !important;
    background: #fff;
}
.changes-button {
    font-size: 1rem;
}
.changes-button__count {
    display: inline-block;
    min-width: 1.5em;
    padding: 0.1em 0.4em;
    border-radius: 1em;
    background: #e9ecef;
    color: #495057;
    font-weight: 700;
}
.changes-button.has-unread .changes-button__count { background: #0d6efd; color: #fff; }

/* Transparent thumbnail space and the navigation spacer must not intercept the map. */
#images.showcase, #dummy { pointer-events: none; }
#images.showcase img.slide { pointer-events: auto; }
/* Discovery is independent of the type of place configured by the application. */
.place-discovery, .place-list-mode { min-width: 0; }
.place-discovery { flex: 1; }
.place-list-mode { flex: 0 1 42%; }
.place-list-toolbar select { min-width: 0; }
.place-preview-image { object-fit: cover; }
.list-area-item:has(.place-preview-image:not([hidden])) { min-height: 88px; }
.change-feed-group details > summary { padding: .4rem .6rem; cursor: pointer; font-size: .85rem; }
/* Indoor floor selector. */
.indoor-level-control {
    position: fixed;
    top: 110px;
    left: 10px;
    z-index: 100;
    width: 66px;
}

.indoor-level-option:focus-visible,
.indoor-level-wheel:focus-visible {
    outline: 3px solid rgba(37, 99, 168, 0.28);
    outline-offset: 1px;
}

.indoor-level-popover {
    width: 66px;
    padding: 4px;
    border: 1px solid #cfd4da;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.indoor-level-wheel-frame {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.indoor-level-wheel-frame::before,
.indoor-level-wheel-frame::after {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 1;
    height: 34px;
    pointer-events: none;
    content: "";
}

.indoor-level-wheel-frame::before {
    top: 0;
    background: linear-gradient(to bottom, #fff 10%, rgba(255, 255, 255, 0));
}

.indoor-level-wheel-frame::after {
    bottom: 0;
    background: linear-gradient(to top, #fff 10%, rgba(255, 255, 255, 0));
}

.indoor-level-wheel {
    box-sizing: border-box;
    width: 58px;
    height: 200px;
    padding: 80px 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    scroll-snap-type: y mandatory;
    touch-action: pan-y;
}

.indoor-level-wheel::-webkit-scrollbar {
    display: none;
}

.indoor-level-option {
    position: relative;
    display: block;
    width: 58px;
    height: 40px;
    padding: 0 7px;
    scroll-snap-align: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}

.indoor-level-option:not(:disabled)::after {
    position: absolute;
    top: 17px;
    right: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2563a8;
    content: "";
}

.indoor-level-option:hover {
    background: #e8f1fb;
}

.indoor-level-option.active {
    box-shadow: inset 0 0 0 2px #2563a8;
    color: #1f2937;
}

.indoor-level-option.pending {
    background: #2563a8;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.indoor-level-option.pending::after {
    background: #fff;
}

.indoor-level-option:disabled {
    color: #9ca3af;
    opacity: 0.7;
    cursor: not-allowed;
}

.indoor-level-option.pending:disabled {
    background: #e5e7eb;
    color: #6b7280;
}

/* Responsive layout: compact controls at 576px; split panes at 1080px. */
@media (max-width: 575.98px) {
    .cMap-intro {
        top: var(--cmap-intro-top, 108px);
        right: 10px;
        left: 10px;
        gap: 0.5rem;
        padding: 0.65rem 0.65rem 0.65rem 0.75rem;
    }

    .cMap-intro h2 {
        font-size: 1.2rem;
    }

    .cMap-intro p {
        font-size: 1.0rem;
        line-height: 1.4;
    }

    .cMap-intro__close {
        flex-basis: 1.8rem;
        width: 1.8rem;
        height: 1.8rem;
        font-size: 1.15rem;
    }

    .news-ticker-toggle { left: 10px; bottom: 56px; }
    #mapid:has(.showcase:not(.d-none) img.slide) .news-ticker-toggle {
        bottom: calc(56px + 9vh + 8px);
    }
    .news-ticker.news-ticker--collapsible {
        left: 10px;
        right: auto;
        bottom: 102px;
        display: flex;
        width: min(340px, calc(100% - 72px));
    }
    #mapid:has(.showcase:not(.d-none) img.slide) .news-ticker--collapsible {
        bottom: calc(102px + 9vh + 8px);
    }
    .news-ticker--collapsible .news-ticker__content--list { max-height: min(30vh, 220px); }
    .news-ticker--collapsible .news-ticker__item { display: block; }
    .news-ticker--collapsible .news-ticker__headline { white-space: normal; }

    .news-ticker {
        right: 52px;
        bottom: 56px;
        left: 10px;
        width: auto;
        transform: none;
        display: grid;
        grid-template-columns: 2.4rem minmax(0, 1fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
        column-gap: 0.35rem;
        row-gap: 0.25rem;
    }

    #mapid:has(.showcase:not(.d-none) img.slide) .news-ticker {
        bottom: calc(56px + 9vh + 8px);
    }

    .news-ticker__content {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: 100%;
    }

    .news-ticker__item {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
        padding: 0.55rem 0.7rem;
        border-radius: 0.5rem;
        font-size: 0.82rem;
    }

    .news-ticker__button {
        flex: 0 0 auto;
        width: 2.4rem;
        height: auto;
        min-height: 2rem;
        border-radius: 0.4rem;
        font-size: 0.72rem;
    }

    .news-ticker__button:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .news-ticker__button:last-child {
        grid-column: 1;
        grid-row: 2;
    }

    .news-ticker__button-icon--desktop {
        display: none;
    }

    .news-ticker__button-icon--mobile {
        display: inline;
    }

    .news-ticker__source {
        right: 0;
    }

    .news-ticker__meta {
        width: 100%;
        gap: 0.25rem;
    }

    .news-ticker__mobile-label {
        display: inline;
        flex: 0 0 auto;
        color: #ffe09a;
        font-size: 0.68rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .news-ticker__year {
        font-size: 1rem;
    }

    .news-ticker__headline {
        display: block;
        width: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        text-overflow: clip;
        white-space: nowrap;
    }

    .news-ticker__headline-track {
        display: block;
        width: max-content;
        overflow: visible;
        text-overflow: clip;
    }

    .news-ticker__headline.is-scrolling .news-ticker__headline-track {
        display: flex;
        animation: news-headline-scroll 9s linear infinite;
        will-change: transform;
    }

    .news-ticker__headline.is-scrolling .news-ticker__headline-text {
        flex: 0 0 auto;
        padding-right: 2.5rem;
    }

    .news-ticker__headline.is-scrolling .news-ticker__headline-text--clone {
        display: inline-block;
    }

    .list-actions .btn {
        min-width: 44px;
        padding-inline: 2px;
    }

    .list-actions .btn i {
        margin-right: 2px !important;
    }

    .indoor-level-control {
        top: 104px;
        left: 6px;
    }
}

@media (min-width: 576px) {
    .news-ticker {
        justify-content: center;
    }

    .news-ticker__content {
        flex: 0 1 660px;
        width: 660px;
        max-width: calc(100% - 5.6rem);
    }
}

@media (max-width: 1079.98px) {
    #sidebarResizeHandle {
        top: 0;
        left: 0;
        width: 100%;
        height: 12px;
        background: transparent;
        cursor: row-resize;
    }

    #btmHeader {
        padding-top: 12px !important;
    }

    /* Keep the scroll area below the resize handle without a second header gap. */
    #btmHeader:has(#detailMenu:not(.d-none)) {
        margin-top: 12px;
        height: calc(100% - 12px) !important;
        padding-top: 0 !important;
    }

    #detailHeader {
        top: 0;
    }

    #sidebarResizeHandle::before {
        top: 0;
        left: 50%;
        width: 56px;
        height: 12px;
        transform: translateX(-50%);
        border: 1px solid #adb5bd;
        border-top: 0;
        border-radius: 0 0 8px 8px;
    }

    #sidebarResizeHandle::after {
        content: "⋯";
        top: -8px;
        left: 50%;
        width: 40px;
        transform: translateX(-50%);
    }

    #btmHeader:has(#detailMenu:not(.d-none) #mini-map:not(.d-none)) {
        display: flex;
        flex-direction: column;
    }

    #detailMenu:not(.d-none):has(#mini-map:not(.d-none)) {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
    }

    #detailMenu:has(#mini-map:not(.d-none)) #detailHeader,
    #detailMenu:has(#mini-map:not(.d-none)) #btmWindow_message {
        flex-shrink: 0;
    }

    #detailMenu:has(#mini-map:not(.d-none)) #detailArea,
    #detailMenu:has(#mini-map:not(.d-none)) #detailArea > .accordion-body {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
    }

    #detailMenu #mini-map:not(.d-none) {
        flex: 1 0 auto;
        width: 100%;
    }

    .poi-toolbar-button { height: 44px; min-width: 44px; box-shadow: 0 1px 5px #0003; }

    #changesButtonDesktop { display: none; }
}

@media (min-width: 1080px) {
    #bottom-pane.sidebar-minimized {
        flex: 0 0 48px !important;
        width: 48px !important;
        min-width: 48px;
        max-width: 48px;
    }

    #bottom-pane.sidebar-minimized #detailMenu,
    #bottom-pane.sidebar-minimized #listAccordion,
    #bottom-pane.sidebar-minimized #panelProgress,
    #bottom-pane.sidebar-minimized .footerSpace,
    #bottom-pane.sidebar-minimized #listTitle {
        display: none !important;
    }

    #bottom-pane.sidebar-minimized #sidebarMinimize {
        display: none !important;
    }

    #bottom-pane.sidebar-minimized #btmHeader {
        overflow: hidden;
        padding: 0 !important;
    }

    #bottom-pane.sidebar-minimized #listHeader {
        justify-content: center;
        padding-inline: 4px !important;
    }

    div.showcase {
        margin: 0px 0px 24px 0px !important;
    }

    .basemenu {
        max-width: 640px;
    }

    #changesButtonDesktop { margin-right: 8px; }
    #changesButtonMobile { display: none; }
}

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

    .news-ticker__headline.is-scrolling {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .news-ticker__headline.is-scrolling .news-ticker__headline-track {
        display: block;
        animation: none;
        transform: none;
    }

    .news-ticker__headline.is-scrolling .news-ticker__headline-text--clone {
        display: none;
    }
}

/* Keep short trailing fragments out of update-history paragraphs. */
.map-update-history p,
.map-update-history li {
    text-wrap: pretty;
}
.map-update-history li + li {
    margin-top: 0.3em;
}

.thumbnail-scroll-hint {
    padding: 0.3rem 0.65rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Keep map imagery visible while sidebar dragging resizes the WebGL canvas. */
.sidebar-map-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

/* Shared Playgrounds updates (2026-10-31). */
.list-detail-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.list-detail-button:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 3px;
}

.changes-modal__map-info { display: grid; gap: 3px; margin: 6px 0; color: #384957; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }

.change-feed-group > details { background: #f4f6f7; border-top: 1px solid #d8e2df; }

.change-feed-group > details[open] { padding-bottom: .6rem; }

.change-feed-group > details > .changes-modal__item {
    margin-left: 1rem;
    width: calc(100% - 1.6rem) !important;
    padding: .75rem;
    border-left: 3px solid #b8cbd9;
}

.basemenu .dropdown:has(#main_menu.show) {
    z-index: 1;
}

#mapid:has(#main_menu.show) .map-display-status {
    display: none;
}

.changes-modal__item[data-read-state="unread"] { background: #f0f7ff; }

.changes-modal__item[data-read-state="unread"]:hover { background: #e5f0fc; }

.change-feed-group:has(> .changes-modal__item[data-read-state="unread"]) > details { background: #f0f7ff; }

.category-secondary .map-category-control { font-size: .8rem; color: #626b67; }

.category-secondary .map-category-control select { font-size: .8rem; background-color: #f6f8f7; }

.category-secondary .map-category-control label { margin: 0; }

.place-purpose-notice { margin: 0; padding: .35rem .5rem; color: #59665f; background: #f5f8f6; font-size: .78rem; }

.place-purpose-notice[hidden] { display: none; }
