/*
 * MyMusic.Travel — современный вид поиска, блока входа и листания. 23.09.2026, v2: компактные кнопки входа на телефоне; v3: главная для вошедших на телефоне.
 * Подключается из шаблонов поиска и главной; перекрывает старые правила site.css и встроенных стилей.
 */
:root {
  --mmt-red: #D81946;
  --mmt-red-dark: #b5123a;
  --mmt-ink: #1b1726;
  --mmt-muted: #6b6578;
  --mmt-line: #e4e1ea;
}

/* ---------- Поиск ---------- */
.searchformsect, .searchformsectinside {
  border-radius: 18px !important;
  padding: 18px !important;
  background: rgba(20, 18, 28, 0.78) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Вкладки — сегментированный переключатель */
#pills-tab {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  padding: 4px !important;
  margin: 0 auto 12px !important;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  list-style: none;
}
#pills-tab .nav-item-tabs { flex: 1 1 0; min-width: 0; list-style: none; }
#pills-tab .nav-link-two {
  display: block;
  padding: 10px 6px !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s, color .15s;
}
#pills-tab .nav-link-two:hover { background: rgba(255, 255, 255, 0.08) !important; }
#pills-tab .nav-link-two.active {
  background: #fff !important;
  color: var(--mmt-red) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
#pills-tab .nav-link-two i { margin-right: 4px; }

/* Поле и кнопка — одна строка на всю ширину */
#pills-tabContent .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: 100% !important;
  margin: 0 !important;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}
#pills-tabContent .input-group input[type=text],
#pills-tabContent .input-group select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  color: var(--mmt-ink);
  font-size: 16px !important;
  line-height: 52px;
  outline: none;
  box-shadow: none;
}
#pills-tabContent .input-group select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6578' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}
#pills-tabContent .input-group-btn { display: flex; flex: 0 0 auto; }
#pills-tabContent .input-group-btn .btn {
  width: 56px;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--mmt-red) !important;
  color: #fff !important;
  font-size: 18px;
  box-shadow: none !important;
}
#pills-tabContent .input-group-btn .btn:hover { background: var(--mmt-red-dark) !important; }
#pills-tabContent input::placeholder { color: #9a94a8; opacity: 1; padding: 0; }
#near-form > div:last-child {
  margin-top: 10px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 12.5px !important;
  line-height: 1.4;
  text-align: left;
}
@media (max-width: 568px) {
  .searchformsect { width: auto !important; margin-left: 12px !important; margin-right: 12px !important; }
  #pills-tab .nav-link-two { font-size: 14px !important; padding: 10px 4px !important; }
  #pills-tab .nav-link-two i { margin-right: 3px; }
}

/* ---------- Блок входа ---------- */
/* /events и другие страницы: section.register_form > … > p(текст) + p(кнопки) */
.register_form { margin: 22px 0 18px !important; }
.register_form .col-md-12 > p:first-child {
  margin: 0 auto 12px !important;
  max-width: 420px;
  color: var(--mmt-muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
/* Главная: div.logint > p(текст) + p(кнопки); на компьютере текст лежит на картинке, цвет не трогаем */
@media (max-width: 568px) {
  div.logint > p:first-child {
    margin: 0 auto 12px !important;
    max-width: 420px;
    color: var(--mmt-muted) !important;
    font-size: 16px !important;
    line-height: 1.45;
  }
  .container.logint { margin-bottom: 36px !important; }
}
.register_form .col-md-12 > p + p,
div.logint > p + p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto !important;
  max-width: 560px;
}
.register_form .col-md-12 > p + p a,
div.logint > p + p a { text-decoration: none; }
.register_form .btn,
div.logint .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}
.register_form .btn:hover, div.logint .btn:hover { filter: brightness(1.06); }
/* Телефон: три компактные кнопки в одну строку, чтобы блок не занимал пол-экрана */
@media (max-width: 568px) {
  .register_form { margin: 14px 0 12px !important; }
  .register_form .col-md-12 > p:first-child,
  div.logint > p:first-child { margin-bottom: 8px !important; font-size: 13.5px !important; }
  .register_form .col-md-12 > p + p,
  div.logint > p + p { flex-wrap: nowrap; gap: 6px; max-width: 420px; }
  .register_form .col-md-12 > p + p a,
  div.logint > p + p a { flex: 1 1 0; min-width: 0; }
  .register_form .btn,
  div.logint .btn {
    width: 100%;
    height: 36px;
    gap: 5px;
    padding: 0 6px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
    overflow: hidden;
  }
  .container.logint { margin-bottom: 24px !important; }
}
/* Узкие телефоны (320–374 px): без значков, чтобы подписи кнопок и вкладок не обрезались */
@media (max-width: 374px) {
  .register_form .btn i, div.logint .btn i { display: none; }
  .register_form .btn, div.logint .btn { font-size: 12px !important; padding: 0 4px !important; }
  #pills-tab .nav-link-two i { display: none; }
  #pills-tab .nav-link-two { font-size: 13.5px !important; }
}

/* ---------- Сортировка и листание ---------- */
#orderby {
  height: 44px;
  border-radius: 12px !important;
  border: 1px solid var(--mmt-line) !important;
  font-size: 15px;
  box-shadow: none;
}
ul.pagination {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 !important;
  padding: 0 !important;
  list-style: none;
}
ul.pagination li { padding: 0 !important; box-shadow: none !important; }
ul.pagination li a,
ul.pagination li span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px !important;
  border: 1px solid var(--mmt-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--mmt-ink) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
}
ul.pagination li a:hover { background: #f4f2f7 !important; }
ul.pagination li.active a,
ul.pagination li.active a:hover {
  background: var(--mmt-red) !important;
  border-color: var(--mmt-red) !important;
  color: #fff !important;
}
ul.pagination li.disabled span { opacity: 0.4; }
.outer-container { height: auto !important; padding: 8px 0; }
@media (max-width: 568px) {
  ul.pagination li.first, ul.pagination li.last { display: none; }
  ul.pagination li a, ul.pagination li span { min-width: 38px; height: 38px; padding: 0 10px !important; }
}

/* ---------- Главная для вошедших (v3) ---------- */
/* Кнопка «Check the concerts of your favorites artists» */
center > p[style*="top:-300px"] .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px !important;
  border: 1px solid var(--mmt-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--mmt-ink) !important;
  font-size: 15px !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
center > p[style*="top:-300px"] .btn i { color: var(--mmt-red); }
/* main.php для вошедших поднимает блок концертов на 110 px — это рассчитано на компьютер,
   на телефоне заголовок уезжал под поиск. Кнопка на телефоне стоит под поиском, а не над текстом. */
@media (max-width: 568px) {
  .indexevents { margin-top: 0 !important; }
  center > p[style*="top:-300px"] { top: 0 !important; margin: 4px 16px 24px !important; }
  center > p[style*="top:-300px"] .btn { width: 100%; max-width: 400px; justify-content: center; padding: 0 12px !important; font-size: 13.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 374px) {
  center > p[style*="top:-300px"] .btn { font-size: 12px !important; padding: 0 8px !important; gap: 6px; }
}
