/* 全体の基本スタイル */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

:root {
    /* モバイルフッターオフセットのベース値 */
    --mobile-footer-offset: 0px;
    --panel-lift: 56px;
    --zoom-control-offset: 112px;
}

.page-wrapper {
    padding: 88px 16px 32px;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
    line-height: 1.6;
    color: #1f2a3d;
}

.genre-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding: 0;
}

.genre-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #d0d5df;
    border-radius: 999px;
    background-color: #f7f8fa;
    color: #2f3441;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.genre-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.genre-button:focus-visible {
    outline: 3px solid rgba(0, 96, 185, 0.25);
    outline-offset: 3px;
}

.genre-button--active {
    background-color: #2f3441;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.mobile-bottom-controls {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: none;
    z-index: 32;
}

.mobile-bottom-controls > * {
    pointer-events: auto;
}

.mobile-bottom-controls .floating-links.floating-links--hidden-behind-list {
    pointer-events: none;
    z-index: 10;
}

.floating-links {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 8px;
    pointer-events: none;
    z-index: 32;
}

.floating-links .help-link,
.floating-links .admin-link {
    pointer-events: auto;
}

.floating-links--hidden-behind-list {
    z-index: 10;
    pointer-events: none;
    bottom: calc(16px + var(--mobile-footer-offset));
}

.floating-links--hidden-behind-list .help-link,
.floating-links--hidden-behind-list .admin-link {
    pointer-events: none;
}

.help-link,
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 40;
    border-radius: 999px;
    text-decoration: none;
}

.admin-link {
    padding: 6px 10px;
    background: transparent;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.help-link {
    padding: 8px 12px;
    border: none;
    background: linear-gradient(135deg, #38c172, #1f9d55 80%);
    box-shadow: 0 8px 18px rgba(31, 157, 85, 0.24);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.help-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(31, 157, 85, 0.28);
    filter: brightness(1.05);
}

.help-link:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(31, 157, 85, 0.26);
    filter: brightness(0.95);
}

.help-link:focus-visible {
    outline: 3px solid rgba(31, 157, 85, 0.3);
    outline-offset: 2px;
}

.help-link__label {
    font-size: 0.95rem;
}

.help-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 16px;
}

.help-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.help-modal__dialog {
    position: relative;
    width: min(840px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    padding: 20px 20px 8px;
}

.help-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.help-modal__header h2 {
    margin: 0;
}

.help-modal__close {
    min-width: 88px;
}

.help-modal__body {
    padding-bottom: 8px;
}

body.is-help-modal-open {
    overflow: hidden;
}

.admin-link:focus-visible {
    outline: 2px solid #9ca3af;
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.7);
}

