/* ==========================================================================
   Irton Manor — "Modern Heritage" theme styles
   Adapted from the approved homepage mockup. All classes namespaced `im-`
   and homepage/chrome scoped so nothing bleeds into the reservations plugin's
   property/portal markup (which uses bare <header>/<section> elements).
   ========================================================================== */

:root {
    --im-green: #294720;
    --im-green-deep: #1C3216;
    --im-sage: #9FB88A;
    --im-parchment: #F5F1E8;
    --im-stone: #E7E0D2;
    --im-warm-white: #FBF9F4;
    --im-ink: #20261F;
    --im-brass: #B0894F;
    --im-muted: #6b7163;
    --im-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --im-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Base ---------------------------------------------------------------- */
body {
    margin: 0;
    background: var(--im-warm-white);
    color: var(--im-ink);
    font-family: var(--im-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.im-main h1, .im-main h2, .im-main h3, .im-main h4,
.im-header h1, .im-footer h4 {
    font-family: var(--im-serif);
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.12;
    margin: 0;
}
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24, 'GRAD' 0;
    line-height: 1;
    vertical-align: middle;
}
.im-wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }
.im-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 600; color: var(--im-brass); }
.im-section { padding: 72px 0; }
.im-parch { background: var(--im-parchment); }
.im-center { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.im-center h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0; }
.im-center p { color: var(--im-muted); font-size: 17px; }
.im-sub { color: var(--im-muted); font-size: 14px; margin-bottom: 14px; }

