/* =========================================================
   CAFÉZIA — KDE NÁS NÁJDETE
========================================================= */

.caf-locations {
  --caf-ink: #171512;
  --caf-muted: #6f675c;
  --caf-green: #bbce8e;
  --caf-green-dark: #91a963;
  --caf-roast: #b7a997;
  --caf-cream: #f5f2eb;
  width: 100%;
  color: var(--caf-ink);
  font-family: inherit;
}

.caf-locations,
.caf-locations * { box-sizing: border-box; }

.caf-locations a { text-decoration: none; }

.caf-locations__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  color: #817767;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.caf-locations__eyebrow > span {
  width: 33px;
  height: 1px;
  flex: 0 0 33px;
  background: var(--caf-roast);
}

/* HERO */
.caf-locations__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  padding: clamp(31px,4vw,52px);
  overflow: hidden;
  border: 1px solid rgba(117,103,86,.11);
  border-radius: 30px;
  background: linear-gradient(135deg,rgba(239,244,227,.93) 0%,rgba(250,249,246,.97) 52%,rgba(239,235,227,.94) 100%);
  box-shadow: 0 22px 52px rgba(23,21,18,.05), inset 0 1px 0 rgba(255,255,255,.9);
}

.caf-locations__hero::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  top: -235px;
  right: -110px;
  border-radius: 50%;
  background: rgba(187,206,142,.16);
  pointer-events: none;
}

.caf-locations__hero-copy,
.caf-locations__hero-pills { position: relative; z-index: 2; }

.caf-locations__hero h1 {
  margin: 0 0 15px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px,5vw,68px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.05em;
}

.caf-locations__hero h1 span { color: #96b06b; }

.caf-locations__hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--caf-muted);
  font-size: 16px;
  line-height: 1.65;
}

.caf-locations__hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.caf-locations__hero-pills > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(154,174,108,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: #667247;
  font-size: 11px;
  font-weight: 500;
}

.caf-locations__hero-pills svg { width: 15px; height: 15px; }

/* MAIN STORE */
.caf-location-main {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 14px;
  margin-top: 28px;
}

.caf-location-main__map {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(117,103,86,.11);
  border-radius: 26px;
  background: #eeeae2;
}

.caf-location-main__map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  border: 0;
  filter: saturate(.72) contrast(.94);
}

.caf-location-main__map-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: calc(100% - 36px);
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 13px 30px rgba(23,21,18,.11);
  backdrop-filter: blur(12px);
}

.caf-location-main__map-badge > div {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(187,206,142,.22);
}

.caf-location-main__map-badge svg { width: 18px; height: 18px; }

.caf-location-main__map-badge span {
  color: var(--caf-ink);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.caf-location-main__map-badge small {
  display: block;
  margin-bottom: 2px;
  color: #8d7d68;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.caf-location-main__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(27px,4vw,55px);
  border: 1px solid rgba(117,103,86,.11);
  border-radius: 26px;
  background: #f7f5f0;
}

.caf-location-main__label {
  margin-bottom: 8px;
  color: #82965e;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.caf-location-main__content h2,
.caf-location-gallery__head h2,
.caf-partners__head h2,
.caf-world__intro h2,
.caf-materials__head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}

.caf-location-main__content h2 {
  margin: 0 0 16px;
  font-size: clamp(34px,3.4vw,50px);
  line-height: .99;
  letter-spacing: -.04em;
}

.caf-location-main__content h2 span,
.caf-location-gallery__head h2 span,
.caf-partners__head h2 span,
.caf-world__intro h2 span { color: #9ab36f; }

.caf-location-main__lead {
  margin: 0;
  color: var(--caf-muted);
  font-size: 16px;
  line-height: 1.65;
}

.caf-location-main__details {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin-top: 24px;
}

.caf-location-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(117,103,86,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.58);
}

.caf-location-detail__icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(187,206,142,.20);
}

.caf-location-detail__icon svg { width: 18px; height: 18px; }

