/* Lane t-listing: the county comparison line (listing page and cards) and the one-page listing sheet. Markup from
   t-listing.php, the popover and the sheet from t-listing.js. */

/* ---------- The county comparison ---------- */

/* Under the price in the summary card: ink text, not muted, because it is a figure a buyer reads, with the info
   button at its end. The button is like h-extras.css's CSR2 info button: an 18 px icon in a 44 px target whose
   negative margins keep the line's height. */
body .gl-lp .gl-t-cmp { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--gl-ink); font-variant-numeric: tabular-nums lining-nums; }
body .gl-lp .gl-t-nb { white-space: nowrap; }
/* The hover and open shading fills only the middle 26 px, since the target reaches into the line above. */
body .gl-lp .gl-t-what { display: none; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; height: 44px; margin: -12px -10px -10px 0;
  padding: 9px; border: 0; border-radius: var(--gl-radius); background: none; background-clip: content-box; color: var(--gl-navy); vertical-align: middle; box-shadow: none;
  cursor: pointer; }
.gl-js body .gl-lp .gl-t-what { display: inline-flex; }
body .gl-lp .gl-t-what .gl-i { width: 18px; height: 18px; }
@media (hover: hover) { body .gl-lp .gl-t-what:hover { background-color: var(--gl-wash); } }
body .gl-lp .gl-t-what[aria-expanded="true"] { background-color: var(--gl-wash); }

/* The popover has the CSR2 and rent popovers' look (h-extras.css, j-county.css): an open menu's edge and shadow. */
.gl-t-pop { position: fixed; z-index: 1000; box-sizing: border-box; padding: 12px 16px; border: 1px solid var(--gl-field); border-radius: var(--gl-radius); background: #fff;
  box-shadow: 0 6px 24px rgba(16, 29, 69, .16); color: var(--gl-ink); font-size: 15px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal;
  text-transform: none; letter-spacing: 0; overflow-y: auto; overscroll-behavior: contain; }
