/* =====================================================
   ARCHIVE LOCAȚII – layout cu filtru lateral
   ===================================================== */

:root {
  /* aprox. înălțimea headerului Blocksy pe mobil */
  --cc-header-offset: 84px;
}

/* Paletă locală pentru paginile de arhivă locații */
body.tax-locatii,
body.post-type-archive-locatii {
  --cc-bg-page:   #F9FBFF;
  --cc-bg-card:   #FFFFFF;
  --cc-bg-soft:   #F3F6FB;
  --cc-bg-soft-2: #F8FCFD;
  --cc-border-soft: #E2E8F0;
  --cc-heading:   #121826;
  --cc-text-main: #1F2933;
  --cc-text-muted:#6B7280;
  --cc-shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.06);

  background: var(--cc-bg-page);
  color: var(--cc-text-main);
}

/* Eliminăm banda albă dintre meniu și hero DOAR pe arhivele de locații */
body.tax-locatii .site-content,
body.tax-locatii #page,
body.tax-locatii #main,
body.post-type-archive-locatii .site-content,
body.post-type-archive-locatii #page,
body.post-type-archive-locatii #main {
  background: var(--cc-bg-page) !important;
}

/* -----------------------------------------------------
   LAYOUT GENERAL
   ----------------------------------------------------- */

.cc-archive-locatii {
  padding: 0 0 56px;
}

@media (max-width: 767.98px) {
  .cc-archive-locatii {
    padding-top: var(--cc-header-offset); /* sub headerul sticky */
  }
}

/* container comun pentru filtre + carduri */
.cc-archive-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* pe desktop: 2 coloane (filtre stânga, carduri dreapta) */
@media (min-width: 992px) {
  .cc-archive-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: flex-start;
    gap: 40px;
  }
}

/* pe mobil facem padding puțin mai mic */
@media (max-width: 767.98px) {
  .cc-archive-main {
    padding: 0 12px;
  }
}

/* -----------------------------------------------------
   HERO
   ----------------------------------------------------- */

.cc-archive-hero {
  background: linear-gradient(180deg, #F4F7FD 0%, var(--cc-bg-card) 90%);
  padding: 48px 0 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 8px;
}

/* compensăm headerul sticky pe tabletă + desktop */
@media (min-width: 768px) {
  .cc-archive-hero {
    padding-top: calc(32px + var(--cc-header-offset));
  }
}

/* HERO – versiune mobil, compactă */
@media (max-width: 767.98px) {
  .cc-archive-hero {
    padding: 30px 0 16px;
  }
}

.cc-archive-hero__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.cc-archive-title {
  /* folosește H1 din Customizer */
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--cc-heading);
}

.cc-archive-subtitle {
  max-width: 820px;
  margin: 0 auto;
  /* folosește body font-size din Customizer */
  line-height: 1.65;
  opacity: 0.9;
  color: var(--cc-text-main);
}

.cc-archive-breadcrumb {
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.8;
  color: var(--cc-text-muted);
}

.cc-archive-breadcrumb a {
  text-decoration: none;
  color: inherit;
}

.cc-archive-breadcrumb span {
  margin: 0 4px;
}

/* „Se afișează X locații” – ascuns în hero,
   apare în cardul de filtre */
.cc-archive-count {
  display: none;
}

/* HERO – mobile: doar spațiere, nu și mărimi de font */
@media (max-width: 767.98px) {
  .cc-archive-hero__inner {
    max-width: 100%;
    padding: 0 14px;
  }

  .cc-archive-breadcrumb {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .cc-archive-title {
    margin-bottom: 6px;
  }

  .cc-archive-subtitle {
    line-height: 1.6;
  }
}

/* -----------------------------------------------------
   FILTRE – CARD GENERAL (cardish)
   ----------------------------------------------------- */

.cc-filters-wrapper {
  margin: 0 0 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 16px 20px 18px;
}

/* filtru sticky pe desktop */
@media (min-width: 992px) {
  .cc-filters-wrapper {
    position: sticky;
    top: 90px;
    height: fit-content;
    transition: 0.3s ease;
  }
}

/* pe mobil centram cardul de filtre și micșorăm padding-ul */
@media (max-width: 767.98px) {
  .cc-filters-wrapper {
    max-width: 540px;
    margin: 12px auto 18px;
    padding: 12px 16px 14px;
    border-radius: 20px;
  }
}

/* bara de sus: Filtre / Count / Reset */
.cc-filters-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12.5px;
  color: var(--cc-text-main);
}

