/* v8.4 — Focus selected WP category as the isolated subtree root */
#category-scope-results[hidden], #category-scope-return[hidden] { display:none!important; }
.map-search { z-index: 40; }
.category-scope-results {
  position:absolute;top:calc(100% + 7px);left:0;right:0;min-width:min(300px, calc(100vw - 24px));
  max-height:min(360px, 52vh);overflow:auto;z-index:50;
  background:rgba(11,27,30,.98);border:1px solid rgba(89,207,157,.47);border-radius:13px;
  box-shadow:0 16px 48px rgba(0,0,0,.7);padding:5px;color:#e6f7ef;
}
.category-scope-option {display:flex;flex-direction:column;gap:4px;align-items:flex-start;width:100%;text-align:left;
  background:none;color:#d7f6e5;border-radius:8px;padding:9px 10px;line-height:1.4;}
.category-scope-option strong {font-size:12px;font-weight:750;}
.category-scope-option small {font-size:10px;font-weight:400;color:#a9c4b7;overflow-wrap:anywhere;}
.category-scope-option:hover,.category-scope-option:focus-visible,.category-scope-option[aria-selected="true"] {background:rgba(43,134,100,.32);outline:1px solid rgba(85,209,154,.3);}
.category-scope-empty {padding:12px;font-size:12px;color:#bacdc2;}
.category-scope-return {
  position:fixed;left:15px;bottom:78px;z-index:24;display:flex;flex-direction:column;gap:5px;
  max-width:min(280px,calc(100vw - 32px));pointer-events:auto;
  border:1px solid rgba(219,188,110,.42);border-radius:15px;
  background:rgba(10,36,30,.96);color:#eaf6e9;padding:10px 12px;
  box-shadow:0 12px 36px rgba(0,0,0,.44);backdrop-filter:blur(12px);
}
.category-scope-caption {font-size:9px;letter-spacing:.1em;color:#ddc587;font-weight:800;}
#category-scope-name {font-size:12px;line-height:1.4;overflow-wrap:anywhere;}
#category-scope-reset {font-size:11px;font-weight:750;color:#d9fbea;background:rgba(22,103,75,.7);
  border:1px solid rgba(83,204,145,.46);border-radius:9px;min-height:35px;padding:7px 10px;text-align:center;}
#category-scope-reset:hover,#category-scope-reset:focus-visible {background:rgba(39,143,100,.85);outline:2px solid rgba(226,209,142,.4);}
@media(max-width:767px){
 .category-scope-results {width:100%;min-width:0;max-height:43vh;}
 .category-scope-return {left:8px;bottom:calc(220px + env(safe-area-inset-bottom));max-width:190px;padding:8px 9px;}
 #category-scope-name {font-size:11px;}
}
@media(max-height:650px) and (max-width:767px) {
 .category-scope-return {bottom:calc(200px + env(safe-area-inset-bottom));}
}

/* v8.5 — compact two-action category display choice. */
#category-view-choice[hidden] {display:none!important;}
.category-view-choice {
  position:absolute;top:calc(100% + 7px);left:0;
  width:min(340px, calc(100vw - 24px));z-index:52;padding:12px;
  background:rgba(9,28,28,.98);color:#eefbf4;
  border:1px solid rgba(225,196,119,.54);border-radius:15px;
  box-shadow:0 15px 48px rgba(0,0,0,.72);
}
.category-view-choice-head {display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:10px;}
.category-view-choice-head strong {display:block;line-height:1.45;font-size:13px;overflow-wrap:anywhere;}
.category-view-choice-eyebrow {display:block;color:#d5b877;font-size:9px;font-weight:800;letter-spacing:.09em;}
#category-view-choice-close {padding:3px 7px;color:#d4bc89;background:#243b32;border-radius:8px;}
.category-view-choice-action {display:block;width:100%;text-align:left;padding:10px 12px;margin-top:7px;border-radius:11px;
  border:1px solid rgba(71,159,125,.5);background:rgba(22,62,48,.75);color:#effbf3;}
.category-view-choice-action strong {display:block;font-size:12px;font-weight:750;line-height:1.4;}
.category-view-choice-action small {display:block;font-size:10px;font-weight:400;color:#b8d4c7;margin-top:3px;line-height:1.5;}
.category-view-choice-action:hover,.category-view-choice-action:focus-visible {
  outline:2px solid rgba(222,192,121,.6);background:rgba(39,110,80,.9);
}
.drawer-category-view-choice {display:inline-block;margin-top:8px;font-size:10px;color:#ebd397;
  border:1px solid rgba(217,182,105,.46);border-radius:8px;padding:5px 9px;background:rgba(79,61,32,.28);}
.drawer-category-view-choice:hover,.drawer-category-view-choice:focus-visible {background:rgba(123,87,38,.48);}
@media(max-width:767px){.category-view-choice {width:100%;max-width:100%;padding:10px;}}
