/* Lane d-listings: listing index pages, unusual listing pages, the photo viewer, the two landing pages, and the equipment catalog. */

body .gl-d-moved { display: none !important; }

/* ---------- Status on listing cards ---------- */

/* One label per card, in sentence case, in the same colors as the status beside a listing's breadcrumb. */
body .rem-property-box .featured-text.purpose-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  bottom: auto;
  z-index: 3;
  margin: 0;
  padding: 3px 10px;
  border: 0 !important;
  border-radius: var(--gl-radius);
  background: var(--gl-navy) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none;
  transform: none;
}
body .rem-property-box .purpose-badge.sold { background: #3f4656 !important; }
body .rem-property-box .purpose-badge.sale-pending { background: #7f6212 !important; }

/* The listing page names its status beside the breadcrumb, so the plugin's corner ribbon on the photos repeats it. */
.single-rem_property .single-property-page-ribbon { display: none !important; }

/* ---------- Listing index pages ---------- */

/* A sidebar column of a search box, recent listings, a quote, and social links sat under the cards. */
:is(.page-id-19574, .page-id-20116, .page-id-19592, .page-id-19594) .page-right-sidebar > .row > .large-3.col { display: none; }

/* The plugin's own sort menu and list or grid buttons. The toolbar above the cards sorts, and the cards stay a grid. */
:is(.page-id-19574, .page-id-20116, .page-id-19592, .page-id-19594, .page-id-18945, .page-id-18944) form:has(> .rem-topbar) { display: none; }

/* Search results: the results get the whole width, like the other listing pages. Its sidebar repeated the footer's sign-up form. */
.page-id-18945 #main .row > .col.large-3 { display: none; }
.page-id-18945 #main .row > .col.large-9 { flex-basis: 100%; max-width: 100%; }
.page-id-18944 #main .row > .col { flex-basis: 100%; max-width: 100%; }

/* Search results arrive in a masonry layout that places each card by script, which stacked them in one column. */
.rem-search-results-wrap .row.masonry { height: auto !important; }
.rem-search-results-wrap .row.masonry > .masonry-brick { position: static !important; left: auto !important; top: auto !important; }

/* The search form on the results page: one row, and the Reset and Filter buttons side by side instead of on top of each other. */
.page-id-18945 .rem-search-1 .search-options { padding: 14px !important; background: #fff; }
.page-id-18945 .rem-search-1 .searcher { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.page-id-18945 .rem-search-1 .searcher > .row { flex: 1 1 460px; grid-template-columns: 2fr 1fr 1fr !important; }
.page-id-18945 .rem-search-1 .searcher > .row > [class*="col-"] { height: auto !important; }
.page-id-18945 .rem-search-1 .searcher > .footer {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  position: static !important;
}
.page-id-18945 .rem-search-1 .searcher > .footer .btn { width: auto !important; min-width: 110px; margin: 0 !important; text-transform: none !important; letter-spacing: 0; }
.page-id-18945 .rem-search-1 .searcher > .footer button[type="reset"] { background: #fff !important; color: var(--gl-navy) !important; }
.page-id-18944 #main h4 { margin: 0 0 10px; font-size: 1.25rem; }
.page-id-18944 .rem-search-form-wrap .search-options { padding: 14px !important; }

/* Page numbers under search results. */
/* The plugin's Bootstrap prints after this file and sets .pagination to inline-block, so the tag adds weight. */
.rem-pagination-wrap ul.pagination, .rem-load-more-wrap ul.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 8px; padding: 0; border-radius: 0; }
.rem-pagination-wrap .pagination > li, .rem-load-more-wrap .pagination > li { margin: 0; }
/* Only the links and the current page: the list around them carries the page-numbers class too, which drew a
   border around the whole row and padded it until the last number wrapped onto a line of its own. */
.rem-pagination-wrap :is(a, span).page-numbers, .rem-load-more-wrap :is(a, span).page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px !important;
  border: 1px solid var(--gl-rule) !important;
  border-radius: var(--gl-radius) !important;
  background: #fff !important;
  color: var(--gl-navy) !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
/* The plugin prints its own color for the current page, #446084, inline and !important, so this selector is longer. */
.rem-pagination-wrap .page-numbers.current, .rem-load-more-wrap .page-numbers.current,
.rem-pagination-wrap ul.pagination > li > .page-numbers.current, .rem-load-more-wrap ul.pagination > li > .page-numbers.current { background: var(--gl-navy) !important; border-color: var(--gl-navy) !important; color: #fff !important; }
.rem-pagination-wrap .page-numbers.dots, .rem-load-more-wrap .page-numbers.dots { border-color: transparent !important; }
.rem-pagination-wrap a.page-numbers:hover, .rem-load-more-wrap a.page-numbers:hover { background: var(--gl-wash) !important; }

/* ---------- Listing index pages: cards or table ---------- */

/* enhance.js builds the switch and the table, so a page without its script shows the cards as before. */
body .gl-d-row { display: none !important; }
/* The ID outweighs the grid's own display rule, which is also !important. */
#main .gl-view-off { display: none !important; }

body .gl-view-switch { display: inline-flex; margin: 0; }
body .gl-view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--gl-navy);
  border-radius: 0;
  background: #fff;
  color: var(--gl-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--gl-fast), color var(--gl-fast);
}
body .gl-view-switch button + button { margin-left: -1px; }
body .gl-view-switch button:first-child { border-radius: var(--gl-radius) 0 0 var(--gl-radius); }
body .gl-view-switch button:last-child { border-radius: 0 var(--gl-radius) var(--gl-radius) 0; }
body .gl-view-switch button[aria-pressed="true"] { background: var(--gl-navy); color: #fff; }
body .gl-view-switch button[aria-pressed="false"]:hover { background: var(--gl-wash); }
/* The ring draws over the neighbor button instead of under it. */
body .gl-view-switch button:focus-visible { position: relative; z-index: 1; }
body .gl-view-switch i { flex: none; font-size: 16px; line-height: 1; }

@media (max-width: 549px) {
  /* The toolbar on a phone: the count, the sort menu, the view switch across the width, and then the map and alerts
     links on one row. A long link label wraps inside its own space instead of dropping alone onto a line. */
  body .gl-view-switch { flex: 1 1 100%; }
  body .gl-view-switch button { flex: 1 1 0; justify-content: center; }
  body .gl-index-links { flex: 1 1 100%; flex-wrap: nowrap; }
  body .gl-index-link { flex: 0 1 auto; min-width: 0; line-height: 1.25; }
  body .gl-index-link:first-child { flex: none; }
}

/* The table scrolls sideways inside its own box when it's wider than the screen, so the page never does. enhance.js
   adds gl-table-scrolls then, and fades the edge where more columns wait (restyle.css, gl-more-end). */
body .gl-table-wrap { max-width: 100%; margin: 0 0 8px; }
body .gl-table-wrap.gl-table-scrolls { overflow-x: auto; overscroll-behavior-x: contain; }
body .gl-table-wrap[hidden] { display: none !important; }
/* A table that fits keeps its heading row in view under the site header, which is 70 px tall once the page scrolls.
   A border in a collapsed table stays put while the cell sticks, so the heading's rule is a shadow. */
body .gl-table-wrap:not(.gl-table-scrolls) .gl-table thead th {
  position: sticky;
  top: 70px;
  z-index: 2;
  border-bottom: 0;
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--gl-navy);
}
body .gl-table { width: 100%; margin: 0; border-collapse: collapse; border-spacing: 0; font-size: 16px; line-height: 1.35; font-variant-numeric: tabular-nums lining-nums; }
body .gl-table th, body .gl-table td {
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--gl-rule);
  color: var(--gl-ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  vertical-align: top;
}
body .gl-table .gl-num { text-align: right; white-space: nowrap; }
body .gl-table thead th { padding: 0; border-bottom: 1px solid var(--gl-navy); vertical-align: bottom; white-space: nowrap; }
body .gl-table thead button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--gl-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
body .gl-table thead .gl-num button { justify-content: flex-end; text-align: right; }
body .gl-table thead button:hover { color: var(--gl-navy); background: var(--gl-wash); }
body .gl-table thead th[aria-sort] button { color: var(--gl-navy); }
body .gl-table thead i { flex: none; font-size: 13px; color: var(--gl-field); }
body .gl-table thead th[aria-sort] i { color: var(--gl-navy); }
body .gl-table tbody th { min-width: 13em; font-weight: 600; }
body .gl-table tbody th a { color: var(--gl-navy); text-decoration: none; }
body .gl-table tbody tr { cursor: pointer; transition: background-color var(--gl-fast); }
body .gl-table tbody tr:hover { background: var(--gl-wash); }
body .gl-table tbody tr:hover th a { text-decoration: underline; text-underline-offset: 3px; }
body .gl-table .gl-table-status { display: none; font-size: 14px; font-weight: 600; color: var(--gl-muted); }
body .gl-table .gl-table-brief { display: none; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--gl-muted); }
/* The box clips anything outside it, so focus rings sit inside the heading buttons and links. */
body .gl-table-wrap :focus-visible { outline-offset: -3px; }
body .gl-table tbody th a:focus-visible { outline-offset: 1px; }
body .gl-table-wrap:focus-visible { outline-offset: 2px; }

/* ---------- County map ---------- */

/* enhance.js hides the map and its summary when the listings feed fails. The panel, with its link to the listings, takes the row. */
body .gl-map-band.gl-map-failed .gl-map-grid { grid-template-columns: minmax(0, 1fr); }

/* The panel's button that shows the rest of a long list. Wide screens keep the list scrolling inside the panel, so
   they don't need it. The selector outweighs the site's display: flex !important on .gl-btn. */
body .gl-map-panel .gl-panel-more { display: none !important; }
@media (max-width: 849px) {
  /* A list that scrolled inside the panel caught every swipe that started on it, so on phones and tablets it grows
     with the page. enhance.js shows the first six, and the button shows the rest. */
  body .gl-panel-list { max-height: none; overflow: visible; overscroll-behavior: auto; }
  body .gl-panel-list.gl-panel-list--clip > :nth-child(n+7) { display: none; }
  body .gl-map-panel .gl-panel-more { display: flex !important; width: 100%; margin: 10px 0 0; text-transform: none; letter-spacing: 0; cursor: pointer; }
}

/* ---------- Pages of listings: links between pages ---------- */

@media (max-width: 549px) {
  /* On a narrow phone the arrows wrapped onto a line of their own, one small square alone under the numbers.
     d-listings.js marks them, and they always take their own row as wide buttons that name where they go. */
  .rem-pagination-wrap .pagination::after { content: ""; flex-basis: 100%; order: 1; height: 0; }
  .rem-pagination-wrap .pagination > li.gl-d-page-step { order: 2; flex: 1 1 0; max-width: 200px; }
  .rem-pagination-wrap .pagination > li.gl-d-page-step .page-numbers { width: 100%; gap: 8px; }
  .rem-pagination-wrap .pagination .page-numbers.next::before { content: "Next"; }
  .rem-pagination-wrap .pagination .page-numbers.prev::after { content: "Previous"; }
}

/* After a search on Current Listings, the plugin's results heading is the count. */
.searched-properties .filter-title h2 { margin: 0 0 14px; font-family: var(--gl-sans) !important; font-size: 17px !important; font-weight: 600; color: var(--gl-ink); }
.searched-properties .filter-title .rem-results-sort { display: none; }

/* A search with no results. */
:is(.rem-search-results-wrap, .searched-properties) .alert {
  margin: 8px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--gl-rule);
  border-radius: var(--gl-radius);
  background: var(--gl-wash) !important;
  color: var(--gl-ink) !important;
  font-size: 17px !important;
  box-shadow: none;
}
:is(.rem-search-results-wrap, .searched-properties) .alert p, :is(.rem-search-results-wrap, .searched-properties) .alert span { margin: 0 !important; font-size: 17px !important; color: var(--gl-ink) !important; }
:is(.rem-search-results-wrap, .searched-properties) .alert .fa-info { display: none; }
:is(.rem-search-results-wrap, .searched-properties) .alert a { color: var(--gl-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* "Real Estate Listings" is an empty page. It lists the listing pages until someone redirects it. */
body .gl-d-listing-links ul { margin: 8px 0 32px; padding: 0; list-style: none; }
body .gl-d-listing-links li { margin: 0; border-bottom: 1px solid var(--gl-rule); }
body .gl-d-listing-links a { display: flex; align-items: center; min-height: 48px; font-size: 18px; font-weight: 600; color: var(--gl-navy); text-decoration: none; }
body .gl-d-listing-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Listing pages ---------- */

/* The plugin's Details block: a plain list of label and value with rules, in place of a box around every field. */
.single-rem_property .wrap-general_settings .details .row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0 !important; }
.single-rem_property .wrap-general_settings .details .row::before, .single-rem_property .wrap-general_settings .details .row::after { display: none; }
.single-rem_property .wrap-general_settings .details .row > [class*="col-"] { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; min-height: 0; }
.single-rem_property .wrap-general_settings .details.no-padding,
.single-rem_property .wrap-general_settings .detail.rem-field-value { margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.single-rem_property .wrap-general_settings .detail.rem-field-value { display: flex !important; justify-content: space-between; gap: 12px; padding: 9px 0 !important; border-bottom: 1px solid var(--gl-rule) !important; font-size: 16px !important; line-height: 1.4; }
.single-rem_property .wrap-general_settings .detail.rem-field-value > * { font-size: 16px !important; }
.single-rem_property .wrap-general_settings .rem-single-field-title { font-weight: 600; color: var(--gl-muted); }
.single-rem_property .wrap-general_settings .rem-single-field-sep { display: none; }
.single-rem_property .wrap-general_settings .rem-single-field-value { text-align: right; color: var(--gl-ink); }

/* Empty paragraphs and headings that staff left as spacers. d-listings.js marks them, because most hold &nbsp; and
   so don't match :empty. */
.single-rem_property .description .gl-d-empty { display: none !important; }

/* Plain links in the write-up took Bootstrap's blue. They take the site's link color. Links that set their own
   class or inline style, such as buttons, keep their look. */
.single-rem_property .description a:not([class]):not([style]) { color: var(--gl-navy); }
.single-rem_property .description a:not([class]):not([style]):hover { color: var(--gl-navy-hover); }
/* A link that is the whole of a heading, such as "Click here for full property description!", is underlined like
   links in running text. */
.single-rem_property .description :is(h2, h3, h4, h5, h6) > a:not([class]):not([style]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* Links in write-up tables were 20 px tall. The padding gives a 44 px tap area, and the negative margin keeps the
   row as tall as before. */
.single-rem_property .description td > a { display: inline-block; padding-block: 11px; margin-block: -11px; }

/* On a sold listing, "This property has sold." sits beside the breadcrumb and wraps onto balanced lines. */
body .gl-lp-top > .gl-sold-note { text-wrap: balance; }

/* Older write-ups centered their headings, which were H1s until the lane's PHP part made them H2s. */
.single-rem_property .description h2[data-gl-was-h1] { text-align: left !important; margin: 26px 0 12px !important; }

/* Small capitals headings in older write-ups. */
.single-rem_property .description h6 { font-size: 16px !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--gl-ink); }

/* Status words that staff set in red, and links in a bright blue. */
:is(.single-rem_property .description, .page-id-27775 #main, .page-id-28520 #main) .gl-d-pending { color: #7f6212 !important; }
:is(.single-rem_property .description, .page-id-27775 #main, .page-id-28520 #main) .gl-d-sold { color: #3f4656 !important; }
:is(.single-rem_property .description, .page-id-27775 #main, .page-id-28520 #main) .gl-d-alert { color: var(--gl-navy) !important; }
.single-rem_property .description p.gl-d-alert { font-family: var(--gl-serif); font-size: 1.45rem !important; font-weight: 600 !important; }
:is(.single-rem_property .description, .page-id-27775 #main, .page-id-28520 #main) a[style*="#2b6fcf" i] { color: var(--gl-navy) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- Photo grid ---------- */

/* A listing page draws its own gallery (d-listings.php, restyle.css). The plugin's grid stays in the page, hidden, so
   its full-screen viewer still opens, and none of its photos load with the page. */
.single-rem_property .gl-gal-viewer .grid-custom > img { display: none; }

/* ---------- Photo viewer ---------- */

body .imgs-grid-modal { background-color: var(--gl-navy-deep) !important; }
body .imgs-grid-modal .modal-close { top: 8px; right: 8px; width: 48px; height: 48px; background: none !important; border-radius: var(--gl-radius); }
body .imgs-grid-modal .modal-close::before, body .imgs-grid-modal .modal-close::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}
body .imgs-grid-modal .modal-close::after { transform: rotate(-45deg); }
body .imgs-grid-modal .modal-close:hover, body .imgs-grid-modal .modal-close:focus-visible { background: rgba(255, 255, 255, .12) !important; }
body .imgs-grid-modal .modal-inner .modal-control { width: 56px; }
body .imgs-grid-modal .modal-indicator ul { display: none; }
body .imgs-grid-modal .gl-d-count { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; color: #fff; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
body .imgs-grid-modal .modal-caption:empty { display: none; }
/* The photos and the viewer's controls take keyboard focus. The grid clips its edges, so the ring sits inside, on a
   layer over the photo: an outline on the tile itself painted under the photo. */
.single-rem_property .imgs-grid .imgs-grid-image:focus-visible { outline: none !important; }
.single-rem_property .imgs-grid .imgs-grid-image:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  box-shadow: inset 0 0 0 3px var(--gl-navy), inset 0 0 0 6px #fff, inset 0 0 0 9px var(--gl-navy);
  pointer-events: none;
}
/* The plugin's dropdowns hide their select under a label, and mark the box with .focus while the select has focus. */
.rem-search-form-wrap .dropdown.focus { outline: 3px solid #5b7bd5; outline-offset: 2px; }
body .imgs-grid-modal :focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* ---------- Write-up blocks on the landing pages and in listing write-ups ---------- */

/* Rounded boxes with soft shadows around every block. Thin rules and whitespace do this job in the design. */
:is(.page-id-27775, .page-id-28520) #main div[style*="border-radius: 16px"] { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
:is(.page-id-27775, .page-id-28520) #main section[style] { margin-bottom: 44px !important; }
:is(.page-id-27775, .page-id-28520) #main h2[style] {
  margin: 0 0 12px !important;
  font-family: var(--gl-serif) !important;
  font-size: 1.9rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--gl-navy) !important;
  text-align: left !important;
}
:is(.page-id-27775, .page-id-28520) #main p[style*="font-size: 18px"] { font-family: var(--gl-serif); font-size: 1.45rem !important; font-weight: 600 !important; color: var(--gl-navy) !important; line-height: 1.3; }
:is(.page-id-27775, .page-id-28520) #main [style*="font-size: 14px"], :is(.page-id-27775, .page-id-28520) #main [style*="font-size: 15px"][style*="#6b7280" i] { font-size: 16px !important; color: var(--gl-muted) !important; }
:is(.page-id-27775, .page-id-28520) #main img[style*="border-radius"] { border-radius: var(--gl-radius) !important; }

/* The monthly rent in a large navy pill. The design sets figures in the serif, without a box. */
:is(.page-id-28520 #main, .single-rem_property .description) span[style*="border-radius: 12px"] {
  display: block !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--gl-navy) !important;
  font-family: var(--gl-serif) !important;
  font-size: 2.35rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
/* The rent block, on the landing page and in any listing write-up that uses it, such as the For Lease farmhouse. */
:is(.page-id-28520 #main, .single-rem_property .description) div[style*="text-align: center; margin: 0 0 34px"] { text-align: left !important; }
:is(.page-id-28520 #main, .single-rem_property .description) div[style*="text-align: center; margin: 0 0 34px"] > div { margin-top: 2px !important; font-size: 17px !important; color: var(--gl-muted) !important; }
/* Its "Apply Online" button sat centered under the left-aligned text. */
:is(.page-id-28520 #main, .single-rem_property .description) div[style*="text-align: center"]:has(> a.gl-s-bg:only-child) { text-align: left !important; }
/* A colored bar on one side of a note. */
.page-id-28520 #main p[style*="border-left"] { border-left: 0 !important; border-radius: var(--gl-radius) !important; background: var(--gl-wash) !important; }

/* The rental application form. It sends to Mac Chilton, so it is styled here and never submitted in testing. */
.page-id-28520 .wpcf7 label, .page-id-28520 .wpcf7 p { font-size: 16px; color: var(--gl-ink); }
.page-id-28520 .wpcf7 .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 400; }
.page-id-28520 .wpcf7 input[type="radio"], .page-id-28520 .wpcf7 input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }
.page-id-28520 .wpcf7 input[type="submit"] { min-height: 48px; padding: 0 28px; font-size: 17px; }
.page-id-28520 #rental-application .wpcf7 h3 { font-family: var(--gl-serif) !important; color: var(--gl-navy) !important; }

/* Tables: no filled header bar, and headings in sentence case at a readable size. */
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) table thead tr { background: none !important; color: inherit !important; }
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) table th {
  padding: 8px 8px 8px 0 !important;
  border-bottom: 1px solid var(--gl-navy) !important;
  background: none !important;
  color: var(--gl-muted) !important;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
:is(.page-id-27775, .page-id-28520) #main table td { font-size: 16px !important; color: var(--gl-ink); border-bottom: 1px solid var(--gl-rule); }
:is(.page-id-27775, .page-id-28520) #main table tr { border-bottom: 0 !important; }
:is(.page-id-27775, .page-id-28520) #main table td:first-child, :is(.page-id-27775, .page-id-28520) #main table th:first-child { padding-left: 0 !important; }

/* Agent cards: a navy gradient box with 12 and 13 px text. They become a plain card like the listing page's agent rail. */
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) div[style*="linear-gradient"] {
  align-items: flex-start !important;
  padding: 16px !important;
  border: 1px solid var(--gl-rule) !important;
  border-radius: var(--gl-radius) !important;
  background: #fff !important;
  color: var(--gl-ink) !important;
  box-shadow: none !important;
}
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) div[style*="linear-gradient"] p { margin: 0 !important; }
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) div[style*="linear-gradient"] img { width: 64px !important; height: 64px !important; border: 0 !important; border-radius: var(--gl-radius) !important; }
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) div[style*="linear-gradient"] [style*="#ffffff" i],
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) div[style*="linear-gradient"] a { color: var(--gl-navy) !important; }
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) div[style*="linear-gradient"] [style*="font-size: 18px"] { font-size: 18px !important; font-family: var(--gl-serif); font-weight: 600 !important; }
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) div[style*="linear-gradient"] [style*="font-size: 13px"],
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) div[style*="linear-gradient"] [style*="font-size: 12px"] { font-size: 15px !important; color: var(--gl-muted) !important; line-height: 1.35 !important; }
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) a.gl-d-contact {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  font-size: 16px !important;
  font-weight: 600;
  color: var(--gl-navy) !important;
  text-decoration: none;
}
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) a.gl-d-contact:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(.page-id-27775, .page-id-28520, .single-rem_property .description) a.gl-d-contact i { width: 18px; margin-right: 8px; color: var(--gl-navy); font-size: 16px; text-align: center; }