#cc-results-count {
  flex: 1;
  text-align: left;
  font-size: 12.5px;
  opacity: 0.85;
}

/* buton reset – stil original refăcut */
.cc-reset-filters {
  border: none;
  background: #F3F7F8;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  color: #10232F;
}

.cc-reset-filters:hover {
  background: #E8F5FA;
}

/* conținutul filtrelor (blocuri) */
.cc-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* bloc de filtru */
.cc-filter-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cc-filter-block:last-child {
  border-bottom: none;
}

/* label filtre – font mic */
.cc-filter-label {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.75;
}

/* grup de chips-uri – default: wrap */
.cc-chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px; /* mic spațiu sub label */
}

/* =========================
   CHIPS FILTRU
   ========================= */

.cc-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: #F3F7F9;
  font-size: 12.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
  font-weight: 500;
  color: #10232f;
}

/* la hover */
.cc-chip:hover {
  background: #E9F5F6;
}

/* SELECTAT */
.cc-chip.active {
  font-size: 12.5px;
  font-weight: 600;
  background: #23D3D3;
  border-color: #23D3D3;
  color: #fff;
}

/* Chips dezactivate */
.cc-chip.cc-chip--disabled {
  opacity: 0.35;
  background: #e7ecef;
}

/* =========================
   SELECT DROPDOWN cartier/oras
   ========================= */
#filter-cartier,
#filter-oras {
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  background: #F3F7F9;
  border: none;
  color: #0F1E2B;
}

/* blocuri ascunse din JS (în funcție de context) */
.cc-filter-block--hidden {
  display: none !important;
}

/* -----------------------------------------------------
   FILTRE – MOBILE (buton Filtre + panou expandabil)
   ----------------------------------------------------- */

.cc-filters-toggle {
  display: none;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12.5px;
  background: #23d3d3;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .cc-filters-top {
    gap: 6px;
  }

  .cc-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #cc-results-count {
    text-align: center;
  }

  .cc-reset-filters {
    padding: 5px 10px;
  }

  /* conținutul filtrelor este ascuns implicit */
  .cc-filters-inner {
    display: none;
    margin-top: 10px;
    flex-direction: column;
    gap: 12px;
  }

  /* când wrapper-ul are .is-open (din JS) – afișăm panoul */
  .cc-filters-wrapper.is-open .cc-filters-inner {
    display: flex;
  }

  .cc-chip-group {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .cc-chip-group::-webkit-scrollbar {
    display: none;
  }
}

/* -----------------------------------------------------
   FILTRE ACTIVE + grupuri activități
   ----------------------------------------------------- */

#cc-active-filters {
  margin: 10px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cc-active-filter-pill {
  border: none;
  border-radius: 999px;
  padding: 4px 10px 4px 12px;
  background: rgba(35, 211, 211, 0.08);
  color: #183343;
  font-size: 12px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cc-active-filter-pill__x {
  font-size: 14px;
  line-height: 1;
  color: #8a9aa7;
}

/* grupuri activități ierarhice */

.cc-filter-activitate-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-filter-activitate-group {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--cc-bg-soft-2);
}

.cc-filter-activitate-group__title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8091a3;
}

.cc-filter-activitate-group .cc-chip-group {
  flex-wrap: wrap;
  gap: 6px;
}

/* -----------------------------------------------------
   GRID & CARDURI
   ----------------------------------------------------- */