.gl-t-pop[hidden] { display: none; }
.gl-t-pop p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--gl-ink); }
.gl-t-pop p + p { margin-top: 8px; }
.gl-t-pop a { color: var(--gl-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.gl-t-pop a .gl-i { width: 14px; height: 14px; margin-left: 3px; vertical-align: -2px; }
.gl-t-pop:focus { outline: none; }
.gl-t-pop:focus-visible { border-color: var(--gl-navy); }
/* Without the script the button doesn't show, and the popover's words show under the line as a note. */
html:not(.gl-js) body .gl-lp .gl-t-pop[hidden] { display: block; position: static; margin: 6px 0 0; padding: 0; border: 0; box-shadow: none; }
html:not(.gl-js) body .gl-lp .gl-t-pop p { font-size: 14px; color: var(--gl-muted); }

/* Cards: a short muted line under the figures and notes. */
/* Ink, not muted gray: the gray washed out on Adam's screen (11/4 sweep). */
body .gl-card-note.gl-t-card-cmp { font-size: 14px; color: var(--gl-ink); }

/* ---------- The one-page sheet's button ---------- */

/* Beside Print and Share. Under 700 px restyle.css hides Print ("Print is for a computer"), and the sheet goes with it. */
@media (max-width: 699px) {
  body .gl-tools .gl-tool.gl-t-sheet-btn { display: none !important; }
}

/* ---------- The one-page sheet ---------- */

/* t-listing.js adds the sheet at the end of the body when the button is pressed. It never shows on screen, and on
   paper only while html has gl-t-print, which the button sets and the end of that print clears. */
.gl-t-sheet { display: none; }

@page gl-t-letter { size: letter; margin: .5in; }

@media print {
  /* Flatsome's boxed layout gives the body a shadow, which would print along the sheet's foot. */
  html.gl-t-print, html.gl-t-print body { margin: 0 !important; padding: 0 !important; background: #fff !important; box-shadow: none !important; }
  html.gl-t-print body > :not(.gl-t-sheet) { display: none !important; }
  /* 7.5 by 10 inches of Letter paper inside half-inch margins. Only the photo gives up height when a long name, a long
     write-up, or two agents need room, down to 2.2 inches; past that the sheet is cut at its foot, so it never starts
     a second page. */
  html.gl-t-print body > .gl-t-sheet { page: gl-t-letter; display: flex !important; flex-direction: column; gap: 10pt; box-sizing: border-box; width: 7.5in; max-height: 9.95in;
    overflow: hidden; margin: 0; padding: 0; font-family: var(--gl-sans); font-size: 10pt; line-height: 1.4; color: #1f2430; break-inside: avoid;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.gl-t-print .gl-t-sheet > * { flex: none; }
  html.gl-t-print .gl-t-sheet p { margin: 0; }
  html.gl-t-print .gl-t-sheet img { display: block; }

  /* The logo at the left, the status at the right, over a navy rule. */
  html.gl-t-print .gl-t-sheet .gl-t-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12pt; padding-bottom: 6pt; border-bottom: 1.5pt solid #182a61; }
  html.gl-t-print .gl-t-sheet img.gl-t-logo { width: 2.7in !important; height: auto !important; max-height: .45in !important; object-fit: contain; object-position: left bottom; }
  html.gl-t-print .gl-t-sheet .gl-t-status { font-size: 11pt; font-weight: 600; color: #182a61; }

  /* The main photo across the sheet, 3.1 inches tall. A map or a tall photo shows whole on white, as the gallery shows it. */
  html.gl-t-print .gl-t-sheet > .gl-t-photo { flex: 0 1 3.1in; min-height: 2.2in; overflow: hidden; border-radius: 4px; }
  html.gl-t-print .gl-t-sheet .gl-t-photo img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover; }
  html.gl-t-print .gl-t-sheet .gl-t-photo--whole img { object-fit: contain; }

  /* The name and place at the left, the price at the right. */
  html.gl-t-print .gl-t-sheet .gl-t-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18pt; }
  html.gl-t-print .gl-t-sheet .gl-t-title { flex: 1 1 auto; min-width: 0; }
  html.gl-t-print .gl-t-sheet .gl-t-name { font-size: 17pt; font-weight: 600; line-height: 1.2; color: #000; }
  html.gl-t-print .gl-t-sheet .gl-t-where { margin-top: 3pt; font-size: 10.5pt; color: #333; }
  html.gl-t-print .gl-t-sheet .gl-t-price { flex: none; max-width: 2.9in; text-align: right; }
  html.gl-t-print .gl-t-sheet .gl-t-amount { font-size: 18pt; font-weight: 600; line-height: 1.15; color: #182a61; font-variant-numeric: tabular-nums lining-nums; }
  html.gl-t-print .gl-t-sheet .gl-t-per { margin-top: 2pt; font-size: 11pt; font-weight: 600; color: #000; font-variant-numeric: tabular-nums lining-nums; }
  html.gl-t-print .gl-t-sheet .gl-t-note { margin-top: 2pt; font-size: 9pt; color: #333; }

  /* The county comparison and its source in one block, so the figure is never far from what it means. */
  html.gl-t-print .gl-t-sheet .gl-t-cmpline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2pt 10pt; }
  html.gl-t-print .gl-t-sheet .gl-t-cmptext { font-size: 10.5pt; font-weight: 600; color: #000; font-variant-numeric: tabular-nums lining-nums; }
  html.gl-t-print .gl-t-sheet .gl-t-cmpsrc { font-size: 8.5pt; color: #333; }

  /* The four key facts in a row, each figure over its label, with hairlines between them. */
  html.gl-t-print .gl-t-sheet .gl-t-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 6pt 0; border-top: .75pt solid #999; border-bottom: .75pt solid #999; }
  html.gl-t-print .gl-t-sheet .gl-t-fact { min-width: 0; padding: 0 10pt; border-left: .75pt solid #bbb; }
  html.gl-t-print .gl-t-sheet .gl-t-fact:first-child { padding-left: 0; border-left: 0; }
  html.gl-t-print .gl-t-sheet .gl-t-fact-value { font-size: 15pt; font-weight: 600; line-height: 1.2; color: #182a61; font-variant-numeric: tabular-nums lining-nums; overflow-wrap: break-word; }
  html.gl-t-print .gl-t-sheet .gl-t-fact-label { margin-top: 1pt; font-size: 9pt; color: #333; }
  html.gl-t-print .gl-t-sheet .gl-t-fact-note { font-size: 8.5pt; color: #333; }

  /* The write-up's opening beside the plat locator. */
  html.gl-t-print .gl-t-sheet .gl-t-mid { display: flex; align-items: flex-start; gap: 18pt; }
  html.gl-t-print .gl-t-sheet .gl-t-about { flex: 1 1 0; min-width: 0; }
  html.gl-t-print .gl-t-sheet .gl-t-label { margin-bottom: 3pt; font-size: 10pt; font-weight: 600; color: #182a61; }
  html.gl-t-print .gl-t-sheet .gl-t-excerpt { font-size: 10pt; line-height: 1.45; color: #1f2430; }
  html.gl-t-print .gl-t-sheet .gl-t-loc { flex: none; max-width: 3.6in; }
  html.gl-t-print .gl-t-sheet .gl-locator { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 12pt; background: none; }
  html.gl-t-print .gl-t-sheet .gl-locator figure { gap: 3pt; margin: 0; }
  html.gl-t-print .gl-t-sheet .gl-loc-county, html.gl-t-print .gl-t-sheet .gl-locator--both .gl-loc-county { width: 2.1in; }
  html.gl-t-print .gl-t-sheet .gl-locator:not(.gl-locator--both) .gl-loc-county { width: 2.6in; }
  html.gl-t-print .gl-t-sheet .gl-township { width: 1.25in; height: 1.25in; }
  html.gl-t-print .gl-t-sheet .gl-loc-name, html.gl-t-print .gl-t-sheet .gl-loc-sub { font-size: 8.5pt; color: #000 !important; }

  /* Over a navy rule: the agents side by side, then a last line with the page's address at the left and the main
     office at the right. */
  html.gl-t-print .gl-t-sheet > .gl-t-foot { margin-top: auto; padding-top: 8pt; border-top: 1.5pt solid #182a61; }
  html.gl-t-print .gl-t-sheet .gl-t-agents { display: flex; flex-wrap: wrap; gap: 4pt 24pt; min-width: 0; }
  html.gl-t-print .gl-t-sheet .gl-t-agents > .gl-t-label { flex-basis: 100%; margin: 0; }
  html.gl-t-print .gl-t-sheet .gl-t-agent { display: flex; flex: 1 1 0; align-items: flex-start; gap: 8pt; min-width: 0; }
  html.gl-t-print .gl-t-sheet img.gl-t-face { width: .8in !important; height: .8in !important; max-height: none !important; border-radius: 4px; object-fit: cover; }
  html.gl-t-print .gl-t-sheet .gl-t-agent-name { font-size: 11pt; font-weight: 600; color: #000; }
  html.gl-t-print .gl-t-sheet .gl-t-agent-role { font-size: 9pt; color: #333; }
  html.gl-t-print .gl-t-sheet .gl-t-agent-line { font-size: 10pt; color: #000; font-variant-numeric: tabular-nums lining-nums; }
  html.gl-t-print .gl-t-sheet .gl-t-office { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2pt 18pt; margin-top: 8pt;
    padding-top: 5pt; border-top: .75pt solid #999; }
  /* The address breaks after a slash (t-listing.js marks those places) or a hyphen, never inside a word. */
  html.gl-t-print .gl-t-sheet .gl-t-url { min-width: 0; font-size: 9.5pt; font-weight: 600; color: #000; }
  html.gl-t-print .gl-t-sheet .gl-t-main { font-size: 9pt; color: #333; text-align: right; }

  /* The page's own print view keeps the comparison line but not its button or popover. */
  body .gl-t-what, body .gl-t-pop { display: none !important; }
  body .gl-lp .gl-t-cmp { margin-top: 2pt; font-size: 10pt; color: #000; }
}

/* The index pages' share control (t-listing.php): a heading and one outlined navy "Share" button. On a computer it
   opens a small menu under it: ruled rows with an icon and a label, white with a navy edge, and the one shadow the
   brief allows, for an open menu. On a phone with a share sheet the button opens that sheet instead (d-listings.js).
   More room above and below (11/4 sweep), and the heading starts at the rule's left end, in line with the cards. */
body .gl-t-share { max-width: 1110px; margin: 56px auto 40px; padding: 32px 0 0; border-top: 1px solid rgba(24, 42, 97, .25); text-align: left; }
body .gl-t-share-h { margin: 0 0 12px; color: var(--gl-ink); font-size: 16px; font-weight: 600; }
/* .gl-t-share in front: Bootstrap 3's details and summary rule (REM loads it, after this file) has the same weight. */
body .gl-t-share .gl-t-share-d { position: relative; display: inline-block; margin: 0; padding: 0; border: 0; }
body .gl-t-share .gl-t-share-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 14px 0 16px; border: 1px solid var(--gl-navy);
  border-radius: var(--gl-radius); background: #fff; color: var(--gl-navy); font: 600 16px/1.2 var(--gl-sans); list-style: none; cursor: pointer;
  transition: background-color var(--gl-fast), color var(--gl-fast);
}
body .gl-t-share-btn::-webkit-details-marker { display: none; }
body .gl-t-share-btn::marker { content: ""; }
body .gl-t-share-btn .gl-i { flex: none; width: 18px; height: 18px; }
body .gl-t-share-btn .gl-t-share-chev { width: 16px; height: 16px; transition: transform var(--gl-fast); }
body .gl-t-share-d[open] .gl-t-share-chev { transform: rotate(180deg); }
body .gl-t-share-btn:focus-visible { outline: 3px solid #5b7bd5; outline-offset: 2px; }
@media (hover: hover) { body .gl-t-share-btn:hover, body .gl-t-share-d[open] .gl-t-share-btn { background: var(--gl-navy); color: #fff; } }
body .gl-t-share-menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; min-width: 220px; margin: 0; padding: 4px 0;
  border: 1px solid var(--gl-navy); border-radius: var(--gl-radius); background: #fff; box-shadow: 0 8px 24px rgba(16, 29, 69, .18);
}
body .gl-t-share .gl-t-share-item {
  display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 0;
  background: #fff; color: var(--gl-navy) !important; font: 600 16px/1.2 var(--gl-sans); letter-spacing: 0; text-transform: none; text-align: left;
  text-decoration: none !important; box-shadow: none; cursor: pointer;
}
body .gl-t-share-item + .gl-t-share-item { border-top: 1px solid rgba(24, 42, 97, .2); }
body .gl-t-share-item[hidden] { display: none; }
body .gl-t-share-item .gl-i { flex: none; width: 18px; height: 18px; }
@media (hover: hover) { body .gl-t-share-item:hover { background: var(--gl-wash); text-decoration: underline !important; text-underline-offset: 3px; } }
body .gl-t-share-item:focus-visible { outline: 3px solid #5b7bd5; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { body .gl-t-share-btn, body .gl-t-share-btn .gl-t-share-chev { transition: none; } }
@media print { body .gl-t-share { display: none; } }

/* Phones and the Fold (11/4 CTA review): the county comparison line ("18% under county average") at 16 px. */
@media (max-width: 1023px) {
  body .gl-lp .gl-t-cmp { font-size: 16px; }
}