.admin-link:hover {
    color: #4b5563;
    opacity: 1;
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.admin-link--placeholder {
    min-width: 0;
}

.admin-link--hidden {
    display: none !important;
}

.results-toggle {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a18, #af002d 80%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(175, 0, 45, 0.28);
    z-index: 30;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.results-toggle:hover {
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 16px 32px rgba(175, 0, 45, 0.32);
    filter: brightness(1.05);
}

.results-toggle:active {
    transform: translateX(-50%);
    box-shadow: 0 8px 20px rgba(175, 0, 45, 0.26);
    filter: brightness(0.95);
}

.results-toggle:focus-visible {
    outline: 3px solid rgba(255, 122, 24, 0.35);
    outline-offset: 3px;
}

.notice-message {
    margin: 16px auto;
    padding: 12px 16px;
    max-width: 480px;
    background-color: #fff4e5;
    border-left: 4px solid #ff9800;
    color: #5a3b00;
    border-radius: 4px;
    line-height: 1.5;
}

.button--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* コンテンツ部分のスタイル */
.content {
    padding: 20px;
}


.genre-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.genre-chip {
    --genre-chip-bg: #eef1f7;
    --genre-chip-border: #dbe1eb;
    --genre-chip-color: #1f2a3d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 36px;
    border-radius: 999px;
    background: var(--genre-chip-bg);
    color: var(--genre-chip-color);
    border: 1px solid var(--genre-chip-border);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.genre-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    filter: brightness(1.02);
}

.genre-chip:focus-visible {
    outline: 3px solid rgba(0, 123, 255, 0.28);
    outline-offset: 2px;
}

.place-panel {
    padding: 14px 16px;
    margin: 12px 12px 16px;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    background: #f7f8fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.place-panel:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.place-summary-mobile {
    display: none;
}

/* ヘルプページ */
.help-container {
    padding-top: 96px;
}

.help-hero {
    background: linear-gradient(135deg, #fef3c7, #fef9e7);
    border: 1px solid #f1e3b3;
    border-radius: 16px;
    padding: 20px 20px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.help-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: #fff7d6;
    color: #8c6d1f;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.help-lead {
    margin: 10px 0 16px;
    font-size: 1rem;
    color: #3b3b46;
}

.help-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.help-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #1f2a3d;
    border: none;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(31, 42, 61, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.help-nav__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(31, 42, 61, 0.22);
    filter: brightness(1.05);
}

.help-nav__link:focus-visible {
    outline: 3px solid rgba(31, 42, 61, 0.28);
    outline-offset: 2px;
}

.help-section {
    margin-bottom: 28px;
    padding: 18px 16px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.help-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.help-list {
    padding-left: 20px;
    margin: 0;
    display: grid;
    gap: 8px;
}

.help-status-list {
    list-style: disc;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.help-card {
    padding: 14px 16px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.help-definition-list {
    margin: 10px 0 0;
    display: grid;
    gap: 6px;
}

.help-definition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-items: baseline;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.help-definition dt {
    font-weight: 700;
}

.help-definition dd {
    margin: 0;
    text-align: right;
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 80px 14px 24px;
    }

    .floating-links {
        padding: 4px 10px;
        gap: 9px;
    }

    .help-link, .admin-link {
        font-size: 0.85rem;
        padding: 8px 11px;
    }

    .help-actions {
        flex-direction: column;
    }

    .help-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 14px 14px 4px;
    }

    .help-modal__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .help-definition {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .help-definition dd {
        text-align: left;
    }
}

.place-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.place-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    background-color: #eef1f7;
    color: #2f3441;
}

.meta-badge--open {
    background-color: #e8f6ee;
    color: #226d2e;
}

.meta-badge--rating {
    background-color: #fff4e5;
    color: #b36b00;
}

.meta-badge--budget {
    background-color: #e9f1ff;
    color: #0b5ed7;
}

.detail-row--quick-open .place-quick-hours {
    display: inline-flex;
}

.place-quick-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #303644;
    font-size: 0.95rem;
    line-height: 1.35;
    margin-top: 2px;
}

.place-quick-hours__icon {
    font-size: 1rem;
}

.place-quick-hours__text {
    word-break: break-word;
}

.place-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item {
    margin: 0;
    color: #4a4f57;
    font-size: 0.95rem;
    line-height: 1.4;
}

.meta-item.is-open {
    color: #226d2e;
    font-weight: 700;
}

.place-details {
    margin-top: 12px;
    padding: 0;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6e8ed;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.place-details.is-compact-details {
    margin-top: 10px;
}

.place-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.place-details.is-compact-details .place-card-body {
    padding: 10px 12px;
    gap: 6px;
}

.place-card-header h3 {
    margin: 0;
    font-size: 1.08rem;
    color: #1f2430;
    letter-spacing: 0.01em;
}

.place-card-header h3 a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.place-card-header h3 a:hover {
    text-decoration: underline;
}

.place-card-meta .meta-item + .meta-item {
    border-top: 1px solid #e5e8ed;
    padding-top: 4px;
}

.place-details .detail-row {
    margin: 6px 0;
    font-size: 0.95em;
    color: #2f3441;
    line-height: 1.5;
}

.place-details .detail-row a {
    color: #0b5ed7;
    text-decoration: none;
}

.place-details .detail-row a:hover {
    text-decoration: underline;
}

.detail-label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.opening-hours {
    margin: 0;
    padding-left: 18px;
}

.opening-hours li {
    margin: 2px 0;
    font-size: 1.15rem;
}

/* 横スライドモードではサマリー状態の営業時間行を非表示にする */
body.is-slide-mode .place-panel:not(.is-expanded) .detail-row--opening-hours,
#panel-container.is-slide-mode .place-panel:not(.is-expanded) .detail-row--opening-hours,
body.hide-opening-hours .detail-row--opening-hours,
#panel-container.hide-opening-hours .detail-row--opening-hours {
    display: none !important;
}

body.is-mobile-simple .place-panel:not(.is-expanded) .detail-row--opening-hours,
#panel-container.is-mobile-simple .place-panel:not(.is-expanded) .detail-row--opening-hours {
    display: none !important;
}

body.is-slide-mode .place-panel:not(.is-expanded) .opening-hours,
#panel-container.is-slide-mode .place-panel:not(.is-expanded) .opening-hours,
body.hide-opening-hours .opening-hours,
#panel-container.hide-opening-hours .opening-hours {
    display: none !important;
    margin: 0;
    padding: 0;
}

#mobile-place-modal .detail-row--opening-hours,
.mobile-place-modal .detail-row--opening-hours {
    display: block !important;
}

#mobile-place-modal .opening-hours,
.mobile-place-modal .opening-hours {
    display: block !important;
    margin: 4px 0 0;
    padding-left: 18px;
}

#mobile-place-modal .opening-hours--single,
.mobile-place-modal .opening-hours--single {
    list-style: none;
    margin: 4px 0 0;
    padding-left: 0;
}

/* スライド/非表示指定時はヘッダーの営業時間バッジも消す */
body.is-slide-mode .place-panel:not(.is-expanded) .place-quick-hours,
#panel-container.is-slide-mode .place-panel:not(.is-expanded) .place-quick-hours,
body.hide-opening-hours .place-quick-hours,
#panel-container.hide-opening-hours .place-quick-hours {
    display: none !important;
}

body.is-mobile-simple .place-panel:not(.is-expanded) .place-quick-hours,
#panel-container.is-mobile-simple .place-panel:not(.is-expanded) .place-quick-hours {
    display: none !important;
}

body.is-slide-mode .place-panel:not(.is-expanded) .header-open-badge,
#panel-container.is-slide-mode .place-panel:not(.is-expanded) .header-open-badge,
body.is-mobile-simple .place-panel:not(.is-expanded) .header-open-badge,
#panel-container.is-mobile-simple .place-panel:not(.is-expanded) .header-open-badge {
    display: none !important;
}

/* 営業時間を隠した場合は余白を圧縮してカードの縦幅を抑える */
body.hide-opening-hours .place-details,
#panel-container.hide-opening-hours .place-details,
body.is-slide-mode .place-panel:not(.is-expanded) .place-details,
#panel-container.is-slide-mode .place-panel:not(.is-expanded) .place-details {
    margin-top: 6px;
}

body.is-slide-mode .place-panel .place-details.is-compact-details,
#panel-container.is-slide-mode .place-panel .place-details.is-compact-details {
    margin-top: 8px;
}

body.is-mobile-simple .place-card-header {
    gap: 4px;
    margin-bottom: 4px;
}

