/* Fiche salle — en-tête (pas une carte liste) */

.webapp-detail-hero {
    margin: 0 0 1.5rem;
}

.webapp-detail-hero__gallery {
    position: relative;
}

.webapp-detail-hero__media {
    position: relative;
    min-height: 14rem;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8e9ef 0%, #f5f5f7 100%);
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

@media (min-width: 48rem) {
    .webapp-detail-hero__media {
        min-height: 18rem;
        aspect-ratio: 16 / 9;
    }
}

.webapp-detail-hero__media--placeholder {
    background: linear-gradient(135deg, #283173 0%, #4a5a9e 40%, #ef850d 100%);
    opacity: 0.92;
}

.webapp-detail-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flèches en bas à droite de la photo (ancrées au bloc média, pas au bandeau du badge) */
.webapp-detail-hero__carousel-nav {
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.webapp-detail-hero__fav {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
}

.webapp-detail-hero__intro {
    padding: 1.25rem 0 0;
}

.webapp-detail-hero__category {
    margin: 0 0 0.45rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #283173;
    background: #fff;
    border-radius: 20px;
    outline: 1px solid #d3d3d4;
    outline-offset: -1px;
}

.webapp-detail-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    color: #333;
}

@media (min-width: 48rem) {
    .webapp-detail-hero__title {
        font-size: 1.625rem;
    }
}

.webapp-detail-hero__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #283173;
}

.webapp-detail__avail-legend {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #5f6572;
}

.webapp-detail__map-address {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #444;
}

.webapp-detail-map {
    width: 100%;
    height: 14rem;
    border-radius: 12px;
    overflow: hidden;
    outline: 1px solid #e2e6ec;
    outline-offset: -1px;
    background: #e8eaf2;
}

@media (min-width: 48rem) {
    .webapp-detail-map {
        height: 16rem;
    }
}

.webapp-detail-map .maplibregl-ctrl-bottom-right,
.webapp-detail-map .maplibregl-ctrl-bottom-left {
    margin: 0.35rem;
}

.webapp-detail-calendar {
    border: 1px solid #e2e6ec;
    border-radius: 12px;
    padding: 0.85rem;
    background: #fff;
}

.webapp-detail-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.webapp-detail-calendar__nav-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid #d5dbe4;
    border-radius: 8px;
    background: #fff;
    color: #283173;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.webapp-detail-calendar__nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.webapp-detail-calendar__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #283173;
    text-align: center;
}

.webapp-detail-calendar__weekdays,
.webapp-detail-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.webapp-detail-calendar__weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7b8290;
}

.webapp-detail-calendar__day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    border-radius: 8px;
    background: #f7f8fb;
    color: #2b2f3a;
    font-size: 0.82rem;
    font-weight: 500;
}

.webapp-detail-calendar__day--empty {
    background: transparent;
}

.webapp-detail-calendar__day--unavailable {
    background: #e02424;
    color: #fff;
}

.webapp-detail-calendar__day--past {
    background: #eef1f5;
    color: #9ba3b1;
}

.webapp-detail-flash {
    margin: 0 0 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.35;
}

.webapp-detail-flash--success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.webapp-detail-flash--error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.webapp-detail-booking__hint {
    margin: 0 0 0.9rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5f6572;
}

.webapp-detail-booking-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.webapp-detail-booking-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.webapp-detail-booking-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #283173;
}

.webapp-detail-booking-form__field input {
    height: 2.45rem;
    border-radius: 8px;
    border: 1px solid #d7dce3;
    padding: 0 0.6rem;
    font: inherit;
    font-weight: 500;
    color: #333;
    background: #fff;
}

.webapp-detail-booking-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    border: none;
    border-radius: 10px;
    background: #ef850d;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.webapp-detail-booking-form__submit--link {
    width: 100%;
}
