/* CityGate Directory — city / parish / category selector (loaded after the theme stylesheet). */

/* Field */
.cg-step--combo{min-height:68px;height:auto}
.cg-step--combo:focus-visible{outline:3px solid var(--yellow,#FECE02);outline-offset:2px}

/* Shared panel */
.cg-combo{display:flex;flex-direction:column;z-index:1000}
.cg-combo[hidden],.cg-combo-backdrop[hidden]{display:none}
.cg-combo__top{display:none}
.cg-combo__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.cg-combo__search input{-webkit-appearance:none;appearance:none}
.cg-combo__search input::-webkit-search-cancel-button{-webkit-appearance:none}
.cg-combo__search input:focus-visible{box-shadow:0 0 0 3px rgba(34,81,163,.25)}
.cg-combo__clear{min-width:44px;min-height:44px}
.cg-combo__clear:focus-visible{outline:3px solid var(--blue,#2251A3);outline-offset:1px}
.cg-combo__list{-webkit-overflow-scrolling:touch}
.cg-combo__opt{min-height:44px;box-sizing:border-box;flex-wrap:wrap;row-gap:2px}
.cg-combo__name{flex:1 1 auto;min-width:0}
.cg-combo__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--muted,#5B6680);flex:0 1 auto}
.cg-combo__opt.is-selected .cg-combo__meta{order:2}
.cg-combo__opt.is-selected::after{order:3}
.cg-combo__type{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:var(--t-blue,#EEF3FB);color:var(--blue,#2251A3)}
.cg-combo__type--parish{background:var(--t-yellow,#FFF8D6);color:#5c4700}
.cg-combo__zero{font-style:italic}
.cg-combo__empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 14px;text-align:center;color:var(--muted,#5B6680);font-size:15px;list-style:none}
.cg-combo__showall{min-height:44px;padding:0 18px;border:1.5px solid var(--line-2,#D5DDEB);border-radius:999px;background:#fff;color:var(--blue,#2251A3);font:inherit;font-weight:700;cursor:pointer}
.cg-combo__showall:focus-visible{outline:3px solid var(--blue,#2251A3);outline-offset:2px}
.cg-combo__opt.is-kb{outline:2px solid var(--blue,#2251A3);outline-offset:-2px}
.cg-combo.is-up{box-shadow:0 -18px 44px rgba(18,26,43,.18)}

/* Phone sheet: fills the visual viewport (JS sets top/height from window.visualViewport) */
.cg-combo-backdrop{position:fixed;inset:0;z-index:999;background:rgba(18,26,43,.45)}
.cg-combo.is-sheet{position:fixed;left:0;right:0;top:0;width:auto;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none;
	padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) 0 env(safe-area-inset-left,0);box-sizing:border-box;overscroll-behavior:contain}
.cg-combo.is-sheet .cg-combo__top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px 0 18px;flex:0 0 auto}
.cg-combo__title{margin:0;font-family:var(--head,inherit);font-size:20px;font-weight:800;letter-spacing:-.01em;color:var(--ink,#121A2B);outline:none}
.cg-combo__title:focus-visible{text-decoration:underline;text-underline-offset:4px}
.cg-combo__close{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:0;border-radius:12px;background:transparent;color:var(--ink,#121A2B);cursor:pointer}
.cg-combo__close:focus-visible{outline:3px solid var(--blue,#2251A3);outline-offset:-3px}
.cg-combo.is-sheet .cg-combo__head{flex:0 0 auto;padding:10px 14px 12px}
.cg-combo.is-sheet .cg-combo__search input{height:48px;font-size:16px}
.cg-combo.is-sheet .cg-combo__list{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;padding:6px 8px calc(16px + env(safe-area-inset-bottom,0))}
.cg-combo.is-sheet .cg-combo__opt{min-height:52px;padding:12px;font-size:16px}
.cg-combo.is-sheet .cg-combo__group{padding:16px 12px 6px}
html.cg-scroll-lock,html.cg-scroll-lock body{overflow:hidden}

/* Directory empty states */
.cg-empty__actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}

@media (prefers-reduced-motion:no-preference){
	.cg-combo.is-sheet{animation:cgSheetIn .18s ease-out}
	@keyframes cgSheetIn{from{transform:translateY(16px);opacity:.6}to{transform:none;opacity:1}}
}