/* ---------- Equipment catalog ---------- */

.post-type-archive-product .gl-d-shop-title { margin: 0 0 6px; }
/* The title bar above the catalog held only the hidden breadcrumb and the result count, which follows the H1 now. */
.post-type-archive-product .shop-page-title { display: none; }
.post-type-archive-product .gl-d-shop-count { margin: 0 0 20px; }
/* The filter plugin's empty list of selected terms kept its list margin, which pushed the H1 22 px lower than on other pages. */
.post-type-archive-product .shop-container > .wpc-custom-selected-terms .wpc-empty-chips-container { display: none; }
.post-type-archive-product .gl-d-shop-count .woocommerce-result-count { display: block !important; margin: 0; font-size: 16px; color: var(--gl-muted); }
/* The sidebar held only a "Follow us" box, which the footer also has, and on phones a Filter button that opened it. */
:is(.post-type-archive-product, .tax-product_cat) .category-page-row > .large-3 { display: none; }
:is(.post-type-archive-product, .tax-product_cat) .category-page-row > .large-9 { flex-basis: 100%; max-width: 100%; }
:is(.post-type-archive-product, .tax-product_cat) .category-filtering { display: none !important; }
/* Every item is in the one category, so its label in capitals above each name said nothing. */
.woocommerce .product-small p.category { display: none; }
.woocommerce .product-small .woocommerce-loop-product__title, .woocommerce .product-small .name { font-size: 17px !important; font-weight: 600; line-height: 1.3; color: var(--gl-navy); }
.woocommerce .product-small .box-text { font-size: 16px; line-height: 1.45; }
/* The title link was 22 px tall. The padding gives a 44 px tap area, and the negative margin keeps the card's layout. */
.woocommerce .product-small .woocommerce-loop-product__title a { display: inline-block; padding-block: 11px; margin-block: -11px; }
/* Page numbers: 44 px squares with the site's 4 px corners, like the blog's, in place of the theme's 36 px circles. */
.woocommerce-pagination .nav-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.woocommerce-pagination .nav-pagination > li { margin: 0; }
.woocommerce-pagination .nav-pagination > li > .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--gl-field);
  border-radius: var(--gl-radius);
  background: #fff;
  color: var(--gl-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--gl-fast), border-color var(--gl-fast);
}
.woocommerce-pagination .nav-pagination > li > a.page-number:hover { background: var(--gl-wash); border-color: var(--gl-navy); }
.woocommerce-pagination .nav-pagination > li > .page-number.current { background: var(--gl-navy); border-color: var(--gl-navy); color: #fff; }
.woocommerce .product-small .box-image { border-radius: var(--gl-radius); }
:is(.woocommerce, .woocommerce-page) .woocommerce-breadcrumb, :is(.woocommerce, .woocommerce-page) .woocommerce-breadcrumb a,
.single-product .woocommerce-tabs .tabs a, .single-product .product-footer .tabs a {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 16px !important;
}
.single-product .catalog-product-text .message-box-bg-overlay { background: var(--gl-wash) !important; }
.single-product .catalog-product-text img[alt="Phone Icon" i] { display: none; }
.single-product .catalog-product-text a.button, .single-product .catalog-product-text .button {
  border-color: var(--gl-navy) !important;
  color: var(--gl-navy) !important;
  background: #fff !important;
  min-height: 44px;
  font-size: 16px;
}
.single-product .catalog-product-text a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--gl-navy); }

