/* Ideal Home Plan components. Tokens from theme.json; layout follows the Dec 2026 mockups. */

:root {
	--ihp-navy: #0B1F3A;
	--ihp-gold: #C9A35C;
	--ihp-gold-ink: #8A6A2E;      /* gold for text: passes contrast on ivory and white */
	--ihp-gold-light: #E6CD98;
	--ihp-gold-wash: #F7EEDB;     /* selected tier, table highlight */
	--ihp-ivory: #F8F6F0;
	--ihp-slate: #64748B;
	--ihp-slate-wash: #E9EDF2;
	--ihp-line: #E5DFD2;
	--ihp-paper: #FFFFFF;
	--ihp-r: 12px;
	--ihp-r-sm: 8px;
	--ihp-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--ihp-shadow: 0 1px 2px rgba(11, 31, 58, .05), 0 6px 20px rgba(11, 31, 58, .07);
	--ihp-shadow-hover: 0 2px 4px rgba(11, 31, 58, .06), 0 14px 32px rgba(11, 31, 58, .12);
	--ihp-serif: var(--wp--preset--font-family--heading);
}

body { -webkit-font-smoothing: antialiased; }
.ihp-visually-hidden, .screen-reader-text { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ihp-plan__buy { position: relative; }
.ihp-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
:focus-visible { outline: 2px solid var(--ihp-gold); outline-offset: 2px; }
.ihp-specs dd, .ihp-card__specs, .ihp-card__dims, .ihp-chip, .ihp-tier__price, .ihp-rooms td, .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
main { padding-bottom: var(--wp--preset--spacing--50); }
main > * + * { margin-block-start: 0; }

/* ------------------------------------------------------------ buttons */
.ihp-btn, .wp-element-button, .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 1rem; line-height: 1.2;
	padding: .85rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
	transition: background-color .18s var(--ihp-ease), color .18s var(--ihp-ease), transform .12s var(--ihp-ease);
}
.ihp-btn:active, .wp-element-button:active, .single_add_to_cart_button:active { transform: scale(.98); }
.ihp-btn--gold, .wp-block-button:not(.is-style-link):not(.is-style-outline) .wp-element-button { background: var(--ihp-gold); color: var(--ihp-navy); }
.ihp-btn--gold:hover, .wp-block-button:not(.is-style-link):not(.is-style-outline) .wp-element-button:hover { background: #B89048; color: var(--ihp-navy); }
.ihp-btn--navy { background: var(--ihp-navy); color: #fff; }
.ihp-btn--navy:hover { background: #16305a; color: #fff; }
.ihp-btn--outline, .is-style-outline .wp-element-button { background: transparent; color: var(--ihp-navy); box-shadow: inset 0 0 0 1.5px var(--ihp-navy); }
.ihp-btn--outline:hover, .is-style-outline .wp-element-button:hover { background: var(--ihp-navy); color: #fff; }
.is-style-link .wp-element-button { background: none; color: var(--ihp-navy); padding: .85rem .5rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.ihp-arrow-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ihp-gold-ink); text-decoration: none; border-bottom: 1.5px solid var(--ihp-gold); padding-bottom: 2px; }
.ihp-arrow-link .ihp-icon { transition: transform .2s var(--ihp-ease); }
@media (hover: hover) { .ihp-arrow-link:hover .ihp-icon { transform: translateX(3px); } }

/* ------------------------------------------------------------ headings */
.ihp-rule-heading { display: flex; align-items: center; gap: 1.25rem; font-size: var(--wp--preset--font-size--xl); margin: var(--wp--preset--spacing--50) 0 1.25rem; }
.ihp-rule-heading::after { content: ""; flex: 1; height: 1px; background: var(--ihp-gold); opacity: .7; }
.ihp-section-sub { color: var(--ihp-slate); margin: -.75rem 0 1.25rem; }
.ihp-center { text-align: center; margin: var(--wp--preset--spacing--40) 0; }

/* ------------------------------------------------------------ header */
.ihp-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ihp-ivory) 94%, transparent); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--ihp-gold) 60%, transparent); }
.ihp-header__row { min-height: 76px; gap: 2rem; }
.ihp-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ihp-navy); flex: none; }
.ihp-mark { width: 40px; height: 40px; }
.ihp-logo__text { display: grid; line-height: 1.1; }
.ihp-logo__name { font-family: var(--ihp-serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.ihp-logo__tag { font-size: .8rem; color: var(--ihp-navy); margin-top: .15rem; }
.ihp-nav { margin-left: auto; }
.ihp-nav a { text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--ihp-navy); padding-block: .35rem; border-bottom: 1.5px solid transparent; }
.ihp-nav a:hover, .ihp-nav .current-menu-item a, .ihp-nav a[aria-current="page"] { border-bottom-color: var(--ihp-gold); }
.ihp-tools { display: flex; align-items: center; gap: .25rem; padding-left: 1.25rem; border-left: 1px solid var(--ihp-line); }
.ihp-tools__btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ihp-navy); }
.ihp-tools__btn:hover { background: var(--ihp-gold-wash); }
.ihp-tools__btn .ihp-icon { width: 24px; height: 24px; }
.ihp-tools__count { position: absolute; top: 4px; right: 2px; background: var(--ihp-gold); color: var(--ihp-navy); font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
@media (max-width: 1100px) { .ihp-tools { border-left: 0; padding-left: 0; } .ihp-logo__name { font-size: 1.25rem; } }

/* ------------------------------------------------------------ footer */
.ihp-footer { border-top: 1px solid color-mix(in srgb, var(--ihp-gold) 60%, transparent); padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20); margin-top: var(--wp--preset--spacing--50); }
.ihp-footer__grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr auto; gap: 2rem; align-items: start; }
.ihp-footer__grid > * { margin: 0 !important; }
.ihp-footer__brand p { color: var(--ihp-navy); max-width: 32ch; margin-top: .75rem; }
.ihp-footer__h { font-size: 1.05rem; margin: 0 0 .6rem; }
.ihp-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .9rem; }
.ihp-footer__list a { text-decoration: none; color: var(--ihp-navy); }
.ihp-footer__list a:hover { text-decoration: underline; }
.ihp-yt { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ihp-navy); padding-left: 2rem; border-left: 1px solid var(--ihp-line); line-height: 1.25; }
.ihp-yt .ihp-icon { width: 34px; height: 34px; color: #C4302B; }
.ihp-footer__legal { text-align: center; color: var(--ihp-navy); border-top: 1px solid color-mix(in srgb, var(--ihp-gold) 60%, transparent); margin-top: var(--wp--preset--spacing--40) !important; padding-top: 1rem; }
@media (max-width: 900px) { .ihp-footer__grid { grid-template-columns: 1fr 1fr; } .ihp-footer__brand { grid-column: 1 / -1; } .ihp-yt { border-left: 0; padding-left: 0; } }

/* ------------------------------------------------------------ breadcrumbs, chips */
.ihp-crumbs { font-size: .85rem; color: var(--ihp-navy); margin: 1.25rem 0 .75rem; }
.ihp-crumbs a { color: var(--ihp-navy); text-decoration: none; }
.ihp-crumbs a:hover { text-decoration: underline; }
.ihp-crumbs__sep { color: var(--ihp-gold-ink); margin: 0 .3rem; }
.ihp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .75rem 0 1.25rem; }
.ihp-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border: 1px solid var(--ihp-gold-light); border-radius: 999px; background: var(--ihp-paper); font-size: .9rem; font-weight: 600; }
.ihp-chip .ihp-icon { color: var(--ihp-gold-ink); }
.ihp-chip--code { background: var(--ihp-gold-wash); }
.ihp-feature { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.ihp-feature .ihp-icon { color: var(--ihp-gold-ink); width: 1.4em; height: 1.4em; }

/* ------------------------------------------------------------ plan cards */
.ihp-cards { display: grid; gap: 1.25rem; }
.ihp-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ihp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ihp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ihp-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ihp-cards--3, .ihp-cards--4 { grid-template-columns: 1fr; } }
.ihp-card { position: relative; display: flex; flex-direction: column; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: var(--ihp-r); overflow: hidden; box-shadow: var(--ihp-shadow); transition: transform .22s var(--ihp-ease), box-shadow .22s var(--ihp-ease); }
@media (hover: hover) { .ihp-card:hover { transform: translateY(-3px); box-shadow: var(--ihp-shadow-hover); } .ihp-card:hover .ihp-card__go { background: var(--ihp-gold); color: var(--ihp-navy); } }
.ihp-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ihp-slate-wash); }
.ihp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ihp-card__badge { position: absolute; top: .65rem; left: .65rem; display: inline-flex; align-items: center; gap: .3rem; background: var(--ihp-paper); color: var(--ihp-navy); font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 1px 3px rgba(11,31,58,.15); }
.ihp-card__badge .ihp-icon { width: .9em; height: .9em; }
.ihp-card__body { display: flex; flex-direction: column; flex: 1; padding: .85rem 1rem 1rem; }
.ihp-card__title { font-family: var(--ihp-serif); font-size: 1.02rem; line-height: 1.3; margin: 0 0 .3rem; }
.ihp-card__title a { color: var(--ihp-navy); text-decoration: none; }
.ihp-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.ihp-card__code { white-space: nowrap; }
.ihp-card__specs, .ihp-card__dims { margin: 0; font-size: .88rem; color: var(--ihp-navy); }
.ihp-card__dims { color: var(--ihp-slate); }
.ihp-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .6rem; }
.ihp-card__price { font-weight: 800; color: var(--ihp-gold-ink); font-size: 1.05rem; }
.ihp-card__price del { color: var(--ihp-slate); font-weight: 500; font-size: .85em; }
.ihp-from { font-weight: 800; }
.ihp-card__go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ihp-gold); color: var(--ihp-gold-ink); transition: background-color .18s var(--ihp-ease); }
.ihp-card__go .ihp-icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------ home */
.ihp-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: center; padding-top: var(--wp--preset--spacing--40); }
.ihp-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1.12; margin: 0 0 1rem; }
.ihp-hero__sub { font-size: 1.15rem; max-width: 34ch; margin: 0 0 1.75rem; }
.ihp-hero__cta { gap: 1rem; }
.ihp-hero__cta .wp-element-button { padding: 1rem 1.9rem; }
.ihp-hmedia, .ihp-ltour__media { position: relative; display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--ihp-shadow); aspect-ratio: 16 / 8.5; }
.ihp-hmedia img, .ihp-ltour__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ihp-ease); }
@media (hover: hover) { .ihp-hmedia:hover img, .ihp-ltour__media:hover img { transform: scale(1.015); } }
.ihp-hmedia__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: rgba(11,31,58,.55); color: #fff; border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(4px); }
.ihp-hmedia__play .ihp-icon { width: 30px; height: 30px; margin-left: 4px; }
.ihp-finder { display: flex; align-items: center; gap: .75rem; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: var(--ihp-r); box-shadow: var(--ihp-shadow); padding: .75rem 1rem; margin-top: 1.5rem; }
.ihp-finder__label { font-family: var(--ihp-serif); font-weight: 700; line-height: 1.15; margin: 0 .75rem 0 0; padding-right: 1rem; border-right: 1px solid var(--ihp-line); max-width: 6rem; }
.ihp-finder label { flex: 1; }
.ihp-finder select, .ihp-filters input[type=number], .ihp-filters select, .ihp-sort select {
	width: 100%; font: inherit; font-size: .92rem; color: var(--ihp-navy); background: var(--ihp-paper);
	border: 1px solid #D6CFBF; border-radius: var(--ihp-r-sm); padding: .6rem .75rem; min-height: 44px;
}
.ihp-finder .ihp-btn { flex: none; }
@media (max-width: 900px) { .ihp-hero { grid-template-columns: 1fr; } .ihp-finder { flex-wrap: wrap; } .ihp-finder label { flex: 1 1 45%; } .ihp-finder__label { border: 0; max-width: none; flex-basis: 100%; } .ihp-finder .ihp-btn { flex-basis: 100%; } }

