/* Add-listing chooser + forms (page /post/...). Brand: orange #F26B1D with charcoal text, charcoal #1F2328, off-white #F4F1EA. */
/* chooser: hide the theme's own (CSS-hidden, blank) type chooser so no empty gap is left above the cards */
body.dg-chooser .elementor-widget-case27-add-listing-widget, body.dg-chooser .i-section.choose-type { display: none !important; }
body.dg-chooser .elementor-element .elementor-widget-container:empty { display: none; }
/* no dimming of the sections you are not in */
.form-section, .form-section-wrapper .form-section { opacity: 1 !important; }
.form-section-wrapper .form-section .element, .form-section:not(.active) .element { opacity: 1 !important; }
/* required marker: orange asterisk on the label of every required field */
.form-group:has(> .field.required-field) > .field-head label::after, .form-group:has(> .field.required-field) > .field-head .label-text::after { content: " *"; color: #F26B1D; font-weight: 800; }
.dg-req-legend { margin: 0 0 14px; font-size: 13px; color: #5a6068; text-align: center }
.dg-req-legend b { color: #F26B1D; font-size: 15px }
/* location picker map: taller, one zoom control, layer toggle not on top of it */
.location-field-wrapper .c27-custom-map.picker, .location-field-wrapper .location-picker-custom-map { height: 340px !important; min-height: 340px; }
.location-field-wrapper .leaflet-control-zoom ~ .leaflet-control-zoom { display: none !important; }
.location-field-wrapper .leaflet-top.leaflet-right .dg-layer-ctl { margin: 10px 10px 0 0 !important; }
/* purple -> brand (lock icon, coordinate link) */
.lock-pin label, .lock-pin label i, .enter-coordinates-toggle span, .enter-coordinates-toggle { color: #1F2328 !important; }
.enter-coordinates-toggle span { text-decoration: underline; text-decoration-color: #F26B1D; text-underline-offset: 3px; cursor: pointer; }
.lock-pin input:checked ~ label i, .lock-pin label:hover i { color: #F26B1D !important; }
/* warnings */
.dg-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: 6px; font-size: 13px; line-height: 1.4; border: 1px solid #F26B1D; background: #fff3ea; color: #1F2328 }
.dg-warn.dg-block { border-color: #b3261e; background: #fdecea }
.dg-warn strong { color: #b3261e }
/* The theme styles every <button> inside forms as a 36px grey circle; keep the Map/Satellite toggle a pill like on the explore map. */
.location-field-wrapper .dg-layer-ctl { display: flex !important; width: auto !important; height: auto !important; }
html body .location-field-wrapper .leaflet-control.dg-layer-ctl button, html body form .location-field-wrapper .dg-layer-ctl button { min-width: 0 !important; max-width: none !important; width: auto !important; height: auto !important; min-height: 32px; padding: 7px 12px !important; border-radius: 0 !important; background: transparent !important; color: #F4F1EA !important; border: 0 !important; box-shadow: none !important; font-size: 13px; line-height: 1; }
.location-field-wrapper .dg-layer-ctl button.on { background: #F26B1D !important; color: #1F2328 !important; }
html body form .location-field-wrapper .leaflet-control.dg-layer-ctl button.on { background: #F26B1D !important; color: #1F2328 !important; }

/* Contact email/phone are set server-side to the DIRTGRID line; hide them on the post form. */
body.dg-postform .dg-hide-contact { display: none !important; }
