/* Блок головної "Find a camp" (parts/home-find-block.php). Макет Figma 1075:11580.
   Поля й календар/панель віку — ті самі стилі, що в каталозі (camps-bar_*, fmc-cal, fmc-agepop з camps-filter.css). */

.home-find { padding: 64px 0; }

.home-find_head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.home-find_h { margin: 0; font-size: 48px; line-height: 56px; color: #0C1F33; }
.home-find_p { margin: 0; font-size: 16px; line-height: 24px; color: #546678; }

/* Панель */
.home-find_panel {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: 16px; background: #CDD6E1;
}

.home-find_toggle {
  display: none !important; /* перемикач типу кемпу сховано за проханням; розмітка й логіка лишились */
  align-self: flex-start;
  display: flex; gap: 2px; padding: 3px;
  background: #FFF; border: 1px solid #DBE3EE; border-radius: 14px;
}
.home-find_toggle-btn {
  padding: 8px 18px; border: 0; border-radius: 11px; background: transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: normal; color: #607289; white-space: nowrap; cursor: pointer;
}
.home-find_toggle-btn:hover { color: #0C1F33; }
.home-find_toggle-btn.is-active { background: #0C1F33; color: #FFF; }
.home-find_toggle-btn:focus-visible { outline: 2px solid #0066CC; outline-offset: 2px; }

.home-find_bar { display: flex; align-items: flex-end; gap: 24px; }
.home-find_fields { flex: 1 1 0; min-width: 0; display: flex; gap: 16px; }
.home-find_fields .camps-bar_field { flex: 1 1 0; min-width: 0; }
.home-find_fields .camps-bar_label { font-weight: 700; color: #5C6B73; letter-spacing: 0; }
.home-find_fields .camps-bar_control { border-color: #445160; }
.home-find_fields .camps-bar_value,
.home-find_fields .camps-bar_select { font-weight: 600; }
.home-find_fields .fmc-when.is-empty .camps-bar_value { color: #0C1F33; }
.home-find_fields .camps-bar_field { position: relative; }

.home-find_btn {
  flex: none; width: 180px; padding: 10px 24px;
  border: 0; border-radius: 4px; background: #0C1F33; color: #FFF;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 24px; text-transform: uppercase; cursor: pointer;
}
.home-find_btn:hover { opacity: .92; }
.home-find_btn:focus-visible { outline: 2px solid #0066CC; outline-offset: 2px; }

.home-find_benefits { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.home-find_benefit { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 24px; color: #0C1F33; text-decoration: none; }
a.home-find_benefit:hover span { text-decoration: underline; }
.home-find_benefit img { flex: none; display: block; width: 24px; height: 24px; }

/* Мозаїка: 4 колонки (1 + 2 + 2 + 1 фото), висота 310px */
.home-find_mosaic { display: flex; gap: 12px; height: 310px; margin-top: 24px; }
.home-find_col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.home-find_tile {
  position: relative; flex: 1 1 0; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; border-radius: 12px; overflow: hidden; background: #DBE3EE;
}
.home-find_col:nth-child(2) .home-find_tile:first-child { flex: 158 1 0; }
.home-find_col:nth-child(2) .home-find_tile:last-child { flex: 140 1 0; }
.home-find_col:nth-child(3) .home-find_tile:first-child { flex: 130 1 0; }
.home-find_col:nth-child(3) .home-find_tile:last-child { flex: 168 1 0; }
.home-find_tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-find_tile-label {
  position: relative; align-self: flex-start;
  padding: 4px 8px; border-radius: 4px; background: rgba(0, 0, 0, .7);
  font-size: 11px; font-weight: 600; line-height: normal; color: #FFF;
}
a.home-find_tile:hover .home-find_tile-img { transform: scale(1.04); }
a.home-find_tile:focus-visible { outline: 2px solid #0066CC; outline-offset: 2px; }

@media (max-width: 1100px) {
  .home-find_h { font-size: 40px; line-height: 48px; }
  .home-find_bar { flex-wrap: wrap; }
  .home-find_fields { flex-basis: 100%; }
  .home-find_btn { width: 100%; }
}
@media (max-width: 800px) {
  .home-find { padding: 32px 0; }
  .home-find_h { font-size: 32px; line-height: 40px; }
  .home-find_panel { padding: 16px; }
  .home-find_toggle { align-self: stretch; }
  .home-find_toggle-btn { flex: 1 1 auto; padding: 8px 6px; font-size: 13px; }
  .home-find_fields { flex-direction: column; gap: 12px; }
  .home-find_benefits { flex-direction: column; }
  /* Мозаїка на мобільному: 2 колонки плиток однакової висоти */
  .home-find_mosaic { display: grid; grid-template-columns: repeat(2, 1fr); height: auto; }
  .home-find_col { display: contents; }
  .home-find_tile, .home-find_col:nth-child(n) .home-find_tile:nth-child(n) { flex: none; height: 160px; }
}
