/* Scoped styles only. Native header, listing cards and provincial filters are not altered. */
.dn-picker,.dn-view,.dn-listing-map{box-sizing:border-box;min-width:0;max-width:100%}
.dn-picker{width:100%;margin-block:16px 24px;color:inherit;text-align:right}
.dn-label{display:block;font-weight:700;font-size:16px;margin-block-end:10px}
.dn-help{font-size:13px;line-height:1.9;color:#62666d;margin:7px 0 12px}
.dn-address,.dn-manual input{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid #d4d7dd;border-radius:8px;background:#fff;color:#242424;font-family:inherit;min-height:46px}
.dn-address:focus,.dn-manual input:focus{outline:2px solid #a62626;outline-offset:2px}
.dn-address.dn-invalid{border-color:#a62626}
.dn-canvas{position:relative;box-sizing:border-box;min-height:280px;max-width:100%;width:100%;border:1px solid #e0e0e0;border-radius:10px;overflow:hidden;background:#f5f5f5;direction:ltr}
.dn-canvas canvas{outline-offset:-3px}
.dn-status{font-size:13px;line-height:1.8;margin:10px 0;min-height:24px;color:#52565d;text-align:right;direction:rtl}
.dn-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.dn-button{appearance:none;min-height:40px;border:1px solid #c9cdd3!important;border-radius:8px;padding:8px 14px!important;background:#fff!important;color:#333!important;font-family:inherit;font-size:13px;line-height:1.5;cursor:pointer;box-shadow:none!important;text-transform:none}
.dn-button:hover{border-color:#a62626!important;color:#a62626!important}
.dn-button:focus-visible,.dn-manual summary:focus-visible{outline:2px solid #a62626;outline-offset:3px}
.dn-button[hidden]{display:none!important}
.dn-picker .dn-button.dn-locate{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 48px;width:48px;height:48px;min-width:48px;min-height:48px;padding:9px!important;border-color:#eceef2!important;border-radius:10px;background:#f5f5f7!important;color:#3464ce!important;line-height:1;vertical-align:middle}
.dn-picker .dn-button.dn-locate:hover{background:#edf1fb!important;border-color:#3464ce!important}
.dn-picker .dn-button.dn-locate:focus-visible{outline:2px solid #3464ce;outline-offset:3px}
.dn-locate-icon{display:block;flex:none;width:28px;height:28px;pointer-events:none}
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-picker .dn-button.dn-locate{background:#1a2539!important;color:#8eb1ff!important;border-color:#66748a!important}
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-picker .dn-button.dn-locate:hover{background:#24334c!important;border-color:#8eb1ff!important}
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-picker .dn-button.dn-locate:focus-visible{outline-color:#8eb1ff}
.dn-coordinates{font-family:ui-monospace,monospace;font-size:12px;color:#61656b;text-align:right;margin:8px 0}
.dn-error{font-size:13px;line-height:1.8;color:#a62626;margin:8px 0}
.dn-manual{margin-top:12px;border-top:1px solid #e5e5e5;padding-top:10px}
.dn-manual summary{cursor:pointer;font-size:13px;padding:5px 0}
.dn-manual-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.dn-manual-grid label{display:block;font-size:12px;line-height:1.8}
.dn-manual input{margin-top:5px;font-family:ui-monospace,monospace}
.dn-view{direction:rtl}
.dn-view .dn-retry{margin-bottom:12px}
.dn-modes,.dn-methods{border:1px solid #e4e7eb;border-radius:10px;padding:14px;margin:14px 0}
.dn-modes legend,.dn-methods legend{padding:0 8px;font-size:14px;font-weight:700}
.dn-modes label,.dn-methods label{display:block;line-height:1.9;margin:8px 0;font-size:13px;cursor:pointer}
.dn-modes input,.dn-methods input{margin-inline-end:7px;accent-color:#a62626}
.dn-confirm{background:#a62626!important;color:white!important;border-color:#a62626!important}
.dn-confirm:hover{color:white!important;background:#8a2020!important}
.dn-button:disabled{opacity:.55;cursor:not-allowed}
.dn-confirmed{padding:12px 14px;margin-top:12px;border:1px solid #bbd8cb;background:#f4faf6;border-radius:10px;line-height:1.9}
.dn-confirmed p{margin:5px 0;font-size:13px}
.dn-precision{padding:9px 12px;background:#faf5f3;border-radius:8px;font-size:13px;line-height:1.9}
.dn-canvas .maplibregl-ctrl-attrib,.dn-canvas .maplibregl-ctrl-logo{font-size:10px;direction:ltr}
@media(max-width:600px){.dn-canvas{height:310px!important}.dn-manual-grid{grid-template-columns:1fr}.dn-help{font-size:12px}.dn-label{font-size:15px}}

/* Manual entry remains accessible when GPS, Reverse, or map rendering fails. */
.dn-methods label{min-height:44px}
.dn-manual{margin:0 0 16px}.dn-manual>label{display:block;font-weight:600;margin-bottom:8px}
.dn-manual textarea{display:block;box-sizing:border-box;width:100%;min-height:108px;border:1px solid #8c929b;border-radius:8px;padding:12px;font:inherit;line-height:1.8;resize:vertical;color:#202630;background:#fff;direction:rtl}
.dn-manual textarea:focus{outline:2px solid #3464ce;outline-offset:2px}
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-manual textarea{color:#f3f4f6;background:#1a2539;border-color:#78869d}
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-manual textarea::placeholder{color:#acb8cb}

/* Keep location confirmation and validation readable in the requested night theme. */
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-picker .dn-confirmed{background:#162a23;color:#d9eee2;border-color:#466a56}
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-picker .dn-confirmed :is(p,strong){color:inherit}
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-picker .dn-error{color:#ffb4ad}

/* Both location choice groups share one box, including explicit night contrast. */
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-picker :is(.dn-modes,.dn-methods){background:#1a202a!important;color:#e7eaf0!important;border-color:#3a4452!important}
.dn-picker .dn-label .dn-required{color:#b93832!important;-webkit-text-fill-color:#b93832!important}
html[data-dentivar-theme="dark"] body:not(.wp-admin) .dn-picker .dn-label .dn-required{color:#ffb4ad!important;-webkit-text-fill-color:#ffb4ad!important}
