/* Rougail Mangue — Chambres: public booking flow (uses the theme's tokens when present). */
.rmc { --rmc-vert: var(--rm-vert, #23473B); --rmc-dore: var(--rm-dore, #B1761A); --rmc-sable: var(--rm-sable, #EAE2D1); --rmc-gris: var(--wp--preset--color--gris, #5B665F); margin-block: 1.5rem 2rem; }
/* The flow needs more room than a text column: use the theme's wide width. */
.is-layout-constrained > .rmc { max-width: min(100%, var(--wp--style--global--wide-size, 1100px)) !important; }
.rmc-test { background: #fff4d6; border-left: 3px solid var(--rmc-dore); padding: 0.6rem 1rem; font-size: 0.9rem; }

/* Step 1: search */
.rmc-search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1rem; align-items: end; background: #fff; border: 1px solid var(--rmc-sable); padding: 1.25rem; border-radius: 2px; }
.rmc-field { display: grid; gap: 0.35rem; margin: 0; }
.rmc-field label { font-weight: 500; font-size: 0.95rem; }
.rmc input[type="date"], .rmc input[type="text"], .rmc input[type="email"], .rmc input[type="tel"], .rmc select, .rmc textarea {
	width: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem; border: 1px solid #cfc6b4; border-radius: 2px; background: #fff; font: inherit; color: inherit;
}
.rmc input:focus, .rmc select:focus, .rmc textarea:focus { border-color: var(--rmc-vert); outline: 2px solid rgb(35 71 59 / 0.2); outline-offset: 0; }
.rmc button { cursor: pointer; border: 0; }
.rmc-field--submit .wp-element-button { white-space: nowrap; }
@media (max-width: 760px) { .rmc-search { grid-template-columns: 1fr 1fr; } .rmc-field--submit { grid-column: 1 / -1; } .rmc-field--submit .wp-element-button { width: 100%; } }

/* Step 2: rooms */
.rmc-title { margin-block: 2rem 1rem; }
.rmc-rooms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.rmc-room { background: #fff; border: 1px solid var(--rmc-sable); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.rmc-room .rmc-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.rmc-room__body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.rmc-room__body > :last-child { margin-top: auto; }
.rmc-room__name { margin: 0 0 0.2rem; }
.rmc-room__cap, .rmc-room__state, .rmc-small, .rmc-optional { color: var(--rmc-gris); font-size: 0.9rem; }
.rmc-room__cap { margin: 0 0 0.75rem; }
.rmc-room__price { margin: 0 0 1rem; }
.rmc-room__price strong { font-family: var(--rm-titre, Georgia, serif); font-size: 1.6rem; font-weight: 500; color: var(--rmc-vert); }
.rmc-room__price span { color: var(--rmc-gris); font-size: 0.9rem; }
.rmc-room--taken, .rmc-room--too_small { opacity: 0.55; }
.rmc-room--taken .rmc-photo, .rmc-room--too_small .rmc-photo { filter: grayscale(1); }
.rmc-empty { background: var(--rmc-sable); padding: 1rem 1.25rem; }

/* Step 3: recap + contact details */
.rmc-checkout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2rem; align-items: start; }
.rmc-recap { background: #fff; border: 1px solid var(--rmc-sable); padding: 0 0 1.25rem; border-radius: 2px; overflow: hidden; }
.rmc-recap > :not(img) { margin-inline: 1.25rem; }
.rmc-recap .rmc-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.rmc-recap .rmc-title, .rmc-form .rmc-title { margin-top: 1rem; }
.rmc-recap dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin-block: 1rem; }
.rmc-recap dt { color: var(--rmc-gris); font-size: 0.9rem; }
.rmc-recap dd { margin: 0; text-align: right; }
.rmc-recap .rmc-total { border-top: 1px solid var(--rmc-sable); padding-top: 0.6rem; font-weight: 500; color: var(--rmc-vert); }
.rmc-recap dd.rmc-total { font-family: var(--rm-titre, Georgia, serif); font-size: 1.5rem; }
.rmc-form { display: grid; gap: 0.9rem; }
.rmc-form .rmc-title { margin-bottom: 0; }
.rmc-check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }
.rmc-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.rmc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rmc-pay { width: 100%; font-size: 1.05rem; padding-block: 0.9rem; }
.rmc-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rmc-dore); }
@media (max-width: 760px) { .rmc-checkout { grid-template-columns: 1fr; } }

/* Messages */
.rmc-error { border-left: 3px solid #a63d2a; background: #f7e6df; padding: 0.75rem 1.25rem; margin-block: 1rem; }
.rmc-error p { margin: 0; }
.rmc-done, .rmc-wait, .rmc-fail { background: #fff; border: 1px solid var(--rmc-sable); border-top: 4px solid var(--rmc-vert); padding: 0.5rem 1.5rem 1.25rem; }
.rmc-wait { border-top-color: var(--rmc-dore); }
.rmc-fail { border-top-color: #a63d2a; }

/* Step 3: brunch option */
#rmc-brunchs { max-width: 8rem; }
.rmc-field .rmc-small { display: block; }
