
@media (pointer:coarse){
  [data-rooftop-approved-map] .maplibregl-canvas-container.maplibregl-interactive,
  [data-rooftop-approved-map] .maplibregl-canvas-container .maplibregl-canvas{touch-action:pan-y}
}
/* 루타비 지도 조작부 시안: 공통 선 아이콘 + 글자 버튼 (이 iframe 범위 한정) */
[data-rooftop-approved-map] .ms-toolbar{
  --rt-ink:#1f2933;--rt-muted:#4f5866;--rt-line:#d6d0c5;--rt-accent:#a3243b;--rt-accent-bg:#fbf1f1;--rt-hover:#f4f0e9;
  --i-all:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4l4-1.5 5 1.5 4-1.5v13l-3 1.1'/%3E%3Cpath d='M3 8l4-1.5 5 1.5 4-1.5V20l-4 1.5L7 20l-4 1.5Z'/%3E%3Cpath d='M7 6.5V20M12 8v13.5'/%3E%3C/svg%3E");
  --i-temple:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v3M9 8.5 12 5l3 3.5M5 13l7-6 7 6M3 15 5 13M21 15l-2-2M6 13v8M18 13v8M3 21h18M10 21v-3.5a2 2 0 0 1 4 0V21'/%3E%3C/svg%3E");
  --i-view:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21v-8h4M9 21V9h7v12M16 21v-6h3v6M8 9h9M12.5 9V6M10.5 6h4M12 12.5h1M12 16h1'/%3E%3C/svg%3E");
  --i-lantern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5v2M9 4.5h6M8 4.5C6 7 6 13 8 15.5h8c2-2.5 2-8.5 0-11Z'/%3E%3Cpath d='M12 4.5v11M10 15.5v2h4v-2M12 17.5V21'/%3E%3C/svg%3E");
  --i-search:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 11a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0ZM16 16l4.5 4.5'/%3E%3C/svg%3E");
  --i-fit:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V5a1 1 0 0 1 1-1h4M15 4h4a1 1 0 0 1 1 1v4M20 15v4a1 1 0 0 1-1 1h-4M9 20H5a1 1 0 0 1-1-1v-4'/%3E%3Cpath d='M12 15.5s3-2.8 3-5.2a3 3 0 0 0-6 0c0 2.4 3 5.2 3 5.2Z'/%3E%3C/svg%3E");
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;
  gap:12px!important;padding:12px 16px!important;min-height:0!important;height:auto!important;max-width:100%!important;box-sizing:border-box!important;
  grid-template-columns:none!important;
}
[data-rooftop-approved-map] .ms-toolbar *,[data-rooftop-approved-map] .ms-toolbar *::before,[data-rooftop-approved-map] .ms-toolbar *::after{box-sizing:border-box}