body.hide-opening-hours .place-card-body,
#panel-container.hide-opening-hours .place-card-body,
body.is-slide-mode .place-panel:not(.is-expanded) .place-card-body,
#panel-container.is-slide-mode .place-panel:not(.is-expanded) .place-card-body {
    padding: 10px 12px;
    gap: 6px;
}

body.is-slide-mode .place-panel .place-details.is-compact-details .place-card-body,
#panel-container.is-slide-mode .place-panel .place-details.is-compact-details .place-card-body {
    padding: 9px 12px;
    gap: 6px;
}

body.hide-opening-hours .place-details .detail-row,
#panel-container.hide-opening-hours .place-details .detail-row,
body.is-slide-mode .place-panel:not(.is-expanded) .place-details .detail-row,
#panel-container.is-slide-mode .place-panel:not(.is-expanded) .place-details .detail-row {
    margin: 4px 0;
}

h3, h4 {
        margin: 0;
    }

body {
    margin: 0;
    padding: 0;
}

body.layout--results {
    overflow: hidden; /* 地図とパネルを固定表示するレイアウト専用 */
}

.layout--results {
    position: relative;
    min-height: 100vh;
}

.layout--results .mobile-bottom-controls {
    left: 20px;
    right: 20px;
    max-width: 560px;
    margin: 0 auto;
    justify-content: center;
}

.layout--results .mobile-bottom-controls .floating-links:not(.floating-links--hidden-behind-list) {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0;
}

.layout--results .floating-links {
    left: 20px;
    right: 20px;
    width: auto;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    bottom: 16px;
}

.layout--results .floating-links--hidden-behind-list {
    z-index: 10;
    bottom: calc(16px + var(--mobile-footer-offset));
}

#map {
    height: 100vh; /* 全画面で地図を表示 */
    width: 100vw; /* 横幅も全画面に対応 */
    z-index: 1; /* 地図は下 */
}

.initial-search-loading {
    position: fixed;
    inset: 0;
    z-index: 32;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(22, 25, 32, 0.24);
    pointer-events: none;
}

.initial-search-loading__card {
    min-width: min(320px, calc(100vw - 32px));
    max-width: 420px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #1f2430;
    text-align: center;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.initial-search-loading__spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 3px solid rgba(11, 101, 194, 0.22);
    border-top-color: #0b65c2;
    animation: initial-search-spin 0.8s linear infinite;
}

.initial-search-loading__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.initial-search-loading__description {
    margin: 6px 0 0;
    font-size: 0.86rem;
    color: #465062;
}

@keyframes initial-search-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.map-legend {
    --map-legend-max-height: 320px;
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: min(240px, calc(100vw - 40px));
    max-width: 240px;
    max-height: var(--map-legend-max-height);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    z-index: 24;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    transition: width 0.25s ease, padding 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease;
}

.map-legend__header {
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.map-legend__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2430;
    letter-spacing: 0.02em;
}

.map-legend__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.map-legend__toggle {
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    color: #1f2430;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.map-legend__toggle::before {
    content: "📌";
    margin-right: 6px;
    font-size: 0.95rem;
    line-height: 1;
}

.map-legend__toggle:hover,
.map-legend__toggle:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.map-legend__toggle:focus-visible {
    outline: 3px solid rgba(0, 96, 185, 0.22);
    outline-offset: 2px;
}

.map-legend__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.map-legend__swatch {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
    background: linear-gradient(135deg, #f7f8fa, #eef1f7);
    color: #1f2430;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.map-legend__swatch.is-current-location {
    background: linear-gradient(135deg, #4da3ff, #0b65c2);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.map-legend__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
}

.map-legend__label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2430;
}

.map-legend__description {
    font-size: 0.8rem;
    color: #51555d;
    line-height: 1.35;
}

.map-legend.is-collapsed {
    width: 48px;
    height: 48px;
    padding: 6px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.map-legend.is-collapsed .map-legend__list {
    display: none;
}

.map-legend.is-collapsed .map-legend__title {
    display: none;
}

.map-legend.is-collapsed .map-legend__header {
    width: 100%;
    height: 100%;
    justify-content: center;
}

.layout__stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.layout__map-layer {
    position: relative;
    width: 100%;
    height: 100%;
}

.layout__map-area {
    position: relative;
}

.layout__overlay-layer {
    position: relative;
    z-index: 20;
    display: contents;
}

.map-legend.is-collapsed .map-legend__toggle {
    width: 100%;
    height: 100%;
    padding: 0;
    margin-left: 0;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 999px;
}

/* パネルのスタイル（PC向け既定） */
#panel-container {
    position: absolute;
    top: 20px;
    right: 20px; /* 画面右側に配置 */
    width: 300px;
    height: calc(100dvh - 80px);
    overflow-y: auto;
    margin: 0px;
    padding: 14px 12px 18px;
    background: rgba(249, 250, 252, 0.96); /* 半透明の背景 */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    z-index: 10; /* パネルは上 */
}

#panel-search {
    position: absolute;
    top: 8px;
    left: 20px;
    width: 300px;
    max-height: calc(100vh - 16px);
    max-width: 90vw;
    overflow-y: auto;
    margin: 0px;
    padding: 0px;
    background: rgba(255, 255, 255, 0.9); /* 半透明の背景 */
    border-bottom: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    z-index: 9;
    box-sizing: border-box;
}

