.court-search { flex: 1 1 100%; min-width: 0; width: 100%; }
.court-search-status { margin: 6px 0; font-size: .8rem; color: #52635c; }
.court-search-results { display: grid; gap: 6px; max-height: 360px; overflow-y: auto; }
.court-search-option { display: grid; text-align: left; gap: 3px; padding: 10px 12px; border: 1px solid #bed1c5; border-radius: 10px; background: #fff; color: #1b3326; min-height: 44px; min-width: 0; overflow-wrap: anywhere; cursor: pointer; font: inherit; }
.court-search-option span, .court-search-option small { font-size: .8rem; font-weight: normal; }
.court-search-notes { margin: 8px 0; font-size: .85rem; }
.court-search-notes summary { padding: 8px 0; cursor: pointer; }
.court-search-notes label { display: block; margin: 8px 0; }
.court-search-notes .form-input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; }
.court-location-link { appearance: none; border: 0; background: transparent; padding: 3px 0; font: inherit; color: #17653e; text-decoration: underline; text-underline-offset: 3px; text-align: inherit; cursor: pointer; }
/* Hero backgrounds include user-selected event colors: give the place its own readable surface. */
:is(.event-hero, .mt3-management__selected, .myt2-header) .court-location-link { color: #14532d; background: #fff; padding: 3px 6px; border-radius: 4px; text-decoration-thickness: 1px; }
:is(.event-hero, .mt3-management__selected, .myt2-header) .court-location-link:hover { text-decoration-thickness: 2px; }
.court-info-overlay { position: fixed; inset: 0; z-index: 10050; background: #10251a88; display: flex; align-items: center; justify-content: center; padding: 16px; }
.court-info-panel { background: #fff; color: #20352a; padding: 24px; border-radius: 18px; width: min(100%, 520px); max-height: 85dvh; overflow-y: auto; box-sizing: border-box; box-shadow: 0 12px 48px #0003; }
.court-info-panel h2 { margin: 0 0 16px; font-size: 1.2rem; }
.court-info-panel p { font-size: .9rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.court-info-links { display: grid; gap: 12px; margin: 20px 0; }
.court-info-links a { color: #17653e; overflow-wrap: anywhere; }
.court-info-search { margin: 16px 0; }
.court-info-search label { display: block; font-size: .9rem; }
.court-info-search input { display: block; width: 100%; min-height: 44px; box-sizing: border-box; margin-top: 6px; padding: 8px; border: 1px solid #bed1c5; border-radius: 8px; font: inherit; }
.court-info-search button, .court-search-map { min-height: 44px; margin-top: 8px; padding: 8px 14px; border: 1px solid #17653e; border-radius: 8px; background: #fff; color: #17653e; font: inherit; cursor: pointer; }
.court-info-search button:disabled { opacity: .55; cursor: default; }
.court-info-map { display: block; width: 100%; min-width: 200px; height: 320px; min-height: 200px; border: 0; border-radius: 8px; margin: 12px 0 20px; }
.court-info-close { min-height: 44px; width: 100%; background: #1c6540; color: #fff; border: 0; border-radius: 10px; font: inherit; cursor: pointer; }
.court-search button:focus-visible, .court-location-link:focus-visible, .court-info-panel :focus-visible { outline: 3px solid #2378ac; outline-offset: 3px; }
:is(.event-hero, .mt3-management__selected, .myt2-header) .court-location-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 2px #14532d; }

.court-search-free { display: block; min-height: 44px; width: 100%; margin: 8px 0; padding: 10px 14px; border: 1px solid #17653e; border-radius: 8px; background: #eaf5ed; color: #14532d; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.court-search-free[hidden] { display: none; }
.court-map-link-editor { margin: 12px 0; }
.court-map-link-editor label { display: block; font-size: .9rem; }
.court-map-link-editor input { display: block; width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; margin-top: 6px; }
.court-map-link-editor p { font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }

.court-selected-place { padding: 12px; border: 1px solid #bed1c5; border-radius: 10px; background: #f1f7f3; color: #20352a; overflow-wrap: anywhere; }
.court-selected-place[hidden] { display: none; }
.court-selected-place > .court-location-link { display: block; min-height: 44px; max-width: 100%; }
input.court-place-input-hidden { display: none !important; }