.caf-location-detail span {
  display: block;
  margin-bottom: 4px;
  color: #8d7d68;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.caf-location-detail strong {
  color: var(--caf-ink);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.caf-location-detail strong a { color: inherit !important; text-decoration: none !important; }

.caf-location-main__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.caf-location-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.caf-location-button svg { width: 15px; height: 15px; }
.caf-location-button--primary { border: 1px solid rgba(145,169,99,.36); background: var(--caf-green); color: var(--caf-ink) !important; box-shadow: 0 10px 23px rgba(187,206,142,.22); }
.caf-location-button--secondary { border: 1px solid rgba(117,103,86,.14); background: #fff; color: var(--caf-ink) !important; }
.caf-location-button:hover { transform: translateY(-2px); }

/* HEADERS */
.caf-location-gallery { margin-top: 70px; }
.caf-location-gallery__head,
.caf-partners__head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,.62fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 22px;
}

.caf-location-gallery__head h2,
.caf-partners__head h2 {
  margin: 0;
  font-size: clamp(34px,3.8vw,53px);
  line-height: .98;
  letter-spacing: -.045em;
}

.caf-location-gallery__head > p,
.caf-partners__head > p {
  margin: 0;
  color: var(--caf-muted);
  font-size: 15.5px;
  line-height: 1.62;
}

/* GALLERY — arbitrary number of images */
.caf-location-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 10px;
}

.caf-location-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #eeeae4;
}

.caf-location-gallery__grid[data-count="1"] { grid-template-columns: 1fr; grid-auto-rows: minmax(360px,46vw); }
.caf-location-gallery__grid[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 350px; }
.caf-location-gallery__grid[data-count="1"] .caf-location-photo--large,
.caf-location-gallery__grid[data-count="2"] .caf-location-photo--large { grid-column: auto; grid-row: auto; }
.caf-location-gallery__grid:not([data-count="1"]):not([data-count="2"]) .caf-location-photo--large { grid-column: span 2; grid-row: span 2; }

.caf-location-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .65s ease;
}

.caf-location-photo:hover img { transform: scale(1.035); }

.caf-locations__editor-placeholder {
  padding: 28px;
  border: 1px dashed rgba(117,103,86,.25);
  border-radius: 20px;
  background: rgba(247,245,240,.8);
  color: var(--caf-muted);
  font-size: 14px;
  text-align: center;
}

/* PARTNERS */
.caf-partners {
  margin-top: 75px;
  padding: clamp(27px,3.5vw,45px);
  border: 1px solid rgba(117,103,86,.10);
  border-radius: 28px;
  background: linear-gradient(135deg,rgba(239,244,227,.72),rgba(249,248,244,.98));
}

.caf-partners__grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.caf-partner-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 15px 16px;
  border: 1px solid rgba(117,103,86,.11);
  border-radius: 19px;
  background: rgba(255,255,255,.68);
  color: var(--caf-ink) !important;
  text-align: center;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.caf-partner-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.96);
  border-color: rgba(154,174,108,.44);
  box-shadow: 0 12px 26px rgba(23,21,18,.06);
}

.caf-partner-card__logo {
  width: 100%;
  height: var(--caf-partner-logo-box-h, 112px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px 10px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.caf-partner-card__logo img {
  display: block;
  width: auto;
  max-width: 92%;
  max-height: var(--caf-partner-logo-max-h, 82px);
  object-fit: contain;
  transform: scale(var(--caf-partner-logo-scale, 1.35));
  transform-origin: center center;
  transition: transform .25s ease;
}

.caf-partner-card:hover .caf-partner-card__logo img {
  transform: scale(calc(var(--caf-partner-logo-scale, 1.35) * 1.035));
}

.caf-partner-card__logo > span {
  color: #a29a8d;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
}

.caf-partner-card__content { width: 100%; }

.caf-partner-card__content h3 {
  margin: 0 0 5px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--caf-ink);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 500;
}

.caf-partner-card__content p {
  margin: 0;
  color: var(--caf-muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.caf-partner-card__arrow {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(226,219,206,.50);
  transition: transform .25s ease, background-color .25s ease;
}

.caf-partner-card__arrow svg { width: 14px; height: 14px; }
.caf-partner-card:hover .caf-partner-card__arrow { transform: translate(2px,-2px); background: var(--caf-green); }

.caf-partners__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 15px;
  border-radius: 17px;
  background: #171512;
  color: #fff;
}

.caf-partners__note > div {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--caf-green);
  color: var(--caf-ink);
}

.caf-partners__note p {
  flex: 1 1 auto;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.4;
}

.caf-partners__note a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--caf-ink) !important;
  font-size: 11px;
  font-weight: 500;
}