.ihp-tiles { display: grid; gap: 1rem; }
.ihp-tiles--bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 150px; }
.ihp-tiles--bento .ihp-tile--0 { grid-column: span 7; grid-row: span 2; }
.ihp-tiles--bento .ihp-tile--1, .ihp-tiles--bento .ihp-tile--2 { grid-column: span 5; }
.ihp-tiles--bento .ihp-tile--3 { grid-column: span 5; }
.ihp-tiles--bento .ihp-tile--4 { grid-column: span 7; }
.ihp-tiles--row { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
.ihp-tile { position: relative; display: block; border-radius: var(--ihp-r); overflow: hidden; background: var(--ihp-navy); color: #fff; text-decoration: none; box-shadow: var(--ihp-shadow); }
.ihp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ihp-ease); }
.ihp-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,58,.78) 0%, rgba(11,31,58,.15) 45%, rgba(11,31,58,0) 70%); }
.ihp-tile__name { position: absolute; z-index: 1; left: 1.1rem; bottom: .9rem; right: 3.5rem; font-family: var(--ihp-serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.ihp-tile--0 .ihp-tile__name { font-size: 1.75rem; }
.ihp-tile__go { position: absolute; z-index: 1; right: 1rem; bottom: .9rem; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ihp-gold-light); color: var(--ihp-gold-light); }
.ihp-tile__go .ihp-icon { width: 16px; height: 16px; }
@media (hover: hover) { .ihp-tile:hover img { transform: scale(1.03); } .ihp-tile:hover .ihp-tile__go { background: var(--ihp-gold); color: var(--ihp-navy); border-color: var(--ihp-gold); } }
@media (max-width: 900px) { .ihp-tiles--bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .ihp-tiles--bento .ihp-tile { grid-column: span 1 !important; grid-row: span 1 !important; } .ihp-tiles--bento .ihp-tile--0 { grid-column: span 2 !important; } .ihp-tiles--row { grid-template-columns: 1fr; } }

.ihp-ltour__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: center; }
.ihp-ltour__media { aspect-ratio: 16 / 7.5; }
.ihp-ltour__text h3 { font-size: 1.35rem; margin: 0 0 .5rem; }
.ihp-ltour__text p { margin: 0 0 1rem; }
.ihp-pstrip__row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: center; }
.ihp-fan { position: relative; display: block; height: 280px; }
.ihp-fan img { position: absolute; width: 58%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border: 1px solid var(--ihp-line); border-radius: 4px; box-shadow: var(--ihp-shadow); transition: transform .4s var(--ihp-ease); }
.ihp-fan__s0 { left: 2%; top: 22px; transform: rotate(-8deg); }
.ihp-fan__s1 { left: 22%; top: 6px; transform: rotate(1deg); z-index: 2; }
.ihp-fan__s2 { left: 40%; top: 26px; transform: rotate(8deg); }
@media (hover: hover) { .ihp-fan:hover .ihp-fan__s0 { transform: rotate(-11deg) translateX(-6px); } .ihp-fan:hover .ihp-fan__s2 { transform: rotate(11deg) translateX(6px); } }
.ihp-pstrip__list { list-style: none; padding: 0 0 0 2.5rem; margin: 0; border-left: 1px solid var(--ihp-line); display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 2rem; }
.ihp-pstrip__list li { display: flex; align-items: center; gap: .75rem; }
.ihp-pstrip__list .ihp-icon { width: 24px; height: 24px; color: var(--ihp-navy); }
.ihp-news { display: flex; align-items: center; gap: 2rem; background: var(--ihp-navy); color: #fff; border-radius: var(--ihp-r); padding: 1.5rem 2rem; margin-top: var(--wp--preset--spacing--50); }
.ihp-news h2 { color: #fff; margin: 0; font-size: 1.6rem; flex: none; padding-right: 2rem; border-right: 1px solid rgba(230,205,152,.4); }
.ihp-news p { margin: 0; flex: 1; color: #E8ECF2; }
@media (max-width: 900px) { .ihp-ltour__row, .ihp-pstrip__row { grid-template-columns: 1fr; } .ihp-pstrip__list { border-left: 0; padding-left: 0; } .ihp-news { flex-direction: column; align-items: flex-start; } .ihp-news h2 { border: 0; padding: 0; } }

/* ------------------------------------------------------------ collection pages */
.ihp-chero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; padding-top: .5rem; }
.ihp-chero h1 { font-size: clamp(2rem, 3.2vw, 2.9rem); margin: .25rem 0 .75rem; }
.ihp-chero__desc { max-width: 52ch; }
.ihp-chero__img { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 6.5; box-shadow: var(--ihp-shadow); }
.ihp-chero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ihp-catalog { display: grid; grid-template-columns: 270px 1fr; gap: 1.75rem; margin-top: var(--wp--preset--spacing--40); align-items: start; }
.ihp-filters { position: sticky; top: 96px; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: var(--ihp-r); box-shadow: var(--ihp-shadow); padding: 1.1rem 1.1rem 1.25rem; }
.ihp-filters h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.ihp-filters fieldset { border: 0; border-top: 1px solid var(--ihp-line); margin: 0; padding: .85rem 0 .7rem; }
.ihp-filters legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: .45rem; float: left; width: 100%; }
.ihp-filters__pair { display: flex; align-items: center; gap: .5rem; clear: both; font-size: .85rem; color: var(--ihp-slate); }
.ihp-check { display: flex; align-items: center; gap: .55rem; font-size: .92rem; padding: .18rem 0; clear: both; cursor: pointer; }
.ihp-check input { width: 18px; height: 18px; accent-color: var(--ihp-navy); margin: 0; }
.ihp-filters .ihp-btn { width: 100%; margin-top: .75rem; }
.ihp-filters__clear { display: block; text-align: center; font-size: .85rem; margin-top: .6rem; color: var(--ihp-navy); }
.ihp-catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ihp-catalog__count { font-size: 1.3rem; margin: 0; }
.ihp-sort { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.ihp-sort select { width: auto; min-width: 190px; }
.ihp-empty { background: var(--ihp-paper); border: 1px dashed #D6CFBF; border-radius: var(--ihp-r); padding: 2rem; text-align: center; }
.ihp-pages ul { list-style: none; display: flex; gap: .4rem; justify-content: center; padding: 0; margin: 2rem 0 0; }
.ihp-pages a, .ihp-pages span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--ihp-line); background: var(--ihp-paper); text-decoration: none; color: var(--ihp-navy); font-weight: 600; }
.ihp-pages .current { background: var(--ihp-navy); color: #fff; border-color: var(--ihp-navy); }
.ihp-guide__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; }
.ihp-guide__img img { width: 100%; border-radius: var(--ihp-r); display: block; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 900px) { .ihp-chero, .ihp-catalog, .ihp-guide__row { grid-template-columns: 1fr; } .ihp-filters { position: static; } .ihp-chero__img { order: -1; } }

/* ------------------------------------------------------------ plan page */
.ihp-plan-head__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.ihp-plan-head__title { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin: 0; }
.ihp-plan__top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); gap: 1.75rem; align-items: start; }
.ihp-plan__top > * { margin: 0 !important; }
.ihp-plan__buy { position: sticky; top: 92px; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: var(--ihp-r); box-shadow: var(--ihp-shadow); padding: 1.25rem; }
.ihp-buy__title { font-size: 1.35rem; margin: 0 0 .85rem; }
@media (max-width: 960px) { .ihp-plan__top { grid-template-columns: 1fr; } .ihp-plan__buy { position: static; } .ihp-plan-head__row { flex-direction: column; gap: .5rem; } }