/* ---- Buttons ------------------------------------------------------------- */
.im-btn {
    font-family: var(--im-sans);
    font-weight: 600; font-size: 14px; border-radius: 999px;
    padding: 12px 24px; border: 1px solid transparent; cursor: pointer;
    text-decoration: none; display: inline-flex; gap: 7px; align-items: center;
}
.im-btn .material-symbols-outlined { font-size: 18px; }
.im-btn-brass { background: var(--im-brass); color: #fff; }
.im-btn-green { background: var(--im-green); color: #fff; }
.im-btn-ghost { background: transparent; border-color: var(--im-green); color: var(--im-green); }
.im-btn-light { background: rgba(255,255,255,.92); color: var(--im-green); }

/* ---- Discount strip + header -------------------------------------------- */
.im-strip { background: var(--im-green-deep); color: #eef3ea; text-align: center; font-size: 13px; padding: 8px 16px; }
.im-strip b { color: #fff; }
.im-header { background: var(--im-parchment); border-bottom: 1px solid var(--im-stone); position: sticky; top: 0; z-index: 20; }
.im-hd { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.im-logo { font-family: var(--im-serif); font-weight: 600; font-size: 21px; color: var(--im-green); display: flex; align-items: center; gap: 9px; text-decoration: none; }
.im-leaf { width: 24px; height: 24px; color: var(--im-green); }
.im-nav .im-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.im-nav a { color: var(--im-ink); text-decoration: none; opacity: .85; }
.im-nav a:hover { opacity: 1; color: var(--im-green); }
.im-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--im-ink); }
.im-rating--center { justify-content: center; }
.im-rating .material-symbols-outlined { color: var(--im-brass); font-size: 18px; }

/* ---- Hero --------------------------------------------------------------- */
.im-hero { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.im-hero__halves { position: absolute; inset: 0; display: flex; }
.im-half { flex: 1; display: flex; align-items: flex-end; padding: 18px; }
.im-half--m { background: linear-gradient(160deg, #eef3ea, #dfe9d6 55%, #cfe0c6); }
.im-half--c { background: linear-gradient(160deg, #efe6d4, #e3d3b6 55%, #c9a97e); }
.im-half__l { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: rgba(41,71,32,.55); }
.im-half__l--r { margin-left: auto; }
.im-hero__card {
    position: relative; z-index: 2; background: rgba(251,249,244,.94);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    border: 1px solid var(--im-stone); border-radius: 18px; padding: 46px 50px;
    max-width: 660px; text-align: center; box-shadow: 0 28px 70px rgba(28,50,22,.16); margin: 26px;
}
.im-hero__card h1 { font-size: clamp(38px, 5.5vw, 60px); margin: 16px 0 14px; }
.im-hero__card p { color: #4a5142; font-size: 19px; max-width: 520px; margin: 0 auto 26px; }
.im-hero__card .im-btn + .im-btn { margin-left: 8px; }

/* ---- Property cards ----------------------------------------------------- */
.im-props { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.im-pcard { background: #fff; border: 1px solid var(--im-stone); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(28,50,22,.06); }
.im-pcard__ph { height: 230px; }
.im-pcard__ph--a { background: linear-gradient(160deg, #dfe9d6, #c9a97e); }
.im-pcard__ph--b { background: linear-gradient(160deg, #e7ddc9, #9fb88a); }
.im-pcard__body { padding: 24px 26px; }
.im-pcard h3 { font-size: 25px; margin-bottom: 6px; }
.im-amen { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 16px 0 20px; }
.im-amen span { font-size: 13.5px; display: inline-flex; gap: 7px; align-items: center; color: #3b4034; }
.im-amen .material-symbols-outlined { font-size: 20px; color: var(--im-green); }
.im-pricerow { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--im-stone); padding-top: 16px; }
.im-price { font-family: var(--im-serif); font-size: 22px; }
.im-price small { font-family: var(--im-sans); font-size: 12px; color: var(--im-muted); }
.im-pcard__ph--media { padding: 0; overflow: hidden; }
.im-pcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-amen__icon { width: 1.1em; height: 1.1em; object-fit: contain; vertical-align: -.15em; }

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

/* ---- Grounds band ------------------------------------------------------- */
.im-grounds { background: var(--im-green-deep); color: var(--im-warm-white); border-radius: 22px; padding: 56px; text-align: center; }
.im-grounds .im-eyebrow { color: var(--im-sage); }
.im-grounds h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin: 12px auto 14px; max-width: 760px; }
.im-grounds p { color: #d7e0cf; max-width: 620px; margin: 0 auto 22px; }
.im-gicons { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.im-gicons div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: #cdd8c3; }
.im-gicons .material-symbols-outlined { font-size: 32px; color: var(--im-sage); }

/* ---- Reviews ------------------------------------------------------------ */
.im-revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.im-rev { background: #fff; border: 1px solid var(--im-stone); border-radius: 16px; padding: 24px; box-shadow: 0 12px 30px rgba(28,50,22,.05); }
.im-rev__q { font-family: var(--im-serif); font-size: 18px; line-height: 1.4; color: var(--im-ink); }
.im-stars { color: var(--im-brass); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.im-rev__who { margin-top: 14px; font-size: 13px; color: var(--im-ink); font-weight: 500; }
.im-rev__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--im-stone); }
.im-src { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 5px; display: inline-flex; align-items: center; }
.im-src--text { background: #eef3ea; color: var(--im-green); }
.im-src--logo { background: none; padding: 0; }
.im-src--logo img { height: 18px; width: auto; display: block; }
.im-date { font-size: 12px; color: var(--im-muted); }

/* ---- Hosts -------------------------------------------------------------- */
.im-hosts { display: grid; grid-template-columns: .7fr 1fr; gap: 40px; align-items: center; background: var(--im-parchment); border-radius: 22px; padding: 44px; border: 1px solid var(--im-stone); }
.im-hosts__pic { aspect-ratio: 1; border-radius: 18px; background: linear-gradient(160deg, #dfe9d6, #c9a97e); }
.im-hosts h2 { font-size: 32px; margin-bottom: 10px; }
.im-hosts p { color: #43483d; }

/* ---- How booking works -------------------------------------------------- */
.im-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.im-step { background: #fff; border: 1px solid var(--im-stone); border-radius: 14px; padding: 22px; }
.im-step h4 { font-size: 17px; color: var(--im-green); margin-bottom: 6px; }
.im-step__n { width: 30px; height: 30px; border-radius: 999px; background: var(--im-brass); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.im-step p { font-size: 14px; color: var(--im-muted); margin: 0; }

/* ---- Footer ------------------------------------------------------------- */
.im-footer { background: var(--im-green-deep); color: #cdd8c3; padding: 60px 0 26px; }
.im-fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.im-footer h4 { color: #fff; font-family: var(--im-sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.im-footer a { color: #cdd8c3; text-decoration: none; display: block; padding: 5px 0; font-size: 14px; }
.im-footer a:hover { color: #fff; }
.im-fmenu { list-style: none; margin: 0; padding: 0; }
.im-flogo { font-family: var(--im-serif); color: #fff; font-size: 20px; margin-bottom: 12px; }
.im-fcol--brand p { font-size: 14px; }
.im-fcol__addr { display: flex; gap: 8px; align-items: center; }
.im-fcol__addr .material-symbols-outlined { font-size: 18px; color: var(--im-sage); }
.im-trust { display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #b9c6ad; }
.im-trust div { display: flex; align-items: center; gap: 7px; }
.im-trust .material-symbols-outlined { font-size: 19px; color: var(--im-sage); }
.im-copy { border-top: 1px solid rgba(255,255,255,.14); margin-top: 22px; padding-top: 18px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Pages / posts ------------------------------------------------------ */
.im-entry { max-width: 780px; }
.im-entry__title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.im-entry__meta { color: var(--im-muted); font-size: 14px; }
.im-entry__media { margin: 20px 0; border-radius: 14px; overflow: hidden; }
.im-entry__content { font-size: 17px; }
.im-entry__content img { max-width: 100%; height: auto; border-radius: 10px; }
.im-post { padding: 22px 0; border-bottom: 1px solid var(--im-stone); }
.im-post__title { font-size: 24px; }
.im-post__title a { color: var(--im-ink); text-decoration: none; }

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

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 940px) {
    .im-props, .im-explore, .im-revs, .im-fgrid, .im-hosts, .im-steps { grid-template-columns: 1fr; }
    .im-nav { display: none; }
    .im-grounds, .im-hosts { padding: 34px; }
    .im-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; box-shadow: 0 -6px 20px rgba(0,0,0,.15);
    }
    .im-mbar .im-price { color: #fff; }
    body { padding-bottom: 64px; }
}