.caf-partners__note a svg { width: 14px; height: 14px; }

/* WORLD */
.caf-world {
  display: grid;
  grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr);
  gap: clamp(40px,6vw,90px);
  align-items: center;
  margin-top: 75px;
  padding: clamp(28px,4vw,52px);
  border: 1px solid rgba(117,103,86,.10);
  border-radius: 28px;
  background: #f7f5f0;
}

.caf-world__intro h2 {
  margin: 0 0 13px;
  font-size: clamp(33px,3.5vw,49px);
  line-height: 1;
  letter-spacing: -.04em;
}

.caf-world__intro h2 span { display: block; }
.caf-world__intro > p { margin: 0; color: var(--caf-muted); font-size: 15.5px; line-height: 1.62; }

.caf-world__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }

.caf-country {
  min-height: 102px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 20px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(117,103,86,.11);
  border-radius: 17px;
  background: #fff;
  color: var(--caf-ink) !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.caf-country:hover { transform: translateY(-3px); border-color: rgba(154,174,108,.48); box-shadow: 0 12px 27px rgba(23,21,18,.06); }
.caf-country__flag {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  line-height: 1;
}
.caf-country__flag img {
  display: block;
  width: var(--caf-country-flag-size, 36px);
  height: var(--caf-country-flag-size, 36px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.caf-country strong { display: block; margin-bottom: 4px; font-family: "Playfair Display", Georgia, serif; font-size: 17px; font-weight: 500; }
.caf-country div span { color: var(--caf-muted); font-size: 11.5px; }
.caf-country > svg { width: 17px; height: 17px; }

/* MATERIALS */
.caf-materials {
  margin-top: 75px;
  padding: clamp(26px,3.5vw,42px);
  border-radius: 27px;
  background: #171512;
  color: #fff;
}

.caf-materials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 20px;
}

.caf-materials__head > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--caf-green);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.caf-materials__head h2 { margin: 0; color: #fff; font-size: clamp(29px,3vw,42px); line-height: 1; }
.caf-materials__head > p { max-width: 430px; margin: 0; color: rgba(255,255,255,.60); font-size: 14px; line-height: 1.5; }
.caf-materials__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }

.caf-material {
  display: grid;
  grid-template-columns: 43px minmax(0,1fr) 20px;
  align-items: center;
  gap: 11px;
  min-height: 77px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  color: #fff !important;
  transition: background-color .25s ease, transform .25s ease;
}

.caf-material:hover { transform: translateY(-2px); background: rgba(255,255,255,.10); }
.caf-material__icon { width: 43px; height: 43px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--caf-green); color: var(--caf-ink); }
.caf-material__icon svg { width: 20px; height: 20px; }
.caf-material strong { display: block; margin-bottom: 3px; font-size: 13.5px; font-weight: 500; }
.caf-material div span { color: rgba(255,255,255,.53); font-size: 10.5px; }
.caf-material > svg { width: 16px; height: 16px; opacity: .65; }

/* REVEAL */
.caf-locations-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.75,.2,1);
}
.caf-locations-reveal.is-visible { opacity: 1; transform: none; }
.elementor-editor-active .caf-locations-reveal,
.elementor-editor-preview .caf-locations-reveal { opacity: 1 !important; transform: none !important; }