/* 検索パネル内のフォーム装飾 */
.search-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.search-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.search-panel__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-panel__header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.search-panel__count {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.search-panel__toggle {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-panel__toggle:hover {
    background-color: #0056b3;
}

.search-panel__toggle:focus-visible {
    outline: 3px solid rgba(0, 123, 255, 0.4);
    outline-offset: 2px;
}

.search-panel__toggle-icon {
    font-size: 0.8em;
    line-height: 1;
}
.search-panel__note {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.search-panel__summary {
    display: none;
    margin: 0;
    font-size: 0.85rem;
    color: #333;
}

.search-panel__summary-row {
    display: none;
    align-items: center;
    gap: 10px;
}

.search-panel__collapsed-actions {
    display: none;
    margin-left: auto;
}

.search-panel__collapsed-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(110, 138, 175, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 255, 0.82));
    color: #1f2a3d;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31, 42, 61, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.search-panel__collapsed-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(31, 42, 61, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(222, 236, 255, 0.9));
    filter: brightness(1.02);
}

.search-panel__collapsed-search:focus-visible {
    outline: 3px solid rgba(115, 165, 245, 0.38);
    outline-offset: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(210, 230, 255, 0.92));
}

.search-panel__collapsed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    font-size: 0.95rem;
    line-height: 1;
    color: inherit;
}

.search-panel__collapsed-label {
    line-height: 1.2;
}

.search-panel__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.additional-conditions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9fafb, #eef2f7);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.additional-conditions__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.additional-conditions__title {
    font-weight: 700;
    color: #1f2a3d;
}

.additional-conditions__hint {
    font-size: 0.9rem;
    color: #4a5568;
}

.additional-conditions__trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #cfd4dc;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2a3d;
    font-weight: 700;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.additional-conditions__trigger:hover {
    border-color: #7aa7e0;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12);
    background: #f8fbff;
}

.additional-conditions__trigger:focus-visible {
    outline: 3px solid rgba(11, 94, 215, 0.2);
    outline-offset: 2px;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.18);
}

.additional-conditions__trigger-text {
    font-size: 0.95rem;
}

.additional-conditions__summary {
    font-size: 0.85rem;
    color: #4a5568;
}

.additional-dialog {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 140;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.additional-dialog.is-open {
    pointer-events: auto;
    opacity: 1;
}

.additional-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.additional-dialog__content {
    position: relative;
    z-index: 1;
    width: min(640px, 90vw);
    max-height: 88vh;
    padding: 18px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    display: grid;
    gap: 14px;
    overflow: hidden;
    animation: additionalDialogIn 0.28s ease;
}

@keyframes additionalDialogIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.additional-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.additional-dialog__description {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.additional-dialog__close {
    border: none;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #1f2a3d;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.additional-dialog__close:hover,
.additional-dialog__close:focus-visible {
    background: #e2e8f0;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.14);
}

.additional-dialog__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

.additional-dialog__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.additional-dialog__primary,
.additional-dialog__secondary {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    min-width: 140px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.additional-dialog__primary {
    background: linear-gradient(135deg, #4b9bff, #0060b9 80%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 96, 185, 0.18);
}

.additional-dialog__primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 96, 185, 0.22);
}

.additional-dialog__primary:focus-visible {
    outline: 3px solid rgba(0, 96, 185, 0.24);
    outline-offset: 2px;
}

.additional-dialog__secondary {
    background: #f8fafc;
    color: #1f2a3d;
    border-color: #d8e0ea;
}

.additional-dialog__secondary:hover {
    background: #eef2f7;
}

.additional-dialog__secondary:focus-visible {
    outline: 3px solid rgba(15, 23, 42, 0.1);
    outline-offset: 2px;
}

body.has-dialog-open {
    overflow: hidden;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field--inline {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 6px;
}

.form-field--inline-label {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    column-gap: 12px;
    row-gap: 6px;
    align-items: center;
}

.form-field--inline-label label {
    margin: 0;
    white-space: nowrap;
}

.form-field label {
    font-weight: bold;
    font-size: 0.95rem;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-field--inline label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.form-field--inline-label .genre-dropdown {
    width: 100%;
}

.form-field--inline-label .form-field__hint {
    grid-column: 2 / 3;
    margin: 0;
}

.form-field--inline input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-field--inline input:not([type="checkbox"], [type="radio"]),
.form-field--inline select {
    flex: 1 1 160px;
    width: auto;
    min-width: 120px;
}

.time-picker {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.time-picker__select {
    flex: 0 1 200px;
    min-width: 150px;
}

.time-picker__quick {
    display: flex;
    flex: 1 1 320px;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.time-picker__quick-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 1 150px;
    min-width: 110px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, #4b9bff, #0060b9 80%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 96, 185, 0.18);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.time-picker__quick-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 96, 185, 0.22);
    filter: brightness(1.05);
}

.time-picker__quick-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 96, 185, 0.16);
    filter: brightness(0.96);
}

.time-picker__quick-button:focus-visible {
    outline: 3px solid rgba(0, 96, 185, 0.28);
    outline-offset: 2px;
}

.time-picker__quick-button:nth-of-type(2) {
    background: linear-gradient(135deg, #f8f9fb, #e5e8ef);
    color: #2f3441;
    border-color: #d6dbe6;
    box-shadow: 0 6px 14px rgba(47, 52, 65, 0.12);
}

.time-picker__quick-button:nth-of-type(2):hover {
    box-shadow: 0 10px 20px rgba(47, 52, 65, 0.16);
    filter: brightness(1.02);
}

.time-picker__quick-button:nth-of-type(2):active {
    box-shadow: 0 5px 12px rgba(47, 52, 65, 0.12);
    filter: brightness(0.98);
}

.time-picker__quick-button svg,
.time-picker__quick-button .icon,
.time-picker__quick-button [aria-hidden="true"] {
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
}

/* ジャンル選択の装飾 */
.genre-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.genre-label {
    font-weight: 700;
    color: #1f2430;
    font-size: 0.95rem;
}

.genre-select {
    position: relative;
    display: flex;
    align-items: center;
}

.genre-select select {
    width: 100%;
    appearance: none;
    padding: 10px 36px 10px 12px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23515a6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-select select:hover {
    border-color: #7aa7e0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.genre-select select:focus {
    outline: none;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.2);
}

.genre-select select:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.genre-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.genre-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    background-color: #f9fafb;
    color: #1f2a3d;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    touch-action: manipulation;
}

.genre-dropdown__toggle:hover {
    border-color: #7aa7e0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.genre-dropdown__toggle:focus-visible {
    outline: 3px solid rgba(11, 94, 215, 0.2);
    outline-offset: 2px;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.2);
}

.genre-dropdown__selected {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genre-dropdown__chevron {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.genre-dropdown.is-open .genre-dropdown__chevron {
    transform: rotate(-180deg);
}

.genre-dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 10px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.genre-dropdown__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 10px;
}

.genre-dropdown__clear {
    border: 1px solid #cfd4dc;
    background: #f3f5f8;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    color: #2f3441;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
}

.genre-dropdown__clear:hover {
    background: #e6edf5;
    border-color: #7aa7e0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.genre-dropdown__clear:focus-visible {
    outline: 3px solid rgba(11, 94, 215, 0.2);
    outline-offset: 2px;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.2);
}

.genre-dropdown__status {
    font-size: 0.9rem;
    color: #4a5568;
}

.genre-dropdown__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 2px 2px;
}

.genre-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    background: #f9fafb;
    min-height: 44px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.genre-dropdown__item:hover {
    border-color: #7aa7e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.genre-dropdown__item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #0b5ed7;
    flex-shrink: 0;
}

.genre-dropdown__label {
    font-size: 0.95rem;
    color: #1f2430;
}

@media (max-width: 768px) {
    .genre-dropdown__menu {
        position: static;
        width: 100%;
        box-sizing: border-box;
        max-height: none;
    }

    .genre-dropdown__list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        max-height: 360px;
    }
}

.genre-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.genre-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef1f7;
    color: #2f3441;
    border: 1px solid #dbe1eb;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.genre-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.genre-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.genre-dropdown__toggle::after {
    content: "▼";
    margin-left: auto;
    font-size: 0.8rem;
    color: #6b7280;
    transition: transform 0.2s ease, color 0.2s ease;
}

