.festival-page { --festival-hero-background: radial-gradient(circle at 86% 14%,rgba(255,255,255,.98),transparent 27%),radial-gradient(circle at 5% 95%,rgba(201,180,244,.45),transparent 28%),linear-gradient(125deg,#f5efff 0%,#e9def8 54%,#f2f3ff 100%); min-height: 100vh; overflow-x: hidden; background: #fffaf2; color: var(--navy); }
.festival-site-header .desktop-nav { gap: 20px; }

.festival-hero { position: relative; width: min(1180px,calc(100% - 40px)); min-height: 360px; margin: 28px auto 0; padding: 42px 54px; display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 55px; align-items: center; overflow: hidden; border: 1px solid #e1d6ef; border-radius: 30px; background: var(--festival-hero-background); box-shadow: 0 22px 52px rgba(19,40,68,.09); }
/* Keep the existing content grid while the desktop background spans the page. */
@media (min-width: 861px) {
  .festival-hero-band { display: flow-root; margin-top: 28px; background: var(--festival-hero-background); }
  .festival-hero-band .festival-hero { margin-top: 0; border-color: transparent; border-radius: 0; background: none; box-shadow: none; }
}
.festival-hero::before { content: ""; position: absolute; top: 30px; left: 46%; width: 12px; height: 12px; border: 3px solid rgba(191,75,78,.34); border-radius: 50%; }
.festival-hero::after { content: "✦"; position: absolute; right: 43%; bottom: 28px; color: rgba(49,93,115,.28); font-size: 24px; transform: rotate(14deg); }
.festival-hero-copy { position: relative; z-index: 2; min-width: 0; }
.festival-hero-copy > span { color: #b55352; font-size: 12px; font-weight: 950; letter-spacing: .19em; }
.festival-hero-copy h1 { margin: 10px 0 0; color: var(--navy); font-size: clamp(42px,5vw,63px); line-height: 1.04; letter-spacing: -.065em; }
.festival-hero-copy h1 em { color: #bd514f; font-style: normal; }
.festival-hero-copy > p { max-width: 610px; margin: 18px 0 0; color: #5f6c7c; font-size: 17px; font-weight: 680; line-height: 1.75; word-break: keep-all; }
.festival-hero-copy > div { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 9px; }
.festival-hero-copy > div a { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid rgba(19,40,68,.12); border-radius: 14px; background: rgba(255,255,255,.82); color: var(--navy); font-size: 14px; font-weight: 900; box-shadow: 0 8px 18px rgba(19,40,68,.07); }
.festival-hero-copy > div a:first-child { border-color: var(--navy); background: var(--navy); color: white; box-shadow: 0 10px 22px rgba(19,40,68,.19); }
.festival-hero-copy > div a:hover { transform: translateY(-2px); }
.festival-hero-copy ul { margin: 25px 0 0; padding: 0; display: flex; align-items: stretch; gap: 0; list-style: none; }
.festival-hero-copy li { min-width: 125px; padding: 0 20px; display: grid; gap: 4px; border-left: 1px solid rgba(19,40,68,.12); }
.festival-hero-copy li:first-child { padding-left: 0; border-left: 0; }
.festival-hero-copy li b { color: var(--navy); font-size: 14px; }
.festival-hero-copy li span { color: #7a8492; font-size: 12px; font-weight: 720; }
.festival-hero-visual { position: relative; z-index: 1; width: 330px; height: 270px; justify-self: end; }
.festival-hero-visual > div { position: absolute; left: 50%; bottom: 5px; width: 250px; height: 250px; border-radius: 50%; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(19,40,68,.055),0 20px 42px rgba(49,93,115,.1); transform: translateX(-50%); }
.festival-hero-visual > img { position: absolute; z-index: 2; left: 50%; bottom: -17px; width: 260px; height: 260px; object-fit: contain; filter: drop-shadow(0 18px 15px rgba(19,40,68,.13)); transform: translateX(-50%); }
.festival-float-note { position: absolute; z-index: 3; min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid rgba(19,40,68,.09); border-radius: 13px; background: rgba(255,255,255,.94); color: var(--navy); font-size: 12px; font-weight: 900; box-shadow: 0 10px 25px rgba(19,40,68,.1); }
.festival-float-note.note-one { top: 28px; left: -7px; transform: rotate(-4deg); }
.festival-float-note.note-two { top: 88px; right: -8px; transform: rotate(4deg); }
.festival-confetti { position: absolute; z-index: 1; width: 9px; height: 20px; border-radius: 3px; background: #e8a64e; transform: rotate(30deg); }
.festival-confetti.confetti-one { top: 18px; right: 58px; background: #bd514f; }
.festival-confetti.confetti-two { top: 127px; left: 18px; background: #4c8b8d; transform: rotate(-28deg); }
.festival-confetti.confetti-three { right: 26px; bottom: 48px; background: #e2a64b; transform: rotate(62deg); }

.festival-explorer { width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 76px 0 84px; scroll-margin-top: 20px; }
.festival-explorer-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.festival-explorer-heading > div > span { color: #b55352; font-size: 11px; font-weight: 950; letter-spacing: .18em; }
.festival-explorer-heading h2 { margin: 8px 0 0; font-size: clamp(30px,3.5vw,43px); line-height: 1.12; letter-spacing: -.05em; }
.festival-explorer-heading p { margin: 10px 0 0; color: #77818e; font-size: 16px; line-height: 1.7; word-break: keep-all; }
.festival-counts { margin: 0; padding: 14px 20px; display: flex; align-items: center; gap: 18px; flex: 0 0 auto; border: 1px solid #e4ddd3; border-radius: 18px; background: rgba(255,255,255,.76); box-shadow: 0 8px 22px rgba(19,40,68,.055); }
.festival-counts div { min-width: 44px; display: grid; justify-items: center; gap: 2px; }
.festival-counts dt { color: #b45151; font-size: 24px; font-weight: 950; }
.festival-counts dd { margin: 0; color: #77818e; font-size: 12px; font-weight: 850; }
.festival-counts i { width: 1px; height: 29px; background: #e2ddd5; }

.festival-filter-panel { margin-top: 27px; padding: 17px; display: grid; grid-template-columns: minmax(245px,.9fr) minmax(310px,1.15fr) 130px minmax(190px,.7fr) auto; gap: 10px; align-items: end; border: 1px solid #e2d9cc; border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: 0 12px 32px rgba(19,40,68,.065); }
.festival-filter-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.festival-filter-panel legend,.festival-region-filter > span,.festival-search-filter > span { margin: 0 0 7px 3px; display: block; color: #75808e; font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.festival-kind-filter > div,.festival-date-filter > div { padding: 4px; display: grid; gap: 4px; border: 1px solid #e5ded4; border-radius: 14px; background: #f8f4ed; }
.festival-kind-filter > div { grid-template-columns: repeat(3,minmax(0,1fr)); }
.festival-date-filter > div { grid-template-columns: repeat(4,minmax(0,1fr)); }
.festival-kind-filter button,.festival-date-filter button { min-width: 0; min-height: 46px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: #647184; font: inherit; font-size: 14px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.festival-kind-filter button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.festival-kind-filter button > span { font-size: 15px; }
.festival-kind-filter button.is-active,.festival-date-filter button.is-active { background: white; color: var(--navy); box-shadow: 0 5px 13px rgba(19,40,68,.11); }
.festival-kind-filter button.is-active { color: #a94a49; }
.festival-kind-filter button.tone-festival { color: #a74310; }
.festival-kind-filter button.tone-performance { color: #2f6496; }
.festival-kind-filter button.tone-festival.is-active { background: #fff0e4; color: #963907; }
.festival-kind-filter button.tone-performance.is-active { background: #e9f3ff; color: #245c91; }
.festival-region-filter,.festival-search-filter { min-width: 0; display: block; }
.festival-region-filter select { width: 100%; min-height: 54px; padding: 0 38px 0 14px; border: 1px solid #e5ded4; border-radius: 14px; outline: 0; appearance: none; background: #faf7f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7787' stroke-width='2'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--navy); font: inherit; font-size: 14px; font-weight: 850; }
.festival-search-filter > div { min-height: 54px; padding: 0 9px 0 12px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 7px; align-items: center; border: 1px solid #e5ded4; border-radius: 14px; background: #faf7f1; }
.festival-search-filter svg { width: 19px; color: #738091; }
.festival-search-filter input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--navy); font: inherit; font-size: 14px; font-weight: 760; }
.festival-search-filter input::placeholder { color: #99a0a9; }
.festival-search-filter button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: #eee8df; color: #657183; font-size: 20px; cursor: pointer; }
.festival-filter-reset { min-width: 64px; min-height: 54px; padding: 0 10px; border: 1px solid #dfd6ca; border-radius: 14px; background: white; color: #8a5e59; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.festival-filter-panel button:focus-visible,.festival-filter-panel select:focus-visible,.festival-filter-panel input:focus-visible,.festival-card-button:focus-visible,.festival-more-row button:focus-visible,.festival-state-card button:focus-visible,.festival-detail-dialog button:focus-visible,.festival-detail-dialog a:focus-visible { outline: 3px solid rgba(49,93,115,.35); outline-offset: 3px; }

.festival-result-bar { min-height: 54px; padding: 17px 3px 10px; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; color: #7b8490; }
.festival-result-bar p { margin: 0; color: #626f80; font-size: 15px; font-weight: 760; }
.festival-result-bar p b { color: #b64f4e; font-size: 18px; }
.festival-result-bar > span { padding: 5px 8px; border-radius: 999px; background: #fff0d9; color: #95642c; font-size: 12px; font-weight: 900; }
.festival-result-bar small { margin-left: auto; font-size: 12px; line-height: 1.5; text-align: right; }

.festival-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; align-items: stretch; }
.festival-card { min-width: 0; overflow: hidden; border: 1px solid #e4ddd4; border-radius: 22px; background: white; box-shadow: 0 11px 28px rgba(19,40,68,.07); transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.festival-card:hover { border-color: #d9c6b6; box-shadow: 0 18px 38px rgba(19,40,68,.12); transform: translateY(-4px); }
.festival-card-button { width: 100%; height: 100%; min-width: 0; padding: 0; display: flex; flex-direction: column; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.festival-card-media { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid rgba(19,40,68,.07); background: #eee9e1; }
.festival-card-media > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.festival-card:hover .festival-card-media > img { transform: scale(1.025); }
.festival-card-media.is-no-crop > img { padding: 8px; object-fit: contain; background: #f4f0e9; }
.festival-card-media.is-placeholder { background: radial-gradient(circle at 50% 42%,rgba(255,255,255,.9),transparent 33%),linear-gradient(135deg,#fff0dd,#e8f5f3); }
.festival-card-media.is-placeholder > div { position: absolute; inset: 0; display: grid; place-items: center; }
.festival-card-media.is-placeholder > div > img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 8px 9px rgba(19,40,68,.11)); }
.festival-card-media.is-placeholder > div > span { position: absolute; top: 21px; right: 27px; font-size: 28px; transform: rotate(8deg); }
.festival-status,.festival-kind { position: absolute; top: 12px; min-height: 29px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 11px; font-weight: 950; box-shadow: 0 5px 12px rgba(19,40,68,.13); }
.festival-status { left: 12px; background: #fff; color: #59687a; }
.festival-status.is-ongoing { background: #bd514f; color: white; }
.festival-kind { right: 12px; background: #5f6b79; color: white; }
.tone-festival .festival-kind { background: #b85000; }
.tone-performance .festival-kind { background: #2f6fa7; }
.festival-card-copy { min-height: 230px; padding: 20px 19px 17px; display: flex; flex: 1; flex-direction: column; }
.festival-card-copy > small { color: #b45150; font-size: 12px; font-weight: 950; letter-spacing: .03em; }
.tone-performance .festival-card-copy > small { color: #397478; }
.festival-card-copy h3 { min-height: 58px; margin: 7px 0 0; overflow: hidden; color: var(--navy); font-size: 20px; line-height: 1.45; letter-spacing: -.025em; word-break: keep-all; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.festival-period,.festival-address { min-width: 0; margin: 12px 0 0; display: flex; align-items: flex-start; gap: 7px; color: #5d6b7b; font-size: 14px; font-weight: 780; line-height: 1.55; }
.festival-address { margin-top: 6px; color: #7f8894; }
.festival-period svg,.festival-address svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; color: #b85b57; }
.tone-performance .festival-period svg,.tone-performance .festival-address svg { color: #4a8587; }
.festival-card-more { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eee9e2; color: #667486; font-size: 13px; font-weight: 900; }
.festival-card-more i { color: #b8504f; font-size: 17px; font-style: normal; }
.festival-image-credit { min-height: 27px; padding: 6px 13px; display: block; border-top: 1px solid #f0ece6; background: #fbf9f5; color: #858d97; font-size: 11px; line-height: 1.45; text-align: right; }

.festival-skeleton-grid article { min-height: 445px; padding-bottom: 20px; overflow: hidden; border: 1px solid #e7e0d7; border-radius: 22px; background: white; }
.festival-skeleton-grid article > div,.festival-skeleton-grid article > span,.festival-skeleton-grid article > b,.festival-skeleton-grid article > p,.festival-skeleton-grid article > i { display: block; background: linear-gradient(90deg,#f1ede7 25%,#faf7f2 48%,#f1ede7 70%); background-size: 250% 100%; animation: festival-shimmer 1.5s ease infinite; }
.festival-skeleton-grid article > div { width: 100%; aspect-ratio: 16/10; }
.festival-skeleton-grid article > span { width: 72px; height: 10px; margin: 18px 18px 0; border-radius: 8px; }
.festival-skeleton-grid article > b { width: calc(100% - 36px); height: 43px; margin: 12px 18px 0; border-radius: 10px; }
.festival-skeleton-grid article > p { width: 70%; height: 12px; margin: 17px 18px 0; border-radius: 8px; }
.festival-skeleton-grid article > i { width: calc(100% - 36px); height: 35px; margin: 25px 18px 0; border-radius: 9px; }
@keyframes festival-shimmer { to { background-position: -180% 0; } }

.festival-state-card { min-height: 260px; padding: 32px; display: flex; align-items: center; justify-content: center; gap: 22px; border: 1px dashed #d8cab9; border-radius: 24px; background: linear-gradient(135deg,#fffaf2,#edf7f5); text-align: left; }
.festival-state-card img { width: 122px; height: 122px; object-fit: contain; }
.festival-state-card b { color: var(--navy); font-size: 22px; }
.festival-state-card p { max-width: 430px; margin: 8px 0 0; color: #76808d; font-size: 15px; line-height: 1.65; }
.festival-state-card button { min-height: 44px; margin-top: 15px; padding: 0 15px; border: 0; border-radius: 12px; background: var(--navy); color: white; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
.festival-state-card.is-error { background: linear-gradient(135deg,#fff4ea,#fffaf4); }
.festival-more-row { margin-top: 29px; display: flex; justify-content: center; }
.festival-more-row button { min-width: 210px; min-height: 50px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid #dcd3c7; border-radius: 15px; background: white; color: var(--navy); font: inherit; font-size: 14px; font-weight: 900; box-shadow: 0 8px 20px rgba(19,40,68,.065); cursor: pointer; }
.festival-more-row span { color: #b35552; font-size: 12px; }

.festival-detail-dialog { width: min(960px,calc(100% - 34px)); max-width: none; max-height: min(820px,calc(100dvh - 34px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(19,40,68,.12); border-radius: 27px; background: #fffdf8; color: var(--navy); box-shadow: 0 36px 95px rgba(19,40,68,.3); }
.festival-detail-dialog::backdrop { background: rgba(19,40,68,.5); backdrop-filter: blur(8px); }
.festival-detail-shell { position: relative; }
.festival-detail-card { position: relative; max-height: min(820px,calc(100dvh - 34px)); display: block; overflow: auto; overscroll-behavior: contain; }
.festival-detail-close { position: absolute; z-index: 20; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(19,40,68,.1); border-radius: 14px; background: rgba(255,255,255,.96); color: #5e6b7b; font: inherit; font-size: 28px; line-height: 1; box-shadow: 0 7px 18px rgba(19,40,68,.15); cursor: pointer; }
.festival-detail-media { position: relative; width: 100%; height: clamp(360px,46vw,460px); min-height: 0; overflow: hidden; border-bottom: 1px solid rgba(19,40,68,.08); background: #eee9e2; }
.festival-detail-media > img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: cover; }
.place-detail-photo-trigger { position: absolute; inset: 0; display: block; cursor: zoom-in; border-radius: inherit; }
.place-detail-photo-trigger > span { display: none; }
.place-detail-photo-trigger > .place-detail-photo-hint { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; background: rgba(19,40,68,.78); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 12px; font-weight: 650; line-height: 1.4; white-space: nowrap; pointer-events: none; }
.place-detail-photo-hint > svg { flex: none; }
.place-detail-photo-trigger:hover > .place-detail-photo-hint,.place-detail-photo-trigger:focus-visible > .place-detail-photo-hint { background: rgba(19,40,68,.92); }
@media(max-width:520px) { .place-detail-photo-trigger > .place-detail-photo-hint { left: 10px; bottom: 10px; gap: 5px; padding: 6px 8px; font-size: 11px; } }
.place-detail-photo-trigger:focus-visible { outline: 3px solid #257967; outline-offset: -5px; }
.festival-detail-media > small { pointer-events: none; }
.festival-detail-media.is-no-crop > img { padding: 18px; object-fit: contain; background: #f2eee7; }
.festival-detail-media > div { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; align-content: center; gap: 12px; background: radial-gradient(circle at 50% 42%,white,transparent 31%),linear-gradient(135deg,#fff0dc,#e7f4f2); color: #71808e; font-size: 14px; font-weight: 850; }
.festival-detail-media > div img { width: 160px; height: 160px; object-fit: contain; }
.festival-detail-media > small { position: absolute; right: 10px; bottom: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(19,40,68,.76); color: white; font-size: 11px; }
.festival-detail-copy { min-width: 0; padding: 48px 42px 35px; }
.festival-detail-badges { padding-right: 35px; display: flex; flex-wrap: wrap; gap: 6px; }
.festival-detail-badges span { min-height: 29px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: #edf3f3; color: #397277; font-size: 12px; font-weight: 950; }
.festival-detail-badges span:first-child { background: #f1e9de; color: #6b7480; }
.festival-detail-badges span.is-ongoing { background: #bd514f; color: white; }
.festival-detail-badges .festival-category-badge.tone-festival { background: #b85000; color: white; }
.festival-detail-badges .festival-category-badge.tone-performance { background: #2f6fa7; color: white; }
.festival-detail-copy h2 { margin: 13px 0 0; padding-right: 20px; font-size: clamp(30px,3.2vw,42px); line-height: 1.25; letter-spacing: -.045em; word-break: keep-all; }
.festival-detail-period { margin: 13px 0 0; color: #b24e4c; font-size: 16px; font-weight: 900; }
.festival-detail-address { margin: 7px 0 0; color: #707b88; font-size: 14px; line-height: 1.55; }
.festival-detail-loading { min-height: 190px; margin-top: 24px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed #e0d6ca; border-radius: 18px; background: #fffaf2; color: #71808e; text-align: center; }
.festival-detail-loading span { font-size: 30px; animation: festival-paw 1.1s ease-in-out infinite alternate; }
.festival-detail-loading p { margin: 0; font-size: 14px; font-weight: 850; }
@keyframes festival-paw { to { transform: translateY(-5px) rotate(5deg); } }
.festival-detail-error { margin-top: 23px; padding: 18px; border-radius: 16px; background: #fff0e8; color: #7f5551; }
.festival-detail-error p { margin: 0; font-size: 14px; line-height: 1.6; }
.festival-detail-error button { min-height: 40px; margin-top: 10px; padding: 0 13px; border: 0; border-radius: 10px; background: var(--navy); color: white; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.festival-detail-facts { margin: 25px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.festival-detail-facts > div { min-width: 0; padding: 12px; border: 1px solid #e8e1d8; border-radius: 13px; background: #fbf8f3; }
.festival-detail-facts dt { color: #a75854; font-size: 12px; font-weight: 950; }
.festival-detail-facts dd { margin: 5px 0 0; color: #536173; font-size: 14px; font-weight: 760; line-height: 1.6; white-space: pre-line; word-break: break-word; }
.festival-detail-section { margin-top: 24px; }
.festival-detail-section h3 { margin: 0; font-size: 18px; }
.festival-detail-section p { margin: 8px 0 0; color: #687585; font-size: 15px; line-height: 1.75; white-space: pre-line; word-break: keep-all; }
.festival-age-notice { margin-top: 22px; padding: 15px; border: 1px solid #efd7b6; border-radius: 14px; background: #fff5df; }
.festival-age-notice b { color: #8b5b2f; font-size: 14px; }
.festival-age-notice p { margin: 5px 0 0; color: #806b56; font-size: 13px; line-height: 1.6; }
.festival-detail-actions { margin-top: 28px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.festival-detail-actions a { min-height: 49px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #cddbdc; border-radius: 13px; background: #edf7f6; color: #286d70; font-size: 14px; font-weight: 950; text-align: center; }
.festival-detail-actions a:last-child { border-color: var(--navy); background: var(--navy); color: white; }
.festival-detail-actions a:only-child { grid-column: 1 / -1; }
.festival-detail-notice { margin: 15px 0 0; color: #858d97; font-size: 12px; line-height: 1.55; text-align: center; }

.festival-guide-note { width: min(1180px,calc(100% - 40px)); min-height: 160px; margin: 0 auto 78px; padding: 20px 25px; display: grid; grid-template-columns: 112px minmax(0,1fr) auto; gap: 23px; align-items: center; border: 1px solid #dce5e3; border-radius: 24px; background: linear-gradient(120deg,#eaf6f4,#fff9ee); box-shadow: 0 12px 32px rgba(19,40,68,.06); }
.festival-guide-note > img { width: 110px; height: 110px; object-fit: contain; }
.festival-guide-note > div > span { color: #3e7b7d; font-size: 11px; font-weight: 950; letter-spacing: .18em; }
.festival-guide-note h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.035em; }
.festival-guide-note p { max-width: 690px; margin: 7px 0 0; color: #6d7987; font-size: 15px; line-height: 1.65; word-break: keep-all; }
.festival-guide-note > a { min-height: 47px; padding: 0 15px; display: inline-flex; align-items: center; gap: 14px; border-radius: 13px; background: var(--navy); color: white; font-size: 14px; font-weight: 900; }

.festival-footer { padding: 30px max(20px,calc((100% - 1180px)/2)) 24px; background: var(--site-footer); color: rgba(255,255,255,.67); }
.festival-footer > div { display: grid; grid-template-columns: 140px minmax(200px,1fr) auto auto; gap: 22px; align-items: center; }
.festival-footer > div > a img { width: 126px; height: auto; filter: none; opacity: 1; }
.festival-footer p { margin: 0; max-width: 360px; font-size: 13px; line-height: 1.6; }
.festival-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 14px; }
.festival-footer nav a { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 850; }
.festival-footer > small { margin-top: 20px; padding-top: 16px; display: block; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; text-align: center; }
.festival-bottom-kakao-ad { width: min(1180px,calc(100% - 40px)); margin: -40px auto 70px; }
.festival-bottom-kakao-ad:empty { display: none; }
.festival-bottom-kakao-ad .kakao-ad-shell { width: 100%; margin: 0; background: #fff; }

@media (max-width: 1120px) {
  .festival-filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .festival-filter-reset { grid-column: auto; min-height: 54px; margin: 0; transform: none; }
  .festival-footer > div { grid-template-columns: 130px minmax(0,1fr) auto; }
  .festival-footer .footer-social-links { grid-column: 3; }
}

@media (max-width: 900px) {
  .festival-hero { grid-template-columns: minmax(0,1fr) 270px; gap: 20px; padding: 38px 35px; }
  .festival-hero-visual { width: 270px; }
  .festival-filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .festival-filter-reset { grid-column: auto; min-height: 54px; margin: 0; transform: none; }
  .festival-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .festival-detail-copy { padding-left: 30px; padding-right: 30px; }
}

@media (max-width: 860px) {
  .festival-mobile-nav { grid-template-columns: repeat(7,1fr); }
  .festival-mobile-nav a,.festival-mobile-nav button { font-size: 10.5px; }
  .festival-mobile-nav svg { width: 20px; height: 20px; }
  .festival-hero { width: min(100% - 28px,720px); margin-top: 18px; }
  .festival-explorer,.festival-guide-note { width: min(100% - 28px,720px); }
  .festival-explorer { padding-top: 58px; padding-bottom: 65px; }
  .festival-guide-note { margin-bottom: 48px; }
  .festival-bottom-kakao-ad { width: min(100% - 28px,720px); margin: -20px auto 40px; }
  .festival-footer { padding-bottom: 92px; }
}

@media (max-width: 680px) {
  .festival-hero { min-height: 350px; padding: 33px 25px; grid-template-columns: minmax(0,1fr) 165px; align-items: center; }
  .festival-hero-copy h1 { font-size: 41px; }
  .festival-hero-copy > p { font-size: 15px; }
  .festival-hero-copy > p br { display: none; }
  .festival-hero-copy ul { display: none; }
  .festival-hero-visual { width: 165px; height: 220px; }
  .festival-hero-visual > div { width: 165px; height: 165px; }
  .festival-hero-visual > img { bottom: 5px; width: 178px; height: 178px; }
  .festival-float-note { min-height: 33px; padding: 0 9px; font-size: 11px; }
  .festival-float-note.note-one { top: 18px; left: -12px; }
  .festival-float-note.note-two { top: -16px; right: -7px; }
  .festival-confetti.confetti-one { right: 20px; }.festival-confetti.confetti-two { left: 0; }.festival-confetti.confetti-three { right: 4px; }
  .festival-explorer-heading { align-items: flex-start; }
  .festival-counts { padding: 10px 13px; gap: 11px; }
  .festival-counts div { min-width: 35px; }.festival-counts dt { font-size: 20px; }
  .festival-region-filter select,.festival-search-filter input { font-size: 16px; }
  .festival-filter-panel { grid-template-columns: 1fr; }
  .festival-filter-reset { width: 100%; min-height: 44px; }
  .festival-result-bar { display: block; }
  .festival-result-bar > span { margin-top: 7px; display: inline-flex; }
  .festival-result-bar small { margin-top: 7px; display: block; text-align: left; }
  .festival-card-grid { grid-template-columns: 1fr; gap: 14px; }
  .festival-card { display: grid; grid-template-columns: 148px minmax(0,1fr); border-radius: 19px; }
  .festival-card-button { display: grid; grid-template-columns: 148px minmax(0,1fr); grid-column: 1 / -1; }
  .festival-card-media { height: 100%; min-height: 232px; aspect-ratio: auto; border-right: 1px solid rgba(19,40,68,.07); border-bottom: 0; }
  .festival-card-media.is-placeholder > div > img { width: 85px; height: 85px; }
  .festival-card-media.is-placeholder > div > span { top: 26px; right: 20px; font-size: 22px; }
  .festival-status,.festival-kind { top: 9px; min-height: 26px; padding: 0 7px; font-size: 10.5px; }
  .festival-status { left: 8px; }.festival-kind { right: 8px; }
  .festival-card-copy { min-width: 0; min-height: 232px; padding: 16px 14px 13px; }
  .festival-card-copy h3 { min-height: 50px; font-size: 17px; }
  .festival-period,.festival-address { font-size: 13px; }
  .festival-card-more { padding-top: 10px; }
  .festival-image-credit { grid-column: 1 / -1; }
  .festival-skeleton-grid article { min-height: 232px; display: grid; grid-template-columns: 148px minmax(0,1fr); }
  .festival-skeleton-grid article > div { width: 148px; height: 232px; aspect-ratio: auto; grid-row: 1 / span 4; }
  .festival-skeleton-grid article > span,.festival-skeleton-grid article > b,.festival-skeleton-grid article > p,.festival-skeleton-grid article > i { margin-left: 15px; }
  .festival-skeleton-grid article > b,.festival-skeleton-grid article > i { width: calc(100% - 30px); }
  .festival-state-card { padding: 25px 18px; text-align: center; }
  .festival-state-card img { width: 95px; height: 95px; }
  .festival-detail-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 25px 25px 0 0; }
  .festival-detail-card { max-height: 92dvh; display: block; }
  .festival-detail-media { min-height: 0; height: 270px; }
  .festival-detail-media > img { min-height: 0; height: 100%; }
  .festival-detail-media.is-no-crop > img { padding: 12px; }
  .festival-detail-media > div { min-height: 0; height: 100%; }
  .festival-detail-media > div img { width: 110px; height: 110px; }
  .festival-detail-copy { padding: 27px 20px 31px; }
  .festival-detail-copy h2 { font-size: 30px; }
  .festival-detail-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .festival-detail-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .festival-guide-note { padding: 18px; grid-template-columns: 80px minmax(0,1fr); gap: 14px; }
  .festival-guide-note > img { width: 80px; height: 80px; }
  .festival-guide-note h2 { font-size: 21px; }
  .festival-guide-note > a { grid-column: 1 / -1; justify-content: center; }
  .festival-footer > div { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .festival-footer p { max-width: 390px; }
  .festival-footer nav { justify-content: center; }
  .festival-footer .footer-social-links { grid-column: auto; }
}

@media (max-width: 430px) {
  .festival-hero { min-height: 345px; padding: 28px 18px; grid-template-columns: minmax(0,1fr) 104px; gap: 5px; }
  .festival-hero::before,.festival-hero::after { display: none; }
  .festival-hero-copy h1 { font-size: 35px; }
  .festival-hero-copy > p { margin-top: 14px; font-size: 14px; line-height: 1.65; }
  .festival-hero-copy > div { margin-top: 18px; }
  .festival-hero-copy > div a { min-height: 44px; padding: 0 13px; font-size: 12px; }
  .festival-hero-visual { width: 104px; height: 190px; }
  .festival-hero-visual > div { width: 112px; height: 112px; }
  .festival-hero-visual > img { bottom: 22px; width: 132px; height: 132px; }
  .festival-float-note.note-one { top: 19px; left: -24px; }.festival-float-note.note-two { top: -16px; right: -12px; }
  .festival-confetti { display: none; }
  .festival-explorer-heading { display: block; }
  .festival-counts { width: fit-content; margin-top: 16px; }
  .festival-kind-filter button,.festival-date-filter button { padding: 0 4px; font-size: 12px; }
  .festival-card,.festival-card-button { grid-template-columns: 118px minmax(0,1fr); }
  .festival-card-media { min-height: 238px; }
  .festival-card-copy { min-height: 238px; padding-left: 12px; padding-right: 12px; }
  .festival-card-copy h3 { font-size: 17px; }
  .festival-status { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .festival-kind { top: 38px; right: auto; left: 8px; }
  .festival-skeleton-grid article { grid-template-columns: 118px minmax(0,1fr); }
  .festival-skeleton-grid article > div { width: 118px; height: 238px; }
  .festival-state-card { display: grid; justify-items: center; }
  .festival-detail-media { height: 235px; }
  .festival-detail-actions { grid-template-columns: 1fr; }
  .festival-detail-actions a:only-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .festival-hero-copy > div a,.festival-card,.festival-card-media > img { transition: none; }
  .festival-skeleton-grid article > *,.festival-detail-loading span { animation: none !important; }
}

/* Festival detail follows the lodging detail's photo and nearby controls. */
.festival-title-photo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.festival-title-photo-row h2 { min-width: 0; overflow-wrap: anywhere; }
.festival-title-photo-row .place-image-search-button { font-size: 12px; white-space: nowrap; box-shadow: none; }
.festival-related-actions { margin-top: 28px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.festival-related-mobile { display: none; }
.festival-related-actions > a { min-height: 49px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #cddcda; border-radius: 13px; background: #e9f5f3; color: #315d73; font-size: 14px; font-weight: 950; text-align: center; }
.festival-related-actions > .festival-official-link { grid-column: 1 / -1; border-color: #315d73; background: #315d73; color: white; }
.festival-related-actions > .festival-directions-link:first-child { grid-column: 1 / -1; }
.festival-related-actions > .festival-nearby-panel { grid-column: 1 / -1; margin-top: 4px; }
.festival-nearby-trigger { min-height: 49px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #9fc8c2; border-radius: 13px; background: linear-gradient(120deg,#e6f4f1,#fff8e9); color: #315d73; font: inherit; font-size: 14px; font-weight: 950; text-align: center; cursor: pointer; transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.festival-nearby-trigger img { width: 25px; height: 25px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(49,93,115,.15)); }
.festival-nearby-trigger-label { line-height: 1.35; word-break: keep-all; }
.festival-nearby-trigger-cue { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 999px; background: rgba(49,93,115,.1); font-size: 17px; font-weight: 950; }
.festival-nearby-trigger:is(:hover,:focus-visible),.festival-nearby-trigger[aria-expanded="true"] { border-color: #5f9994; box-shadow: 0 9px 20px rgba(49,93,115,.1); transform: translateY(-1px); }
.festival-nearby-trigger[aria-expanded="true"] { background: #315d73; color: white; }
.festival-nearby-trigger[aria-expanded="true"] .festival-nearby-trigger-cue { background: rgba(255,255,255,.16); }
.festival-nearby-panel { scroll-margin-top: 68px; margin-top: 12px; padding: 18px; border: 2px solid #93bfb8; border-radius: 17px; background: linear-gradient(145deg,#edf7f5,#fffdf8 58%); box-shadow: 0 14px 30px rgba(49,93,115,.13); animation: festival-nearby-reveal .2s ease-out both; }
.festival-nearby-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.festival-nearby-panel > header > div { min-width: 0; }
.festival-nearby-panel > header span { display: block; color: #365f5c; font-size: 12px; font-weight: 950; letter-spacing: .12em; }
.festival-nearby-panel > header h3 { margin: 5px 0 0; color: var(--navy); font-size: 19px; line-height: 1.35; letter-spacing: -.035em; word-break: keep-all; }
.festival-nearby-panel > header small { flex: 0 0 auto; color: #4f626b; font-size: 12px; font-weight: 800; }
.festival-nearby-state { min-height: 112px; margin-top: 13px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 13px; background: rgba(255,255,255,.75); color: #60747b; text-align: center; }
.festival-nearby-state > span { font-size: 20px; }
.festival-nearby-state > b { font-size: 14px; line-height: 1.5; word-break: keep-all; }
.festival-nearby-state.is-error { flex-wrap: wrap; color: #8c4d42; }
.festival-nearby-state > button { min-height: 38px; padding: 7px 13px; border: 1px solid #8fb7b1; border-radius: 999px; background: white; color: #315d73; font: inherit; font-size: 13px; font-weight: 950; cursor: pointer; }
.festival-nearby-list { margin-top: 13px; display: grid; gap: 7px; }
.festival-nearby-list > a { min-width: 0; min-height: 72px; padding: 9px 10px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto 16px; gap: 9px; align-items: center; border: 1px solid #cfe3df; border-radius: 13px; background: rgba(255,255,255,.88); color: #245e64; transition: border-color .16s ease,background .16s ease,transform .16s ease; }
.festival-nearby-list > a.is-food { border-color: #efd9bd; background: #fff7eb; color: #8a5331; }
.festival-nearby-list > a:hover { border-color: #7db1ac; background: white; transform: translateY(-1px); }
.festival-nearby-list > a:focus-visible { border-color: #315d73; background: white; outline: 3px solid #315d73; outline-offset: 2px; transform: translateY(-1px); }
.festival-nearby-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #edf7f5; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; font-size: 21px; }
.festival-nearby-list > a.is-food .festival-nearby-icon { background: #fff0da; }
.festival-nearby-copy { min-width: 0; display: grid; gap: 2px; }
.festival-nearby-copy > small { color: #465f5e; font-size: 12px; font-weight: 900; }
.festival-nearby-copy > b { overflow: hidden; color: inherit; font-size: 14px; font-weight: 950; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.festival-nearby-copy > em { overflow: hidden; color: #4f626b; font-size: 13px; font-style: normal; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.festival-nearby-list > a > strong { padding: 4px 7px; border-radius: 999px; background: rgba(49,93,115,.1); color: #315d73; font-size: 12px; font-weight: 950; white-space: nowrap; }
.festival-nearby-list > a.is-food > strong { background: rgba(138,83,49,.1); color: #8a5331; }
.festival-nearby-list > a > i { font-size: 16px; font-style: normal; font-weight: 950; }
@keyframes festival-nearby-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .festival-nearby-panel { animation: none; } }

@media (max-width: 680px) {
  .festival-related-desktop { display: none; }
  .festival-related-mobile { display: flex; flex-direction: column; }
  .festival-related-actions > .festival-nearby-panel { margin: 2px 0; padding: 13px; }
  .festival-nearby-panel > header { align-items: start; flex-direction: column; gap: 5px; }
  .festival-nearby-panel > header h3 { font-size: 17px; }
  .festival-nearby-list { margin-top: 11px; gap: 7px; }
  .festival-nearby-list > a { min-height: 66px; padding: 8px 9px; grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; }
  .festival-nearby-icon { width: 38px; height: 38px; font-size: 19px; }
  .festival-nearby-list > a > i { display: none; }
}
/* Mobile copy keeps whole Korean phrases instead of competing with the mascot column. */
@media(max-width:680px){
  .festival-page .festival-hero{grid-template-columns:minmax(0,1fr) clamp(104px,32vw,165px);grid-template-rows:auto auto auto auto;gap:0 14px;min-height:0;padding:28px 22px 20px;align-items:center}
  .festival-page .festival-hero-copy{display:contents}
  .festival-page .festival-hero-copy>span{grid-column:1/-1;grid-row:1;font-size:10px;letter-spacing:.15em;word-break:keep-all}
  .festival-page .festival-hero-copy h1{grid-column:1/-1;grid-row:2;margin-top:12px;font-size:clamp(28px,8.3vw,42px);line-height:1.15;letter-spacing:-.055em;word-break:keep-all;overflow-wrap:normal}
  .festival-page .festival-hero-copy>p{grid-column:1/-1;grid-row:3;max-width:none;margin-top:14px;font-size:14px;line-height:1.75;word-break:keep-all;overflow-wrap:normal;text-wrap:pretty}
  .festival-page .festival-hero-copy>div{grid-column:1;grid-row:4;margin-top:12px;align-self:center}
  .festival-page .festival-hero-copy>div a{padding:0 13px;min-height:44px;font-size:12px;word-break:keep-all}
  .festival-page .festival-hero-visual{grid-column:2;grid-row:4;justify-self:end;width:100%;height:150px;margin-top:8px}
  .festival-page .festival-hero-visual>div{width:clamp(104px,29vw,150px);height:clamp(104px,29vw,150px);bottom:5px}
  .festival-page .festival-hero-visual>img{width:clamp(120px,34vw,178px);height:clamp(120px,34vw,178px);bottom:0;object-fit:contain}
  .festival-page .festival-float-note{display:none}
  .festival-page .festival-explorer-heading h2{font-size:clamp(24px,6.3vw,32px);line-height:1.3;word-break:keep-all;overflow-wrap:normal;text-wrap:balance}
}
@media(max-width:360px){.festival-page .festival-hero{padding:24px 18px 18px;column-gap:10px}.festival-page .festival-hero-copy>p{font-size:13px}.festival-page .festival-hero-visual{height:132px}}