/* TABLET */
@media (max-width:1024px) {
  .caf-locations__hero { align-items: flex-start; flex-direction: column; }
  .caf-locations__hero-pills { justify-content: flex-start; }
  .caf-location-main { grid-template-columns: 1fr; }
  .caf-location-main__map, .caf-location-main__map iframe { min-height: 410px; }
  .caf-location-gallery__head, .caf-partners__head { grid-template-columns: 1fr; gap: 10px; }
  .caf-partners__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .caf-world { grid-template-columns: 1fr; gap: 26px; }
}

/* MOBILE */
@media (max-width:767px) {
  .caf-locations__hero { padding: 23px 15px; border-radius: 22px; }
  .caf-locations__hero h1 { font-size: 38px; }
  .caf-locations__hero-copy > p { font-size: 14.5px; }
  .caf-locations__hero-pills { gap: 6px; }
  .caf-locations__hero-pills > div { font-size: 10px; padding: 0 9px; }

  .caf-location-main { margin-top: 12px; gap: 10px; }
  .caf-location-main__map, .caf-location-main__map iframe { min-height: 330px; }
  .caf-location-main__map { border-radius: 20px; }
  .caf-location-main__content { padding: 22px 15px; border-radius: 20px; }
  .caf-location-main__content h2 { font-size: 31px; }
  .caf-location-main__lead { font-size: 14.5px; }
  .caf-location-main__details { grid-template-columns: 1fr; }
  .caf-location-main__actions { flex-direction: column; }
  .caf-location-button { width: 100%; }

  .caf-location-gallery, .caf-partners, .caf-world, .caf-materials { margin-top: 50px; }
  .caf-location-gallery__head h2, .caf-partners__head h2 { font-size: 32px; }
  .caf-location-gallery__grid,
  .caf-location-gallery__grid[data-count="1"],
  .caf-location-gallery__grid[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 150px; }
  .caf-location-gallery__grid .caf-location-photo--large,
  .caf-location-gallery__grid[data-count="1"] .caf-location-photo--large,
  .caf-location-gallery__grid[data-count="2"] .caf-location-photo--large { grid-column: 1 / -1; grid-row: span 2; }

  .caf-partners { padding: 22px 13px; border-radius: 21px; }
  .caf-partners__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .caf-partner-card { min-height: 182px; padding: 13px 10px 12px; border-radius: 16px; }
  .caf-partner-card__logo {
    height: clamp(72px, calc(var(--caf-partner-logo-box-h, 112px) * .78), 96px);
    margin-bottom: 10px;
    padding: 8px 10px;
  }
  .caf-partner-card__logo img {
    max-height: clamp(50px, calc(var(--caf-partner-logo-max-h, 82px) * .82), 72px);
  }
  .caf-partner-card__content h3 { font-size: 16px; }
  .caf-partner-card__content p { font-size: 12.5px; }
  .caf-partner-card__arrow { width: 26px; height: 26px; right: 7px; top: 7px; }

  .caf-partners__note { align-items: flex-start; flex-wrap: wrap; }
  .caf-partners__note p { flex: 1 1 calc(100% - 55px); }
  .caf-partners__note a { margin-left: 51px; }

  .caf-world { padding: 22px 14px; border-radius: 21px; }
  .caf-world__intro h2 { font-size: 31px; }
  .caf-world__grid { gap: 7px; }
  .caf-country { min-height: 115px; grid-template-columns: 1fr; align-content: start; gap: 6px; padding: 12px; }
  .caf-country__flag { width: 38px; height: 38px; }
  .caf-country__flag img {
    width: min(var(--caf-country-flag-size, 36px), 32px);
    height: min(var(--caf-country-flag-size, 36px), 32px);
  }
  .caf-country > svg { display: none; }

  .caf-materials { padding: 22px 14px; border-radius: 21px; }
  .caf-materials__head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .caf-materials__grid { grid-template-columns: 1fr; }
}

@media (max-width:390px) {
  .caf-partners__grid { grid-template-columns: 1fr; }
  .caf-world__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion:reduce) {
  .caf-locations *, .caf-locations *::before, .caf-locations *::after { transition: none !important; animation: none !important; }
  .caf-locations-reveal { opacity: 1 !important; transform: none !important; }
}