.cc-archive-list {
  margin-top: 0;
}

.cc-locatii-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

/* 2 coloane pe tabletă */
@media (min-width: 768px) and (max-width: 991.98px) {
  .cc-locatii-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 coloane pe desktop mare */
@media (min-width: 1200px) {
  .cc-locatii-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Slot ARCHIVE_INFEED_18: vizibil doar între mobil și desktop larg (tabletă / laptop îngust).
   Nu folosim grid-column full-width — cardul partener rămâne același tip ca celelalte. */
.cc-archive-infeed-ad-wrap--tablet-only {
  display: none;
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .cc-archive-infeed-ad-wrap--tablet-only {
    display: contents;
  }
}

/* =========================
   CARD LOCAȚIE – BAZĂ
   ========================= */

.cc-locatie-card {
  background: var(--cc-bg-card);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(15, 41, 72, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cc-locatie-card__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Link-uri invizibile in interiorul cardurilor (oras/tip/cartier/pills):
   trebuie sa pastreze exact stilul original al cardului */
.cc-locatie-card .cc-card-inline-link,
.cc-activitate-card .cc-card-inline-link {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit;
  line-height: inherit;
}

.cc-locatie-card .cc-card-inline-link:hover,
.cc-locatie-card .cc-card-inline-link:focus,
.cc-locatie-card .cc-card-inline-link:active,
.cc-activitate-card .cc-card-inline-link:hover,
.cc-activitate-card .cc-card-inline-link:focus,
.cc-activitate-card .cc-card-inline-link:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* =========================
   IMAGINE + BADGE VÂRSTĂ
   ========================= */

.cc-locatie-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.cc-locatie-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease-out;
}

/* overlay ușor la hover */
.cc-locatie-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.18),
    transparent 55%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

/* badge vârstă în colț */
.cc-locatie-card__age-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(35, 211, 211, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* hover imagine */
.cc-locatie-card:hover .cc-locatie-card__img {
  transform: scale(1.03);
}

.cc-locatie-card:hover .cc-locatie-card__thumb::after {
  opacity: 1;
}

/* =========================
   BODY CARD
   ========================= */

.cc-locatie-card__body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Titlu */
.cc-locatie-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--cc-heading);
}

/* META: rând 1 = tip; rând 2 = cartier · oraș (aliniat pe toate cardurile) */
.cc-locatie-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  min-height: 52px;
}

.cc-locatie-card__meta-line {
  display: block;
  width: 100%;
  min-height: 20px;
  line-height: 1.35;
}

.cc-locatie-card__meta-line--where {
  opacity: 0.65;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pilula "Tip locație" */
.cc-locatie-card__meta-item--type {
  background: #f3f7f8 !important;
  color: #10232f;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.cc-locatie-card__meta-item--location {
  opacity: 0.65;
  white-space: nowrap;
}

/* Descriere – 3 linii max */
.cc-locatie-card__excerpt {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.45;
  color: #45525f;
  min-height: 58px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   FACILITĂȚI (ICONIȚE) + +N
   ========================= */

.cc-card__facilitati {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.cc-card__facilitate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-card__facilitate-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  color: #23d3d3;
}

/* Bulină +N */
.cc-card__facilitate--more {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--cc-bg-soft);
  font-size: 12px;
  font-weight: 600;
  color: #45525f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   CTA „Vezi detalii →”
   ========================= */

.cc-locatie-card__cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #23d3d3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.cc-locatie-card__cta-arrow {
  display: inline-block;
  transition: transform 0.18s ease-out;
}

.cc-locatie-card:hover .cc-locatie-card__cta,
.cc-locatie-card__link:focus-visible .cc-locatie-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.cc-locatie-card:hover .cc-locatie-card__cta-arrow,
.cc-locatie-card__link:focus-visible .cc-locatie-card__cta-arrow {
  transform: translateX(2px);
}

/* Focus accesibil pe card */
.cc-locatie-card__link:focus-visible {
  outline: 2px solid #23d3d3;
  outline-offset: 4px;
  border-radius: 24px;
}

/* -----------------------------------------------------
   SEO TEXT JOS – H2 + paragrafe
   ----------------------------------------------------- */

.cc-archive-seo {
  margin-top: 40px;
  padding: 26px 32px 28px;
  background: var(--cc-bg-card);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  line-height: 1.7;
  text-align: justify;
}

.cc-archive-seo h2 {
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--cc-heading);
}

