/* Reservation Manager — public booking front page */
.rm-fp { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1f2937; line-height: 1.5; }
.rm-fp * { box-sizing: border-box; }

/* Hero */
.rm-fp-hero {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    background-size: cover; background-position: center;
    color: #fff; padding: 64px 20px 72px; text-align: center;
}
.rm-fp-hero-inner { max-width: 1040px; margin: 0 auto; }
.rm-fp-hero h1 { font-size: 2.6rem; margin: 0 0 10px; font-weight: 800; line-height: 1.1; color:#fff; }
.rm-fp-hero-sub { font-size: 1.15rem; margin: 0 auto 26px; max-width: 680px; opacity: .95; }
.rm-fp-search-card {
    background: #fff; color: #1f2937; border-radius: 14px; padding: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25); max-width: 960px; margin: 0 auto; text-align: left;
}

/* Sections */
.rm-fp-section { max-width: 1160px; margin: 0 auto; padding: 46px 20px; }
.rm-fp-h2 { font-size: 1.8rem; font-weight: 800; margin: 0 0 6px; }
.rm-fp-muted { color: #6b7280; margin: 0 0 22px; }

/* Accommodation grid */
.rm-fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.rm-fp-card {
    background: #fff; border: 1px solid #eaecef; border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.rm-fp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.rm-fp-card-img {
    display: block; height: 180px; background: #dde3ea center/cover no-repeat;
    position: relative; text-decoration: none;
}
.rm-fp-noimg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#5b6b7e; font-weight:700; padding:10px; text-align:center; }
.rm-fp-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.rm-fp-card-title { font-size: 1.15rem; margin: 0 0 4px; font-weight: 700; }
.rm-fp-card-meta { color: #6b7280; font-size: .86rem; margin-bottom: 8px; }
.rm-fp-card-desc { color: #4b5563; font-size: .92rem; margin: 0 0 14px; flex: 1; }
.rm-fp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rm-fp-price { font-size: .9rem; color: #374151; }
.rm-fp-price strong { font-size: 1.1rem; color: #111827; }

/* Buttons */
.rm-fp-btn {
    display: inline-block; background: #2563eb; color: #fff !important; text-decoration: none;
    padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: .92rem; border: none; cursor: pointer;
    transition: background .15s ease; white-space: nowrap;
}
.rm-fp-btn:hover { background: #1d4ed8; color:#fff; }
.rm-fp-btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 10px; }

/* Features */
.rm-fp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.rm-fp-feature { background:#f8fafc; border:1px solid #eef1f5; border-radius: 12px; padding: 22px; text-align: center; }
.rm-fp-feature .rm-fp-ic { font-size: 2rem; display:block; margin-bottom: 8px; }
.rm-fp-feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.rm-fp-feature p { margin: 0; color: #6b7280; font-size: .92rem; }

/* Providers */
.rm-fp-providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.rm-fp-provider {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px 16px; text-align: center;
    text-decoration: none; color: #1f2937; min-height: 96px; transition: border-color .15s ease, box-shadow .15s ease;
}
.rm-fp-provider:hover { border-color: #2563eb; box-shadow: 0 8px 20px rgba(37,99,235,.12); }
.rm-fp-provider img { max-height: 34px; max-width: 100%; }
.rm-fp-provider-name { font-weight: 800; font-size: 1.1rem; }
.rm-fp-provider-blurb { font-size: .82rem; color: #6b7280; }

/* Responsive */
@media (max-width: 640px) {
    .rm-fp-hero { padding: 44px 16px 52px; }
    .rm-fp-hero h1 { font-size: 1.9rem; }
    .rm-fp-section { padding: 34px 16px; }
}

/* ===== Public booking widget [rm_book] ===== */
.rm-bk { max-width: 920px; margin: 0 auto; font-family: inherit; }
.rm-bk-steps { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.rm-bk-step { padding:6px 12px; border-radius:16px; background:#eef1f5; color:#667; font-size:13px; }
.rm-bk-step.is-on { background:#1976d2; color:#fff; font-weight:600; }
.rm-bk-searchbar { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; background:#fff; padding:16px; border:1px solid #e3e7ec; border-radius:10px; }
.rm-bk-searchbar label { display:flex; flex-direction:column; font-size:13px; color:#445; gap:4px; }
.rm-bk-searchbar input { padding:8px; border:1px solid #cfd6dd; border-radius:6px; }
.rm-bk-room { display:flex; gap:16px; background:#fff; border:1px solid #e3e7ec; border-radius:10px; overflow:hidden; margin-bottom:14px; }
.rm-bk-room-img { width:180px; min-height:140px; background:#dde3ea center/cover no-repeat; flex:0 0 180px; }
.rm-bk-room-body { padding:14px; flex:1; }
.rm-bk-room-body h3 { margin:0 0 4px; }
.rm-bk-muted { color:#8a93a0; font-size:13px; }
.rm-bk-plans { margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.rm-bk-plan { display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:#f7f9fb; border:1px solid #dfe5ec; border-radius:8px; padding:10px 12px; cursor:pointer; }
.rm-bk-plan:hover { border-color:#1976d2; background:#eef5fe; }
.rm-bk-plan-label { flex:1; }
.rm-bk-plan-label em { color:#b26a00; font-style:normal; font-size:12px; }
.rm-bk-plan-price { font-weight:700; }
.rm-bk-plan-go { background:#1976d2; color:#fff; padding:4px 10px; border-radius:5px; font-size:13px; }
.rm-bk-form .rm-bk-row { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:12px; }
.rm-bk-form label { display:flex; flex-direction:column; font-size:13px; gap:4px; flex:1; min-width:200px; }
.rm-bk-form input { padding:9px; border:1px solid #cfd6dd; border-radius:6px; }
.rm-bk-sum { background:#f3f7fb; border:1px solid #dde6ef; border-radius:8px; padding:12px; margin-bottom:14px; }
.rm-bk-total { font-size:20px; font-weight:700; color:#10243e; }
.rm-bk-card { background:#fff; border:1px solid #dfe5ec; border-radius:8px; padding:14px; max-width:480px; margin:8px 0; }
.rm-bk-status { margin-left:8px; font-size:14px; }
.rm-bk-error { background:#fdecea; color:#a4242c; border:1px solid #f5c6c2; border-radius:8px; padding:10px 14px; margin-top:14px; }
.rm-bk-done { text-align:center; padding:24px; }
.rm-bk-done h2 { color:#2e7d32; }
@media (max-width:600px){ .rm-bk-room { flex-direction:column; } .rm-bk-room-img { width:100%; flex-basis:auto; height:160px; } }

/* ============================================================
   v2.45 — FLAT, FULL-WIDTH, RESPONSIVE REDESIGN (overrides above)
   ============================================================ */
.rm-fp-flat { width:100%; }
/* Hero sits right under the site menu — minimal top gap, flat */
.rm-fp-flat .rm-fp-hero { padding: 26px 16px 30px; }
.rm-fp-flat .rm-fp-hero-inner { max-width: 1200px; }
.rm-fp-flat .rm-fp-hero h1 { font-size: 2.1rem; margin-bottom: 6px; }
.rm-fp-flat .rm-fp-hero-sub { font-size: 1.02rem; margin-bottom: 16px; }
.rm-fp-flat .rm-fp-search-card { max-width: 1100px; padding: 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
/* Flat full-width sections (no boxed narrow columns) */
.rm-fp-flat .rm-fp-section { max-width: 1240px; padding: 30px 16px; }
/* Room grid: 4 → 3 → 2 → 1 */
.rm-fp-flat .rm-fp-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px){ .rm-fp-flat .rm-fp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px){  .rm-fp-flat .rm-fp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){  .rm-fp-flat .rm-fp-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px){ .rm-fp-flat .rm-fp-hero { padding: 18px 12px 22px; } .rm-fp-flat .rm-fp-hero h1 { font-size: 1.7rem; } }

/* ---- Search row (booking engine) ---- */
.rm-bk-searchbar { display:grid; grid-template-columns: 1.3fr 1fr 1fr .8fr .8fr .8fr auto; gap:10px; align-items:end; }
@media (max-width: 900px){ .rm-bk-searchbar { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px){ .rm-bk-searchbar { grid-template-columns: 1fr 1fr; } }
.rm-bk-searchbar select { padding:8px; border:1px solid #cfd6dd; border-radius:6px; background:#fff; }
.rm-bk-searchbar .rm-bk-go { grid-column: auto; }
.rm-bk-child-ages { grid-column: 1 / -1; display:flex; flex-wrap:wrap; gap:8px; }
.rm-bk-child-ages label { font-size:12px; }
.rm-bk-child-ages input { width:64px; }

/* ---- Results view toggle + views ---- */
.rm-bk-viewbar { display:flex; gap:6px; justify-content:flex-end; margin:0 0 10px; }
.rm-bk-viewbtn { background:#eef1f5; border:1px solid #dfe5ec; border-radius:6px; padding:5px 10px; font-size:13px; cursor:pointer; }
.rm-bk-viewbtn.is-on { background:#1976d2; color:#fff; border-color:#1976d2; }
/* Grid view: no picture, compact cards */
.rm-bk-results.view-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
@media (max-width:900px){ .rm-bk-results.view-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .rm-bk-results.view-grid { grid-template-columns: 1fr; } }
.rm-bk-results.view-grid .rm-bk-room { flex-direction:column; }
.rm-bk-results.view-grid .rm-bk-room-img { display:none; }
/* Thumbnail (default) + list keep the row layout; list hides the image */
.rm-bk-results.view-list .rm-bk-room-img { display:none; }

/* ---- Pay options (full / deposit / 50%) + terms ---- */
.rm-bk-payopts { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0; }
.rm-bk-payopt { flex:1; min-width:150px; border:1px solid #dfe5ec; border-radius:8px; padding:10px 12px; cursor:pointer; background:#f7f9fb; }
.rm-bk-payopt input { margin-right:6px; }
.rm-bk-payopt.is-on { border-color:#1976d2; background:#eef5fe; }
.rm-bk-payopt .amt { display:block; font-weight:700; margin-top:2px; }
.rm-bk-terms { display:flex; gap:8px; align-items:flex-start; font-size:13px; margin:10px 0; }
.rm-bk-initial-grid { margin-top:6px; }

/* ============================================================
   v2.45.1 — FULL-BLEED (break out of the theme's narrow column)
   + remove the theme page title & top gap on the booking page
   ============================================================ */
/* Full-width booking area.
   Block/FSE themes: PHP adds `alignfull`, so the theme lays it out full-width
   natively (no viewport math — avoids the theme's is-layout-constrained rules
   fighting our negative margins and shoving the content off to the right).
   Classic themes: PHP adds `rm-fp-bleed`, which breaks out of the content column. */
.rm-fp-flat { margin-top: -24px; }              /* pull up under the site menu */
.rm-fp-native { width: 100%; max-width: none; } /* theme's alignfull handles the width */
.rm-fp-bleed {
    position: relative;
    width: 100vw; max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
/* Never let the booking area cause a horizontal page scroll. */
.rm-fp-flat { overflow-x: clip; }
/* Search-row cells must be allowed to shrink so they never overflow the card. */
.rm-fp-flat .rm-bk-searchbar > * { min-width: 0; }
/* This stylesheet only loads on pages that use the booking shortcodes, so it is
   safe to hide the theme-rendered page title (e.g. "Book Your Stay") here. */
.wp-block-post-title,
.entry-title,
.page-title,
.wp-block-post-title.has-text-align-center { display: none !important; }

/* ============================================================
   v2.46 — Booking.com-style look & feel
   Palette: dark blue #003b95, CTA #0071c2, accent yellow #febb02
   ============================================================ */
.rm-fp-flat .rm-fp-hero { background: #003b95; padding: 22px 16px 26px; }
.rm-fp-flat .rm-fp-hero h1 { font-size: 1.9rem; }
.rm-fp-flat .rm-fp-search-card { background: #febb02; padding: 4px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25); max-width: 1120px; }
.rm-bk { max-width: 1120px; }
.rm-bk-steps { display: none; }             /* booking.com has no step chips up top */
/* Search bar as one connected white pill inside the yellow frame */
.rm-bk-searchbar { background:#fff; border-radius:6px; padding:6px; gap:4px; border:none; align-items:stretch;
    grid-template-columns: 1.4fr 1fr 1fr .9fr .9fr .9fr auto; }
.rm-bk-searchbar label { background:#fff; border:2px solid #e7e7e7; border-radius:4px; padding:5px 8px; justify-content:center; }
.rm-bk-searchbar label:focus-within { border-color:#0071c2; }
.rm-bk-searchbar input, .rm-bk-searchbar select { border:none !important; padding:2px 0 !important; font-weight:600; background:transparent; }
.rm-bk-searchbar .rm-bk-go { background:#0071c2; border-radius:4px; font-size:1rem; padding:0 22px; }
.rm-bk-searchbar .rm-bk-go:hover { background:#00487a; }

/* Results = vertical list of room cards */
#rm-bk-results.view-thumb, #rm-bk-results.view-list { display:block; }
.rm-bk-room { border:1px solid #e7e7e7; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,.06); margin-bottom:16px; }
.rm-bk-room-img { flex:0 0 200px; width:200px; min-height:150px; }
.rm-bk-room-body { display:flex; flex-wrap:wrap; gap:16px; }
.rm-bk-room-main { flex:1; min-width:220px; }
.rm-bk-room-main h3 { color:#0071c2; font-size:1.15rem; margin:0 0 4px; }
.rm-bk-room-desc { color:#333; font-size:.9rem; margin:6px 0; }
.rm-bk-room-sleeps { font-size:.85rem; color:#333; }
/* Right-hand booking column: price + qty + reserve */
.rm-bk-room-buy { flex:0 0 260px; border-left:1px solid #f0f0f0; padding-left:16px; display:flex; flex-direction:column; gap:8px; }
.rm-bk-plan-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px dashed #eee; }
.rm-bk-plan-row .lbl { font-size:.82rem; color:#444; }
.rm-bk-plan-row .pr { font-weight:800; font-size:1.05rem; }
.rm-bk-plan-row em { color:#8a6d00; font-style:normal; font-size:.72rem; font-weight:700; }
.rm-bk-qty { display:flex; align-items:center; gap:8px; }
.rm-bk-qty select { border:1px solid #ccc; border-radius:4px; padding:6px; }
.rm-bk-qty select:disabled { background:#f4f4f4; color:#aaa; cursor:not-allowed; }
.rm-bk-plan-row.rm-bk-locked { opacity:.45; }
.rm-bk-plan-row.rm-bk-locked .pr { color:#999; }
.rm-bk-soldout { color:#888; font-size:.85rem; }

/* Sticky running-total cart bar */
.rm-bk-cartbar { position:sticky; bottom:0; z-index:20; background:#fff; border-top:2px solid #003b95;
    box-shadow:0 -4px 14px rgba(0,0,0,.12); padding:12px 16px; display:none; align-items:center; gap:16px; flex-wrap:wrap; margin-top:10px; }
.rm-bk-cartbar.on { display:flex; }
.rm-bk-cartbar .sum { flex:1; font-size:.95rem; }
.rm-bk-cartbar .grand { font-size:1.3rem; font-weight:800; color:#003b95; }
.rm-bk-reserve { background:#0071c2; color:#fff; border:0; border-radius:4px; padding:12px 26px; font-weight:800; font-size:1.05rem; cursor:pointer; }
.rm-bk-reserve:hover { background:#00487a; }
@media (max-width:760px){ .rm-bk-room-buy { flex-basis:100%; border-left:0; border-top:1px solid #f0f0f0; padding-left:0; padding-top:12px; } }

/* Amenity chips, urgency, free-cancellation (booking.com touches) */
.rm-bk-amenities { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.rm-bk-amenity { background:#ebf3ff; color:#00487a; font-size:.72rem; font-weight:600; padding:3px 8px; border-radius:4px; }
.rm-bk-urgency { color:#c1341a; font-weight:700; font-size:.82rem; margin:6px 0; }
.rm-bk-freecancel { color:#008009; font-size:.72rem; font-weight:700; }
/* Booking.com model: auto-discount banner + policy radios + extras + live price */
.rm-bk-autobanner { margin-top:8px; background:#e7f5ec; border:1px solid #b6e3c6; color:#00743e; font-size:.82rem; padding:7px 10px; border-radius:6px; }
.rm-bk-choose-label { font-size:.68rem; text-transform:uppercase; letter-spacing:.03em; color:#666; font-weight:800; margin:2px 0 4px; }
.rm-bk-polrow { display:flex; align-items:center; gap:9px; padding:9px 10px; border:1.5px solid #e2e2e2; border-radius:7px; cursor:pointer; margin-bottom:6px; transition:border-color .12s, background .12s; }
.rm-bk-polrow.is-on { border-color:#0071c2; background:#f1f8ff; }
.rm-bk-polrow input { margin:0; }
.rm-bk-poltext { flex:1; display:flex; flex-direction:column; gap:1px; }
.rm-bk-pollabel { font-size:.86rem; font-weight:700; color:#1a1a1a; }
.rm-bk-polsub { font-size:.72rem; }
.rm-bk-polprice { font-weight:800; font-size:1rem; color:#1a1a1a; white-space:nowrap; }
.rm-bk-extras { margin:8px 0 4px; }
.rm-bk-exrow { display:block; font-size:.8rem; color:#333; padding:4px 0; cursor:pointer; }
.rm-bk-exrow input { margin-right:6px; }
.rm-bk-exstay { color:#777; font-size:.72rem; }
.rm-bk-priceline { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; border-top:1px solid #eee; margin-top:8px; padding-top:8px; }
.rm-bk-price { font-weight:800; font-size:1.25rem; color:#0071c2; }
.rm-bk-sub { margin-top:3px; font-size:.72rem; color:#444; }
.rm-bk-plannote { color:#666; font-weight:500; }
.rm-bk-pr-sub { font-size:.68rem; color:#777; font-weight:500; margin-top:1px; }
.rm-bk-best { background:#e7f5ec; color:#00743e; border:1px solid #b6e3c6; font-size:.66rem; font-weight:800; padding:1px 6px; border-radius:3px; margin-left:4px; text-transform:uppercase; letter-spacing:.02em; }
.rm-bk-save { background:#fff3cd; color:#8a6d00; font-size:.66rem; font-weight:800; padding:1px 6px; border-radius:3px; margin-left:4px; }
.rm-bk-plus { background:#eef3fb; color:#0b5cad; font-size:.66rem; font-weight:700; padding:1px 6px; border-radius:3px; margin-left:4px; }