.ihp-tour { position: relative; }
.ihp-tour__play, .ihp-tour iframe, .ihp-media__hero { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--ihp-r); overflow: hidden; background: var(--ihp-navy); cursor: pointer; }
.ihp-media__hero img, .ihp-tour__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ihp-ease); }
@media (hover: hover) { .ihp-tour__play:hover img { transform: scale(1.012); } }
.ihp-tour__icon { position: absolute; inset: 0; display: grid; place-items: center; }
.ihp-tour__icon svg { width: 76px; height: 54px; }
.ihp-tour__label, .ihp-tour__dur { position: absolute; bottom: 0; padding: .9rem 1.1rem; color: #fff; font-weight: 700; font-size: .95rem; }
.ihp-tour__label { left: 0; right: 0; text-align: left; background: linear-gradient(to top, rgba(11,31,58,.7), rgba(11,31,58,0)); }
.ihp-tour__dur { right: 0; }
.ihp-tour__chapters { list-style: none; display: flex; gap: 0; padding: .3rem; margin: .65rem 0 0; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.ihp-tour__chapters li { flex: 1; }
.ihp-tour__chapters button { width: 100%; white-space: nowrap; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ihp-navy); background: none; border: 0; border-radius: 999px; padding: .45rem .9rem; cursor: pointer; transition: background-color .15s var(--ihp-ease); }
.ihp-tour__chapters button:hover { background: var(--ihp-ivory); }
.ihp-tour__chapters button[aria-current="true"] { background: var(--ihp-gold-wash); box-shadow: inset 0 0 0 1px var(--ihp-gold-light); }
.ihp-thumbs { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; padding: 0; margin: .75rem 0 0; }
.ihp-thumbs__link { display: block; aspect-ratio: 4 / 3; border-radius: var(--ihp-r-sm); overflow: hidden; }
.ihp-thumbs__link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ihp-ease), opacity .2s; }
@media (hover: hover) { .ihp-thumbs__link:hover img { transform: scale(1.04); } }
.ihp-floorplan { margin: .75rem 0 0; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: var(--ihp-r); padding: .75rem; }
.ihp-floorplan img { width: 100%; height: auto; display: block; max-height: 360px; object-fit: contain; }
.ihp-floorplan figcaption { font-size: .82rem; color: var(--ihp-slate); text-align: center; margin-top: .4rem; }
.ihp-lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
.ihp-lightbox::backdrop { background: rgba(11,31,58,.85); }
.ihp-lightbox img { display: block; max-width: 100%; max-height: 86vh; border-radius: var(--ihp-r); }
.ihp-lightbox__close { position: absolute; top: .5rem; right: .5rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ihp-navy); cursor: pointer; display: grid; place-items: center; }
@media (max-width: 560px) { .ihp-thumbs { grid-template-columns: repeat(3, 1fr); } }