.cc-archive-seo h2::before {
  content: "";
  width: 4px;
  height: 22px;
  background: #23d3d3;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 4px;
}

.cc-archive-seo p {
  margin: 0 0 10px;
  color: #334;
}

@media (min-width: 992px) {
  .cc-archive-seo {
    padding-right: 60px;
  }
}

@media (max-width: 767.98px) {
  .cc-archive-seo {
    margin-top: 28px;
    padding: 20px 18px 22px;
  }
}

/* ============================
   PAGINARE ARHIVĂ LOCAȚII
   ============================ */

.cc-archive-pagination {
  margin: 22px 0 6px;
  display: flex;
  justify-content: center;
}

.cc-archive-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-archive-pagination .page-numbers a,
.cc-archive-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f8fa;
  color: #33475b;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cc-archive-pagination .page-numbers a:hover {
  background: #e7f8f8;
  border-color: #23d3d3;
  color: #10232f;
}

.cc-archive-pagination .page-numbers .current {
  background: #23d3d3;
  border-color: #23d3d3;
  color: #fff;
  font-weight: 600;
}

.cc-archive-pagination .page-numbers .prev,
.cc-archive-pagination .page-numbers .next {
  padding-inline: 14px;
}

@media (max-width: 767.98px) {
  .cc-archive-pagination .page-numbers a,
  .cc-archive-pagination .page-numbers span {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* ========================== */
/*  Toggle LISTĂ / HARTĂ      */
/* ========================== */

.cc-archive-view-toggle {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}

.cc-archive-view-toggle__btn {
  flex: 1;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid #d7dde5;
  background: var(--cc-bg-card);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cc-archive-view-toggle__btn.is-active {
  border-color: #23d3d3;
  background: #23d3d3;
  color: #ffffff;
}

/* ========================== */
/*  Container hartă           */
/* ========================== */

#cc-locatii-map {
  width: 100%;
  height: 340px;
  border-radius: 18px;
  overflow: hidden;
  margin: 8px 0 20px;
  background: var(--cc-bg-soft);
  display: none;
}

.cc-archive-list[data-view="map"] #cc-locatii-map {
  display: block;
}

@media (min-width: 992px) {
  .cc-archive-list[data-view="map"] #cc-locatii-map {
    height: 420px;
  }
}

/* =====================================================
   POPUP HARTĂ (Leaflet)
   ===================================================== */

.cc-archive-locatii .leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.cc-archive-locatii .leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
}

