/* Курсор-рука на фактически найденной группе пассажиров */
  .pathrest-passengers-field,
  .pathrest-passengers-field input[name="passengers"] {
    cursor: pointer;
  }

  .passenger-popup {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    font-family: 'Times New Roman', serif;
    font-size: 15px;
    color: #006B81;
    z-index: 9999;
    display: none;
    min-width: 240px;
    box-sizing: border-box;
  }
  /* Стрелочка слева сверху */
  .passenger-popup::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.05));
  }
  .passenger-popup.visible {
    display: block;
  }
  .passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .passenger-row span {
    flex: 1;
  }
  .counter {
    display: flex;
    align-items: center;
  }
  .counter button {
    background: none;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 6px;
    color: #006B81;
    transition: background 0.2s;
    cursor: pointer;
  }
  .counter button:hover {
    background: rgba(0, 107, 129, 0.2);
  }
  .counter .count {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    margin: 0 6px;
  }
  .passenger-popup hr {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: 12px 0;
  }
  .class-selector label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
  }
  .class-selector input[type="radio"] {
    margin-right: 8px;
  }
  .class-selector span {
    font-weight: bold;
    color: #006B81;
  }

  @media (max-width: 768px) {
    .passenger-popup {
      position: absolute !important;
      right: 32px !important;
      left: auto !important;
      max-width: calc(100vw - 64px);
      padding: 12px 14px;
    }
    .passenger-popup::before {
      top: -8px;
      left: 20px;
    }
    .counter button {
      width: 30px;
      height: 30px;
      font-size: 18px;
      line-height: 30px;
      border-radius: 5px;
    }
    .counter .count {
      font-size: 14px;
    }
  }
