/* ================================================
   Travelers Picker — Wrapper Card
   ================================================ */
.travelers-picker {
    width: 320px;
    display: inline-flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    outline: 1px solid var(--light1);
    overflow: hidden;
}

/* ================================================
   Header
   ================================================ */
.travelers-picker__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    gap: 10px;
}

.travelers-picker__titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.travelers-picker__title {
    color: var(--dark1);
    font-size: 20px;
    font-family: var(--font-helvetica);
    font-weight: var(--font-weight-bold);
    line-height: 24px;
}

.travelers-picker__subtitle {
    align-self: stretch;
    color: var(--dark1);
    font-size: 14px;
    font-family: var(--font-rubik);
    font-weight: var(--font-weight-regular);
}

.travelers-picker__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.15s ease;
}

.travelers-picker__close:hover {
    opacity: 0.7;
}

.travelers-picker__close-icon {
    font-size: 16px;
    color: var(--zinc-600);
    line-height: 1;
}

/* ================================================
   Rows container
   ================================================ */
.travelers-picker__rows {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
}

/* ================================================
   Separator
   ================================================ */
.separator {
    align-self: stretch;
    height: 0;
    outline: 1px solid var(--light1);
    outline-offset: -0.5px;
}

/* ================================================
   Traveler Row
   ================================================ */
.traveler-row {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: stretch;
    background: var(--white);
}

.traveler-row__info {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.traveler-row__label {
    color: var(--neutral-800);
    font-size: 16px;
    font-family: var(--font-helvetica);
    font-weight: var(--font-weight-bold);
    line-height: 20px;
}

.traveler-row__sublabel {
    align-self: stretch;
    color: var(--neutral-500);
    font-size: 14px;
    font-family: var(--font-rubik);
    font-weight: var(--font-weight-regular);
}

/* ================================================
   Counter display (number between the two buttons)
   ================================================ */
.traveler-row__count {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.traveler-row__value {
    color: var(--neutral-800);
    font-size: 16px;
    font-family: var(--font-rubik);
    font-weight: var(--font-weight-regular);
    text-align: center;
}

/* ================================================
   Counter Button (plus / minus)
   ================================================ */
.counter-btn {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.counter-btn__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--zinc-400);
    transition: border-color 0.15s ease;
}

.counter-btn__icon {
    position: absolute;
    background: var(--zinc-600);
    transition: background 0.15s ease;
}

/* Plus icon — cross shape via two pseudo-elements replaced by spans */
.counter-btn--plus .counter-btn__icon {
    width: 10px;
    height: 10px;
    left: 11px;
    top: 11px;
    /* Draw a + using clip-path */
    clip-path: polygon(
        40% 0%, 60% 0%,
        60% 40%, 100% 40%,
        100% 60%, 60% 60%,
        60% 100%, 40% 100%,
        40% 60%, 0% 60%,
        0% 40%, 40% 40%
    );
}

/* Minus icon — horizontal bar */
.counter-btn--minus .counter-btn__icon {
    width: 10px;
    height: 2px;
    left: 11px;
    top: 15px;
}

/* Inactive state */
.counter-btn--inactive {
    cursor: default;
    pointer-events: none;
}

.counter-btn--inactive .counter-btn__icon {
    background: var(--neutral-200);
}

.counter-btn--inactive .counter-btn__ring {
    border-color: var(--neutral-200);
}

/* Hover active */
.counter-btn--active:hover .counter-btn__ring {
    border-color: var(--dark1);
}

/* ================================================
   Footer: Reset + Validate
   ================================================ */
.travelers-picker__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.travelers-picker__reset {
    background: none;
    border: none;
    padding: 0;
    color: var(--dark1);
    font-size: 14px;
    font-family: var(--font-rubik);
    font-weight: var(--font-weight-regular);
    text-decoration: underline;
    cursor: pointer;
}