.cc-archive-locatii .cc-map-popup {
  display: flex;
  flex-direction: column;
  width: 240px;
  padding: 14px 12px 12px;
  border-radius: 20px;
  background: var(--cc-bg-card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.cc-archive-locatii .cc-map-popup__image-wrap {
  width: 100%;
  height: 145px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}

.cc-archive-locatii .cc-map-popup__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-archive-locatii .cc-map-popup__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-archive-locatii .cc-map-popup__title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.25;
  color: var(--cc-heading);
}

.cc-archive-locatii .cc-map-popup__age {
  font-size: 12px;
  margin: 0 0 2px;
  color: #6b7a86;
}

.cc-archive-locatii .cc-map-popup__link {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #23d3d3;
}

.cc-archive-locatii .cc-map-popup__link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cc-archive-locatii .cc-map-popup {
    width: 200px;
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  .cc-archive-locatii .cc-map-popup__image-wrap {
    height: 120px;
    margin-bottom: 4px;
  }

  .cc-archive-locatii .cc-map-popup__title {
    font-size: 12px;
  }

  .cc-archive-locatii .cc-map-popup__age {
    font-size: 11px;
  }

  .cc-archive-locatii .cc-map-popup__link {
    font-size: 11px;
  }
}

/* ====================================================================== */
/*  BANNERE ARHIVĂ LOCAȚII                                                */
/* ====================================================================== */

/* AdSense din CC Ads Manager fără <div class="cc-ad-slot …"> în snippet:
   aliniere + colțuri (stilurile .cc-ad-slot--* de mai jos țintesc img din demo). */
.cc-archive-hero ins.adsbygoogle {
  display: block !important;
  width: 100%;
  max-width: 1080px;
  margin: 24px auto 0 !important;
  box-sizing: border-box;
  border-radius: 22px;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .cc-archive-hero ins.adsbygoogle {
    margin-top: 16px !important;
    border-radius: 18px;
  }
}

.cc-archive-sidebar-ad ins.adsbygoogle {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  overflow: hidden;
}

/* SEO before/after: ins e copil direct al secțiunii listă (nu e în .cc-archive-seo) */
.cc-archive-locatii .cc-archive-list > ins.adsbygoogle {
  display: block !important;
  width: 100%;
  max-width: 1080px;
  margin: 28px auto !important;
  box-sizing: border-box;
  border-radius: 22px;
  overflow: hidden;
}

@media (max-width: 991px) {
  .cc-archive-locatii .cc-archive-list > ins.adsbygoogle {
    margin: 20px auto !important;
    border-radius: 18px;
  }
}

.cc-archive-below-list__ads ins.adsbygoogle {
  display: block !important;
  width: 100%;
  max-width: 1080px;
  margin: 20px auto 0 !important;
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
}

.cc-ad-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO TOP */
.cc-ad-slot--archive-top {
  max-width: 1080px;
  margin: 24px auto 0;
}

.cc-ad-slot--archive-top img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 30px;
}

@media (max-width: 767.98px) {
  .cc-ad-slot--archive-top {
    display: none;
  }

  .cc-ad-slot--archive-top-mobile img {
    width: 100%;
    height: 100px;
    border-radius: 18px;
    object-fit: cover;
  }
}

/* SEO BLOCKS */

.cc-ad-slot--seo-before,
.cc-ad-slot--seo-after {
  max-width: 1080px;
  margin: 40px auto;
}

.cc-ad-slot--seo-before img,
.cc-ad-slot--seo-after img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 26px;
}

@media (max-width: 991px) {
  .cc-ad-slot--seo-before img,
  .cc-ad-slot--seo-after img {
    max-height: 120px;
    border-radius: 18px;
  }
}

/* IN-FEED CARD AD (demo + AdSense): aceeași coloană flex ca la cardul organic (fără link) */

.cc-locatie-card--ad .cc-locatie-card__ad-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex: 1;
}

.cc-locatie-card__excerpt--ad-spacer {
  flex: 1;
  min-height: 58px;
}

.cc-card__facilitati--ad-spacer {
  min-height: 36px;
  margin-top: auto;
}

.cc-locatie-card--ad {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Demo vechi: păstrăm dacă mai există markup cu __image */
.cc-locatie-card--ad .cc-locatie-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  position: relative;
  background: #f6f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-locatie-card--ad .cc-locatie-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cc-locatie-card--ad .cc-locatie-card__body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-locatie-card--ad .cc-locatie-card__meta {
  margin-top: 0;
}

.cc-locatie-card--ad .cc-locatie-card__body > .cc-locatie-card__meta:last-child {
  margin-top: auto;
}

.cc-locatie-card--ad .cc-ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: #23d3d3;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.cc-locatie-card--ad .cc-ad-btn:hover {
  background: #1ab2b2;
  transform: translateY(-1px);
}

/* IN-FEED AdSense: imagine 4/3 ca thumb-ul organic; zona ins umple chenarul */
.cc-locatie-card--ad-adsense .cc-locatie-card__thumb--adsense {
  margin: 0;
  position: relative;
}

