
.geocontext-widget { position: relative; }
.geocontext-widget__link {
    display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:6px 10px;
    border-radius:8px; text-decoration:none !important; transition:background-color .15s ease,color .15s ease;
}
.geocontext-widget__link:hover { text-decoration:none !important; }
.geocontext-widget__icon { font-size:15px; opacity:.85; }
.geocontext-widget__chevron { margin-left:2px; font-size:11px; opacity:.55; }

/* Keep the Placecontext modal compact instead of inheriting a wide site modal. */
.geocontext-modal .modal-dialog {
    width: 580px;
    max-width: calc(100vw - 30px);
    margin: 30px auto;
}
.geocontext-modal .modal-content { width:100%; }

.geocontext-show {
    width:100%; max-width:580px; height:680px; max-height:calc(100vh - 90px);
    margin:0 auto; box-sizing:border-box; padding:24px 24px 20px;
    display:flex; flex-direction:column; overflow:hidden;
}
.geocontext-show__head {
    display:flex; flex-direction:column; align-items:stretch; gap:0; margin-bottom:18px;
}
.geocontext-show__title { margin:0; text-align:center; font-size:22px; line-height:1.25; font-weight:600; }

.geocontext-back {
    display:inline-flex; align-items:center; align-self:flex-start; gap:6px; min-height:32px; padding:4px 7px 4px 0;
    margin:10px 0 0; border:0; background:transparent; cursor:pointer; font:inherit; font-size:13px;
    opacity:.65; flex:0 0 auto;
}
.geocontext-back:hover { opacity:1; }
.geocontext-back svg { width:14px; height:14px; }

.geocontext-search { position:relative; margin-bottom:18px; flex:0 0 auto; }
.geocontext-search__icon {
    position:absolute; left:15px; top:50%; width:16px; height:16px;
    transform:translateY(-50%); opacity:.5; pointer-events:none;
    display:flex; align-items:center; justify-content:center;
}
.geocontext-search__icon svg { width:15px; height:15px; }
.geocontext-search__input {
    display:block; width:100%; height:46px; box-sizing:border-box; padding:0 42px 0 42px;
    border:1px solid rgba(0,0,0,.12); border-radius:10px; outline:none; background:transparent;
    font:inherit; transition:border-color .15s ease,box-shadow .15s ease;
}
.geocontext-search__input:focus { border-color:rgba(0,0,0,.28); box-shadow:0 0 0 3px rgba(0,0,0,.05); }
.geocontext-search__clear {
    display:none; position:absolute; right:8px; top:6px; width:34px; height:34px;
    border:0; border-radius:7px; background:transparent; cursor:pointer; opacity:.45;
}
.geocontext-search__clear:hover { opacity:.9; }

.geocontext-section {
    margin:0 0 8px; font-size:12px; line-height:1.3; font-weight:600;
    text-transform:uppercase; letter-spacing:.04em; opacity:.5; flex:0 0 auto;
}
.geocontext-current {
    display:flex; align-items:center; gap:12px; width:100%; box-sizing:border-box;
    margin-bottom:18px; padding:12px 13px; border:1px solid rgba(0,0,0,.10); border-radius:10px;
    text-align:left; background:transparent; cursor:pointer; font:inherit; flex:0 0 auto;
}
.geocontext-current:hover { background:rgba(0,0,0,.035); }
.geocontext-current__icon {
    flex:0 0 34px; width:34px; height:34px; display:flex; align-items:center; justify-content:center;
    border-radius:8px; background:rgba(0,0,0,.045);
}
.geocontext-current__icon svg, .geocontext-result__icon svg { width:15px; height:15px; }
.geocontext-current__body { min-width:0; flex:1; }
.geocontext-current__title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.geocontext-current__parents {
    display:block; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; opacity:.55;
}
.geocontext-current__check { opacity:.65; display:flex; }
.geocontext-current__check svg { width:15px; height:15px; }

.geocontext-results {
    display:flex; flex-direction:column; min-height:0; flex:1 1 auto; overflow-y:auto;
    padding:0 4px 0 0; margin-right:-4px; scrollbar-width:thin;
}
.geocontext-result {
    display:flex; align-items:center; gap:12px; width:100%; min-height:56px; box-sizing:border-box;
    padding:8px 10px; border:0; border-radius:9px; background:transparent; text-align:left;
    cursor:pointer; font:inherit; flex:0 0 auto;
}
.geocontext-result:hover { background:rgba(0,0,0,.045); }
.geocontext-result:disabled { opacity:.5; cursor:wait; }
.geocontext-result__icon {
    flex:0 0 34px; width:34px; height:34px; display:flex; align-items:center; justify-content:center;
    border-radius:8px; opacity:.55;
}
.geocontext-result__body { min-width:0; flex:1; }
.geocontext-result__title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; }
.geocontext-result__parents {
    display:block; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; opacity:.5;
}
.geocontext-result__check { opacity:.65; display:flex; }
.geocontext-result__check svg { width:15px; height:15px; }
.geocontext-state { padding:24px 10px; text-align:center; font-size:14px; opacity:.55; flex:0 0 auto; }

@media (max-width:600px) {
    .geocontext-modal .modal-dialog { width:auto; max-width:calc(100vw - 20px); margin:10px auto; }
    .geocontext-show { max-width:none; height:calc(100vh - 20px); max-height:none; padding:20px 16px 16px; }
    .geocontext-show__title { font-size:20px; }
}
.geocontext-breadcrumb { margin:0 0 8px; font-size:13px; opacity:.65; }
.geocontext-level { margin:0 0 10px; font-size:13px; font-weight:600; }
.geocontext-result.is-selected { background:rgba(0,0,0,.07); }
.geocontext-hierarchy-actions { margin:0 0 14px; padding:12px; border-radius:8px; background:rgba(0,0,0,.035); }
.geocontext-hierarchy-choice { margin-bottom:10px; font-weight:600; }
.geocontext-hierarchy-buttons { display:flex; gap:8px; flex-wrap:wrap; }