/* tiers */
.ihp-tiers { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ihp-tier { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .7rem .9rem; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: 10px; cursor: pointer; transition: border-color .15s var(--ihp-ease), background-color .15s var(--ihp-ease); }
.ihp-tier input, .ihp-licence input { position: absolute; opacity: 0; pointer-events: none; }
.ihp-tier__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #9AA4B2; display: grid; place-items: center; transition: border-color .15s; }
.ihp-tier__text { display: grid; line-height: 1.25; }
.ihp-tier__name { font-weight: 800; font-size: 1rem; }
.ihp-tier__desc { font-size: .8rem; color: var(--ihp-slate); }
.ihp-tier__right { display: grid; justify-items: end; gap: .2rem; }
.ihp-tier__price { white-space: nowrap; font-size: 1.05rem; }
.ihp-tier__price strong { font-weight: 800; }
.ihp-tier__price del { color: var(--ihp-slate); font-size: .85em; margin-right: .15rem; }
.ihp-tier__badge { font-size: .7rem; font-weight: 800; color: var(--ihp-navy); background: var(--ihp-gold-light); border-radius: 999px; padding: .1rem .55rem; }
.ihp-tier:hover { border-color: var(--ihp-gold-light); }
.ihp-tier.is-selected { background: var(--ihp-gold-wash); border-color: var(--ihp-gold); }
.ihp-tier.is-selected .ihp-tier__radio { border-color: var(--ihp-gold); background: var(--ihp-gold); box-shadow: inset 0 0 0 4px var(--ihp-gold-wash); }
.ihp-tier.is-selected .ihp-tier__price strong { color: var(--ihp-gold-ink); font-size: 1.15em; }
.ihp-tier:has(input:focus-visible), .ihp-licence:has(input:focus-visible) { outline: 2px solid var(--ihp-gold); outline-offset: 2px; }
.ihp-licence { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .65rem .9rem; border: 1px solid var(--ihp-line); border-radius: 10px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.ihp-licence__box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #9AA4B2; }
.ihp-licence input:checked + .ihp-licence__box { background: var(--ihp-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23fff'%3E%3Cpath d='M229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32z'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--ihp-navy); }
.ihp-licence__price { font-weight: 800; }
.ihp-licence.is-disabled { opacity: .45; cursor: not-allowed; }
.variations_form .single_variation_wrap .woocommerce-variation-price, .variations_form .quantity, .variations_form .reset_variations { display: none !important; }
.wp-block-add-to-cart-form .woocommerce-variation-add-to-cart { display: block; margin-top: 1rem; }
.wp-block-add-to-cart-form .single_variation_wrap .woocommerce-variation { display: none !important; }
.wp-block-add-to-cart-form form.cart { margin: 0; }
.wp-block-add-to-cart-form .single_add_to_cart_button { width: 100%; background: var(--ihp-gold) !important; color: var(--ihp-navy) !important; font-family: var(--ihp-serif); font-size: 1.3rem; padding: 1rem 1.5rem; }
.wp-block-add-to-cart-form .single_add_to_cart_button:hover { background: #B89048 !important; }
.ihp-trust { list-style: none; display: flex; justify-content: space-between; gap: .5rem; padding: .85rem 0; margin: .85rem 0 0; border-top: 1px solid var(--ihp-line); font-size: .82rem; }
.ihp-trust li { display: flex; align-items: center; gap: .35rem; }
.ihp-paymarks { display: flex; justify-content: center; align-items: center; gap: .6rem; margin: 0; padding-top: .75rem; border-top: 1px solid var(--ihp-line); font-size: .8rem; font-weight: 700; }
.ihp-paymarks span { border: 1px solid var(--ihp-line); border-radius: 6px; padding: .3rem .6rem; }

/* sections */
.ihp-psec { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding-block: 1.75rem; border-top: 1px solid color-mix(in srgb, var(--ihp-gold) 45%, transparent); margin-top: 0; }
.ihp-plan__top + .ihp-psec, .ihp-plan .ihp-psec:first-of-type { margin-top: var(--wp--preset--spacing--40); }
.ihp-psec__label h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.ihp-psec__label p { color: var(--ihp-navy); font-size: .92rem; margin: 0; }
.ihp-psec__body > :first-child { margin-top: 0; }
@media (max-width: 900px) { .ihp-psec { grid-template-columns: 1fr; gap: 1rem; } }
.ihp-wyg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ihp-wyg__item { border-left: 1px solid var(--ihp-line); padding-left: 1.25rem; }
.ihp-wyg__item:first-child { border-left: 0; padding-left: 0; }
.ihp-wyg__item h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; font-family: var(--wp--preset--font-family--body); font-size: .92rem; font-weight: 800; margin: 0 0 .6rem; }
.ihp-wyg__item h3 span { flex-basis: 100%; font-weight: 500; font-size: .8rem; color: var(--ihp-slate); }
.ihp-wyg__item h3 .ihp-icon { color: var(--ihp-gold-ink); }
.ihp-wyg__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--ihp-line); border-radius: 6px; background: #fff; display: block; }
.ihp-wyg__item p { font-size: .85rem; margin: .5rem 0 0; }
@media (max-width: 900px) { .ihp-wyg { grid-template-columns: 1fr 1fr; } .ihp-wyg__item:nth-child(3) { border-left: 0; padding-left: 0; } }
.ihp-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ihp-rooms__group { border: 1px solid var(--ihp-line); border-radius: var(--ihp-r-sm); overflow: hidden; background: var(--ihp-paper); }
.ihp-rooms__group h3 { font-family: var(--wp--preset--font-family--body); font-size: .9rem; font-weight: 800; background: var(--ihp-gold-wash); margin: 0; padding: .5rem .8rem; }
.ihp-rooms table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ihp-rooms th, .ihp-rooms td { text-align: left; padding: .4rem .8rem; border-top: 1px solid var(--ihp-line); font-weight: 600; }
.ihp-rooms td { text-align: right; white-space: nowrap; }
.ihp-rooms td span { color: var(--ihp-slate); font-weight: 500; }
.ihp-notes-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; }
.ihp-notes-row__img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--ihp-r); display: block; }
.ihp-notes p { margin: 0 0 .75rem; font-size: .95rem; }
.ihp-pack { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ihp-pack__imgs { display: flex; gap: .6rem; flex: 1 1 420px; }
.ihp-pack__imgs img { width: 33%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ihp-r-sm); }
@media (max-width: 900px) { .ihp-notes-row { grid-template-columns: 1fr; } }
.ihp-build-note { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 1.25rem; background: var(--ihp-slate-wash); border: 1px solid #D5DDE7; border-radius: var(--ihp-r); padding: 1rem 1.5rem; margin: var(--wp--preset--spacing--30) 0; }
.ihp-build-note::before { content: ""; width: 34px; height: 34px; background: url("../icons/house-line.svg") center / contain no-repeat; opacity: .8; }
.ihp-build-note h3 { font-size: 1.15rem; margin: 0; padding-right: 1.25rem; border-right: 1px solid #C9D2DD; white-space: nowrap; }
.ihp-build-note p { margin: 0; font-size: .92rem; }
.ihp-build-note p + p { display: none; }
@media (max-width: 760px) { .ihp-build-note { grid-template-columns: 1fr; } .ihp-build-note h3 { border: 0; padding: 0; } .ihp-build-note::before { display: none; } }
.ihp-section--faq h2, .ihp-cfaq .ihp-rule-heading { font-size: 1.75rem; }
.ihp-faq { display: grid; gap: .4rem; }
.ihp-faq__item { background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: var(--ihp-r-sm); padding: .65rem 1rem; }
.ihp-faq__item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.ihp-faq__item summary::after { content: "+"; color: var(--ihp-navy); font-weight: 600; font-size: 1.2rem; line-height: 1; }
.ihp-faq__item[open] summary::after { content: "\2212"; }
.ihp-faq__item summary::-webkit-details-marker { display: none; }
.ihp-faq__item > div { padding-top: .5rem; font-size: .95rem; }
.ihp-faq__item > div p { margin: 0 0 .5rem; }
.ihp-section--faq { margin-top: var(--wp--preset--spacing--30); }
.ihp-section--faq > h2 { display: flex; align-items: center; gap: 1.25rem; }
.ihp-section--faq > h2::after { content: ""; flex: 1; height: 1px; background: var(--ihp-gold); opacity: .7; }

/* mobile buy bar */
.ihp-buybar { position: fixed; z-index: 40; left: .75rem; right: .75rem; bottom: .75rem; display: none; align-items: center; justify-content: space-between; gap: 1rem; background: var(--ihp-navy); color: #fff; border-radius: 14px; padding: .65rem .75rem .65rem 1.1rem; box-shadow: 0 10px 30px rgba(11,31,58,.35); transform: translateY(130%); transition: transform .3s var(--ihp-ease); }
.ihp-buybar__price { font-family: var(--ihp-serif); font-size: 1.25rem; font-weight: 700; white-space: nowrap; min-width: 0; }
.ihp-buybar__price del { font-family: var(--wp--preset--font-family--body); font-size: .8rem; opacity: .7; font-weight: 500; }
.ihp-buybar__btn { flex: none; font: inherit; font-family: var(--ihp-serif); font-weight: 700; font-size: 1.1rem; background: var(--ihp-gold); color: var(--ihp-navy); border: 0; border-radius: 999px; padding: .7rem 1.4rem; cursor: pointer; }
@media (max-width: 960px) { .ihp-buybar { display: flex; } .ihp-buybar.is-visible { transform: translateY(0); } }

/* ------------------------------------------------------------ what's included */
.ihp-wihero { padding-block: .5rem 1rem; max-width: 760px; margin-left: 0 !important; }
.ihp-wihero > * { margin-left: 0 !important; }
.ihp-wihero h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin: .25rem 0 .75rem; }
.ihp-wi { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ihp-wi__card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: center; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: var(--ihp-r); box-shadow: var(--ihp-shadow); padding: 1rem; }
.ihp-wi__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--ihp-line); border-radius: 6px; display: block; }
.ihp-wi__card h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.ihp-wi__card p { font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .ihp-wi { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ihp-wi__card { grid-template-columns: 1fr; } }
.ihp-ttable-wrap { overflow-x: auto; }
.ihp-ttable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: var(--ihp-r); font-size: .92rem; min-width: 720px; }
.ihp-ttable th, .ihp-ttable td { padding: .6rem .9rem; border-top: 1px solid var(--ihp-line); text-align: center; }
.ihp-ttable thead th { border-top: 0; background: var(--ihp-ivory); font-weight: 800; vertical-align: bottom; position: relative; }
.ihp-ttable thead th:first-child, .ihp-ttable tbody th { text-align: left; }
.ihp-ttable tbody th { font-weight: 600; }
.ihp-ttable__price { display: block; font-family: var(--ihp-serif); font-size: 1.05rem; margin-top: .2rem; }
.ihp-ttable .is-best { background: var(--ihp-gold-wash); box-shadow: inset 1px 0 0 var(--ihp-gold-light), inset -1px 0 0 var(--ihp-gold-light); }
.ihp-best { display: table; margin: 0 auto .35rem; font-size: .72rem; background: var(--ihp-gold-light); border-radius: 999px; padding: .1rem .6rem; white-space: nowrap; }

