/* ============================================================
   OCEX Partnerek — katalógus
   Halk alap, a logó és a megye-címkék viszik a tájékozódást.
   ============================================================ */

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

/* --- Szűrő -------------------------------------------------- */
.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; }

/* --- Kártyák ------------------------------------------------ */
/* min(340px,100%): a 340px-es track-minimum keskeny kijelzon (<=320px) tullogast okozna */
.ocex-p-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.ocex-p-card {
  display: flex;
  /* a logo a kartya JOBB oldalan (tulaj-keres) — a DOM-sorrend marad, csak a megjelenites fordul */
  flex-direction: row-reverse;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.1);
  /* lekerekites nelkul (tulaj-proba, 2026-08-01): a kiemelt-kartya bal keksavja
     ivelt saroknal rosszul mutatott; ha igy sem jo, jon a kovetkezo valtozat */
  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;      /* a cim magassagaban induljon, ne a doboz kozepen */
  justify-content: flex-end;    /* jobbra zarva, a kartya szelehez simulva */
  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) {
  /* keskeny kepernyon a logo a kartya tetejere kerul, balra zarva */
  .ocex-p-card { flex-direction: column; }
  .ocex-p-logo { flex-basis: auto; justify-content: flex-start; height: auto; }
}

/* --- Sötét mód ---------------------------------------------- */
[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 adatlap ---------------------------------------- */
.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) {
  /* mobilon a logó felülre kerül, középre zárva, nagyobb méretben */
  .ocex-pd-head { flex-direction: column-reverse; align-items: center; text-align: center; }
  .ocex-pd-logo { max-width: 240px; margin: 0 auto; }
  .ocex-pd-title h1 { font-size: 24px; }
}

[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; }

/* ---- Terulet: orszag + megyek ------------------------------------------- */
.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;
}

/* ---- Térképes kereső ---------------------------------------------------- */
.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); }

/* ---- Adatlap: alapadatok blokk ------------------------------------------ */
.ocex-pd-basics { font-size: 14px; }
.ocex-pd-basics .ocex-p-line { margin-bottom: 3px; }

/* ---- Profil-űrlap: kétlépcsős területválasztó (ország -> megye) --------- */
.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; }
