/* ============================================================
   OCEX Partners - storefront
   Quiet base, the logo and the county labels carry the orientation.
   ============================================================ */

.ocex-p-intro { max-width: 72ch; line-height: 1.7; color: #4a5563; }

/* --- Filter ------------------------------------------------- */
.ocex-p-filter {
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 4px;
  padding: 14px 16px 10px;
  margin: 18px 0 14px;
  background: rgba(0,0,0,.015);
}
.ocex-p-filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ocex-p-field { flex: 1 1 200px; }
.ocex-p-search { flex: 2 1 280px; }
.ocex-p-field label {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}
.ocex-p-actions { flex: 0 0 auto; padding-bottom: 1px; }

.ocex-p-counties { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.07); }
.ocex-p-counties-label {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 7px;
}
.ocex-p-county {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 11px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 13px;
  background: #fff;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.ocex-p-county input { position: absolute; opacity: 0; width: 0; height: 0; }
.ocex-p-county b { color: #8a93a0; font-weight: 600; font-size: 11px; }
.ocex-p-county:hover { border-color: rgba(13,92,152,.45); }
.ocex-p-county.on { background: #0d5c98; border-color: #0d5c98; color: #fff; }
.ocex-p-county.on b { color: rgba(255,255,255,.75); }

.ocex-p-count { color: #6b7280; font-size: 13px; margin: 0 0 14px; }

/* --- Cards -------------------------------------------------- */
/* min(340px,100%): a 340px track minimum would cause overflow on a narrow display (<=320px) */
.ocex-p-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.ocex-p-card {
  display: flex;
  /* the logo is on the RIGHT side of the card (owner request) - the DOM order stays, only the presentation is reversed */
  flex-direction: row-reverse;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.1);
  /* without rounding (owner trial, 2026-08-01): the blue left stripe of the featured card
     looked bad at rounded corners; if this is not good either, the next variant comes */
  border-radius: 0;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.ocex-p-card:hover { border-color: rgba(13,92,152,.35); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.ocex-p-card.featured { border-left: 3px solid #0d5c98; }

.ocex-p-logo {
  flex: 0 0 96px;
  height: 64px;
  display: flex;
  align-items: flex-start;      /* start at the height of the title, not in the middle of the box */
  justify-content: flex-end;    /* right-aligned, hugging the edge of the card */
  overflow: hidden;
}
.ocex-p-logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.ocex-p-logo-alt {
  width: 52px; height: 52px; border-radius: 50%;
  background: #eceff3; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600;
}

.ocex-p-body { flex: 1 1 auto; min-width: 0; }
.ocex-p-body h2 { font-size: 17px; margin: 0 0 6px; line-height: 1.3; }
.ocex-p-body h2 a { color: #2b3440; text-decoration: none; }
.ocex-p-body h2 a:hover { color: #0d5c98; }

.ocex-p-types { margin-bottom: 7px; }
.ocex-p-type {
  display: inline-block;
  margin: 0 5px 4px 0;
  padding: 2px 9px;
  border-radius: 10px;
  background: #eceff3;
  color: #3a4552;
  font-size: 11px;
  line-height: 16px;
}
.ocex-p-excerpt { font-size: 13px; line-height: 1.55; color: #55606e; margin: 0 0 9px; }

.ocex-p-loc { margin-bottom: 7px; font-size: 13px; }
.ocex-p-loc-name { display: block; font-weight: 600; font-size: 12.5px; color: #3a4552; }
.ocex-p-line { display: block; color: #55606e; line-height: 1.5; }
.ocex-p-line i { width: 15px; color: #97a0ad; }
.ocex-p-line a { color: #55606e; }
.ocex-p-line a:hover { color: #0d5c98; }
.ocex-p-line em { color: #8a93a0; font-style: normal; }

.ocex-p-area { font-size: 12px; color: #6b7280; margin: 6px 0 2px; }
.ocex-p-area i { color: #97a0ad; }

.ocex-p-foot { margin-top: 9px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.ocex-p-web, .ocex-p-more { color: #0d5c98; text-decoration: none; }
.ocex-p-web:hover, .ocex-p-more:hover { text-decoration: underline; }

@media (max-width: 480px) {
  /* on a narrow screen the logo goes to the top of the card, left-aligned */
  .ocex-p-card { flex-direction: column; }
  .ocex-p-logo { flex-basis: auto; justify-content: flex-start; height: auto; }
}

/* --- Dark mode ---------------------------------------------- */
[data-ocex-theme="dark"] .ocex-p-filter { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.12); }
[data-ocex-theme="dark"] .ocex-p-counties { border-top-color: rgba(255,255,255,.1); }
[data-ocex-theme="dark"] .ocex-p-county { background: #262a33; border-color: rgba(255,255,255,.16); color: #c8d0da; }
[data-ocex-theme="dark"] .ocex-p-card { background: #262a33; border-color: rgba(255,255,255,.12); }
[data-ocex-theme="dark"] .ocex-p-card:hover { border-color: rgba(110,168,220,.45); }
[data-ocex-theme="dark"] .ocex-p-body h2 a { color: #dfe4ea; }
[data-ocex-theme="dark"] .ocex-p-body h2 a:hover { color: #8ec0ea; }
[data-ocex-theme="dark"] .ocex-p-type { background: #333846; color: #c8d0da; }
[data-ocex-theme="dark"] .ocex-p-excerpt,
[data-ocex-theme="dark"] .ocex-p-line,
[data-ocex-theme="dark"] .ocex-p-line a { color: #aab3bf; }
[data-ocex-theme="dark"] .ocex-p-logo-alt { background: #333846; color: #aab3bf; }
[data-ocex-theme="dark"] .ocex-p-web,
[data-ocex-theme="dark"] .ocex-p-more { color: #8ec0ea; }
[data-ocex-theme="dark"] .ocex-p-intro { color: #aab3bf; }

/* --- Partner profile ---------------------------------------- */
.ocex-pd-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 18px; }
.ocex-pd-title { flex: 1 1 auto; min-width: 0; }
.ocex-pd-title h1 { margin-top: 0; }
.ocex-pd-logo { flex: 0 0 auto; max-width: 300px; }
.ocex-pd-logo img { max-width: 100%; max-height: 130px; width: auto; height: auto; object-fit: contain; }
.ocex-pd-intro { font-size: 15px; color: #55606e; margin-top: 8px; }
.ocex-pd-desc { max-width: 72ch; line-height: 1.75; margin-bottom: 26px; }

.ocex-pd-block { margin: 26px 0; }
.ocex-pd-block > h2 {
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: #6b7280;
  border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: 7px; margin-bottom: 14px;
}
.ocex-pd-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.ocex-pd-loc { padding: 12px 14px; border: 1px solid rgba(0,0,0,.1); border-radius: 4px; font-size: 13px; }
.ocex-pd-loc h3 { font-size: 14px; margin: 0 0 5px; }
.ocex-pd-label {
  display: inline-block; margin-bottom: 5px; padding: 1px 8px; border-radius: 9px;
  background: #eceff3; color: #55606e; font-size: 11px;
}
.ocex-pd-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.ocex-pd-foot { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 600px) {
  /* on mobile the logo goes to the top. tr-607 (owner 10-16): LEFT-aligned, the title not centred and smaller -
     the 24 px was overridden by the theme's `#content h1 {2em}` id rule, so an id is used here too */
  .ocex-pd-head { flex-direction: column-reverse; align-items: flex-start; text-align: left; }
  .ocex-pd-logo { max-width: 240px; margin: 0; }
  #content .ocex-pd-title h1 { font-size: 24px; line-height: 1.25; margin-top: 0; }
}

[data-ocex-theme="dark"] .ocex-pd-block > h2 { color: #98a2b0; border-bottom-color: rgba(255,255,255,.1); }
[data-ocex-theme="dark"] .ocex-pd-loc { border-color: rgba(255,255,255,.12); }
[data-ocex-theme="dark"] .ocex-pd-label { background: #333846; color: #aab3bf; }
[data-ocex-theme="dark"] .ocex-pd-intro,
[data-ocex-theme="dark"] .ocex-pd-desc { color: #aab3bf; }

/* ---- Area: country + counties ------------------------------------------- */
.ocex-p-country { font-weight: 600; }

.ocex-p-nationwide {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	font-size: 12px;
	font-weight: 600;
	color: #2f6f3e;
	background: #e6f2e9;
	border: 1px solid #cfe3d5;
	border-radius: 10px;
}

.ocex-pd-country {
	margin: 12px 0 6px;
	font-size: 15px;
}

/* ---- Map search --------------------------------------------------------- */
.ocex-p-map {
  height: 380px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 5px;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.ocex-p-map .leaflet-popup-content { font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) {
  .ocex-p-map { height: 260px; }
}
[data-ocex-theme="dark"] .ocex-p-map { border-color: rgba(255, 255, 255, .14); }

/* ---- Profile: basic information block ----------------------------------- */
.ocex-pd-basics { font-size: 14px; }
.ocex-pd-basics .ocex-p-line { margin-bottom: 3px; }

/* ---- Profile form: two-step area selector (country -> county) ----------- */
.ocex-pp-country { max-width: 320px; margin-bottom: 10px; }
.ocex-pp-area { display: none; }
.ocex-pp-area.on { display: block; }
.ocex-pp-allnone-wrap { display: inline-block; margin: 0 0 6px 2px; font-size: 12px; color: #97a0ad; }
.ocex-pp-allnone { color: #0d5c98; text-decoration: none; }
.ocex-pp-allnone:hover { text-decoration: underline; }

[data-ocex-theme="dark"] .ocex-pp-allnone { color: #8ec0ea; }

/* ---- Profile form: "Do you already have your own website?" branch + offer box (E347) --- */
.ocex-pp-demo-link { margin: -4px 0 18px; font-size: 14px; }
.ocex-pp-demo-link a { color: #0d5c98; }
.ocex-pp-radios .radio-inline { font-weight: 400; margin-right: 18px; }
.ocex-pp-radios .radio-inline + .radio-inline { margin-left: 0; }
.ocex-pp-branch { margin-bottom: 14px; }
.ocex-pp-why, .ocex-pp-backlink-help { max-width: 72ch; line-height: 1.6; }
.ocex-pp-backlink-help p { margin: 0 0 8px; }
.ocex-pp-offer {
  border: 1px solid rgba(13, 92, 152, .25);
  border-left: 4px solid #0d5c98;
  border-radius: 4px;
  background: rgba(13, 92, 152, .05);
  padding: 14px 18px 6px;
  max-width: 76ch;
  line-height: 1.6;
}
.ocex-pp-offer h3 { margin: 0 0 10px; font-size: 17px; }
.ocex-pp-offer p { margin: 0 0 10px; }
[data-ocex-theme="dark"] .ocex-pp-demo-link a { color: #8ec0ea; }
[data-ocex-theme="dark"] .ocex-pp-offer { background: rgba(142, 192, 234, .08); border-color: rgba(142, 192, 234, .3); border-left-color: #8ec0ea; }

/* ---- Sample profile: warning bar + "Your logo here" (E347) ---------------------- */
.ocex-pd-demo-notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid rgba(217, 119, 6, .35);
  border-radius: 4px;
  background: rgba(217, 119, 6, .08);
  color: #7c4a03;
  font-size: 14px;
  line-height: 1.5;
}
.ocex-pd-logo-demo svg { display: block; width: 240px; max-width: 100%; height: auto; color: #97a0ad; font-family: inherit; }
[data-ocex-theme="dark"] .ocex-pd-demo-notice { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); color: #f5d27a; }
[data-ocex-theme="dark"] .ocex-pd-logo-demo svg { color: #6f7a88; }

/* --- Pagination (E353, owner 2026-09-28: "a little margin above or around the pagination buttons") --- */
/* We zeroed the .pagination's own 20px margin, so that the distance is the same regardless of the theme. */
.ocex-p-pager { margin: 30px 0 10px; }
.ocex-p-pager .pagination { margin: 0; }