/* ---------- Tablets and phones ---------- */

@media (max-width: 849px) {
  .single-rem_property .wrap-general_settings .details .row { grid-template-columns: minmax(0, 1fr); }
  .page-id-18945 .rem-search-1 .searcher > .row { grid-template-columns: minmax(0, 1fr) !important; }
  .page-id-18945 .rem-search-1 .searcher > .footer { flex: 1 1 100%; }
  .page-id-18945 .rem-search-1 .searcher > .footer .btn { flex: 1 1 0; }
}

@media (max-width: 640px) {
  /* The listings table on a phone: the listing, the price, and the CSR2. Under each name, a line gives the size and
     the price per acre or per space, because barns and homes have no acres, and a list that mixes statuses names each
     listing's status there too, in place of the status column. */
  body .gl-table .gl-cell-wide { display: none; }
  body .gl-table .gl-table-status, body .gl-table .gl-table-brief { display: block; }
  body .gl-table th, body .gl-table td { padding: 10px 8px; }
  body .gl-table thead th { padding: 0; }
  body .gl-table thead button { padding: 0 8px; gap: 4px; }
  body .gl-table tbody th { min-width: 0; padding-left: 0; }
  body .gl-table thead th:first-child button { padding-left: 0; }
  body .gl-table tr > :last-child { padding-right: 0; }
  body .gl-table thead tr > :last-child button { padding-right: 0; }
  /* Only the sorted column shows its arrow, so the columns fit a 320 px screen. */
  body .gl-table thead th:not([aria-sort]) i { display: none; }

  /* A table of labels and values with a long value in it (d-listings.js): short values stay beside their labels, and a
     long one goes under its label at full width. */
  body table.gl-d-pairs, body table.gl-d-pairs tbody { display: block; width: 100% !important; }
  body table.gl-d-pairs tr { display: flex; flex-wrap: wrap; }
  body table.gl-d-pairs td { display: block; }
  body table.gl-d-pairs td:first-child { flex: 0 0 40%; width: auto !important; }
  body table.gl-d-pairs td + td { flex: 1 1 0; min-width: 0; }
  body table.gl-d-pairs tr.gl-d-long > td { flex-basis: 100%; }
  body table.gl-d-pairs tr.gl-d-long > td:first-child { padding-bottom: 0 !important; border-bottom: 0 !important; }

  /* Wide tables in write-ups were cut off at the right edge. Each row becomes a short block. */
  :is(.page-id-27775, .page-id-28520, .single-rem_property .description) table[style*="min-width"] { min-width: 0 !important; }
  :is(.page-id-27775, .page-id-28520, .single-rem_property .description) td { white-space: normal !important; }
  body table.gl-d-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body table.gl-d-stack, body table.gl-d-stack tbody { display: block; width: 100% !important; }
  body table.gl-d-stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--gl-rule) !important; }
  body.single-rem_property .description table.gl-d-stack td, body #main table.gl-d-stack td {
    display: block;
    width: auto !important;
    padding: 1px 0 !important;
    border: 0 !important;
    text-align: left !important;
  }
  body table.gl-d-stack td:first-child { font-size: 17px !important; }
  body table.gl-d-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--gl-muted); font-weight: 600; }
  body table.gl-d-stack td br { display: none; }
  body table.gl-d-stack td strong { margin-right: 6px; }

  :is(.page-id-27775, .page-id-28520) #main h2[style] { font-size: 1.65rem !important; }
  :is(.page-id-28520 #main, .single-rem_property .description) span[style*="border-radius: 12px"] { font-size: 2rem !important; }
  body .imgs-grid-modal .modal-inner .modal-control { width: 48px; }
}