.genre-dropdown__toggle:hover,
.genre-dropdown__toggle:focus-visible {
    border-color: #7aa7e0;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.14);
    outline: none;
}

.genre-dropdown.is-open .genre-dropdown__toggle {
    border-color: #0b5ed7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.18);
    background: #f5f8ff;
}

.genre-dropdown.is-open .genre-dropdown__toggle::after {
    transform: rotate(-180deg);
    color: #0b5ed7;
}

.genre-dropdown__list-wrapper {
    border: 1px solid #dbe1eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}

.genre-dropdown__list-wrapper[hidden] {
    display: none !important;
}

.genre-dropdown__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    justify-items: stretch;
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
}

.genre-dropdown__option {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    overflow-wrap: normal;
    padding: 6px;
    text-align: left;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #dbe1eb;
    background: #f9fafb;
    color: #1f2430;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.genre-dropdown__option.is-selected {
    border-color: #0b5ed7;
    background: #eaf2ff;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.14);
}

.genre-dropdown__option:focus-visible {
    outline: none;
    border-color: #7aa7e0;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.14);
}

.genre-dropdown__checkbox {
    width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    accent-color: #0b5ed7;
    flex-shrink: 0;
    align-self: flex-start;
}

.genre-dropdown__label {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.5;
}

.genre-dropdown__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
    padding-top: 4px;
}

.genre-dropdown__placeholder {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.genre-dropdown__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef1f7;
    color: #1f2430;
    border: 1px solid #dbe1eb;
    font-size: 0.9rem;
}

.genre-dropdown__tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: #dbe1eb;
    color: #1f2430;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.genre-dropdown__tag-remove:hover,
.genre-dropdown__tag-remove:focus-visible {
    background: #c5d1e4;
    color: #0b5ed7;
    outline: none;
}

@media (max-width: 768px) {
    .genre-dropdown__toggle {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .genre-dropdown__list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        justify-items: stretch;
        max-height: 60vh;
        padding: 6px;
        gap: 6px;
        overflow-y: auto;
    }

    .genre-dropdown__option {
        display: flex;
        align-items: flex-start;
        min-width: 0;
        overflow-wrap: normal;
        width: 100%;
        padding: 6px;
        font-size: 0.9rem;
        gap: 4px;
    }

    .genre-dropdown__label {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        line-height: 1.4;
    }

    .form-field--inline-label {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .form-field--inline-label label {
        white-space: normal;
    }

    .form-field--inline-label .genre-dropdown,
    .form-field--inline-label .genre-dropdown__list-wrapper,
    .genre-dropdown {
        width: 100%;
    }

    .genre-dropdown__list-wrapper {
        max-width: 100%;
        max-height: 70vh;
        overflow: auto;
    }
}

.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.form-actions button {
    flex: 1 1 140px;
    padding: 10px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-actions button:hover {
    background-color: #0056b3;
}

.form-actions button[type="button"] {
    background-color: #6c757d;
}

.form-actions button[type="button"]:hover {
    background-color: #495057;
}

#currentLocationSearchButton,
#mapCenterSearchButton {
    background-color: #007bff;
}

#currentLocationSearchButton:hover,
#mapCenterSearchButton:hover {
    background-color: #0056b3;
}

