/*
 * ya-location-info.css
 * Стилове за shortcode [ya_location_info]
 *
 * Зависи от root CSS variables дефинирани в темата:
 *   --primary-color, --primary-color-hover
 *   --light-bg, --heading-color, --body-color
 *   --primary-font-family
 *
 * Път: child-theme/assets/css/ya-location-info.css
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */

.ya-loc-info {
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  color: var(--body-color, #303030);
  font-size: 17px;
  line-height: 1.75;
}

/* ── Блок spacing ────────────────────────────────────────────────────────── */

.ya-loc-block {
  margin-bottom: 60px;
}

.ya-loc-block:last-child {
  margin-bottom: 0;
}

/* ── Section label ───────────────────────────────────────────────────────── */

.ya-loc-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-color, #94a7ae);
}

.ya-loc-section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(148, 167, 174, 0.35);
}

/* ── Описание ────────────────────────────────────────────────────────────── */

.ya-loc-since {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  border-left: 2px solid var(--primary-color, #94a7ae);
  padding-left: 12px;
  margin-bottom: 24px;
}

.ya-loc-since .ti {
  font-size: 13px;
  color: var(--primary-color, #94a7ae);
}

.ya-loc-desc-text {
  font-size: 18px;
  line-height: 1.85;
  color: var(--body-color, #303030);
  margin-bottom: 16px;
}

.ya-loc-desc-text:last-child {
  margin-bottom: 0;
}
.ya-loc-pill-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fbf8fc;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
}
img.ya-loc-pill-icon {
  width: 26px;
}

/* ── Галерия ─────────────────────────────────────────────────────────────── */

.ya-loc-gallery-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 8px;
  border-radius: 16px;
  overflow: hidden;
}

.ya-loc-gallery-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: #c8c3bc;
  text-decoration: none;
}

/* Главна снимка — заема двата реда */
.ya-loc-gallery-item--main {
  grid-row: span 2;
}

.ya-loc-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ya-loc-gallery-link:hover img {
  transform: scale(1.04);
}

/* Hover overlay с zoom икона */
.ya-loc-gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ya-loc-gallery-link:hover .ya-loc-gallery-hover {
  opacity: 1;
}

.ya-loc-gallery-hover .ti {
  font-size: 26px;
  color: #fff;
}

/* Скриване на снимки след 5-та в grid-а — оставя само 1+4 visible */
.ya-loc-gallery-link:nth-child(n + 6) {
  display: none;
}

/* ── Практики (pills) ────────────────────────────────────────────────────── */