@media (max-width: 359px) {
  /* The CSR2 column needs a 360 px screen. Below that the listing and the price share the row. */
  body .gl-table .gl-cell-csr2 { display: none; }
}

@media print {
  /* At print width the plugin's column floats at full width, which pushed the agent card off the right edge of the paper. */
  .single-rem_property .col-md-9.rem_property, .single-rem_property .ich-settings-main-wrap [class*="col-"] { float: none !important; }
  .single-rem_property .gl-jump { display: none !important; }
  body .imgs-grid-modal { display: none !important; }
  .page-id-28520 .wpcf7 { display: none !important; }
}

/* ---------- Listing index pages: header, quick filters, cards, Save, and Compare (DESIGN.md, "Listings index") ---------- */

/* The header: the count by type on the left, the map, search, and alerts links on the right, and a hairline under it. */
body .gl-index { margin: 4px 0 0; }
body .gl-ihead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin: 0 0 20px; padding: 0 0 12px; border-bottom: 1px solid var(--gl-rule); }
body .gl-ihead-count { margin: 0; font-size: 17px; line-height: 1.5; color: var(--gl-muted); font-variant-numeric: tabular-nums lining-nums; }
body .gl-ihead-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
body .gl-index a.gl-ilink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--gl-navy); text-decoration: none; }
body .gl-ilink .gl-i { width: 18px; height: 18px; }
@media (hover: hover) { body .gl-index a.gl-ilink:hover { color: var(--gl-navy); text-decoration: underline; text-underline-offset: 3px; } }
body .gl-index a.gl-ilink:focus { color: var(--gl-navy); text-decoration: none; }

/* The bar waits for the script. Without it the page shows the header and the cards. */
html:not(.gl-js) body .gl-ibar, html:not(.gl-js) body .gl-icard-tools { display: none !important; }

/* Quick filters: type chips with counts, then the menus. Each acts at once. */
body .gl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
body .gl-f-chips, body .gl-f-menus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body .gl-f-chips:empty { display: none; }
/* The menus name themselves in their first choice ("Any county"), so their labels show only in the phone's sheet. */
body .gl-index .gl-f-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body :is(.gl-index, .gl-fsheet) .gl-f-field { display: block; max-width: 100%; margin: 0; font-weight: 400; }
body :is(.gl-index, .gl-fsheet) button.gl-chip, body .gl-index button.gl-fopen, body .gl-index button.gl-achip, body .gl-index button.gl-aclear,
body .gl-index button.gl-save, body .gl-fsheet button, body .gl-cmpbar button, body .gl-cmpdlg button {
  margin: 0;
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  cursor: pointer;
}
body :is(.gl-index, .gl-fsheet) button.gl-chip, body .gl-index button.gl-fopen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gl-field);
  border-radius: var(--gl-radius);
  background: #fff;
  color: var(--gl-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--gl-fast), border-color var(--gl-fast), color var(--gl-fast);
}
body :is(.gl-index, .gl-fsheet) button.gl-chip[hidden] { display: none; }
body .gl-chip-n { font-weight: 400; color: var(--gl-muted); font-variant-numeric: tabular-nums lining-nums; }
body :is(.gl-index, .gl-fsheet) button.gl-chip[aria-pressed="true"] { border-color: var(--gl-navy); background: var(--gl-navy); color: #fff; }
body :is(.gl-index, .gl-fsheet) button.gl-chip[aria-pressed="true"] .gl-chip-n { color: #fff; }
body .gl-chip .gl-i, body .gl-fopen .gl-i { width: 18px; height: 18px; }
body .gl-chip--saved[aria-pressed="true"] .gl-i { fill: currentColor; }
@media (hover: hover) {
  body :is(.gl-index, .gl-fsheet) button.gl-chip:hover, body .gl-index button.gl-fopen:hover { border-color: var(--gl-navy); }
  body :is(.gl-index, .gl-fsheet) button.gl-chip[aria-pressed="false"]:hover { background: var(--gl-wash); }
}
body :is(.gl-index, .gl-fsheet) select.gl-f-select {
  display: block;
  width: auto;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 34px 0 12px;
  border-color: var(--gl-field);
  border-radius: var(--gl-radius);
  background-color: #fff;
  color: var(--gl-ink);
  font-size: 16px;
  font-weight: 400;
  box-shadow: none;
}
/* A menu in use takes the navy border, two pixels wide without changing its size. */
body :is(.gl-index, .gl-fsheet) select.gl-f-select.gl-f-on { border-color: var(--gl-navy); box-shadow: inset 0 0 0 1px var(--gl-navy); color: var(--gl-navy); font-weight: 600; }

/* Filters in use, each a button that removes it, and Clear all. They show only while a filter is on. */
body .gl-iactive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; margin: 12px 0 0; }
body .gl-iactive[hidden] { display: none; }
body .gl-index button.gl-achip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--gl-rule);
  border-radius: var(--gl-radius);
  background: var(--gl-wash);
  color: var(--gl-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
body .gl-achip .gl-i { width: 16px; height: 16px; color: var(--gl-muted); }
@media (hover: hover) { body .gl-index button.gl-achip:hover { border-color: var(--gl-navy); } body .gl-index button.gl-achip:hover .gl-i { color: var(--gl-navy); } }
body .gl-index button.gl-aclear, body .gl-fsheet button.gl-aclear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--gl-navy);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The results row: the live count, then the sort and Cards or Table at the right. The phone's Filter button joins it. */
body .gl-iresults { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 20px 0 24px; }
body .gl-icount { margin: 0; font-size: 17px; font-weight: 600; color: var(--gl-ink); font-variant-numeric: tabular-nums lining-nums; }
body .gl-index .gl-isort { margin-left: auto !important; }
body .gl-index button.gl-fopen { display: none; }
body .gl-fopen-n { font-weight: 400; color: var(--gl-muted); }
body .gl-view-switch .gl-i { width: 18px; height: 18px; }

/* The cards: the listing page's related card, three across, all as tall as the tallest in their row. */
body .gl-icards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin: 0; padding: 0; list-style: none; }
body .gl-icard { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; }
body .gl-icard[hidden] { display: none; }
body .gl-icard > .gl-card { flex: 1 1 auto; height: auto; }
body .gl-index .gl-card-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
body .gl-index .gl-card-name { font-size: 18px; }
body .gl-index .gl-card-facts { font-size: 16px; }
body .gl-index a.gl-card:is(:hover, :focus) { color: var(--gl-ink); text-decoration: none; }
body .gl-index a.gl-card:focus-visible { outline-offset: 4px; }
/* Hover lifts the card and eases the photo in, on screens with a mouse, and not when motion is turned down. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body .gl-icard { transition: transform var(--gl-fast); }
  body .gl-icard:hover { transform: translateY(-3px); }
  body .gl-index .gl-card:hover .gl-card-photo img { transform: scale(1.03); }
}

/* Save and Compare under each card, on a hairline. They stay at the foot of the card, so a row's tools line up. */
/* An 8 px inset under the hairline, so a button's hover wash never touches it. */
body .gl-icard-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--gl-rule); }
body .gl-index button.gl-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  margin-left: 0;
  /* No left padding: the bookmark starts at the card's text edge, under the name (11/4 /ui review). */
  padding: 0 6px 0 0;
  border: 0;
  border-radius: var(--gl-radius);
  background: none;
  color: var(--gl-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
body .gl-index button.gl-save[hidden] { display: none; }
body .gl-save .gl-i { width: 20px; height: 20px; }
body .gl-save[aria-pressed="true"] .gl-i { fill: currentColor; }
/* With no left padding a hover wash would touch the icon, so hover underlines the word instead. */
@media (hover: hover) { body .gl-index button.gl-save:hover .gl-save-word { text-decoration: underline; text-underline-offset: 3px; } }
body .gl-index label.gl-cmp { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 2px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--gl-navy); cursor: pointer; }
body .gl-index .gl-cmp input { width: 20px; height: 20px; margin: 0; accent-color: var(--gl-navy); cursor: pointer; }
body .gl-index .gl-icards--one label.gl-cmp { display: none; }

/* No matches: a plain sentence, the filter that would show the most, and Clear filters. */
body .gl-iempty { display: grid; justify-items: start; gap: 12px; padding: 32px 0 8px; }
body .gl-iempty[hidden] { display: none; }
body .gl-iempty p { margin: 0; }
body .gl-iempty-title { font-size: 20px; font-weight: 600; color: var(--gl-navy); }
body .gl-iempty-hint:empty { display: none; }
body .gl-iempty-hint a, body .gl-iempty-hint button { padding: 0; border: 0; background: none; min-height: 44px; margin: 0; color: var(--gl-navy); font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body .gl-iempty .gl-btn { padding: 0 20px; }

/* Sold Listings: while a filter covers every sold listing, the page links step aside. */
body .gl-ipaged-off { display: none !important; }

/* The compare bar along the foot of the screen, from the first listing chosen. */
body .gl-cmpbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 990; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--gl-navy-deep); color: #fff; }
body .gl-cmpbar[hidden] { display: none; }
body .gl-cmpbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 1170px; margin: 0 auto; }
body .gl-cmpbar-text { flex: 1 1 auto; margin: 0; font-size: 16px; font-weight: 600; color: #fff; }
body .gl-cmpbar button.gl-cmpbar-go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid #fff; border-radius: var(--gl-radius);
  background: #fff; color: var(--gl-navy); font-size: 16px; font-weight: 600; line-height: 1.2;
}
body .gl-cmpbar button.gl-cmpbar-go[disabled] { border-color: rgba(255, 255, 255, .6); background: transparent; color: #fff; cursor: default; }
body .gl-cmpbar button.gl-cmpbar-clear { min-height: 44px; padding: 0 8px; border: 0; background: none; color: #fff; font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body .gl-cmpbar .gl-i { width: 18px; height: 18px; }
body .gl-cmpbar :focus-visible { outline: 3px solid #fff !important; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  body .gl-cmpbar { animation: gl-rise var(--gl-fast); }
  @keyframes gl-rise { from { transform: translateY(100%); } to { transform: none; } }
}
/* Room under the page for the bar, so it never covers the footer's last line. */
body.gl-cmp-on { padding-bottom: 72px; }

/* Dialogs: the compare table and the phone's filter sheet. Open menus may cast a shadow (DESIGN.md). */
body dialog.gl-cmpdlg, body dialog.gl-fsheet { padding: 0; border: 0; border-radius: var(--gl-radius); background: #fff; color: var(--gl-ink); box-shadow: 0 12px 40px rgba(16, 29, 69, .28); }
body dialog.gl-cmpdlg::backdrop, body dialog.gl-fsheet::backdrop { background: rgba(16, 29, 69, .55); }
body dialog.gl-cmpdlg[open], body dialog.gl-fsheet[open] { display: flex; flex-direction: column; }
html.gl-dlg-open { overflow: hidden; }
body .gl-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--gl-rule); }
body .gl-dlg-head h2 { margin: 0 !important; font-size: 22px !important; }
body .gl-dlg-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--gl-radius); background: none; color: var(--gl-navy); }
body .gl-dlg-close .gl-i { width: 22px; height: 22px; }
@media (hover: hover) { body .gl-dlg-close:hover { background: var(--gl-wash); } }