/* 검색 */
[data-rooftop-approved-map] .ms-toolbar .ms-search{position:relative!important;flex:0 1 280px!important;min-width:180px!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important;display:block!important}
[data-rooftop-approved-map] .ms-toolbar .ms-search>span[aria-hidden="true"]{position:absolute!important;left:12px!important;top:50%!important;width:18px!important;height:18px!important;margin:-9px 0 0!important;font-size:0!important;line-height:0!important;color:var(--rt-muted)!important;background:currentColor!important;-webkit-mask:var(--i-search) center/18px 18px no-repeat;mask:var(--i-search) center/18px 18px no-repeat;pointer-events:none;z-index:1}
[data-rooftop-approved-map] .ms-toolbar .ms-search input{display:block!important;width:100%!important;height:40px!important;margin:0!important;padding:0 12px 0 38px!important;border:1px solid var(--rt-line)!important;border-radius:8px!important;background:#fff!important;color:var(--rt-ink)!important;font:inherit;font-size:14px!important;line-height:1.2!important;box-shadow:none!important}
[data-rooftop-approved-map] .ms-toolbar .ms-search input::placeholder{color:#7b8390;opacity:1}
[data-rooftop-approved-map] .ms-toolbar .ms-search input:focus{outline:none!important}
[data-rooftop-approved-map] .ms-toolbar .ms-search input:focus-visible{outline:2px solid var(--rt-ink)!important;outline-offset:1px!important;border-color:var(--rt-ink)!important}

/* 분류: 글자 버튼 + 20px 선 아이콘 */
[data-rooftop-approved-map] .ms-toolbar .ms-categories{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:2px!important;flex:0 1 auto!important;min-width:0!important;width:auto!important;
  margin:-4px!important;padding:4px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;grid-template-columns:none!important;border:0!important;background:none!important}
[data-rooftop-approved-map] .ms-toolbar .ms-categories::-webkit-scrollbar{display:none}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button{position:relative!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex:none!important;
  width:auto!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:8px!important;
  background:transparent!important;color:var(--rt-muted)!important;font:inherit;font-size:14px!important;font-weight:500!important;line-height:1!important;letter-spacing:0!important;white-space:nowrap!important;cursor:pointer;box-shadow:none!important;transition:background-color .15s,color .15s}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button .ms-category-art{display:none!important}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button .ms-category-icon{display:block!important;flex:none!important;width:20px!important;height:20px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  background:currentColor!important;-webkit-mask:var(--rt-i) center/20px 20px no-repeat;mask:var(--rt-i) center/20px 20px no-repeat}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button .ms-category-label{display:inline!important;margin:0!important;padding:0!important;font:inherit!important;color:inherit!important;white-space:nowrap!important;text-align:left!important}
[data-rooftop-approved-map] .ms-toolbar button[data-ms-category="all"]{--rt-i:var(--i-all)}
[data-rooftop-approved-map] .ms-toolbar button[data-ms-category="attractions"]{--rt-i:var(--i-temple)}
[data-rooftop-approved-map] .ms-toolbar button[data-ms-category="rooftops"]{--rt-i:var(--i-view)}
[data-rooftop-approved-map] .ms-toolbar button[data-ms-category="festivals"]{--rt-i:var(--i-lantern)}
/* 선택: 색 + 굵기 + 정류장 점 */
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button::before{content:none!important}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button::after{content:""!important;position:absolute!important;left:50%!important;right:auto!important;top:auto!important;bottom:2px!important;width:7px!important;height:7px!important;margin:0 0 0 -3.5px!important;
  border:2px solid currentColor!important;border-radius:50%!important;background:#fff!important;opacity:0;transform:scale(.4);transition:opacity .15s,transform .15s}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button[aria-pressed="true"]{color:var(--rt-accent)!important;font-weight:700!important;background:var(--rt-accent-bg)!important}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button[aria-pressed="true"]::after{opacity:1;transform:none}
@media (hover:hover){[data-rooftop-approved-map] .ms-toolbar .ms-categories>button:not([aria-pressed="true"]):hover{background:var(--rt-hover)!important;color:var(--rt-ink)!important}}

/* 전체 위치 */
[data-rooftop-approved-map] .ms-toolbar .ms-reset{display:inline-flex!important;align-items:center!important;gap:6px!important;flex:none!important;margin:0 0 0 auto!important;width:auto!important;height:40px!important;min-height:40px!important;padding:0 12px 0 10px!important;
  border:1px solid var(--rt-line)!important;border-radius:8px!important;background:#fff!important;color:var(--rt-ink)!important;font:inherit;font-size:14px!important;font-weight:500!important;line-height:1!important;white-space:nowrap!important;cursor:pointer;box-shadow:none!important}
[data-rooftop-approved-map] .ms-toolbar .ms-reset::before{content:""!important;display:block!important;flex:none;width:18px;height:18px;background:currentColor;-webkit-mask:var(--i-fit) center/18px 18px no-repeat;mask:var(--i-fit) center/18px 18px no-repeat}
@media (hover:hover){[data-rooftop-approved-map] .ms-toolbar .ms-reset:hover{background:var(--rt-hover)!important}}

/* 키보드 포커스 */
[data-rooftop-approved-map] .ms-toolbar button:focus{outline:none!important}
[data-rooftop-approved-map] .ms-toolbar button:focus-visible{outline:2px solid var(--rt-ink)!important;outline-offset:2px!important}

/* 모바일: 1줄 검색+전체 위치, 2줄 가로 스크롤 분류 */
@media (max-width:760px){
  [data-rooftop-approved-map] .ms-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px!important;padding:12px!important}
  [data-rooftop-approved-map] .ms-toolbar .ms-search{grid-column:1!important;grid-row:1!important;min-width:0!important;flex:none!important}
  [data-rooftop-approved-map] .ms-toolbar .ms-search input{height:44px!important;font-size:16px!important}
  [data-rooftop-approved-map] .ms-toolbar .ms-reset{grid-column:2!important;grid-row:1!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 12px 0 10px!important}
  [data-rooftop-approved-map] .ms-toolbar .ms-categories{grid-column:1/-1!important;grid-row:2!important;min-width:0!important;margin:0 0 -4px!important;padding:3px 3px 4px!important;justify-content:flex-start!important;
    scroll-snap-type:none!important;scroll-padding-inline:0;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  [data-rooftop-approved-map] .ms-toolbar .ms-categories>button{height:44px!important;min-height:44px!important;scroll-snap-align:none!important}
}
@media (max-width:340px){
  [data-rooftop-approved-map] .ms-toolbar .ms-reset{padding:0 10px 0 8px!important;font-size:13px!important;gap:4px!important}
}
@media (prefers-reduced-motion:reduce){[data-rooftop-approved-map] .ms-toolbar *{transition:none!important}}

/* ===== 오버라이드: 글자만 쓰는 버튼형 조작부 ===== */
[data-rooftop-approved-map] .ms-toolbar{--rt-font:"Pretendard Variable",Pretendard,-apple-system,"system-ui","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;font-family:var(--rt-font)!important;flex-wrap:wrap!important;row-gap:10px!important}
[data-rooftop-approved-map] .ms-toolbar,[data-rooftop-approved-map] .ms-toolbar input,[data-rooftop-approved-map] .ms-toolbar button,[data-rooftop-approved-map] .ms-toolbar span{font-family:var(--rt-font)!important}
/* 아이콘·점 제거 */
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button .ms-category-icon,
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button .ms-category-art{display:none!important}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button::after,[data-rooftop-approved-map] .ms-toolbar .ms-reset::before{content:none!important;display:none!important}
/* 분류: 통일된 테두리 버튼, 선택은 채움 */
[data-rooftop-approved-map] .ms-toolbar .ms-categories{flex-wrap:wrap!important;overflow:visible!important;gap:6px!important;margin:0!important;padding:0!important}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button{gap:0!important;padding:0 14px!important;border:1px solid var(--rt-line)!important;border-radius:999px!important;background:#fff!important;color:var(--rt-ink)!important;font-size:14px!important;font-weight:500!important;line-height:1.25!important;white-space:normal!important;text-align:center!important;word-break:keep-all!important}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button .ms-category-label{height:auto!important;min-height:0!important;line-height:1.25!important;white-space:normal!important;text-align:center!important;word-break:keep-all!important}
[data-rooftop-approved-map] .ms-toolbar .ms-categories>button[aria-pressed="true"]{background:var(--ms-accent,#bd2444)!important;border-color:var(--ms-accent,#bd2444)!important;color:#fff!important;font-weight:700!important}
@media (hover:hover){[data-rooftop-approved-map] .ms-toolbar .ms-categories>button:not([aria-pressed="true"]):hover{background:var(--rt-hover)!important;border-color:#bfb7aa!important}}
/* 검색: 돋보기 표시는 유지(입력칸 역할), 전체 위치: 글자 버튼 */
[data-rooftop-approved-map] .ms-toolbar .ms-reset{gap:0!important;padding:0 14px!important;border-radius:8px!important;font-weight:600!important;border-color:#bfb7aa!important}
@media (max-width:760px){
  [data-rooftop-approved-map] .ms-toolbar .ms-categories{display:grid!important;grid-template-columns:auto auto minmax(0,1.4fr) auto!important;gap:6px!important;margin:0!important;padding:0!important}
  [data-rooftop-approved-map] .ms-toolbar .ms-categories>button{min-width:0!important;width:100%!important;height:auto!important;min-height:44px!important;padding:4px 10px!important}
  [data-rooftop-approved-map] .ms-toolbar .ms-reset{padding:0 12px!important}
}
@media (max-width:360px){
  [data-rooftop-approved-map] .ms-toolbar .ms-categories{display:flex!important;flex-wrap:wrap!important}
  [data-rooftop-approved-map] .ms-toolbar .ms-categories>button{width:auto!important;flex:0 1 auto!important;max-width:100%!important}
  [data-rooftop-approved-map] .ms-toolbar .ms-reset{padding:0 10px!important;font-size:14px!important}
}


/* 지도에 표시된 장소 목록: 큰 배너 대신 소형 장소 카드 (이 임베드 범위 한정) */
[data-rooftop-approved-map] .ms-map-place-directory{width:100%;margin:0;padding:0;border:0;background:transparent}
[data-rooftop-approved-map] .ms-map-place-directory>summary{min-height:44px;padding:12px 16px;cursor:pointer;font-size:15px;font-weight:600;line-height:1.6}
[data-rooftop-approved-map] .ms-map-place-directory .ms-places{width:100%;border:0}
[data-rooftop-approved-map] .ms-map-place-directory .ms-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:0;margin:0;padding:4px 16px 8px;border:0}
[data-rooftop-approved-map] .ms-map-place-directory .ms-list-heading h3{margin:0;font-size:15px!important;font-weight:700;line-height:1.5}
[data-rooftop-approved-map] .ms-map-place-directory .ms-card-list{display:block!important;height:auto!important;max-height:none!important;overflow:hidden!important;margin:0!important;padding:0!important;list-style:none;scroll-snap-type:none!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-place{position:relative;margin:0!important;padding:0!important;border:0!important;border-top:1px solid #e6e1d8!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-place[hidden]{display:none!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-link{display:grid!important;grid-template-columns:152px minmax(0,1fr);gap:16px;align-items:start;height:auto!important;min-height:0;padding:14px 16px;color:inherit!important;text-decoration:none}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-media{display:grid;place-items:center;width:152px!important;height:114px!important;min-width:0;overflow:hidden;border-radius:6px;background:#f2f0ea}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-media img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-media svg{width:48px!important;height:48px!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-copy{display:flex;flex-direction:column;gap:3px;min-width:0;padding:0 0 44px!important;position:static}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-copy strong{font-size:17px;font-weight:700;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
[data-rooftop-approved-map] .ms-map-place-directory .ms-place-category{order:-1;font-size:12px;font-weight:600;color:#545a54}
[data-rooftop-approved-map] .ms-map-place-directory .ms-place-sub,[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-photo-note{font-size:13px;line-height:1.55;color:#545a54;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-photo-note{font-size:12px;-webkit-line-clamp:1}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-copy>.rutabi-more-link{position:absolute!important;left:184px;bottom:12px;right:auto;top:auto}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-locate{position:absolute!important;right:16px;bottom:12px;top:auto;left:auto;min-height:44px;margin:0;padding:0 2px;border:0;background:transparent;color:#354639;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
[data-rooftop-approved-map] .ms-map-place-directory [data-ms-carousel-controls]{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 16px 12px;border:0;background:transparent}
[data-rooftop-approved-map] .ms-map-place-directory [data-ms-carousel-controls][hidden]{display:none!important}
[data-rooftop-approved-map] .ms-map-place-directory [data-ms-carousel-controls] button{min-width:44px;min-height:44px;padding:0 10px;border:1px solid #d6d0c5;border-radius:6px;background:#fff;color:#29372f;font-size:16px;line-height:1}
[data-rooftop-approved-map] .ms-map-place-directory [data-ms-page]{min-width:64px;font-size:13px;text-align:center}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra{margin:0;padding:0 16px;border:0;font-size:14px}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra[hidden],[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra li[hidden]{display:none!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra>summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:600}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px;list-style:none;margin:0;padding:0 0 12px}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra li{display:flex;align-items:center;gap:12px;min-width:0}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra li>a{flex:1;min-width:0;line-height:1.6}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra li>button{flex:none;min-height:44px;padding:4px 0;background:none;border:0;font-size:12px;color:#545a54}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-link:focus-visible,[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-locate:focus-visible,[data-rooftop-approved-map] .ms-map-place-directory [data-ms-carousel-controls] button:focus-visible{outline:2px solid #354639;outline-offset:-2px}
@media (max-width:600px){
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-link{grid-template-columns:104px minmax(0,1fr);gap:12px;padding:12px}
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-media{width:104px!important;height:78px!important}
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-copy strong{font-size:16px}
  [data-rooftop-approved-map] .ms-map-place-directory .ms-place-sub{-webkit-line-clamp:1}
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-copy>.rutabi-more-link{left:128px;bottom:10px}
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-locate{right:12px;bottom:10px}
  [data-rooftop-approved-map] .ms-map-place-directory [data-ms-carousel-controls]{justify-content:center}
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-extra ul{grid-template-columns:minmax(0,1fr)}
}
/* 지도 바로 아래 짧은 제공자 표기(.map-credit-line)는 유지, 제목까지 반복하는 중복 출처 블록만 숨김 */
[data-rooftop-approved-map] .page-map-credits[data-page-map-credits],.page-map-credits[data-page-map-credits]{display:none!important}
/* 마무리: 본문 글꼴 통일, 중복 제목 시각 숨김, 더보기 삼각형, 두 동작 간격 */
[data-rooftop-approved-map] .ms-map-place-directory,[data-rooftop-approved-map] .ms-map-place-directory *{font-family:"Pretendard Variable",Pretendard,-apple-system,"system-ui","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-list-heading{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-copy>.rutabi-more-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600}
[data-rooftop-approved-map] .ms-map-place-directory .rutabi-more-marker{display:inline-block!important;flex:none;width:0!important;height:0!important;border-style:solid!important;border-width:4px 0 4px 6px!important;border-color:transparent transparent transparent currentColor!important;background:none!important}
[data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-locate{left:276px;right:auto}
@media (max-width:600px){
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-locate{left:auto;right:12px}
}
@media (max-width:340px){
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-locate{font-size:13px}
  [data-rooftop-approved-map] .ms-map-place-directory .ms-carousel-copy>.rutabi-more-link{font-size:13px}
}

/* 루타비 태국 · 루프탑·전망대 전국 허브 후보 시안 (candidate.css)
   적용 대상: 통합본 /ko/rooftops/ (전체·도시·페이지) main[data-rooftop-locale].
   candidate.js가 main에 .rt-cand 를 붙인 뒤에만 동작합니다.
   기존 Astro 스코프 규칙(main[data-astro-cid-*] 등)을 이기도록 html body main.rt-cand 접두를 씁니다. */

html body main.rt-cand {
  --accent: var(--rutabi-country-accent, #a85835);
  --accent-ink: var(--rutabi-country-accent-ink, #853d25);
  --accent-soft: var(--rutabi-country-accent-soft, #f8ede5);
  --on-accent: var(--rutabi-country-on-accent, #fff);
  --ink: #1b2430; --ink-2: #47525f; --ink-3: #7b8590;
  --paper: #fbfaf7; --surface: #fff; --sunk: #f4f1eb; --line: #e6e0d6;
  --r: 10px; --r-lg: 14px; --gut: clamp(20px, 3vw, 32px); --sec: 64px;
  --f: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 16px var(--gut) 72px;
  padding-inline: var(--gut) !important;
  color: var(--ink);
  font: 16px/1.7 var(--f);
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  background: transparent;
}
html body:has(main.rt-cand) { background: #fbfaf7; }
html body main.rt-cand * { box-sizing: border-box; }

/* ── 배너 위 중복 내비·장식 영문 라벨 제거 ── */
html body main.rt-cand > .attractions-back,
html body main.rt-cand > .eyebrow { display: none !important; }

/* ── 사진 타이틀 배너 (승인 허브와 같은 비율·모서리) ── */
html body main.rt-cand [data-rutabi-title-banner] {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sunk);
}
html body main.rt-cand [data-rutabi-title-banner] > img,
html body main.rt-cand [data-rutabi-title-banner] picture img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  margin: 0; border-radius: 0;
}
html body main.rt-cand [data-rutabi-title-banner] h1 {
  margin: 0; color: #fff;
}
html body main.rt-cand .rutabi-title-photo-credit {
  margin: 6px 0 0;
  text-align: right;
  font-size: 12px; line-height: 1.6;
  color: var(--ink-2);
}
html body main.rt-cand .rutabi-title-photo-credit a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 400; }

/* ── 공통 탭: 승인 탭 CSS 그대로, 간격만 승인 허브에 맞춤 ── */
html body main.rt-cand .rutabi-hub-tabs { margin-top: 28px; justify-content: flex-start; }

/* ── 머리말 ── */
html body main.rt-cand .rt-lead {
  max-width: 48rem;
  margin: 24px 0 0;
  font-size: 17px; line-height: 1.75;
  color: var(--ink-2);
}

/* ── 공통 섹션 ── */
html body main.rt-cand .rt-sec { padding-top: var(--sec); margin: 0; }
html body main.rt-cand .rt-sec > h2,
html body main.rt-cand .rooftop-map-section > h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; letter-spacing: -.025em; font-weight: 700;
  color: var(--ink);
}
html body main.rt-cand .rt-sec__lead { max-width: 680px; margin: 0 0 20px; color: var(--ink-2); font-size: 16px; }

/* ── 지역·유형 선택 ── */
html body main.rt-cand > .region-filter,
html body main.rt-cand .region-filter { display: none !important; } /* select#rooftop-region은 DOM에 그대로 보존 */
html body main.rt-cand .rt-pick__row { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 12px; min-width: 0; }
html body main.rt-cand .rt-pick__label {
  flex: none; width: 44px; padding-top: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink-3);
}
html body main.rt-cand .rt-chips,
html body main.rt-cand nav.type-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; min-width: 0;
}
html body main.rt-cand .rt-chip,
html body main.rt-cand nav.type-filter button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font: 600 15px/1.2 var(--f); white-space: nowrap;
  text-decoration: none; cursor: pointer;
}
html body main.rt-cand .rt-chip { color: var(--accent-ink); }
html body main.rt-cand .rt-chip:hover {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink);
}
html body main.rt-cand nav.type-filter button:hover { border-color: var(--ink-3); color: var(--ink); }
html body main.rt-cand .rt-chip[aria-current="page"],
html body main.rt-cand nav.type-filter button[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
html body main.rt-cand .rt-chip small,
html body main.rt-cand nav.type-filter button small {
  font-size: 13px; font-weight: 500; opacity: .72; font-variant-numeric: tabular-nums;
}
html body main.rt-cand .rt-chip:focus-visible,
html body main.rt-cand nav.type-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

html body main.rt-cand .rt-status {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  margin: 18px 0 0; padding: 12px 16px;
  background: var(--sunk); border-radius: var(--r);
  font-size: 15px; color: var(--ink-2);
}
html body main.rt-cand .rt-status b { color: var(--ink); font-weight: 700; }
html body main.rt-cand .rt-status #venue-count {
  display: inline; margin: 0; font-size: 15px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ── 좌표 지도 (스크립트·좌표·핀 동작은 그대로) ── */
html body main.rt-cand .rooftop-map-section { margin: 0; padding-top: 32px; }
main.rt-cand [data-rooftop-approved-map] > .ms-city-explorer {
  max-width: none;
  padding-inline: 0;
}
main.rt-cand [data-rooftop-approved-map] .ms-toolbar .ms-categories > button:not([aria-pressed="true"]),
main.rt-cand [data-rooftop-approved-map] .ms-toolbar .ms-reset {
  color: var(--accent-ink) !important;
}
@media (min-width: 361px) and (max-width: 760px) {
  main.rt-cand [data-rooftop-approved-map] .ms-toolbar .ms-categories {
    grid-template-columns: repeat(3, max-content) !important;
  }
}
html body main.rt-cand [data-rooftop-approved-map] .map-credit-line {
  border: 0;
  border-radius: 0;
  margin: 0;
  background: #fff;
}
html body main.rt-cand [data-rooftop-approved-map] .map-credit-line a {
  color: var(--accent-ink);
  font-weight: 400;
}
html body main.rt-cand [data-rooftop-approved-map] .map-credit-line .maplibregl-ctrl-attrib {
  border: 0 !important;
  border-radius: 0 !important;
}
html body main.rt-cand [data-rooftop-approved-map] .ms-map .maplibregl-ctrl-top-right button {
  width: 29px;
  height: 29px;
  border-radius: 0;
}
html body main.rt-cand #rooftop-map {
  height: 460px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sunk);
}
html body main.rt-cand .rooftop-map-section .map-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
html body main.rt-cand #rooftop-map .rm-cluster { background: var(--accent) !important; border-color: #fff !important; }
html body main.rt-cand #rooftop-map .rm-dot { background: var(--accent) !important; }
html body main.rt-cand #rooftop-map .maplibregl-popup-content a,
html body main.rt-cand #rooftop-map .leaflet-popup-content a { color: var(--accent-ink) !important; }

/* ── 시설 카드: 사진 높이 통일, 3열 ── */
html body main.rt-cand .rt-results-head { margin: 40px 0 16px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
html body main.rt-cand .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
}
html body main.rt-cand .grid > article {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0; margin: 0; padding: 16px;
  border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
html body main.rt-cand .grid > article > :is(h2, p) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
html body main.rt-cand .grid > article[hidden] { display: none !important; }
html body main.rt-cand .grid > article.selected { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 4px; }

html body main.rt-cand .grid > article .attraction-photo,
html body main.rt-cand .grid > article .rt-nophoto {
  order: -1; margin: 0 0 8px !important; padding: 0;
  border-radius: var(--r); overflow: hidden; background: var(--sunk);
}
html body main.rt-cand .grid > article .attraction-photo a { display: block; }
html body main.rt-cand .grid > article .attraction-photo img {
  display: block; width: 100% !important; height: auto !important; max-width: none !important;
  aspect-ratio: 3 / 2 !important; object-fit: cover !important;
  margin: 0 !important; border-radius: 0 !important;
}
html body main.rt-cand .grid > article .attraction-photo figcaption {
  padding: 8px 2px 0 !important; margin: 0;
  background: var(--paper);
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
}
html body main.rt-cand .grid > article .rt-nophoto {
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 2; padding: 16px;
  border: 1px dashed var(--line);
  color: var(--ink-3); font-size: 13px; line-height: 1.5;
}
html body main.rt-cand .grid > article .rt-nophoto b { color: var(--ink-2); font-size: 15px; }

html body main.rt-cand .grid > article > span:first-of-type,
html body main.rt-cand .grid > article .rt-meta {
  font-size: 13px; font-weight: 600; color: var(--accent-ink); line-height: 1.5;
}
html body main.rt-cand .grid > article > h2 {
  margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; color: var(--ink);
}
html body main.rt-cand .grid > article > h2 a { color: inherit; font-weight: 700; text-decoration: none; }
html body main.rt-cand .grid > article > h2 a:hover { color: var(--accent-ink); }
html body main.rt-cand .grid > article > h2 .rt-en { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
html body main.rt-cand .grid > article > .place { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
html body main.rt-cand .grid > article > .rt-desc {
  margin: 4px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-2);
}
html body main.rt-cand .grid > article > .rt-fact { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
html body main.rt-cand .grid > article > .rt-fact strong { color: var(--ink); font-weight: 700; margin-right: 4px; }

/* 사진 설명(외관 사진 고지)은 PC에서는 사진 아래 캡션, 모바일에서는 본문 한 줄로 */
html body main.rt-cand .grid > article > .rt-photo-note { display: none; margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* 작은 삼각형 링크 (승인본 tri-link) */
html body main.rt-cand .tri-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--accent-ink); text-decoration: none;
}
html body main.rt-cand .tri-link::after {
  content: ""; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor;
}
html body main.rt-cand .tri-link:hover { text-decoration: underline; text-underline-offset: 3px; }
html body main.rt-cand .grid > article > .tri-link { align-self: flex-start; margin-top: auto; padding-top: 10px; }

/* ── 페이지 전환 ── */
html body main.rt-cand nav.locale-pagination {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 44px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
}
html body main.rt-cand nav.locale-pagination[hidden] { display: none; }
html body main.rt-cand nav.locale-pagination a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink-2); font: 600 15px/1 var(--f); text-decoration: none;
}
html body main.rt-cand nav.locale-pagination a[hidden] { display: none; }
html body main.rt-cand nav.locale-pagination a:hover { border-color: var(--ink-3); color: var(--ink); }
html body main.rt-cand nav.locale-pagination a[aria-current="page"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
html body main.rt-cand nav.locale-pagination a[rel="prev"]::before {
  content: ""; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-right: 6px solid currentColor;
}
html body main.rt-cand nav.locale-pagination a[rel="next"]::after {
  content: ""; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor;
}
html body main.rt-cand nav.locale-pagination a[rel="prev"] { order: -1; margin-right: 6px; }
html body main.rt-cand nav.locale-pagination a[rel="next"] { order: 99; margin-left: 6px; }

html body main.rt-cand #rooftop-empty {
  margin: 24px 0 0; padding: 16px 20px; border-radius: var(--r);
  background: var(--accent-soft); color: var(--accent-ink); font-size: 15px;
}
html body main.rt-cand #rooftop-empty[hidden] { display: none; }

/* 아이와 함께 갈 수 있는 곳 */
main.rt-cand .rt-family table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--surface);
}
main.rt-cand .rt-family th:first-child { width: 34%; }
main.rt-cand .rt-family :is(th, td) {
  padding: clamp(10px, 2vw, 16px);
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
main.rt-cand .rt-family tbody th span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}
main.rt-cand .rt-family tbody th a { color: var(--accent-ink) !important; text-underline-offset: 3px; }

/* ── 방문 전 체크 ── */
html body main.rt-cand .rt-check .rt-checklist { list-style: none; margin: 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-width: 820px; }
html body main.rt-cand .rt-check .rt-checklist li { position: relative; margin: 0; padding: 6px 0 6px 26px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
html body main.rt-cand .rt-check .rt-checklist li + li { border-top: 1px solid var(--sunk); }
html body main.rt-cand .rt-check .rt-checklist li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ── 관련 링크 ── */
html body main.rt-cand .locale-connections { margin: 0; padding-top: 48px; }
html body main.rt-cand .locale-connections h2 { margin: 0 0 12px; font-size: 20px; }
html body main.rt-cand .locale-connections ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
html body main.rt-cand .locale-connections a { color: var(--accent-ink); }

/* ── 자료·출처 ── */
html body main.rt-cand details[data-rutabi-page-notes] {
  margin: 56px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3);
}
html body main.rt-cand details[data-rutabi-page-notes] summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
html body main.rt-cand details[data-rutabi-page-notes] a { color: var(--accent-ink); }

/* ── 태블릿 ── */
@media (max-width: 1024px) {
  html body main.rt-cand .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  html body main.rt-cand { padding-top: 0; }
  html body main.rt-cand [data-rutabi-title-banner] {
    width: calc(100% + 2 * var(--gut)) !important;
    margin-inline: calc(-1 * var(--gut));
    border-radius: 0;
  }
}

/* ── 모바일 (390px 기준) ── */
@media (max-width: 640px) {
  html body main.rt-cand { --gut: 20px; --sec: 44px; padding: 0 var(--gut) 56px; }
  html body main.rt-cand .rutabi-title-photo-credit { text-align: left; }
  html body main.rt-cand .rutabi-hub-tabs { margin-top: 20px; }
  html body main.rt-cand .rt-lead { font-size: 16px; }
  html body main.rt-cand .rt-pick__row { display: block; }
  html body main.rt-cand .rt-pick__label { display: block; width: auto; padding: 0 0 6px; }
  html body main.rt-cand .rt-chips,
  html body main.rt-cand nav.type-filter {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px;
  }
  html body main.rt-cand .rt-chips::-webkit-scrollbar,
  html body main.rt-cand nav.type-filter::-webkit-scrollbar { display: none; }
  html body main.rt-cand .rt-chip,
  html body main.rt-cand nav.type-filter button { flex: none; }
  html body main.rt-cand #rooftop-map { height: 340px; }

  /* 승인본 모바일 목록형: 글 왼쪽, 정사각 썸네일 오른쪽 */
  html body main.rt-cand .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html body main.rt-cand .grid > article {
    display: grid; grid-template-columns: minmax(0, 1fr) 96px;
    column-gap: 14px; row-gap: 6px; align-content: start;
    padding: 14px; border-bottom: 1px solid var(--line);
  }
  html body main.rt-cand .grid > article > * { grid-column: 1; }
  html body main.rt-cand .grid > article .attraction-photo,
  html body main.rt-cand .grid > article .rt-nophoto {
    grid-column: 2; grid-row: 1 / span 4; align-self: start; margin: 4px 0 0 !important; border-radius: 8px;
  }
  html body main.rt-cand .grid > article .attraction-photo img { aspect-ratio: 1 / 1 !important; }
  html body main.rt-cand .grid > article .rt-nophoto { padding: 8px; }
  html body main.rt-cand .grid > article .rt-nophoto b { font-size: 13px; }
  html body main.rt-cand .grid > article .rt-nophoto span { font-size: 11px; }
  html body main.rt-cand .grid > article .attraction-photo figcaption { display: none; }
  html body main.rt-cand .grid > article > .rt-photo-note { display: block; }
  html body main.rt-cand .grid > article .rt-nophoto { aspect-ratio: 1 / 1; padding: 8px; justify-content: center; text-align: center; }
  html body main.rt-cand .grid > article .rt-nophoto b { display: none; }
  html body main.rt-cand .grid > article > h2 { font-size: 16.5px; }
  html body main.rt-cand .grid > article > .rt-desc { font-size: 14px; }
  html body main.rt-cand .grid > article.selected { outline-offset: 2px; }
  html body main.rt-cand nav.locale-pagination a { min-width: 38px; height: 38px; padding: 0 10px; }
}

html body main.rt-cand .rt-chip[aria-current="page"],
html body main.rt-cand .rt-chip[aria-current="page"] small {
  color: #fff !important;
}
html body main.rt-cand nav.type-filter[hidden],
html body main.rt-cand #rooftop-map[hidden] {
  display: none !important;
}
html body main.rt-cand .rt-chip[aria-current="page"] small { opacity: 1; }