.ya-loc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ya-loc-pill {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;

  background: #fff;
  border: 1px solid #f4eff3;
  padding: 10px 14px;

  font-size: 16px;
  line-height: 1.4em;
  color: var(--body-color);
  font-weight: 500;
  font-family: var(--primary-font-family);
  border-radius: 8px;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.ya-loc-pill:hover {
  background: #fbf8fc;
  color: var(--heading-color);
}

/* ── График блок ─────────────────────────────────────────────────────────── */

.ya-loc-schedule-block .ya-schedule-wrap {
  /* ya-schedule shortcode-ът носи собствен стил —
       тук само осигуряваме правилен контекст */
  margin-top: 0;
}

/* ── Бутон-стил за "Виж график" (заменя вградената таблица) ──────────────── */
/* Дублира визуално .ya-praktika-sched-btn (ya-praktika-info.css) — отделен
   клас тук, защото този файл се зарежда самостоятелно, без гаранция че
   ya-praktika-info.css е enqueue-нат на страницата на локацията. */
a.ya-loc-sched-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--primary-color, #94a7ae);
  color: var(--heading-color, #161616);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

a.ya-loc-sched-btn:hover {
  background: var(--primary-color, #94a7ae);
  color: #fff;
}
.ya-loc-schedule-disabled-msg {
  padding: 16px 20px;
  background: #fff;
  border-radius: 10px;
  color: var(--body-color, #2c2822);
  line-height: 1.6;
}
.ya-loc-schedule-disabled-msg a,
.ya-schedule-disabled-inner a {
  color: var(--primary-color, #94a7ae);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.ya-loc-schedule-disabled-msg a:hover,
.ya-schedule-disabled-inner a:hover {
  color: var(--heading-color, #2c2822);
}

/* ── Контакти — по-видим вариант ──────────────────────────────────────────── */
/* Дизайн решение (моя преценка, не потвърдена визуално): по-силен визуален
   акцент чрез фон, рамка в акцентния цвят и по-едри елементи, при запазена
   позиция на блока в страницата. Подлежи на преглед/корекция. */
.ya-loc-contacts-block--prominent {
  background: #fff;
  border-radius: 16px;
  padding: 28px 30px;
}

.ya-loc-contacts-block--prominent .ya-loc-contact-item {
  background: #fff;
  border: 1px solid rgba(148, 167, 174, 0.3);
}

.ya-loc-contacts-block--prominent .ya-loc-contact-icon {
  width: 46px;
  height: 46px;
}

.ya-loc-contacts-block--prominent .ya-loc-contact-icon .ti {
  font-size: 20px;
}

.ya-loc-contacts-block--prominent .ya-loc-contact-value {
  font-size: 17px;
  font-weight: 500;
}

.ya-loc-contacts-block--prominent .ya-loc-directions-wrap {
  margin-top: 20px;
}

.ya-loc-contacts-block--prominent a.ya-loc-directions-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 17px;
}

@media (max-width: 640px) {
  .ya-loc-contacts-block--prominent {
    padding: 20px 18px;
  }
}

/* ── Контакти ────────────────────────────────────────────────────────────── */

.ya-loc-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ya-loc-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
}
.ya-loc-desc-text a:link,
.ya-loc-desc-text a:visited {
  color: var(--ya-head);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ya-border);
  font-weight: 500;
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}
.ya-loc-desc-text a:hover,
.ya-loc-desc-text a:focus {
  color: var(--primary-color-hover);
  text-decoration-color: var(--primary-color-hover);
}
.ya-loc-contact-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 0.5px solid rgba(22, 22, 22, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ya-loc-contact-icon .ti {
  font-size: 18px;
  color: var(--primary-color, #94a7ae);
}

.ya-loc-contact-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 5px;
  font-weight: 400;
}

.ya-loc-contact-value {
  font-size: 16px;
  color: var(--heading-color, #161616);
  font-weight: 400;
  line-height: 1.6;
}

.ya-loc-contact-value a {
  color: var(--heading-color, #161616);
  text-decoration: none;
}

.ya-loc-contact-value a:hover {
  color: var(--primary-color, #94a7ae);
}

a.ya-loc-directions-btn {
  background-color: var(--primary-color);
  font-family: var(--primary-font-family);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  text-decoration: none;
  line-height: 1.4em;
  color: #ffffff;
  border: 1px solid #ffffff66;
  border-radius: 99px;
  padding: 14px 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.ya-loc-directions-btn:hover {
  background-color: var(--primary-color-hover);
}

.ya-loc-directions-btn .ti {
  font-size: 15px;
}

/* ── Карта ───────────────────────────────────────────────────────────────── */

.ya-loc-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.ya-loc-map-wrap iframe {
  width: 100%;
  height: 340px;
  border: none;
  display: block;
}

/* ── GLightbox overrides ─────────────────────────────────────────────────── */

.glightbox-clean .gslide-description {
  background: rgba(22, 22, 22, 0.85);
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background: rgba(22, 22, 22, 0.7);
  border-radius: 100px;
}

.glightbox-clean .gclose {
  background: rgba(22, 22, 22, 0.7);
  border-radius: 100px;
}

@media (max-width: 880px) {
  .ya-loc-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 160px;
  }

  /* Главната снимка — цяла ширина, не span 2 реда */
  .ya-loc-gallery-item--main {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Показваме само 3 снимки на мобилно */
  .ya-loc-gallery-link:nth-child(n + 4) {
    display: none;
  }
  .ya-loc-contacts-grid {
    grid-template-columns: 100%;
    gap: 20px;
  }
  .ya-loc-block {
    margin-bottom: 40px;
  }
}