.search-panel__message {
    min-height: 1.2em;
    font-size: 0.85rem;
    color: #c00;
}


.search-panel__debug-log {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #444;
}

.search-panel__debug-log pre {
    margin: 6px 0 0;
    max-height: 180px;
    overflow: auto;
    padding: 8px;
    border-radius: 6px;
    background: #f5f7f9;
    white-space: pre-wrap;
    word-break: break-word;
}

.search-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .search-toast {
        right: 16px;
        left: 16px;
        bottom: 0;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .search-panel {
        padding: 14px;
    }
}


/* スマホ向けレイアウト調整 */
@media (max-width: 768px) {
    :root {
        --mobile-footer-offset: calc(48px + env(safe-area-inset-bottom, 0px));
        --zoom-control-offset: 112px;
    }

    html,
    body {
        height: 100%;
        min-height: 100%;
        overflow-x: hidden;
        background-color: #f4f4f4;
    }

    body {
        overflow-y: auto;
    }

    .mobile-bottom-controls {
        left: 12px;
        right: 12px;
        bottom: calc(0px + var(--mobile-footer-offset));
        justify-content: center;
        gap: 10px;
        z-index: 42;
        pointer-events: none;
    }

    .mobile-bottom-controls .results-toggle {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin-left: 64px;
        pointer-events: auto;
        z-index: 42;
    }

    .mobile-bottom-controls .floating-links,
    .mobile-bottom-controls .help-link,
    .mobile-bottom-controls .admin-link {
        z-index: 42;
    }

    .mobile-bottom-controls .floating-links:not(.floating-links--hidden-behind-list) {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 0 10px;
        width: auto;
        max-width: none;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
        pointer-events: auto;
    }

    .floating-links {
        left: 12px;
        right: 12px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        padding: 4px 10px;
        width: auto;
        max-width: calc(100% - 24px);
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        pointer-events: auto;
        z-index: 16;
    }

    .floating-links--hidden-behind-list {
        z-index: 10;
        bottom: calc(16px + var(--mobile-footer-offset));
    }

    .layout--results .mobile-bottom-controls {
        max-width: min(520px, calc(100% - 24px));
    }

    .layout--results .floating-links {
        left: 12px;
        right: 12px;
        max-width: min(520px, calc(100% - 24px));
        bottom: calc(16px + var(--mobile-footer-offset));
    }

    .layout--results .floating-links--hidden-behind-list {
        z-index: 10;
        bottom: calc(16px + var(--mobile-footer-offset));
    }

    .results-toggle {
        display: inline-flex;
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* スマホでの店名リンクの視認性を向上 */
    .place-panel h3 a {
        font-size: 1.2rem;
        line-height: 1.45;
    }

    /* スマホでの住所・営業時間の文字サイズを調整 */
    .place-panel h4 {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .place-details .detail-row,
    .opening-hours li {
        font-size: 1.15rem;
    }

    .layout--results {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    #map {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
    }

    .leaflet-top.leaflet-left .leaflet-control-zoom {
        margin-top: var(--zoom-control-offset);
    }

    .map-legend {
        --map-legend-max-height: min(36vh, 200px);
        position: fixed;
        left: 16px;
        bottom: calc(0px + var(--mobile-footer-offset));
        transform: none;
        right: auto;
        top: auto;
        width: min(86vw, 240px);
        padding: 10px 12px;
        gap: 8px;
        z-index: 28;
    }

    .map-legend.is-collapsed {
        max-height: none;
        width: 48px;
        height: 48px;
        padding: 6px;
    }

    .map-legend__list {
        gap: 6px;
    }

    .map-legend__item {
        align-items: center;
        gap: 8px;
    }

    .map-legend__title {
        font-size: 0.9rem;
    }

    .map-legend__toggle {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .map-legend__swatch {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .map-legend__label {
        font-size: 0.9rem;
    }

    .map-legend__description {
        font-size: 0.78rem;
    }

    #panel-search {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 2px);
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 360px;
        max-height: calc(100vh - 12px - env(safe-area-inset-top, 0px));
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 14px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(8px);
        z-index: 80;
        overflow-y: auto;
    }

    .search-panel {
        padding: 0;
        display: grid;
        gap: 8px;
    }

    .search-panel__header h2 {
        font-size: 1.05rem;
        margin: 0;
    }

    .search-panel__count {
        font-size: 0.85rem;
        color: #666;
        margin: 0;
    }

    .search-panel__toggle {
        display: inline-flex;
        padding: 4px 10px;
        font-size: 0.85rem;
    }

    .form-field {
        gap: 4px;
    }

    .form-field label {
        font-size: 0.85rem;
    }

    .form-field input,
    .form-field select {
        padding: 6px 8px;
        font-size: 0.9rem;
        border-radius: 8px;
        background-color: rgba(0, 0, 0, 0.03);
    }

    .time-picker__quick {
        flex-direction: row;
        justify-content: flex-start;
    }

    .time-picker__quick-button {
        flex: 1 1 140px;
        min-width: 100px;
    }

    .form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .form-actions button {
        width: 100%;
        padding: 7px 8px;
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .location-button {
        width: 100%;
        justify-content: center;
    }

    .search-panel__message {
        min-height: 0;
        font-size: 0.8rem;
    }

    #panel-search.is-collapsed {
        padding: 10px 14px;
    }

    #panel-search.is-collapsed .search-panel__body {
        display: none;
    }

    #panel-search.is-collapsed .search-panel__summary-row {
        display: flex;
    }

    #panel-search.is-collapsed .search-panel__summary {
        display: block;
        font-size: 0.85rem;
        color: #333;
    }

    #panel-search.is-collapsed .search-panel__collapsed-actions {
        display: inline-flex;
    }

    #panel-search:not(.is-collapsed) .search-panel__collapsed-actions {
        display: none;
    }

    #panel-search.is-collapsed .search-panel__toggle-icon {
        transform: rotate(180deg);
    }

    #panel-search:not(.is-collapsed) .search-panel__summary {
        display: none;
    }

    .search-panel__summary-row {
        gap: 8px;
    }

    .search-panel__collapsed-search {
        gap: 6px;
        padding: 7px 12px;
        border-radius: 12px;
        line-height: 1.3;
    }

    .search-panel__collapsed-icon {
        font-size: 0.92rem;
    }

    .additional-conditions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .additional-conditions__trigger {
        width: 100%;
    }

    #panel-container {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--panel-lift) + env(safe-area-inset-bottom, 0px));
        top: auto; /* モバイルでは下部固定のためtop指定を解除 */
        width: 100%;
        max-height: min(42dvh, 320px);
        height: auto !important; /* デスクトップ用の高さ指定を上書きして可変にする */
        min-height: 0;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 0;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        background: transparent;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        box-shadow: none;
        z-index: 15;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        transition: transform 0.3s ease, opacity 0.3s ease;
        scroll-snap-type: x mandatory;
    }

    #panel-container .panel-shell {
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: flex-start;
        align-self: flex-start;
        gap: 10px;
        height: auto;
        min-height: 0;
        padding: 0 12px calc(16px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        background: rgba(244, 244, 244, 0.94);
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }

    #panel-container::-webkit-scrollbar {
        height: 8px;
    }

    #panel-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .place-panel {
        flex: 0 0 78vw;
        max-width: 340px;
        min-width: 260px;
        min-height: 0;
        margin: 0 0 0;
        padding: 8px 10px 0;
        display: flex;
        flex-direction: column;
        border: 1px solid #e2e5ea;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        scroll-snap-align: start;
    }

    body.is-slide-mode .place-panel .genre-chip-container,
    #panel-container.is-slide-mode .place-panel .genre-chip-container {
        margin-top: 4px;
    }

    .place-panel .location-button-container {
        margin-top: 6px;
    }

    .place-panel .component {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .additional-dialog__content {
        width: calc(100% - 24px);
        max-height: 90vh;
        margin: 0 12px;
    }

    .additional-dialog__body {
        max-height: 60vh;
    }

    .additional-dialog__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .additional-dialog__primary,
    .additional-dialog__secondary {
        width: 100%;
    }

    .place-panel h3 {
        font-size: 1.02rem;
        margin-bottom: 2px;
    }

    .place-summary-mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .place-summary-mobile__meta {
        display: flex;
        gap: 4px;
        align-items: center;
        flex-wrap: wrap;
        font-size: 0.85rem;
    }

    .place-summary-mobile__badge {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 1px 5px;
        border-radius: 999px;
        background: #eef1f7;
        color: #2f3441;
        border: 1px solid #dbe1eb;
        font-weight: 700;
        font-size: 0.78rem;
        line-height: 1.1;
    }

    .meta-badge--budget {
        padding: 3px 7px;
        font-size: 0.82rem;
    }

    .place-card-header {
        gap: 4px;
        margin-bottom: 4px;
    }

    .place-quick-hours {
        font-size: 0.9rem;
        gap: 5px;
        line-height: 1.3;
    }

    /* スマホ版ではヘッダー側の予算バッジを非表示にして重複を防ぐ */
    .place-meta .meta-badge--budget {
        display: none;
    }

    /* スマホスライドで地図エリアを広くするため住所行を非表示にする */
    .place-card-meta {
        display: none;
    }

    .place-details {
        margin-top: 6px;
        border: 1px solid #e6e8ed;
        background: #ffffff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
        display: none;
    }

    .place-panel.is-expanded .place-details,
    .mobile-place-modal .place-details {
        display: block;
    }

    .place-details .detail-row {
        font-size: 0.9rem;
    }

    .opening-hours {
        padding-left: 16px;
    }

    .genre-chip-container {
        gap: 4px;
    }

    .genre-chip {
        padding: 4px 8px;
        min-height: 30px;
        font-size: 0.85rem;
        line-height: 1.25;
    }

    .mobile-place-modal {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        z-index: 50;
        padding: 16px;
        box-sizing: border-box;
    }

    .mobile-place-modal__dialog {
        background: #fff;
        width: min(96vw, 540px);
        max-height: 86vh;
        border-radius: 14px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
        overflow-y: auto;
        padding: 16px;
        outline: none;
    }

    .mobile-place-modal__close {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid #dbe1eb;
        background: #f6f7fb;
        cursor: pointer;
        font-weight: 700;
        margin-bottom: 12px;
    }

    #panel-container.is-collapsed {
        transform: translateY(calc(100% + 36px));
        opacity: 0;
        pointer-events: none;
    }

}

