.ohaven-local-root,
.ohaven-local-root *,
.ohaven-local-root *::before,
.ohaven-local-root *::after{
  box-sizing: border-box;
}


.ohaven-local-menu-btn{
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 99999;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.92);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}
.ohaven-local-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.40);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.ohaven-local-backdrop.is-open{ opacity:1; pointer-events:auto; }

.ohaven-local-nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: clamp(280px, 60vw, 420px);
    background: #fff;
    z-index: 99995;
    transform: translateX(102%);
    transition: transform .18s ease;
    border-left: 1px solid rgba(0,0,0,.08);
    box-shadow: -12px 0 24px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
}
.ohaven-local-nav.is-open{ transform: translateX(0); }

.ohaven-local-nav-header{
    padding: 16px 16px 12px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.ohaven-local-nav-header strong{ font-size: 16px; }
.ohaven-local-nav-close{
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.ohaven-local-nav-close:hover{ background: rgba(0,0,0,.06); }

.ohaven-local-nav-body{
    
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px 18px;
    -webkit-overflow-scrolling: touch;
}


.ohaven-local-accordion{
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.ohaven-local-accordion summary{
    list-style: none;
    cursor: pointer;
    padding: 12px 12px;


    font-size: 1.125rem;

    font-weight: 900;
    display:flex;
    align-items:center;
    justify-content: space-between;
}
.ohaven-local-accordion summary::-webkit-details-marker{ display:none; }
.ohaven-local-accordion[open] summary{ border-bottom: 1px solid rgba(0,0,0,.08); }

.ohaven-local-region-head{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.ohaven-local-region-link{
    text-decoration:none;
    color: inherit;
    font-weight: 900;
}
.ohaven-local-region-link:hover{ text-decoration: underline; }


.ohaven-local-city-wrap{
    padding: 10px 12px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    min-width: 0;
}
@media (max-width: 380px){
    .ohaven-local-city-wrap{ grid-template-columns: 1fr; }
}

.ohaven-local-city-card{
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    min-width: 0;
}
.ohaven-local-city-row{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 10px;
    min-width: 0;
}


@media (max-width: 420px){
    .ohaven-local-city-row{
        padding: 8px 10px; /* 상/하만 2px 감소 */
    }
}

.ohaven-local-city-name{

    font-size: 1rem;

    font-weight: 800;
    text-decoration:none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.ohaven-local-city-name:hover{ text-decoration: underline; }

.ohaven-local-badge-off{
    font-size: 11px;
    opacity: .65;
    white-space: nowrap; 
}
.ohaven-local-toggle{
    border: 0;
    background: rgba(0,0,0,.04);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1;
    flex: 0 0 auto;
}
.ohaven-local-toggle:hover{ background: rgba(0,0,0,.08); }


.ohaven-local-district-box{
    display:none;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 10px 10px 12px;
    background: #fff;
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}
.ohaven-local-district-box.is-open{ display:block; }


.ohaven-local-district-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}
@media (min-width: 520px){
    .ohaven-local-district-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px){
    .ohaven-local-district-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px){
    .ohaven-local-district-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.ohaven-local-district-grid a,
.ohaven-local-district-grid .ohaven-local-district-off,
.ohaven-local-district-grid button{

    display:flex;
    align-items:center;
    gap: 6px;
    flex-wrap: wrap;

    width: 100%;
    text-decoration:none;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 10px 10px;
    font-size: 12px;
    color: inherit;
    background: #fff;


    white-space: normal;
    overflow: visible;
    text-overflow: clip;


    word-break: keep-all;
    overflow-wrap: anywhere;

    text-align: left;
    min-width: 0;
    line-height: 1.25;
}
.ohaven-local-district-grid a:hover{ background: rgba(0,0,0,.04); }
.ohaven-local-district-grid button{
    cursor: pointer;
}
.ohaven-local-district-grid button:hover{ background: rgba(0,0,0,.04); }

.ohaven-local-district-off{
    opacity: .60;
    background: rgba(0,0,0,.02);
}


.ohaven-local-subpanel{
    display:none;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.ohaven-local-subpanel.is-open{ display:block; }

.ohaven-local-subpanel-head{
    padding: 10px 10px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(0,0,0,.02);
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 12px;
    font-weight: 900;
}
.ohaven-local-subpanel-head a{
    color: inherit;
    text-decoration: none;
}
.ohaven-local-subpanel-head a:hover{ text-decoration: underline; }
.ohaven-local-subpanel-close{
    border: 0;
    background: rgba(0,0,0,.06);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
    flex: 0 0 auto;
}
.ohaven-local-subpanel-close:hover{ background: rgba(0,0,0,.10); }

.ohaven-local-sub-grid{
    padding: 10px 10px 12px;
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}
@media (min-width: 520px){
    .ohaven-local-sub-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px){
    .ohaven-local-sub-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ohaven-local-sub-grid a,
.ohaven-local-sub-grid .ohaven-local-sub-off{

    display:flex;
    align-items:center;
    gap: 6px;
    flex-wrap: wrap;

    text-decoration:none;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 10px 10px;
    font-size: 12px;
    color: inherit;
    background: #fff;

    white-space: normal;
    overflow: visible;
    text-overflow: clip;

    word-break: keep-all;
    overflow-wrap: anywhere;

    min-width: 0;
    line-height: 1.25;
}
.ohaven-local-sub-grid a:hover{ background: rgba(0,0,0,.04); }
.ohaven-local-sub-off{
    opacity:.60;
    background: rgba(0,0,0,.02);
}

.ohaven-local-sep{
    margin: 10px 0;
    border-top: 1px dashed rgba(0,0,0,.15);
    opacity: .8;
}

.ohaven-local-empty{
    font-size: 13px;
    opacity: .7;
    padding: 12px;
    border: 1px dashed rgba(0,0,0,.18);
    border-radius: 12px;
    margin-top: 6px;
}

.ohaven-local-root.is-open .ohaven-local-menu-btn{
  opacity: 0;
  pointer-events: none;
}



.ohaven-local-district-off{
    color: #000;
    opacity: 1;
}

.ohaven-local-sub-off{
    color: #000;
    opacity: 1;
}

.ohaven-local-badge-off{
    color: #666;
    opacity: .8;
}


.ohaven-local-nav{
  height: 100dvh;
  max-height: 100dvh;
}

@supports not (height: 100dvh){
  .ohaven-local-nav{
    height: 100vh;
    max-height: 100vh;
  }
}
