/* ===== ANKETY PAGE - FILTER BAR ===== */
.anketa-page .girls-grid { margin-top: 4px; }

/* Match the Анкеты page container to .profile-page (Избранное/Галерея/Профиль)
   so the header lines up identically at every width: same max-width and same
   top spacing (was max-width 1600 / padding-top 24 from .s-girls). */
.anketa-page { max-width: 1400px; padding-top: 32px; }

/* Page title on the Анкеты page matches the compact page titles used on
   Избранное / Галерея / Профиль: icon + all-white bold text at 24px, not the
   big homepage section heading and not the pink accent word. */
.anketa-page .girls-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.anketa-page .girls-title-icon { flex-shrink: 0; }

.anketa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 22px;
}

.anketa-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 11px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.anketa-search:focus-within { background: rgba(255,255,255,0.06); }
.anketa-search svg { flex-shrink: 0; color: var(--text-secondary); }
.anketa-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.anketa-search input::placeholder { color: var(--text-secondary); }

/* ===== CUSTOM DROPDOWNS ===== */
.anketa-dropdown {
  position: relative;
}

.anketa-dd-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
  min-width: 140px;
  transition: border-color 0.2s, background-color 0.2s;
}
.anketa-dd-toggle svg { flex-shrink: 0; color: #fff; }
.anketa-dd-toggle .anketa-dd-label { flex: 1; text-align: left; white-space: nowrap; }
.anketa-dd-toggle .anketa-dd-chevron { transition: transform 0.2s; color: #a89aa6; }

.anketa-dropdown:hover .anketa-dd-toggle,
.anketa-dropdown.open .anketa-dd-toggle {
  border-color: var(--accent);
  background-color: rgba(255,255,255,0.06);
}
.anketa-dropdown.open .anketa-dd-chevron { transform: rotate(180deg); }
.anketa-dropdown.active .anketa-dd-toggle { border-color: var(--accent); }

.anketa-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: rgba(30, 22, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.anketa-dropdown.open .anketa-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.anketa-dd-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}
.anketa-dd-option:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.anketa-dd-option:hover { background: rgba(255,255,255,0.08); }
.anketa-dd-option.active { background: rgba(255,255,255,0.1); color: var(--accent); }
.anketa-dd-option.active::after {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 700px) {
  .anketa-page { padding: 24px 12px 96px; }
  .anketa-page .girls-title { font-size: 21px; }
  .anketa-page .girls-title-row { align-items: flex-start; justify-content: flex-start; text-align: left; }
  .anketa-page .online-counter { justify-content: flex-start; text-align: left; }
  .anketa-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 16px;
  }
  .anketa-search { grid-column: 1 / -1; width: 100%; flex: none; padding: 10px 14px; }
  .anketa-dropdown, .anketa-dd-toggle { width: 100%; min-width: 0; }
  .anketa-dd-toggle { padding: 10px 11px; font-size: 12px; }
  .anketa-dd-menu { left: 0; right: auto; min-width: min(230px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: 50vh; overflow-y: auto; }
  /* Search is the first grid child: odd dropdown children sit in the right column. */
  .anketa-dropdown:nth-child(odd) .anketa-dd-menu { left: auto; right: 0; }
}