@media (max-width: 768px) {

    .layout--results.is-stacked-mobile {
        height: auto;
        min-height: 100vh;
        width: 100%;
        overflow: visible;
    }

    .layout--results.is-stacked-mobile .layout__stack {
        position: relative;
        min-height: 100vh;
        width: 100%;
        padding: 16px 16px 16px;
        box-sizing: border-box;
    }

    .layout--results.is-stacked-mobile .layout__map-layer {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
    }

    .layout--results.is-stacked-mobile .layout__map-area {
        width: 100%;
        height: 100%;
    }

    .layout--results.is-stacked-mobile #map {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        overflow: hidden;
        z-index: 1;
    }

    .layout--results.is-stacked-mobile .layout__overlay-layer {
        position: relative;
        z-index: 30;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .layout--results.is-stacked-mobile .layout__search-area {
        position: relative;
        z-index: 40;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 4px 12px 10px;
    }

    .layout--results.is-stacked-mobile #panel-search {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 4px);
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 360px;
        max-height: calc(100vh - 16px - env(safe-area-inset-top, 0px));
        padding: 8px 12px;
        margin: 0;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 14px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(8px);
        overflow-y: auto;
        z-index: 80;
    }

    .layout--results.is-stacked-mobile .mobile-bottom-controls {
        left: 14px;
        right: 14px;
        bottom: calc(16px + var(--mobile-footer-offset));
        max-width: min(520px, calc(100% - 28px));
        justify-content: center;
        gap: 10px;
        z-index: 48;
    }

    .layout--results.is-stacked-mobile .mobile-bottom-controls .floating-links {
        padding: 0 8px;
        gap: 8px;
        justify-content: center;
    }

    .layout--results.is-stacked-mobile .floating-links {
        left: 14px;
        right: 14px;
        width: auto;
        max-width: min(520px, calc(100% - 28px));
        margin: 0;
        padding: 2px 8px;
        justify-content: center;
        gap: 8px;
        bottom: calc(16px + var(--mobile-footer-offset));
        z-index: 42;
    }

    .layout--results.is-stacked-mobile .floating-links--hidden-behind-list {
        z-index: 10;
        bottom: calc(16px + var(--mobile-footer-offset));
    }

    .layout--results.is-stacked-mobile .map-legend {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: calc(16px + var(--mobile-footer-offset));
        width: auto;
        max-width: calc(100vw - 28px);
        transform: none;
        margin: 0;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
        border-radius: 14px;
        gap: 8px;
        z-index: 96;
    }

    .layout--results.is-stacked-mobile .map-legend.is-collapsed {
        width: 52px;
        height: 52px;
        padding: 6px;
        align-items: center;
        justify-content: center;
        z-index: 96;
    }

    .layout--results.is-stacked-mobile:not(.is-slide-mode) #panel-container {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        top: auto;
        width: 100%;
        max-height: none;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 8px 10px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 100%);
        border-radius: 14px;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
        overflow: visible;
        touch-action: auto;
        scroll-snap-type: none;
        z-index: 35;
    }

    .layout--results.is-stacked-mobile:not(.is-slide-mode) #panel-container.is-collapsed {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .layout--results.is-stacked-mobile:not(.is-slide-mode) .place-panel {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
        min-width: 0;
        scroll-snap-align: none;
    }

    .layout--results.is-stacked-mobile:not(.is-slide-mode) .results-toggle {
        display: none !important;
    }

    .layout--results.is-stacked-mobile .results-toggle {
        z-index: 45;
        margin-left: 24px;
    }
}