.cc-locatie-card__thumb--adsense .cc-locatie-card__ads-embed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  box-sizing: border-box;
  background: #f6f9fc;
}

.cc-locatie-card__thumb--adsense .cc-locatie-card__ads-embed-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

.cc-locatie-card__thumb--adsense .cc-locatie-card__ads-embed-inner ins.adsbygoogle {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 auto;
  min-height: 200px;
  box-sizing: border-box !important;
  display: block !important;
}

.cc-locatie-card--ad-adsense .cc-locatie-card__age-badge {
  z-index: 2;
}

/* SIDEBAR BOTTOM */

.cc-ad-slot--sidebar-bottom {
  margin-top: 24px;
}

.cc-ad-slot--sidebar-bottom img {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 18px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .cc-archive-sidebar-ad,
  .cc-ad-slot--sidebar-bottom {
    display: none !important;
  }
}

/* STICKY BOTTOM (viewport-fixed bar; inner holds ad + close aligned top-right) */

.cc-ad-sticky-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 8px 12px 12px;
  background: transparent;
  pointer-events: none;
}

.cc-ad-sticky-bottom__inner {
  position: relative;
  width: 100%;
  max-width: 970px;
  pointer-events: auto;
}

.cc-ad-sticky-bottom .cc-ad-slot--sticky,
.cc-ad-sticky-bottom .cc-ad-slot-wrap {
  width: 100%;
}

.cc-ad-sticky-bottom .cc-ad-slot--sticky {
  max-width: 970px;
}

.cc-ad-slot--sticky img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

.cc-ad-sticky-close {
  position: absolute;
  top: -12px;
  right: 4px;
  z-index: 2;
  border: 0;
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  .cc-ad-sticky-bottom {
    padding: 6px 10px;
  }

  .cc-ad-slot--sticky img {
    max-height: 60px;
  }
}

/* ==============================
   BADGE FEATURED PE IMAGINE
   ============================== */

.cc-locatie-card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cc-locatie-card__badge--featured {
  background: linear-gradient(130deg, #23d3d3, #2cd4a9);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(35, 211, 211, 0.45);
}

/* =====================================================
   FEATURED CARD – border clar, fără gradient intens
   ===================================================== */

.cc-locatie-card--featured {
  border: 3px solid #23d3d3;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* mic hover delicat */
.cc-locatie-card--featured:hover {
  border-color: #1bbaba;
  transform: translateY(-2px);
  transition: 0.25s ease;
}

/* =====================================================
   RESET FINAL – HERO + CARDURI ALBE (BAT TOT RESTUL)
   ===================================================== */

body.tax-locatii,
body.post-type-archive-locatii {
  --cc-bg-page:   #F9FBFF;
  --cc-bg-card:   #FFFFFF;
  --cc-bg-soft:   #F3F6FB;
  --cc-bg-soft-2: #F8FCFD;
  background: var(--cc-bg-page) !important;
}

/* Hero alb cu gradient foarte discret */
.cc-archive-hero {
  background: linear-gradient(180deg, #F8FCFD 0%, #FFFFFF 100%) !important;
}

/* Carduri + filtre + SEO block – complet albe */
.cc-locatie-card,
.cc-filters-wrapper,
.cc-archive-seo {
  background: #FFFFFF !important;
}

/* Boxuri soft (activități, +N, hartă) */
.cc-filter-activitate-group,
.cc-card__facilitate--more,
#cc-locatii-map {
  background: #F8FCFD !important;
}
/* Badge vârstă – variantă light, cu contur turcoaz */
.cc-locatie-card__age-badge {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(35, 211, 211, 0.6);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  font-size: 11px;
  font-weight: 500;
}

/* punct mic turcoaz înainte de text */
.cc-locatie-card__age-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #23d3d3;
  display: inline-block;
  margin-right: 6px;
}
