/* OwnDirectory card parts. Inside the core's white Bootstrap cards the theme may set a light body
   colour (dark themes), so our text takes an explicit dark colour there; elsewhere it inherits. */
.card .od-place, .card .od-facts, .card .od-excerpt, .geodir-post .od-place, .geodir-post .od-facts, .geodir-post .od-excerpt { color: #2f3640; }
.od-place { margin: .1rem 0 .45rem; font-size: .95em; opacity: .85; }
.od-cats { margin: 0 0 .55rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.od-cat { display: inline-block; padding: .1rem .6rem; border-radius: 1rem; border: 1px solid currentColor; font-size: .8em; line-height: 1.5; text-decoration: none; opacity: .85; }
.od-cat:hover { opacity: 1; text-decoration: none; }
.od-facts { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95em; }
.od-facts li { margin: 0; white-space: nowrap; }
.od-ico { opacity: .55; }
.od-excerpt { margin: 0 0 .4rem; line-height: 1.5; }

/* =====================================================================================
   Catalogue (archive, category, search results). Everything is scoped to .od-catalog so the
   theme's own pages are untouched. Colours: white background, the theme's blue accent, graphite text.
   ===================================================================================== */
.od-catalog {
  --od-accent: var(--bs-primary, #1e87f0);
  --od-accent-soft: rgba(30, 135, 240, .12);
  --od-text: #1f2933;
  --od-muted: #5b6770;
  --od-line: #e3e8ee;
  --od-bg-soft: #f4f6f8;
  --od-radius: 14px;
  --od-radius-sm: 10px;
  color: var(--od-text);
  font-size: 15px;
  line-height: 1.5;
}
.od-catalog :is(a, button, input, select, [tabindex]):focus-visible { outline: 3px solid var(--od-accent); outline-offset: 2px; box-shadow: none; }

/* ---- Search form: one row on desktop, stacked on phones ---- */
.od-catalog .geodir-search-form-wrapper { margin-bottom: 20px; }
.od-catalog .geodir-search-container .geodir-search {
  display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1.4fr) minmax(0, 1.3fr) auto;
  width: auto;
  /* the core adds Bootstrap utilities with !important (px-3, gap-2, gy-2, align-items-center): neutralise them */
  align-items: end !important;
  padding: 0 !important; margin: 0 !important; gap: 12px !important; row-gap: 12px !important;
}
.od-catalog .geodir-search > [class*="col"] { width: auto; max-width: none; flex: none; padding: 0 !important; margin: 0 !important; min-width: 0; }
.od-catalog .geodir-search > [class*="col"] > div { margin: 0 !important; }
.od-catalog .geodir-search .form-control, .od-catalog .geodir-search .form-select, .od-catalog .geodir-search .geodir_submit_search {
  height: 46px; min-height: 46px; box-sizing: border-box; border-radius: var(--od-radius-sm); font-size: 15px; box-shadow: none; margin: 0;
}
.od-catalog .geodir-search .form-control, .od-catalog .geodir-search .form-select { border: 1px solid #c9d1da; color: var(--od-text); background-color: #fff; }
.od-catalog .geodir-search .form-control:focus, .od-catalog .geodir-search .form-select:focus { border-color: var(--od-accent); box-shadow: 0 0 0 3px var(--od-accent-soft); }
.od-catalog .geodir-search .form-select { padding-left: 14px; }
.od-catalog .geodir-search .form-label, .od-catalog .geodir-search .od-search-label,
.od-catalog .gd-search-field-cpt > div::before {
  display: block; font-size: 13px; font-weight: 600; color: var(--od-muted); margin: 0 0 5px; line-height: 1.3;
}
.od-catalog .gd-search-field-cpt > div::before { content: "Type"; }
.od-catalog .geodir-search .input-group-inside .form-control { padding-left: 38px; }
.od-catalog .geodir-search .input-group-text { padding-left: 12px; }
.od-catalog .gd-search-field-near { position: relative; }
.od-catalog .gd-search-field-near .form-control { padding-right: 104px; }
.od-catalog .gd-search-field-near .od-near-me-wrap { position: absolute; right: 5px; bottom: 5px; margin: 0; }
.od-catalog .gd-search-field-near .od-near-me { height: 36px; min-height: 0; line-height: 1; padding: 0 10px; font-size: 13px; border-radius: 8px; border-color: transparent; background: var(--od-accent-soft); color: var(--od-accent); }
.od-catalog .gd-search-field-near .od-near-me:hover { background: var(--od-accent); color: #fff; }
.od-catalog .gd-search-field-near .od-near-me-msg { position: absolute; top: 100%; right: 0; margin: 4px 0 0; width: max-content; max-width: 70vw; text-align: right; }
/* The button is inline-block by default, which leaves a descender gap under it inside its wrapper and
   lifts it above the inputs' bottom edge; flex removes the gap. */
.od-catalog .gd-search-field-button > div { display: flex; line-height: 0; }
.od-catalog .geodir-search .geodir_submit_search { padding: 0 22px; font-weight: 600; display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; line-height: 1; }
.od-catalog .geodir-search .geodir_submit_search .fa-search { font-size: 14px; }
@media (max-width: 1023px) {
  /* Tablet: Type + keyword on the first row, Location + Search on the second. */
  .od-catalog .geodir-search-container .geodir-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .od-catalog .geodir-search-container .geodir-search { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Loop bar: result count left, sort right ---- */
.od-loop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 20px; }
.od-results { margin: 0; font-size: 15px; color: var(--od-muted); }
.od-results strong { color: var(--od-text); font-weight: 600; }
.od-catalog .od-sort-by .btn { min-height: 40px; border-radius: var(--od-radius-sm); font-size: 14px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.od-catalog .od-sort-by .btn .fa-chevron-down { font-size: 11px; opacity: .7; }
.od-catalog .od-sort-prefix { font-weight: 400; opacity: .75; }
.od-catalog .od-sort-by .dropdown-menu { border-radius: var(--od-radius-sm); border-color: var(--od-line); box-shadow: 0 10px 30px rgba(31,41,51,.12); min-width: 14rem; }
.od-catalog .od-sort-by .dropdown-item { padding: 8px 16px; font-size: 14px; color: var(--od-text); }
.od-catalog .od-sort-by .dropdown-item.active { background: var(--od-accent-soft); color: var(--od-text); font-weight: 600; }
.od-catalog .od-sort-by .dropdown-header { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--od-muted); }

/* ---- Grid: 3 / 2 / 1 columns, equal card heights per row ---- */
.od-catalog .geodir-loop-container > .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; width: auto; }
@media (max-width: 1023px) { .od-catalog .geodir-loop-container > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 639px)  { .od-catalog .geodir-loop-container > .row { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.od-catalog .geodir-loop-container > .row > .geodir-post { width: auto; max-width: none; flex: none; padding: 0; margin: 0 !important; min-width: 0; display: flex; }

/* ---- Card ---- */
.od-catalog .geodir-post .card {
  display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; color: var(--od-text);
  border: 1px solid var(--od-line); border-radius: var(--od-radius); box-shadow: none; overflow: visible;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.od-catalog .geodir-post .card:hover { box-shadow: 0 8px 24px rgba(31,41,51,.09); border-color: #d3dbe4; }
.od-catalog .geodir-post .card:focus-within { border-color: var(--od-accent); }
.od-catalog .geodir-post .card-img-top { border-radius: var(--od-radius) var(--od-radius) 0 0; background: var(--od-bg-soft); flex: none; }
.od-catalog .geodir-post .card-img-top .ratio { --bs-aspect-ratio: 56.25%; }
.od-catalog .geodir-post .card-img-top img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.od-catalog .geodir-post .card-img-top .geodir-link-image:focus-visible { outline-offset: -3px; }
.od-catalog .geodir-post .card-img-top .fa-link { display: none; }
.od-nophoto { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--od-muted); pointer-events: none; }

.od-catalog .geodir-post .card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 18px 16px !important; min-width: 0; }
.od-catalog .geodir-entry-title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; margin: 0 0 6px; min-height: 2.6em; color: var(--od-text); overflow-wrap: anywhere; }
.od-catalog .geodir-entry-title a { color: inherit; text-decoration: none; }
.od-catalog .geodir-entry-title a:hover { color: var(--od-accent); }
.od-catalog .od-place { font-size: 14px; color: var(--od-muted); opacity: 1; margin: 0 0 8px; min-height: 1.5em; }
.od-catalog .od-cats { min-height: 24px; margin: 0 0 12px; gap: 6px; }
.od-catalog .od-cat { font-size: 12px; line-height: 1.4; padding: 3px 10px; border: 1px solid var(--od-line); border-radius: 999px; color: var(--od-muted); background: var(--od-bg-soft); opacity: 1; }
.od-catalog .od-cat:hover { border-color: var(--od-accent); color: var(--od-accent); }
.od-facts-zone { min-height: 6.4em; margin: 0 0 8px; }
.od-stat { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.od-stat-value { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--od-text); font-variant-numeric: tabular-nums; }
.od-stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--od-muted); }
.od-catalog .od-facts { display: block; font-size: 14px; color: var(--od-text); margin: 0; padding: 0; list-style: none; }
.od-catalog .od-facts li { white-space: normal; line-height: 1.5; margin: 0; color: var(--od-muted); }
.od-catalog .od-facts li b { font-weight: 600; color: var(--od-text); }
.od-catalog .geodir-post-distance { margin: 0 0 8px; font-size: 13px; }
.od-verified { margin-top: auto; padding-top: 10px; font-size: 13px; color: #2e7d4f; display: flex; align-items: center; gap: 6px; }
.od-verified .od-ico { opacity: 1; }
.od-empty { min-height: 0 !important; margin: 0 !important; }

/* ---- Pagination ---- */
.od-pagination { margin: 8px 0 0; }
.od-pages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.od-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 14px; border: 1px solid var(--od-line); border-radius: var(--od-radius-sm); color: var(--od-text); font-size: 15px; text-decoration: none; background: #fff; }
.od-pages a.page-numbers:hover { border-color: var(--od-accent); color: var(--od-accent); }
.od-pages .page-numbers.current { background: var(--od-accent); border-color: var(--od-accent); color: #fff; font-weight: 600; }
.od-pages .page-numbers.dots { border: 0; min-width: 24px; padding: 0; color: var(--od-muted); }
.od-pages .prev, .od-pages .next { gap: 6px; font-weight: 600; }

/* ---- Empty state ---- */
.od-catalog .geodir-no-listings-found, .od-catalog .geodir-loop-container .alert { border: 1px dashed var(--od-line); border-radius: var(--od-radius); padding: 28px 24px; text-align: center; background: var(--od-bg-soft); color: var(--od-text); }

.od-empty-title { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.od-empty-hint { margin: 0; color: var(--od-muted); }
.od-empty-hint a { color: var(--od-accent); font-weight: 600; }

/* Distance badge printed by the core in near-me results */
.od-catalog .geodir-post-distance .badge { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--od-accent-soft) !important; color: var(--od-accent) !important; }

/* Core + YOOtheme quirk: on a search with zero results the theme's loop prints a second, empty
   article (id="post-") after the search page. Nothing else ever renders with that id. */
body.search article#post-.uk-article { display: none; }


/* ---- Landing page (Waterfalls near me): hero, prose, FAQ, map ---- */
.od-catalog h2 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--od-text); margin: 36px 0 14px; }
.od-catalog h2:first-child { margin-top: 0; }
.od-hero { margin: 0 0 8px; }
.od-lead { font-size: 18px; line-height: 1.55; max-width: 46rem; margin: 0 0 18px; color: var(--od-text); }
.od-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 10px; }
.od-hero-actions .od-near-me-wrap { max-width: none; }
.od-hero-actions .od-near-me { height: 48px; padding: 0 22px; border-radius: var(--od-radius-sm); font-size: 16px; font-weight: 600; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.od-hero-actions .od-near-me.od-btn-primary { background: var(--od-accent); color: #fff; }
.od-hero-actions .od-near-me.od-btn-primary:hover { filter: brightness(.94); color: #fff; }
.od-hero-actions .od-near-me.od-btn-secondary { background: #fff; color: var(--od-accent); border-color: var(--od-accent); }
.od-hero-actions .od-near-me.od-btn-secondary:hover { background: var(--od-accent-soft); }
.od-hero-actions .od-near-me-msg { color: #b32d2e; font-size: 14px; }
.od-hero-note { font-size: 13px; color: var(--od-muted); margin: 0; }
.od-catalog .od-map { border-radius: var(--od-radius); border: 1px solid var(--od-line); }
.od-map-hint { font-size: 14px; color: var(--od-muted); margin: 10px 0 0; max-width: 46rem; }
.od-seo { max-width: 46rem; font-size: 16px; line-height: 1.6; margin-top: 8px; }
.od-seo p { margin: 0 0 14px; }
.od-seo ul { margin: 0 0 14px; padding-left: 1.2rem; }
.od-seo li { margin: 0 0 6px; }
.od-seo a { color: var(--od-accent); text-decoration: underline; text-underline-offset: 2px; }
.od-seo em { color: inherit; font-style: italic; }
.od-faq { margin: 0; }
.od-faq dt { font-weight: 600; margin: 14px 0 4px; }
.od-faq dd { margin: 0; color: var(--od-muted); }
@media (max-width: 639px) { .od-hero-actions .od-near-me { width: 100%; justify-content: center; } .od-hero-actions .od-near-me-wrap { width: 100%; } }


/* ---- Archive hub: intro, type chips, top list ---- */
.od-archive-intro { margin: 0 0 20px; }
.od-archive-intro .od-lead { font-size: 17px; margin-bottom: 14px; }
.od-archive-intro .od-hero-actions { margin-bottom: 0; }
.od-archive-intro .od-hero-actions .od-near-me { height: 44px; font-size: 15px; }
.od-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 20px; }
.od-chips-label { font-size: 13px; font-weight: 600; color: var(--od-muted); margin-right: 4px; }
.od-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--od-line); border-radius: 999px; background: #fff; color: var(--od-text); font-size: 14px; text-decoration: none; white-space: nowrap; }
.od-chip:hover { border-color: var(--od-accent); color: var(--od-accent); text-decoration: none; }
.od-chip.is-active { background: var(--od-accent); border-color: var(--od-accent); color: #fff; }
.od-chip-n { font-size: 12px; color: var(--od-muted); }
.od-chip.is-active .od-chip-n { color: rgba(255,255,255,.8); }
.od-archive-text { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--od-line); max-width: 48rem; }
.od-top { list-style: none; counter-reset: od; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.od-top li { counter-increment: od; display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; grid-template-areas: "n name h" "n place h"; align-items: baseline; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--od-line); font-size: 15px; }
.od-top li::before { content: counter(od); grid-area: n; font-weight: 700; color: var(--od-muted); font-variant-numeric: tabular-nums; }
.od-top li a { grid-area: name; font-weight: 600; color: var(--od-text); text-decoration: none; }
.od-top li a:hover { color: var(--od-accent); }
.od-top-h { grid-area: h; font-weight: 700; font-variant-numeric: tabular-nums; align-self: center; }
.od-top-place { grid-area: place; font-size: 13px; color: var(--od-muted); }
.od-top-note { font-size: 14px; color: var(--od-muted); margin: 0 0 8px; }
@media (max-width: 639px) { .od-top { grid-template-columns: minmax(0, 1fr); } }


/* ---- Types glossary page ---- */
.od-gloss-toc { margin: 8px 0 28px; }
.od-gloss { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 32px; padding: 28px 0; border-top: 1px solid var(--od-line); scroll-margin-top: 90px; }
.od-gloss-photo { margin: 0; }
.od-gloss-photo a, .od-gloss-frame { display: block; position: relative; border-radius: var(--od-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--od-bg-soft); }
.od-gloss-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-gloss-photo figcaption { font-size: 12px; color: var(--od-muted); margin-top: 6px; line-height: 1.4; }
.od-gloss-text h2 { margin: 0 0 8px; }
.od-gloss-def { font-size: 17px; font-weight: 600; margin: 0 0 12px; color: var(--od-text); }
.od-gloss-text p { font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.od-gloss-examples { color: var(--od-muted); }
.od-gloss-examples a { color: var(--od-text); font-weight: 600; text-decoration: none; }
.od-gloss-examples a:hover { color: var(--od-accent); }
.od-gloss-h { font-size: 13px; color: var(--od-muted); }
.od-gloss-more a { color: var(--od-accent); font-weight: 600; text-decoration: none; }
.od-gloss-more a:hover { text-decoration: underline; }
@media (max-width: 767px) { .od-gloss { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; } }


/* ---- Browse by state ---- */
.od-states { margin: -8px 0 20px; }
.od-states summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--od-text); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--od-line); border-radius: 999px; background: #fff; list-style: none; }
.od-states summary::-webkit-details-marker { display: none; }
.od-states summary::before { content: "▸"; font-size: 12px; color: var(--od-muted); }
.od-states[open] summary::before { content: "▾"; }
.od-states-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 4px 16px; }
.od-state { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; color: var(--od-text); text-decoration: none; font-size: 14px; }
.od-state:hover { background: var(--od-bg-soft); color: var(--od-accent); }
.od-state.is-active { background: var(--od-accent-soft); color: var(--od-accent); font-weight: 600; }
.od-state-text .od-map { margin-bottom: 0; }
.od-counties-list { margin: 8px 0 16px; }

/* Print / zoom safety: nothing on the card is clipped */
.od-catalog .geodir-post .card * { min-width: 0; }

/* Detail page header: answer sentence + key facts grid. */
.od-summary { font-size: 1.15em; line-height: 1.5; margin: .25rem 0 1rem; max-width: 60rem; }
.od-key-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem 1.5rem; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid rgba(128,128,128,.35); border-radius: .5rem; }
.od-kf dt { font-size: .75em; letter-spacing: .04em; text-transform: uppercase; opacity: .6; margin: 0; }
.od-kf dd { margin: .1rem 0 0; font-size: 1.05em; }
.od-fact-link { font-size: .85em; margin-left: .4rem; }
.od-section-title { margin-top: 2rem; }

/* Nearby list */
.od-nearby { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .5rem 1.5rem; }
.od-nearby-item { padding: .45rem 0; border-bottom: 1px solid rgba(128,128,128,.25); }
.od-nearby-item a { font-weight: 600; }
.od-nearby-dist { float: right; opacity: .7; font-variant-numeric: tabular-nums; }
.od-nearby-facts { display: block; font-size: .85em; opacity: .7; }
.od-fact-sub { opacity: .6; font-size: .85em; margin-left: .3rem; }

/* "Waterfalls by State" hub ([od_state_hub]) and archive breadcrumbs ([od_breadcrumbs]) */
.od-hub-region { margin: 28px 0 8px; }
.od-hub-region h3 { font-size: 18px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
.od-hub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 12px; }
.od-hub-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--od-line); border-radius: 12px; }
.od-hub-card:hover { border-color: var(--od-accent); }
.od-hub-state { font-size: 17px; font-weight: 600; color: var(--od-text); text-decoration: none; }
.od-hub-state:hover { color: var(--od-accent); }
.od-hub-count { font-size: 13px; color: var(--od-muted); }
.od-hub-tall { font-size: 13px; color: var(--od-text); }
.od-hub-tall a { color: var(--od-accent); }
.od-breadcrumbs { margin-top: -8px; }
