/* Advanced search - FSOL (version 1). Loaded after team-cards.css and search-cards1.css. */
.adv-form{ display: grid; gap: 1.5rem; }
.adv-fields{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.adv-input{
  width: 100%; min-height: 46px; box-sizing: border-box;
  padding: .5rem .8rem;
  border: 2px solid #529174; border-radius: 10px;
  background: #fff; color: #345C4A; font-weight: 700;
  direction: ltr; text-align: left;
}
.adv-input::placeholder{ color: #8aa596; font-weight: 600; }
.adv-input:focus{ outline: none; border-color: #3e6a55; box-shadow: 0 0 0 .2rem rgba(82,145,116,.28); }
.adv-input.is-bad{ border-color: #c00000; }
.adv-hint{ margin: .75rem 0 0; font-size: .9rem; color: var(--tm-text, #2c3a32); }
.adv-actions{ display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.adv-actions .adv-spacer{ flex: 1; }
.adv-msg{ margin: 0; padding: .7rem 1rem; border-radius: 12px; background: #fde8e8; color: #8a1c1c; font-weight: 700; }
.adv-msg[hidden]{ display: none; }

/* criteria shown above the results */
.adv-crit{ margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--tm-card, #e8f2cb); border-radius: 16px; border-inline-start: 6px solid var(--tm-green, #3e6a55); box-shadow: 0 8px 22px rgba(38,70,54,.14); }
.adv-crit h3{ margin: 0 0 .5rem; font-size: 1.05rem; color: var(--tm-green-dark, #355e4a); }
.adv-crit table{ border-collapse: collapse; color: var(--tm-text, #2c3a32); }
.adv-crit th, .adv-crit td{ padding: .25rem .9rem .25rem 0; text-align: start; vertical-align: top; }
.adv-page[dir="rtl"] .adv-crit th, .adv-page[dir="rtl"] .adv-crit td{ padding: .25rem 0 .25rem .9rem; }
.adv-crit th{ color: var(--tm-green-dark, #355e4a); white-space: nowrap; }
.adv-link{ border: 0; background: none; padding: 0; margin: 0 .25rem; color: #1b5e8a; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.adv-link:hover{ color: #0d3c5a; }

/* details window (village / location) */
.adv-modal{ position: fixed; inset: 0; z-index: 3100; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(20,38,30,.72); }
.adv-modal.is-open{ display: flex; }
.adv-modal-box{ width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; background: var(--tm-card, #e8f2cb); border-radius: 16px; border-inline-start: 6px solid var(--tm-green, #3e6a55); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.adv-modal-head{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; background: var(--tm-green, #3e6a55); color: #fff; }
.adv-modal-head h3{ margin: 0; font-size: 1.15rem; }
.adv-modal-x{ border: 0; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.adv-modal-body{ padding: 1.1rem 1.25rem 1.4rem; }
.adv-modal-body p{ margin: 0 0 .55rem; color: var(--tm-text, #2c3a32); }
.adv-modal-body b{ color: var(--tm-green-dark, #355e4a); }
.adv-modal-body bdi{ unicode-bidi: isolate; }

/* criteria inside the print sheet */
.sr-sheet .adv-sheet-crit{ margin: 0 0 12px; border-collapse: collapse; font-size: 12px; }
.sr-sheet .adv-sheet-crit th, .sr-sheet .adv-sheet-crit td{ border: 0; padding: 1px 14px 1px 0; text-align: start; vertical-align: top; }
.sr-sheet[dir="rtl"] .adv-sheet-crit th, .sr-sheet[dir="rtl"] .adv-sheet-crit td{ padding: 1px 0 1px 14px; }
.sr-sheet .adv-sheet-crit th{ font-weight: 700; white-space: nowrap; }
