/* ==========================================================================
   Irton Manor — Single Property page ("Modern Heritage")
   Adapted from the approved property mockup. All classes namespaced `im-prop-`
   (plus shared `im-` chrome tokens/buttons from theme.css). Depends on
   irton-manor (theme.css) so the --im-* tokens and .im-btn styles are available.
   ========================================================================== */

.im-prop { padding-bottom: 60px; }

/* ---- Breadcrumb --------------------------------------------------------- */
.im-crumb { font-size: 13px; color: var(--im-muted); padding: 18px 0 6px; }
.im-crumb a { color: var(--im-muted); text-decoration: none; }
.im-crumb a:hover { color: var(--im-green); }
.im-crumb span { color: var(--im-ink); }

/* ---- Gallery ------------------------------------------------------------ */
.im-gal {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 440px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    margin-top: 6px;
}
.im-gal--single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.im-gal__cell { background: linear-gradient(150deg, #dfe9d6, #c9a97e); overflow: hidden; }
.im-gal__cell--big { grid-row: 1 / 3; }
.im-gal--single .im-gal__cell--big { grid-row: auto; }
.im-gal__cell--empty { background: linear-gradient(150deg, #eef3ea, #e7ddc9); }
.im-gal__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-gal__all {
    position: absolute; bottom: 16px; right: 16px;
    background: rgba(251, 249, 244, .94);
    border: 1px solid var(--im-stone); border-radius: 999px;
    padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--im-green);
    display: inline-flex; gap: 7px; align-items: center; text-decoration: none;
}
.im-gal__all .material-symbols-outlined { font-size: 18px; }
.im-gal__all { cursor: pointer; font: inherit; }
.im-gal__all:hover { background: #fff; }

/* ---- Gallery lightbox --------------------------------------------------- */
.im-gal-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(32, 38, 31, .92); overflow: auto; padding: 56px 20px; }
.im-gal-lb__close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--im-warm-white); color: var(--im-ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.im-gal-lb__grid { max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.im-gal-lb__grid img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* ---- Title + facts ------------------------------------------------------ */
.im-prop-title {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 20px; margin: 26px 0 8px; flex-wrap: wrap;
}
.im-main .im-prop-title h1 { font-size: clamp(30px, 4vw, 44px); }
.im-prop-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--im-ink); }
.im-prop-rating .material-symbols-outlined { color: var(--im-brass); font-size: 19px; }
.im-prop-facts {
    display: flex; gap: 20px; flex-wrap: wrap;
    color: var(--im-muted); font-size: 14.5px; margin-bottom: 6px;
}
.im-prop-facts span { display: inline-flex; gap: 7px; align-items: center; }
.im-prop-facts .material-symbols-outlined { font-size: 19px; color: var(--im-green); }

/* ---- Two-column layout -------------------------------------------------- */
.im-prop-layout {
    display: grid; grid-template-columns: 1fr 380px; gap: 44px;
    align-items: start; padding: 24px 0 20px;
}
.im-prop-block { border-bottom: 1px solid var(--im-stone); padding: 34px 0; }
.im-prop-block:first-child { padding-top: 8px; }
.im-prop-block--last { border-bottom: none; }
.im-main .im-prop-block h2 { font-size: 26px; margin-bottom: 14px; }
.im-prop-block p { color: #43483d; margin: 0 0 4px; }

/* ---- Explore the house -------------------------------------------------- */
.im-prop-explore { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.im-prop-wing { border-radius: 14px; padding: 22px; border: 1px solid var(--im-stone); }
.im-prop-wing--modern { background: linear-gradient(160deg, #f3f7ef, #e7efe0); }
.im-prop-wing--classic { background: linear-gradient(160deg, #f3ebdb, #ece0c8); }
.im-main .im-prop-wing h4 { font-size: 18px; color: var(--im-green); margin: 6px 0; }
.im-prop-rooms { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.im-prop-rooms span { font-size: 13.5px; display: inline-flex; gap: 7px; align-items: center; color: #43483d; }
.im-prop-rooms .material-symbols-outlined { font-size: 19px; color: var(--im-brass); }

/* ---- Amenities ---------------------------------------------------------- */
.im-prop-amlist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 8px; }
.im-prop-am { font-size: 14.5px; display: inline-flex; gap: 9px; align-items: center; color: #3b4034; }
.im-prop-am[hidden] { display: none; } /* beat the class rule so the reveal toggle works */
.im-prop-am .material-symbols-outlined { font-size: 21px; color: var(--im-green); }
.im-prop-am__icon { width: 21px; height: 21px; object-fit: contain; vertical-align: middle; }
.im-prop-amtoggle { cursor: pointer; }

/* ---- Where you'll be ---------------------------------------------------- */
.im-prop-map {
    height: 230px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(160deg, #e7efe0, #cdd8c3);
    position: relative; margin-top: 8px;
}
.im-prop-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.im-prop-map--panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--im-green); }
.im-prop-map__pin { font-size: 30px; color: var(--im-brass); }
.im-prop-map__label { font-family: var(--im-serif); font-size: 17px; }
.im-prop-drive { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; color: #43483d; }
.im-prop-drive span { display: inline-flex; gap: 7px; align-items: center; }
.im-prop-drive .material-symbols-outlined { font-size: 19px; color: var(--im-green); }

/* ---- Reviews ------------------------------------------------------------
 * The property page renders reviews via the plugin's [irton_reviews] shortcode,
 * restyled by the theme's assets/css/reviews.css (scoped to
 * .irton-reviews-shortcode). The old .im-prop-rev* / .im-prop-src* markup and
 * rules were retired with that move, so no review styles live here anymore. */

/* ---- Meet your host ----------------------------------------------------- */
.im-prop-host { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.im-prop-host__pic { aspect-ratio: 1; width: 120px; border-radius: 14px; object-fit: cover; }
.im-prop-host__pic--ph { background: linear-gradient(160deg, #dfe9d6, #c9a97e); }
.im-main .im-prop-host__name { font-size: 22px; margin: 4px 0 8px; }
.im-prop-host p { font-size: 14.5px; }

/* ---- Good to know ------------------------------------------------------- */
.im-prop-know { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 8px; }
.im-prop-know div { font-size: 14px; color: #43483d; }
.im-prop-know b { font-family: var(--im-serif); font-weight: 500; display: block; color: var(--im-green); margin-bottom: 3px; }
.im-prop-know__link { display: inline-block; margin-top: 4px; color: var(--im-brass); font-weight: 600; text-decoration: none; }
.im-prop-know__link:hover { text-decoration: underline; }

/* ---- Booking card (visual only; Stage 2 wires live behaviour) ----------- */
.im-prop-aside { align-self: start; }
.im-prop-book {
    position: sticky; top: 86px; background: #fff;
    border: 1px solid var(--im-stone); border-radius: 18px; padding: 22px;
    box-shadow: 0 18px 44px rgba(28, 50, 22, .08);
}
.im-prop-book__from { font-family: var(--im-serif); font-size: 26px; color: var(--im-ink); }
.im-prop-book__from small { font-family: var(--im-sans); font-size: 13px; color: var(--im-muted); }
.im-prop-book__arr { font-size: 12px; color: var(--im-muted); margin: 4px 0 14px; }
.im-prop-field { border: 1px solid var(--im-stone); border-radius: 11px; padding: 10px 12px; margin-bottom: 9px; }
.im-prop-field__lab { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--im-muted); font-weight: 600; }
.im-prop-field__val { font-size: 15px; margin-top: 2px; color: var(--im-ink); }
.im-prop-field__val--muted { color: var(--im-muted); }
.im-prop-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 9px; }
.im-prop-dates .im-prop-field { margin-bottom: 0; }
.im-prop-stepper { display: flex; align-items: center; justify-content: space-between; }
.im-prop-stepper__ctrl { display: inline-flex; align-items: center; gap: 4px; }
.im-prop-stepper button {
    width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--im-stone);
    background: #fff; font-size: 18px; cursor: pointer; color: var(--im-green); line-height: 1;
}
.im-prop-stepper b { padding: 0 10px; }
.im-prop-quote { border-top: 1px solid var(--im-stone); margin-top: 12px; padding-top: 12px; font-size: 14px; }
.im-prop-quote__r { display: flex; justify-content: space-between; padding: 4px 0; color: #43483d; }
.im-prop-quote__sched { font-size: 12px; color: var(--im-muted); margin-top: 8px; line-height: 1.5; }
.im-prop-book__cta { display: flex; width: 100%; box-sizing: border-box; margin-top: 14px; justify-content: center; }
.im-prop-reassure {
    font-size: 11.5px; color: var(--im-muted); text-align: center; margin-top: 10px;
    display: flex; gap: 6px; align-items: center; justify-content: center;
}
.im-prop-reassure .material-symbols-outlined { font-size: 15px; color: var(--im-green); }

/* ---- Sticky mobile book bar --------------------------------------------- */
.im-prop-mbar { display: none; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 940px) {
    .im-prop-layout { grid-template-columns: 1fr; }
    .im-prop-book { position: static; }
    .im-prop-explore, .im-prop-know, .im-prop-amlist { grid-template-columns: 1fr; }
    .im-gal { height: 300px; }
    .im-prop { padding-bottom: 80px; }
    .im-prop-mbar {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
        background: var(--im-green-deep); color: #fff;
        align-items: center; justify-content: space-between; padding: 12px 18px;
    }
    .im-prop-mbar__p { font-family: var(--im-serif); }
}