body dialog.gl-cmpdlg { width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); }
body .gl-cmpdlg-body { overflow: auto; overscroll-behavior: contain; }
body .gl-cmpt { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums lining-nums; }
body .gl-cmpt th, body .gl-cmpt td { min-width: 200px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--gl-rule); color: var(--gl-ink); font-size: 16px; font-weight: 400; letter-spacing: 0; text-align: left; text-transform: none; vertical-align: top; }
/* The row labels stay in view while the table scrolls sideways on a phone. */
body .gl-cmpt th[scope="row"] { position: sticky; left: 0; z-index: 1; width: 150px; min-width: 132px; background: #fff; box-shadow: inset -1px 0 0 var(--gl-rule); color: var(--gl-muted); font-size: 15px; font-weight: 600; }
body .gl-cmpt tr:last-child > * { border-bottom: 0; }
body .gl-cmpt .gl-cmpt-photo td { padding-top: 16px; }
body .gl-cmpt-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--gl-radius); background: var(--gl-wash); }
body .gl-cmpt-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
body .gl-cmpt a.gl-cmpt-name { color: var(--gl-navy); font-size: 17px; font-weight: 600; text-decoration: none; }
@media (hover: hover) { body .gl-cmpt a.gl-cmpt-name:hover { text-decoration: underline; text-underline-offset: 3px; } }
body .gl-cmpt .gl-cmpt-none { color: var(--gl-muted); }
body .gl-cmpdlg-note { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--gl-rule); font-size: 14px; color: var(--gl-muted); }

/* The phone's filter sheet rises from the foot of the screen, with the same controls as the bar, labeled. */
body dialog.gl-fsheet { inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: min(88vh, 760px); margin: 0; border-radius: var(--gl-radius) var(--gl-radius) 0 0; }
body .gl-fsheet-body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 16px 16px 20px; }
body .gl-fsheet .gl-filters { display: grid; gap: 8px; }
body .gl-fsheet .gl-f-label { position: static; width: auto; height: auto; margin: 12px 0 6px; overflow: visible; clip: auto; display: block; font-size: 16px; font-weight: 600; color: var(--gl-ink); white-space: normal; }
body .gl-fsheet .gl-f-label--type { margin-top: 0; }
body .gl-fsheet .gl-f-menus { display: grid; gap: 0; }
body .gl-fsheet select.gl-f-select { width: 100%; }
body .gl-fsheet-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--gl-rule); }
body .gl-fsheet-foot .gl-btn--solid { flex: 1 1 auto; border: 1px solid var(--gl-navy); }
body .gl-fsheet button.gl-aclear[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body dialog.gl-fsheet[open] { animation: gl-rise var(--gl-fast); }
}