/* 位置確認ボタンのスタイル */
.place-panel .location-button-container {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.location-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a18, #af002d 80%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(175, 0, 45, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.location-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(175, 0, 45, 0.3);
    filter: brightness(1.05);
}

.location-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(175, 0, 45, 0.25);
    filter: brightness(0.95);
}

.location-button:focus-visible {
    outline: 3px solid rgba(255, 122, 24, 0.35);
    outline-offset: 2px;
}

.location-button__icon {
    font-size: 1.1em;
    line-height: 1;
}

.location-button__label {
    line-height: 1;
}

.custom-marker {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.custom-marker.marker--active {
    border-color: #ffb400 !important;
    box-shadow: 0 10px 20px rgba(255, 132, 0, 0.35), 0 0 0 6px rgba(255, 200, 120, 0.25);
    transform: scale(1.15);
    animation: markerPulse 1.4s ease-in-out infinite;
}

.custom-marker-popup {
    font-weight: 700;
    color: #333;
}

.custom-marker-popup.marker--active {
    color: #e65100;
}

@keyframes markerPulse {
    0% { box-shadow: 0 10px 20px rgba(255, 132, 0, 0.35), 0 0 0 0 rgba(255, 200, 120, 0.25); }
    50% { box-shadow: 0 12px 24px rgba(255, 132, 0, 0.4), 0 0 0 10px rgba(255, 200, 120, 0.18); }
    100% { box-shadow: 0 10px 20px rgba(255, 132, 0, 0.35), 0 0 0 0 rgba(255, 200, 120, 0.25); }
}

/* 検索結果ページで浮遊リンクと検索パネルが重ならないようにする */
.page-results #panel-search {
    top: 16px;
}

@media (max-width: 768px) {
    .page-results #panel-search {
        top: calc(env(safe-area-inset-top, 0px) + 12px);
    }
}

.Copyright {
    position: fixed; /* フッターを固定表示 */
    bottom: 0;      /* 画面下部に配置 */
    width: 100%;    /* 横幅を画面全体に広げる */
    background-color: #333; /* 背景色 */
    color: #fff;    /* テキストの色 */
    text-align: center; /* テキストを中央揃え */
    padding: 10px 0; /* 上下の余白 */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 上部に影を追加 */
    z-index: 11; /* コピーライトが一番上 */
}

@media (max-width: 768px) {
    .Copyright {
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 360px;
        background: rgba(0, 0, 0, 0.6);
        font-size: 0.65rem;
        padding: 6px 12px;
        border-radius: 999px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }

    .Copyright img {
        float: none !important;
        margin-top: 4px;
    }
}

body.page-results:not(.is-hydrated) #panel-container,
body.page-results:not(.is-hydrated) .map-legend {
    opacity: 0;
    visibility: hidden;
}
