/* Group / private formats on tour pages — see inc/hm-formats.php. */

.hm-formats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
}
.hm-formats-bar.is-under-title { margin: 10px 0 12px; }
.hm-formats-bar__label {
    color: #63777a;
    font: 600 .72rem/1 var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hm-formats-bar__chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: #e6f4f3;
    color: #082f3a;
    font: 600 .8rem/1.1 var(--font-body, 'Work Sans', -apple-system, sans-serif);
}
.hm-formats-bar__chip--private { background: #fde9e3; color: #8a2f18; }

/* Option privée */
.hm-private {
    margin: 28px 0 8px;
    padding: 24px;
    border: 1px solid rgba(8, 47, 58, .14);
    border-radius: 18px;
    background: #f5f1e8;
    color: #15343a;
}
/* body + two classes: the parent theme's `body.st-mod-style .st-style-elementor h2`
   otherwise wins and makes this heading grey and oversized. */
body .hm-private h2.hm-private__title {
    margin: 0 0 8px;
    color: #082f3a;
    font-size: 1.35rem;
    line-height: 1.25;
}
.hm-private__lead,
.hm-private__rule { margin: 0 0 10px; max-width: 64ch; line-height: 1.55; }
.hm-private__rule { color: #63777a; font-size: .92rem; }

.hm-private__calc {
    margin-top: 16px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
}
.hm-private__field {
    display: block;
    margin: 0 0 8px;
    color: #082f3a;
    font-weight: 600;
}
.hm-private__stepper { display: inline-flex; align-items: stretch; gap: 0; border: 1px solid rgba(8, 47, 58, .2); border-radius: 12px; overflow: hidden; }
.hm-private__step {
    width: 44px;
    border: 0;
    background: #f5f1e8;
    color: #082f3a;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.hm-private__step:hover { background: #ebe4d6; }
.hm-private__input {
    width: 64px;
    height: 44px;
    border: 0;
    border-left: 1px solid rgba(8, 47, 58, .2);
    border-right: 1px solid rgba(8, 47, 58, .2);
    text-align: center;
    color: #082f3a;
    font: 600 1.05rem/1 var(--font-body, 'Work Sans', -apple-system, sans-serif);
    -moz-appearance: textfield;
}
.hm-private__input::-webkit-outer-spin-button,
.hm-private__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hm-private__step:focus-visible,
.hm-private__input:focus-visible,
.hm-private__cta:focus-visible { outline: 2px solid #17a9a1; outline-offset: 2px; }

.hm-private__results { display: grid; gap: 8px; margin-top: 16px; }
.hm-private__row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) auto auto;
    align-items: baseline;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f9f9;
    font-variant-numeric: tabular-nums;
}
.hm-private__row--private { background: #fde9e3; }
.hm-private__row-name { color: #082f3a; font-weight: 600; }
.hm-private__row-each { color: #63777a; white-space: nowrap; }
.hm-private__row-each strong { color: #082f3a; }
.hm-private__row-total { white-space: nowrap; text-align: right; }
.hm-private__row-total strong { color: #f26b4a; font-size: 1.15rem; }
.hm-private__formula { margin: 10px 0 0; color: #63777a; font-size: .85rem; font-variant-numeric: tabular-nums; }
.hm-private__note { margin: 14px 0 0; font-size: .92rem; line-height: 1.5; }
.hm-private__cta {
    display: inline-block;
    margin-left: 6px;
    color: #f26b4a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575px) {
    .hm-private { padding: 18px; }
    .hm-private__row { grid-template-columns: 1fr auto; row-gap: 4px; }
    .hm-private__row-total { grid-column: 1 / -1; text-align: left; }
}