/* The table scrolls sideways with the listing's name in view and a fade at the edge where more columns wait. */
body .gl-index .gl-table-wrap.gl-table-scrolls .gl-table :is(thead th, tbody th):first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
body .gl-index .gl-table-wrap.gl-table-scrolls .gl-table tbody tr:hover th:first-child { background: var(--gl-wash); }
/* The name column stays put, so only the far edge fades. Once the table has scrolled, a rule marks the name column's edge. */
body .gl-index .gl-table-wrap.gl-more-start { -webkit-mask-image: none; mask-image: none; }
body .gl-index .gl-table-wrap.gl-more-end { -webkit-mask-image: linear-gradient(to left, transparent, #000 56px); mask-image: linear-gradient(to left, transparent, #000 56px); }
body .gl-index .gl-table-wrap.gl-more-start .gl-table :is(thead th, tbody th):first-child { box-shadow: inset -1px 0 0 var(--gl-rule); }

@media (max-width: 999px) {
  body .gl-icards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
}

@media (max-width: 767px) {
  /* On a phone and a small tablet, the filters wait behind the Filter button, in the sheet. */
  body .gl-index .gl-filters { display: none; }
  body .gl-index button.gl-fopen { display: inline-flex; flex: 1 1 0; justify-content: center; border-color: var(--gl-navy); color: var(--gl-navy); }
  body .gl-iresults { gap: 10px 12px; margin: 16px 0 20px; }
  body .gl-icount { flex: 1 1 100%; }
  body .gl-index .gl-isort { flex: 1 1 0; min-width: 0; margin-left: 0 !important; }
  body .gl-index .gl-isort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body .gl-index .gl-isort select { flex: 1 1 auto; min-width: 0; width: 100% !important; }
  body .gl-index .gl-view-switch { flex: 1 1 100%; }
  body .gl-index .gl-view-switch button { flex: 1 1 0; justify-content: center; }
  body .gl-ihead { margin-bottom: 4px; }
  body .gl-iactive { margin-top: 12px; }
  body dialog.gl-cmpdlg { width: 100vw; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0; }
  body.gl-cmp-on { padding-bottom: 116px; }
  body .gl-cmpbar-text { flex-basis: 100%; font-size: 15px; }
  body .gl-cmpbar-go { flex: 1 1 auto; justify-content: center; }
  body .gl-cmpt th, body .gl-cmpt td { min-width: 168px; padding: 10px 12px; }
  body .gl-cmpt th[scope="row"] { width: 112px; min-width: 112px; padding-left: 16px; font-size: 14px; }
}

@media (max-width: 549px) {
  body .gl-icards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body .gl-ihead-links { gap: 0 20px; }
}

/* Current Listings: the plugin's search form above the list repeated the type and county filters, and its results
   replaced the cards. With the script, the bar filters in place and Keyword search opens the plugin's search page. */
.gl-js body.page-id-19574 #rem-search-box.search-property-page { display: none; }

/* The live count when it would only repeat the header: kept for screen readers, out of sight. */
body .gl-index .gl-icount--quiet { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 768px) {
  /* The chips and the menus share a row when they fit, and the menus wrap together when they don't. */
  body .gl-filters { gap: 12px 16px; }
  body :is(.gl-index, .gl-fsheet) button.gl-chip { padding: 0 12px; }
}
@media (max-width: 767px) {
  /* The Filter button takes its own width, so the sort menu beside it keeps "Newest first" whole on a 320 px screen. */
  body .gl-index button.gl-fopen { flex: 0 0 auto; padding: 0 16px; }
}
/* The index pages' closing sentence left one word on its last line on a phone. */
:is(.page-id-19574, .page-id-20116, .page-id-19592, .page-id-19594) .page-inner p { text-wrap: pretty; }
/* A county stays on one line in the table, so each row is one line tall unless its name wraps. */
body .gl-index .gl-table .gl-cell-county { white-space: nowrap; }
body .gl-iempty { padding-bottom: 40px; }

/* On Sold Listings and Sale Pending every card has the same status, and the page title already says it. */
.page-id-19594 .gl-card-flag--sold, .page-id-19592 .gl-card-flag--sale-pending { display: none; }

/* ---------- Listing index pages: round 8 fixes from the Pixel 6 Pro pass ---------- */

/* A "New listing" flag waits hidden until enhance.js finds the listing went up in the last 30 days. */
body .gl-card-flag[hidden] { display: none; }

/* The header's live count shows only on a phone, in place of the line by type (below). */
body .gl-ihead-live { display: none; }
body .gl-ilink-short { display: none; }

/* The first new card after "Show more listings" takes focus. Its ring sits outside the card, clear of the photo and
   the text, at every width. */
body .gl-index a.gl-card:focus-visible { outline: 3px solid #5b7bd5 !important; outline-offset: 6px !important; }


/* No matches: one sentence, then one action in a row with a plain Clear filters beside it. */
body .gl-iempty-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
body .gl-iempty-hint button.gl-btn--solid { display: inline-flex; padding: 0 20px; border: 1px solid var(--gl-navy); background: var(--gl-navy); color: #fff !important; text-decoration: none; }
@media (hover: hover) { body .gl-iempty-hint button.gl-btn--solid:hover { background: var(--gl-navy-hover); } }
body .gl-index button.gl-iempty-clear--text {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 4px; border: 0; background: none;
  color: var(--gl-navy); font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; box-shadow: none;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
/* The sheet's button when nothing matches: outlined and muted, so it doesn't read as one that applies the filters. */
body .gl-fsheet-foot .gl-btn--none { flex: 1 1 auto; border: 1px solid var(--gl-field); background: #fff; color: var(--gl-muted) !important; cursor: default; }
@media (hover: hover) { body .gl-fsheet-foot .gl-btn--none:hover { background: #fff; } }
/* The sheet leaves out a type that would show nothing, unless it's on. */
body .gl-fsheet button.gl-chip.gl-chip--none:not([aria-pressed="true"]) { display: none; }

/* Compare: the "up to 3" note and the counts are one line, so the bar keeps one height. The page keeps room for it. */
body .gl-cmpbar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .gl-cmpbar button.gl-cmpbar-clear { white-space: nowrap; }
body .gl-cmpdlg-note p { margin: 0; }
body .gl-cmpdlg-note p + p { margin-top: 4px; }

/* Undo after taking a listing out of Saved. */
body .gl-undo {
  position: fixed; right: 0; left: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 995; display: flex; align-items: center; gap: 16px;
  box-sizing: border-box; width: max-content; max-width: calc(100vw - 32px); margin: 0 auto; padding: 4px 8px 4px 16px; border-radius: var(--gl-radius);
  background: var(--gl-navy-deep); color: #fff;
}
body .gl-undo[hidden] { display: none; }
body.gl-cmp-on .gl-undo { bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
body .gl-undo-text { margin: 0; font-size: 16px; font-weight: 600; color: #fff; }
body .gl-undo button.gl-undo-btn {
  min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: var(--gl-radius); background: none; color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; cursor: pointer;
}
body .gl-undo :focus-visible { outline: 3px solid #fff !important; outline-offset: 2px; }

@media (max-width: 767px) {
  /* The first screen on a phone shows the first card's name and price. The header is one line of counts and one row
     of short links. The Filter button, the sort, and the switch to the other view share a row, and the filters in use
     follow in one row that scrolls sideways. */
  body .gl-ihead { gap: 0 16px; margin: 0 0 4px; padding: 0 0 4px; }
  body .gl-ihead-count { flex: 1 1 100%; }
  body .gl-index--live .gl-ihead-all { display: none; }
  body .gl-index--live .gl-ihead-live { display: inline; font-weight: 600; color: var(--gl-ink); }
  body .gl-ihead-links { flex-wrap: nowrap; gap: 0 20px; }
  body .gl-ilink-long { display: none; }
  body .gl-ilink-short { display: inline; }
  /* The live count stays a status line for screen readers. It shows in the header line above. */
  body .gl-index .gl-icount { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body .gl-ibar { display: flex; flex-direction: column; }
  body .gl-iresults { order: 1; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
  body .gl-iactive { order: 2; flex-wrap: nowrap; margin: -4px 0 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  body .gl-iactive::-webkit-scrollbar { display: none; }
  body .gl-iactive > * { flex: none; }
  /* Filter with its count, the sort, and Table fit one row from 390 px. */
  body .gl-index button.gl-fopen { flex: none; gap: 6px; padding: 0 12px; }
  body .gl-index .gl-isort { flex: 1 1 130px; min-width: 0; }
  body .gl-index .gl-isort select { padding: 0 26px 0 10px; background-position: right 8px center; }
  body .gl-index .gl-view-switch { flex: none; }
  body .gl-index .gl-view-switch button { flex: none; gap: 6px; padding: 0 10px; border-radius: var(--gl-radius) !important; }
  body .gl-index .gl-view-switch button[aria-pressed="true"] { display: none; }
  body .gl-index .gl-view-switch button + button { margin-left: 0; }
  body .gl-iempty { padding-top: 8px; }

  /* The phone's table is the real table: it scrolls sideways inside its box, the listing's name stays in view at the
     left in two lines at most, and the far edge fades while more columns wait. */
  body .gl-index .gl-table .gl-cell-wide { display: table-cell; }
  body .gl-index .gl-table .gl-table-brief, body .gl-index .gl-table .gl-table-status { display: none; }
  body .gl-index .gl-table tbody th { width: 9.5em; min-width: 9.5em; max-width: 9.5em; padding-right: 12px; }
  body .gl-index .gl-table tbody th a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  body .gl-index .gl-table td { white-space: nowrap; }
  body .gl-index .gl-table-wrap.gl-table-scrolls .gl-table :is(thead th, tbody th):first-child { z-index: 2; }

  /* Compare on a phone: a narrow label column, and two listings side by side from 360 px. Three scroll. */
  body .gl-cmpt th[scope="row"] { width: 84px; min-width: 84px; max-width: 84px; padding: 10px 8px 10px 16px; font-size: 14px; hyphens: auto; overflow-wrap: anywhere; }
  body .gl-cmpt td { min-width: 128px; padding: 10px; overflow-wrap: anywhere; }
  body .gl-cmpt--n2 td { width: 50%; }
  body .gl-cmpt a.gl-cmpt-name { font-size: 16px; }

  /* The compare bar is 96 px tall, and the page keeps that much room under it. */
  body .gl-cmpbar { box-sizing: border-box; height: calc(96px + env(safe-area-inset-bottom, 0px)); padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  body .gl-cmpbar-in { flex-wrap: wrap; gap: 4px 12px; }
  body .gl-cmpbar-text { line-height: 24px; }
  body.gl-cmp-on { padding-bottom: 96px; }
}

@media (max-width: 359px) {
  /* The short links keep one row from 320 px. */
  body .gl-ihead-links { gap: 0 14px; }
  body .gl-ihead-links .gl-ilink { gap: 6px; }
  body .gl-index .gl-isort { flex-basis: 120px; }
  body .gl-index .gl-table .gl-cell-csr2 { display: table-cell; }
  body .gl-cmpbar-text { font-size: 14px; }
  body .gl-cmpbar-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 319px) {
  /* At 280 px the three links take two rows, and the sort takes its own row, so "Newest first" shows whole. */
  body .gl-ihead-links { flex-wrap: wrap; }
  body .gl-index .gl-isort { flex-basis: 100%; order: 3; }
}

/* ---------- Listing index pages: round 9 fixes ---------- */

/* Dialog close buttons kept 38 px of their 44 beside a long heading. They keep their full square. */
body .gl-dlg-close { flex: none; min-width: 44px; }

/* The Saved chip has a group of its own, after the menus, so the phone's sheet lists it under "Saved listings". */
body .gl-f-saved { display: flex; align-items: center; }
body .gl-f-saved[hidden] { display: none; }
body .gl-fsheet .gl-f-saved { display: grid; justify-items: start; }

/* Cards: possession and income, and the sale's other farms, each a line under the figures. A card with no price says so. */
body .gl-card-note { display: block; font-size: 15px; line-height: 1.4; color: var(--gl-ink); font-variant-numeric: tabular-nums lining-nums; }
body .gl-card-note[hidden] { display: none; }
body .gl-card-note--sale { color: var(--gl-navy); font-weight: 600; }
/* A sealed-bid or auction date from the listing's fields (Plan E), until the day has passed. */
body .gl-card-note--date { color: var(--gl-navy); font-weight: 600; }
body .gl-side-date[hidden] { display: none; }
body .gl-card-ask { color: var(--gl-muted); }
/* The figure line ("60 acres · $750,000 · $12,500 per acre"): each figure stays whole (restyle.css) and draws the "·"
   before it, so a wrap breaks only between figures. The line starts .42 em to the left of the card's text, where the
   clip hides the "·" of whichever figure starts a line, so no line starts or ends with one. The dot's box and margin
   match the old " · " in Libre Franklin. The dot is left out of the text that screen readers and copying get. */
body .gl-card-facts--dots { display: block; margin-left: -.42em; clip-path: inset(0 0 0 .42em); }
body .gl-card-facts--dots .gl-card-fig::before { content: "\B7"; content: "\B7" / ""; display: inline-block; width: .2em; margin-right: .22em; text-align: center; }

/* No saved listings: one sentence, then one button. */
body .gl-iempty-hint--note { flex-basis: 100%; }
body .gl-iempty-note { display: block; font-size: 17px; line-height: 1.5; color: var(--gl-ink); }

/* The table: "Hog barn" stays on one line, and the possession and income column wraps in a readable width. A column of
   words has a plain heading with no sort button. */
body .gl-index .gl-table .gl-cell-type, body .gl-index .gl-table .gl-cell-size { white-space: nowrap; }
body .gl-index .gl-table td.gl-cell-terms { min-width: 12em; max-width: 20em; white-space: normal; }
body .gl-table thead .gl-th-plain { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--gl-muted); font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; }

/* Compare: a listing's name breaks into even lines. */
body .gl-cmpt a.gl-cmpt-name { text-wrap: balance; }

/* The photo viewer's arrows sit on a solid square, so they read on any photo, light or dark. The plugin's sprite gives
   way to a chevron drawn in two lines, like the close button's cross. */
/* The plugin sizes the arrow with a longer selector, so the size and shape take !important. */
body .imgs-grid-modal .modal-inner .modal-control .arrow {
  position: absolute !important; top: 50% !important; left: 50% !important; width: 44px !important; height: 44px !important; margin: -22px 0 0 -22px !important;
  border-radius: var(--gl-radius); background: var(--gl-navy-deep) none !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); transform: none !important;
}
body .imgs-grid-modal .modal-control .arrow::before {
  content: ""; position: absolute; top: 15px; left: 18px; width: 12px; height: 12px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(-45deg);
}
body .imgs-grid-modal .modal-control.right .arrow::before { left: 12px; transform: rotate(135deg); }
@media (hover: hover) { body .imgs-grid-modal .modal-inner .modal-control:hover .arrow { background-color: var(--gl-navy) !important; } }

@media (max-width: 767px) {
  /* The header sits a little closer to the title, so the first card's price shows on the first screen with a filter on. */
  body .gl-index { margin-top: -12px; }
  body .gl-index .gl-ihead-count { margin-bottom: 0; }
  body .gl-iresults { margin: 6px 0 12px; }
  body .gl-iactive { margin: -2px 0 12px; }

  /* The compare bar is one 60 px row: the count, Compare, and Clear. The rest of its sentence and the word "listings"
     wait for a wider screen. The page keeps room for the bar. */
  body .gl-cmpbar { height: calc(60px + env(safe-area-inset-bottom, 0px)); padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  body .gl-cmpbar-in { flex-wrap: nowrap; gap: 8px; }
  body .gl-cmpbar-text { flex: 1 1 auto; min-width: 0; line-height: 44px; }
  body .gl-cmpbar-tail, body .gl-cmpbar-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body .gl-cmpbar-go { flex: none; padding: 0 14px !important; }
  body.gl-cmp-on { padding-bottom: 60px; }
  body.gl-cmp-on .gl-undo { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

  /* The phone's table: no County column (every name starts with its county), and names get three lines. */
  body .gl-index .gl-table tbody th { width: 10em; min-width: 10em; max-width: 10em; }
  body .gl-index .gl-table tbody th a { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* ---------- Listing index pages: the map view, the phone toolbar row, and the cards' small line (round 12) ---------- */

/* The map view: the county map beside the cards, from 1024 px wide, while the script runs. The map sticks under the
   site header (70 px once the page scrolls) while the cards scroll with the page, so nothing scrolls inside a box.
   Narrower screens show the cards, and the header's "Map view" link stays the way to the map (DESIGN.md). */
body .gl-imap { display: none; }
body .gl-index .gl-view-switch button[data-gl-view="map"] { display: none; }
@media (max-width: 1023px) {
  /* Table is the last button that shows, so it takes the switch's right corners. */
  body .gl-view-switch button[data-gl-view="table"] { border-radius: 0 var(--gl-radius) var(--gl-radius) 0; }
}
@media (max-width: 767px) {
  /* A map view link opened on a phone shows the cards, so the phone's switch offers only Table from the first paint,
     as it does once the script marks Cards as the view on screen. */
  body .gl-index--map .gl-view-switch button[data-gl-view="cards"] { display: none; }
}
@media (min-width: 1024px) {
  .gl-js body .gl-index .gl-view-switch button[data-gl-view="map"] { display: inline-flex; }
  .gl-js body .gl-index .gl-view-switch button[data-gl-view="map"][hidden] { display: none; }
  /* The toolbar's Map takes the place of the header's link to Listings by Map. */
  .gl-js body .gl-index a.gl-ilink--map-here { display: none; }
  .gl-js body .gl-index--map .gl-iview { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); gap: 0 32px; align-items: start; }
  .gl-js body .gl-index--map .gl-imap { display: block; position: sticky; top: 86px; z-index: 1; }
  .gl-js body .gl-index--map .gl-icards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  /* The page's closing line keeps its distance when the map column is the taller one. */
  .gl-js body .gl-index--map .gl-iview { margin-bottom: 32px; }
}
/* Each county's number of listings, white on navy. The county of the card under the pointer or in focus fills amber,
   the color of the selected county's ring, with its number in dark navy (7:1). */
body .gl-imap-svg .gl-c-n { fill: #fff; font: 600 34px var(--gl-sans); font-variant-numeric: tabular-nums lining-nums; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
body .gl-map-svg.gl-imap-svg .gl-c.is-marked { fill: #e0a11b; }
body .gl-imap-svg .gl-c-n.is-marked { fill: var(--gl-navy-deep); }
body .gl-imap-foot { margin: 12px 0 0; }
body .gl-imap-key { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--gl-ink); }
body .gl-imap-key .gl-swatch { flex: none; }
/* The name line keeps one line's height while empty, and the button keeps its place under it, so the map never moves. */
body .gl-imap-pick { display: grid; justify-items: start; margin: 6px 0 0; }
body .gl-imap-name { min-height: 1.5em; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--gl-navy); }
body .gl-imap-name.gl-map-idle { font-weight: 400; color: var(--gl-muted); }
body .gl-index button.gl-imap-all {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 4px; border: 0; background: none; box-shadow: none;
  color: var(--gl-navy); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
body .gl-index button.gl-imap-all[hidden] { display: none; }
/* The map view's group headings in the list: "Outside Iowa", and "No county given" on Sold Listings. A hairline under each. */
body .gl-igroup { grid-column: 1 / -1; margin: 4px 0 -16px; padding: 0 0 10px; border-bottom: 1px solid var(--gl-rule); list-style: none; }
body .gl-index h2.gl-igroup-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--gl-navy); }
body .gl-igroup-note { margin: 2px 0 0; font-size: 15px; line-height: 1.4; color: var(--gl-muted); }

/* The phone toolbar row: Filter, the sort, and the other view. "Newest first" needs 129 px. Under 360 px the three fit
   one row in the fallback font but not in Libre Franklin, so the row wrapped when the font arrived (3 s into a slow
   load at 344 px) and moved the cards 52 px. There the view button takes the second row from the start, as it ends up
   once the font is in. From 360 px the sort keeps 124 px, so the row fits with room to spare in either font. */
@media (min-width: 360px) and (max-width: 767px) {
  body .gl-index .gl-isort { flex: 1 1 124px; }
}
@media (min-width: 320px) and (max-width: 359px) {
  body .gl-index .gl-view-switch { flex: 0 0 100%; }
}

/* A card's small line ("67.0 Tillable CSR2 · Charleston Township") wraps like its figure line: each part whole, with its
   "·" before it, clipped where a part starts a line (gl_d_lp_card). A part too long for a narrow card wraps inside. */
body .gl-card-more--dots { display: block; margin-left: -.42em; clip-path: inset(0 0 0 .42em); }
body .gl-card-more--dots .gl-card-fig::before { content: "\B7"; content: "\B7" / ""; display: inline-block; width: .2em; margin-right: .22em; text-align: center; }
body .gl-card-fig.gl-card-fig--wrap { white-space: normal; }
body .gl-imap-svg .gl-c[role="button"] { cursor: pointer; }
/* A table row is a tap target (a click anywhere on it opens the listing), so a one-line row keeps 44 px. */
body .gl-index .gl-table tbody tr { height: 44px; }

/* ---------- Listing index pages: round 13 (fresh-eyes review) ---------- */

/* The bar keeps its rows as filters change: the type chips, Saved, and Clear all in the first row with the keyword box
   at its right, then the menus at fixed widths, then the one count with the sort and the view. enhance.js holds each
   chip count's width (its first, largest figure) and the menus row's height with every menu in it. */
@media (min-width: 768px) {
  body .gl-ibar .gl-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top words" "menus menus"; gap: 12px 16px; align-items: center; }
  body .gl-ibar .gl-f-top { grid-area: top; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }
  body .gl-ibar .gl-f-words { grid-area: words; width: 280px; }
  body .gl-ibar .gl-f-menus { grid-area: menus; align-content: flex-start; }
  /* Each menu fits its longest choice with its count, as "4,000–5,000 head (12)", and five fit one row from 1024 px. */
  body .gl-ibar .gl-f-menus .gl-f-field { flex: none; width: 194px; }
  body .gl-ibar .gl-f-menus .gl-f-field--county { width: 196px; }
  body .gl-ibar .gl-f-menus .gl-f-field--price { width: 176px; }
  body .gl-ibar .gl-f-menus .gl-f-field--csr2 { width: 160px; }
  body .gl-ibar .gl-f-menus .gl-f-field--head { width: 218px; }
  body .gl-ibar .gl-f-menus select.gl-f-select { width: 100%; padding: 0 30px 0 10px; background-position: right 8px center; }
  /* The count sits at the left of the sort row, so the row reads as one line, and the title's line steps aside. */
  .gl-js body .gl-ihead--bar .gl-ihead-count { display: none; }
  .gl-js body .gl-ihead--bar { justify-content: flex-end; }
  /* The keyword box in the bar takes the place of the header's link to the plugin's search page. */
  .gl-js body .gl-index a.gl-ilink--search-here { display: none; }
  /* The sort row stays one line: the count gives up width and wraps inside two 22 px lines, the height of the controls
     beside it, so "Clear all" appearing or a shorter count never moves the cards. */
  body .gl-index .gl-iresults { flex-wrap: nowrap; margin: 20px 0 24px; }
  body .gl-index p.gl-icount { flex: 0 1 auto; min-width: 0; margin: 0; font-size: 16px; line-height: 22px; }
  body .gl-index button.gl-f-clear { flex: none; padding: 0 4px; }
  body .gl-index .gl-isort, body .gl-index .gl-view-switch { flex: none; }
  body .gl-index .gl-isort select { width: 240px !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  body .gl-index .gl-isort select { width: 200px !important; }
}
@media (max-width: 767px) {
  /* A phone lists the filters in use under the bar, with its own Clear all. */
  body .gl-index button.gl-f-clear { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Four type chips and Saved fit beside a narrower keyword box at 1024 px. */
  body .gl-ibar .gl-f-words { width: 240px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* The chips leave the keyword box too little room beside them, so it takes a row of its own above the menus. */
  body .gl-ibar .gl-filters { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "words" "menus"; }
  body .gl-ibar .gl-f-words { width: min(100%, 360px); }
}
body :is(.gl-index, .gl-fsheet) .gl-f-field[hidden] { display: none; }
body .gl-fsheet .gl-f-top { display: grid; gap: 8px; }
body .gl-index button.gl-f-clear[hidden] { display: none; }

/* A type with nothing to show keeps its place in the row, turned off. So does Saved while nothing is saved. */
body :is(.gl-index, .gl-fsheet) button.gl-chip[disabled] { border-color: var(--gl-rule); background: #fff; color: var(--gl-muted); cursor: default; }
@media (hover: hover) { body :is(.gl-index, .gl-fsheet) button.gl-chip[disabled]:hover { border-color: var(--gl-rule); background: #fff; } }
body .gl-chip-n { display: inline-block; text-align: left; }

/* The keyword box: a search icon inside a 44 px field, navy once it holds words, as a menu in use is. */
body .gl-f-words { margin: 0; }
body .gl-f-wordbox { position: relative; display: block; }
body .gl-f-wordbox .gl-i { position: absolute; top: 50%; left: 12px; width: 18px; height: 18px; margin-top: -9px; color: var(--gl-muted); pointer-events: none; }
body :is(.gl-index, .gl-fsheet) input.gl-f-input {
  display: block; width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 12px 0 38px; border: 1px solid var(--gl-field); border-radius: var(--gl-radius);
  background: #fff; color: var(--gl-ink); font-size: 16px; font-weight: 400; box-shadow: none;
}
body :is(.gl-index, .gl-fsheet) input.gl-f-input::placeholder { color: var(--gl-muted); opacity: 1; }
body :is(.gl-index, .gl-fsheet) input.gl-f-input.gl-f-on { border-color: var(--gl-navy); box-shadow: inset 0 0 0 1px var(--gl-navy); color: var(--gl-navy); font-weight: 600; }
body .gl-fsheet .gl-f-words .gl-f-label { margin-top: 12px; }

/* One button under the list, at its left like the cards. The count above the list is the only count on screen. */
body .gl-index .gl-index-more { justify-items: start; margin: 32px 0 8px; }

/* On a phone the sort menu wears the navy outline of the Filter and view buttons beside it. */
@media (max-width: 767px) {
  body .gl-index .gl-isort select { border-color: var(--gl-navy); color: var(--gl-navy); font-weight: 600; }
}

/* The table: a dash reads lighter than a figure, and one line under the table says what it means. */
body .gl-table .gl-table-dash { color: var(--gl-muted); }
body .gl-index .gl-table-note { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--gl-muted); }
body .gl-index .gl-table-note[hidden] { display: none; }

/* The compare bar's row lines up with the page's 1,080 px column instead of running 45 px past it on each side. */
body .gl-cmpbar { padding-left: 15px; padding-right: 15px; }
body .gl-cmpbar-in { max-width: 1080px; }

/* For Lease: the page title says it, so the card's flag doesn't. One listing gets a wider card with the photo beside
   its figures, and under it, an offer to landowners and renters with the farm management contact. */
.page-id-20116 .gl-card-flag--for-lease { display: none; }
@media (min-width: 768px) {
  body .gl-icards--one { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
  body .gl-icards--one a.gl-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  body .gl-icards--one .gl-card-name { font-size: 22px; -webkit-line-clamp: 3; }
  body .gl-icards--one .gl-card-facts { font-size: 17px; }
  body .gl-icards--one .gl-icard-tools { margin-left: calc(50% + 14px); }
}
body .gl-lease { max-width: 880px; margin: 40px 0 8px; padding: 24px 0 0; border-top: 1px solid var(--gl-rule); }
body .gl-index + .gl-lease { margin-top: 40px; }
body h2.gl-lease-title { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--gl-navy); }
body .gl-lease-text { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--gl-ink); }
body .gl-lease-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
body .gl-lease-who { flex: 1 1 100%; margin: 0; font-size: 17px; font-weight: 600; color: var(--gl-ink); }
body .gl-lease-who a { color: var(--gl-navy); text-decoration: underline; text-underline-offset: 3px; }
body a.gl-btn.gl-lease-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--gl-navy); border-radius: var(--gl-radius); background: #fff; color: var(--gl-navy); font-size: 16px; font-weight: 600; text-decoration: none; }
body a.gl-btn.gl-lease-btn .gl-i { width: 18px; height: 18px; }
@media (hover: hover) { body a.gl-btn.gl-lease-btn:hover { background: var(--gl-wash); } }
body a.gl-lease-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--gl-navy); font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 549px) {
  body a.gl-btn.gl-lease-btn { flex: 1 1 100%; justify-content: center; }
}

/* While the compare bar shows, focus scrolls clear of it: the bar's height plus 8 px (64 px on a computer, 60 px on a
   phone, plus the phone's safe area). The body keeps its bottom padding, so the footer's last line clears it too. */
html.gl-cmp-pad { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767px) {
  html.gl-cmp-pad { scroll-padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* The table's listing names are links among plain text, so they carry an underline as well as their navy (WCAG 1.4.1). */
body .gl-index .gl-table tbody th a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* A sale date keeps to one line, as "Oct 2021". */
body .gl-index .gl-table .gl-cell-sold { white-space: nowrap; }

/* ---------- Desktop sweep, 11/3 ---------- */

/* The index header: with the count moved to the sort row, "Email me new listings" sat alone on a row 77 px under the
   title. From 1024 px it is the only link left there, so it moves up onto the title's line, at the right. The pull is
   the title's 50 px line plus its 30 px margin, less 3 px to center the 44 px link on that line. The negative margin
   collapses with the 30 px one above it, so the row's top lands 3 px under the title's top on every index page. */
@media (min-width: 1024px) {
  .gl-js body .gl-index .gl-ihead.gl-ihead--bar { margin-top: -77px; }
}

/* The menus row ended 105 px short of the content edge at 1440 and 1280 px. The menus keep their widths as minimums
   and share the rest, so the row ends where the keyword box above it does. */
@media (min-width: 768px) {
  body .gl-ibar .gl-f-menus { flex-wrap: nowrap; }
  body .gl-ibar .gl-f-menus .gl-f-field { flex: 1 1 auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* Under 1024 px five menus don't fit one row, so they wrap at their own widths, as before. */
  body .gl-ibar .gl-f-menus { flex-wrap: wrap; }
  body .gl-ibar .gl-f-menus .gl-f-field { flex: none; }
}
/* With every menu stepped aside (a keyword that matches nothing), enhance.js still held the row's height, a 76 px
   gap. An empty row gives up its height. */
body .gl-ibar .gl-f-menus:not(:has(> .gl-f-field:not([hidden]))) { display: none; }

/* The listing page: Print and Share are text buttons with 12 px of padding, so their words stopped 13 px short of the
   summary card's edge under them. The row reaches 12 px past the content edge, and the words end on it. */
@media (min-width: 768px) {
  body .gl-lp-top .gl-tools { margin-right: -12px; }
}

/* The jump bar marks a part once its top is within 24 px of the sticky bars, so a part reached by a link or the
   address lands 23 px under them, on that same line. d-listings.js keeps the bar's height in --gl-jump-h. The page's
   80 px of scroll padding (restyle.css) adds to this margin, so the margin is 80 px less. */
body .gl-lp .gl-sec, body .gl-lp .gl-agents-slot, body .gl-lp #gl-nearby { scroll-margin-top: calc(var(--gl-head) + var(--gl-jump-h, 53px) + 23px - 80px); }

/* A summary with three facts (a barn's capacity, type, and year built) sits on one row of three (11/4 /ui review: one
   full row, then two, read as two different groups). The outer two take their words' width, up to about half the row,
   and the middle one takes what's left, so "3,900 head" and "1999" stay whole and a worded fact such as "Feeder to
   finish" wraps. Print keeps its row of four. */
@media screen {
  body .gl-lp .gl-facts.gl-facts--grid.gl-facts--n3 { grid-template-columns: fit-content(45%) minmax(0, 1fr) fit-content(40%); }
  body .gl-lp .gl-facts--grid.gl-facts--n3 .gl-fact,
  body .gl-lp .gl-facts--grid.gl-facts--n3 .gl-fact:nth-child(odd),
  body .gl-lp .gl-facts--grid.gl-facts--n3 .gl-fact:last-child { grid-column: auto; padding-left: 14px; padding-right: 8px; border-left: 1px solid var(--gl-rule); }
  body .gl-lp .gl-facts--grid.gl-facts--n3 .gl-fact:first-child { padding-left: 0; border-left: 0; }
}

/* Location with no directions text: the map button sat alone at the right of the Iowa map, level with its foot. It
   takes the row under the map, at the left edge with the text above it. */
body .gl-where-info:not(:has(p)) { flex: 1 1 100%; align-self: auto; }

/* Labels that washed out on Adam's screen (11/4 sweep). The "Saved (0)" chip with nothing saved was the plugin's
   disabled button at 60% opacity, so its gray text fell to about 2.6:1; it shows at full strength in the muted gray
   (#525a68, 7:1) with a darker edge, and still reads as off beside the navy chips. On the listing page, the labels in
   Farm facts, the key facts, and the legal description are ink (the acres bar's label is in zy-polish.css, after i-insights), which people read before the values. */
body :is(.gl-index, .gl-fsheet) button.gl-chip--saved[disabled] { opacity: 1; border-color: var(--gl-field); color: var(--gl-muted); }
body .gl-lp .gl-ff-row dt, body .gl-lp .gl-facts--grid .gl-fact dt { color: var(--gl-ink); }
body .gl-lp .gl-legal-label { color: var(--gl-ink) !important; }

/* Tablets and the Fold's inner screen (700 to 899 px): the listing's side card runs inline under the gallery, and its
   facts, Request a showing, and agent card kept a phone's 480 px, leaving the right half of the row empty (11/4 sweep,
   hog-884). They take the full width there; phones keep 480 px, which is their full width anyway. */
@media (min-width: 700px) and (max-width: 899px) {
  body .gl-side-actions { max-width: none; }
  body .gl-lp .gl-facts.gl-facts--grid { max-width: none; }
  body .gl-lp .gl-agents-slot { max-width: none; }
}

/* Farm facts from 700 px: each label column is as wide as its longest label, up to 180 px, so "Gross Taxable Acres"
   stays on one line (11/4 /ui review: the 5 to 7 split gave labels 129 px and wrapped them). The values share the rest.
   Phones keep one column, label over value (restyle.css). */
@media (min-width: 700px) {
  body .gl-lp .gl-ff { grid-template-columns: fit-content(180px) minmax(0, 1fr) 0 fit-content(180px) minmax(0, 1fr); }
}

/* Phones and tablets (under 900 px): the jump bar scrolls away with the page. The site header (70 px), the jump bar
   (47 px), and the bottom bar (61 px) held 21% of a phone's screen (11/4 CTA review). The bar stays where it is in
   the page, so its links still reach each part; d-listings.js takes its height back off the landing offsets. */
@media (max-width: 899px) {
  body .gl-lp .gl-jump { position: relative; top: auto; z-index: auto; }
}

/* Phones and the Fold (11/4 CTA review): the card figures (acres, price, CSR2), their notes, and the county comparison
   read at 16 px or more; the muted CSR2 line was 14 px. */
@media (max-width: 1023px) {
  body .gl-card-facts, body .gl-card-more, body .gl-card-note { font-size: 16px; }
}

/* The listing pages' closing line links Real Estate Services and Farm Property Management inside a sentence. Padding
   above and below makes each a 44 px tap target without moving the lines. */
body.gl-h-listings .page-inner > p a { padding-block: 12px; }

/* 11/11 page review: For Lease's one card stopped 200 px short of the page's column, with its Save row hanging under
   the half-empty text side. The card takes the whole column: the photo a little wider than the text, and Save under
   the figures in the text column. */
@media (min-width: 768px) {
  body .gl-icards--one { max-width: none; }
  body .gl-icards--one a.gl-card { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0 40px; }
  body .gl-icards--one .gl-icard-tools { margin-left: calc((100% - 40px) * 6 / 11 + 40px); }
}
/* The lease offer under it runs the same width, so its rule meets the card's edge; its sentence keeps a reading width. */
body .gl-lease { max-width: none; }
body .gl-lease-text { max-width: 40em; }