.ihp-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ihp-gold); color: #fff; }
.ihp-yes .ihp-icon { width: 14px; height: 14px; }
.ihp-no { color: var(--ihp-slate); }
.ihp-ttable__note { font-size: .82rem; color: var(--ihp-slate); margin-top: .5rem; }
.ihp-dnote { display: flex; align-items: center; gap: 1rem; background: var(--ihp-slate-wash); border: 1px solid #D5DDE7; border-radius: var(--ihp-r); padding: 1rem 1.5rem; margin-top: var(--wp--preset--spacing--30); }
.ihp-dnote .ihp-icon { width: 34px; height: 34px; color: var(--ihp-gold-ink); }
.ihp-dnote p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Grid children must be allowed to shrink below their content width on phones. */
.ihp-plan__top > *, .ihp-psec > *, .ihp-catalog > *, .ihp-hero > *, .ihp-chero > *, .ihp-ltour__row > *, .ihp-pstrip__row > * { min-width: 0; }
@media (max-width: 560px) {
	.ihp-logo__name { font-size: 1.1rem; white-space: nowrap; }
	.ihp-logo__tag { font-size: .7rem; }
	.ihp-mark { width: 32px; height: 32px; }
	.ihp-header__row { gap: .75rem; }
	.ihp-trust { flex-wrap: wrap; justify-content: flex-start; gap: .4rem 1rem; }
	.ihp-paymarks { flex-wrap: wrap; }
	.ihp-plan__buy { padding: 1rem; }
	.ihp-tier { padding: .65rem .75rem; gap: .6rem; }
	.ihp-rooms td { white-space: normal; }
}

.ihp-filters label, .ihp-filters fieldset > *, .ihp-filters p { margin-block: 0; }
.ihp-filters__pair label { flex: 1; min-width: 0; }
.ihp-filters__pair input { width: 100%; min-width: 0; padding: .5rem .6rem !important; }
.ihp-check { line-height: 1.3; }
.ihp-filters__pair { gap: .35rem; }
.ihp-filters__pair > label { flex: 1 1 0; }
.ihp-tiles--row .ihp-tile__name { font-size: 1.3rem; }

/* Bento with fewer than 5 collections */
.ihp-tiles--n3 .ihp-tile--1, .ihp-tiles--n3 .ihp-tile--2 { grid-column: span 5; }
.ihp-tiles--n4 .ihp-tile--3 { grid-column: span 12; }
@media (max-width: 560px) {
	.ihp-catalog__bar { flex-wrap: wrap; }
	.ihp-sort { width: 100%; }
	.ihp-sort select { min-width: 0; flex: 1; }
}

.ihp-filters input, .ihp-finder select, .ihp-sort select { box-sizing: border-box; }
.ihp-filters-toggle { display: none; }
@media (max-width: 900px) {
	.ihp-filters-toggle { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font-weight: 700; background: var(--ihp-paper); border: 1px solid var(--ihp-line); border-radius: 999px; padding: .65rem 1.1rem; width: max-content; }
	.ihp-filters-toggle::-webkit-details-marker { display: none; }
	.ihp-filters-wrap[open] .ihp-filters-toggle { margin-bottom: .75rem; }
	.ihp-filters h2 { display: none; }
}
