/* Tawhid Real Estate – front-end styles. Mobile first. */
:root {
	--tre-primary: #164B36;
	--tre-primary-600: #12402e;
	--tre-secondary: #27865B;
	--tre-bg: #FFFFFF;
	--tre-light: #F5F8F5;
	--tre-text: #252B28;
	--tre-muted: #5E6963;
	--tre-border: #E2E9E4;
	--tre-gold: #C9A45C;
	--tre-wa: #1FAF5A;
	--tre-radius: 14px;
	--tre-radius-sm: 10px;
	--tre-shadow: 0 1px 2px rgba(22, 75, 54, .06), 0 8px 24px rgba(22, 75, 54, .07);
	--tre-shadow-lg: 0 18px 48px rgba(22, 75, 54, .16);
	--tre-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tre-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--tre-gutter: 16px;
}

/* ---------- Base (scoped) */
.tre, .tre * { box-sizing: border-box; }
.tre { font-family: var(--tre-font); color: var(--tre-text); line-height: 1.6; }
.tre img { max-width: 100%; height: auto; display: block; }
.tre a { color: inherit; }
.tre h1, .tre h2, .tre h3 { font-family: var(--tre-font-head); color: var(--tre-primary); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
.tre .tre-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em; }
.tre .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tre-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--tre-gutter); }
.tre-muted { color: var(--tre-muted); }
.tre-admin-hint { border: 1px dashed var(--tre-secondary); background: var(--tre-light); color: var(--tre-primary); padding: 14px 16px; border-radius: var(--tre-radius-sm); font-size: 14px; }
.tre-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; color: var(--tre-gold); margin: 0 0 12px; }
.tre-link { color: var(--tre-secondary); font-weight: 600; text-decoration: none; }
.tre-link:hover { color: var(--tre-primary); text-decoration: underline; }
body.tre-no-scroll { overflow: hidden; }

/* ---------- Buttons */
.tre-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1.2 var(--tre-font); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.tre-btn:hover { transform: translateY(-1px); }
.tre-btn:focus-visible { outline: 3px solid rgba(39, 134, 91, .4); outline-offset: 2px; }
.tre-btn--primary { background: var(--tre-primary); color: #fff !important; }
.tre-btn--primary:hover { background: var(--tre-secondary); }
.tre-btn--wa { background: var(--tre-wa); color: #fff !important; }
.tre-btn--wa:hover { background: #17964c; }
.tre-btn--ghost { background: #fff; color: var(--tre-primary) !important; border-color: var(--tre-border); }
.tre-btn--ghost:hover { border-color: var(--tre-secondary); }
.tre-btn--light { background: #fff; color: var(--tre-primary) !important; }
.tre-btn--outline-light { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.tre-btn--outline-light:hover { border-color: #fff; }
.tre-btn--link { background: none; color: var(--tre-muted) !important; min-height: 0; padding: 8px; }
.tre-btn--block { width: 100%; }
.tre-btn__sub { font-weight: 500; opacity: .8; font-size: 13px; }
.tre-btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Badges & price */
.tre-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tre-badges--inline { position: static; margin-bottom: 12px; }
.tre-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: #fff; color: var(--tre-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tre-badge--for-sale { background: var(--tre-primary); color: #fff; }
.tre-badge--for-rent { background: var(--tre-secondary); color: #fff; }
.tre-badge--featured { background: var(--tre-gold); color: #fff; }
.tre-badge--sold, .tre-badge--rented { background: #8A2E2E; color: #fff; }
.tre-badge--booked { background: #B7791F; color: #fff; }
.tre-price { font-weight: 700; color: var(--tre-primary); font-family: var(--tre-font); }
.tre-price small { font-weight: 500; color: var(--tre-muted); font-size: .7em; margin-left: 2px; }
.tre-price--request { font-weight: 600; color: var(--tre-secondary); }

/* ---------- Property card */
.tre-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .tre-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tre-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.tre-card { background: #fff; border: 1px solid var(--tre-border); border-radius: var(--tre-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.tre-card:hover { transform: translateY(-4px); box-shadow: var(--tre-shadow-lg); }
.tre-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tre-light); }
.tre-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tre-card:hover .tre-card__media img { transform: scale(1.04); }
.tre-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tre-secondary); }
.tre-card__placeholder .tre-icon { width: 48px; height: 48px; opacity: .5; }
.tre-card__body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.tre-card__price { font-size: 20px; margin-bottom: 6px; }
.tre .tre-card__title { font-size: 18px; margin: 0 0 6px; font-family: var(--tre-font); font-weight: 600; color: var(--tre-text); letter-spacing: 0; }
.tre-card__title a { text-decoration: none; }
.tre-card__title a:hover { color: var(--tre-secondary); }
.tre-card__title a::after { content: ""; position: absolute; inset: 0; }
.tre-card { position: relative; }
.tre-card__loc { display: flex; gap: 6px; align-items: center; margin: 0 0 14px; font-size: 14px; color: var(--tre-muted); }
.tre-card__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid var(--tre-border); font-size: 14px; font-weight: 600; }
.tre-card__facts li { display: flex; align-items: center; gap: 6px; margin: 0; }
.tre-card__facts span { font-weight: 400; color: var(--tre-muted); }
.tre-card__facts .tre-icon { color: var(--tre-secondary); }
.tre-card__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; color: var(--tre-muted); }
.tre-card__id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--tre-light); padding: 2px 8px; border-radius: 6px; color: var(--tre-primary); }
.tre-card--closed .tre-card__media img { filter: grayscale(.6); }

/* ---------- Hero */
.tre-hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--tre-primary) 0%, #0d2f22 100%); padding: 96px 0 64px; }
.tre-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tre-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 34, 25, .55) 0%, rgba(10, 34, 25, .35) 40%, rgba(10, 34, 25, .75) 100%); }
.tre-hero__inner { position: relative; z-index: 1; }
.tre .tre-hero__title { color: #fff; font-size: clamp(34px, 7vw, 64px); max-width: 820px; margin-bottom: 16px; }
.tre-hero__sub { font-size: clamp(16px, 2.2vw, 19px); max-width: 680px; opacity: .92; margin: 0 0 32px; }
@media (min-width: 1024px) { .tre-hero { min-height: 720px; } }

/* ---------- Search bar */
.tre-search { background: #fff; color: var(--tre-text); border-radius: 18px; padding: 16px; box-shadow: var(--tre-shadow-lg); max-width: 1080px; }
.tre-search__tabs { display: inline-flex; background: var(--tre-light); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.tre-search__tabs label, .tre-seg label { position: relative; cursor: pointer; margin: 0; }
.tre-search__tabs input, .tre-seg input, .tre-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tre-search__tabs span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--tre-muted); transition: background .2s, color .2s; }
.tre-search__tabs input:checked + span { background: var(--tre-primary); color: #fff; }
.tre-search__tabs input:focus-visible + span, .tre-seg input:focus-visible + span, .tre-chip input:focus-visible + span { outline: 3px solid rgba(39, 134, 91, .4); }
.tre-search__row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; }
@media (min-width: 640px) { .tre-search__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tre-search__row { grid-template-columns: repeat(4, 1fr) auto; } .tre-search__row--adv { grid-template-columns: repeat(5, 1fr); } }
.tre-search__field label, .tre-field label, .tre-field__label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--tre-muted); margin: 0 0 6px; }
.tre select, .tre input[type="text"], .tre input[type="number"], .tre input[type="email"], .tre input[type="tel"], .tre input[type="search"], .tre input[type="date"], .tre textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--tre-border); border-radius: var(--tre-radius-sm); background: #fff; color: var(--tre-text); font: 400 15px/1.4 var(--tre-font); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; margin: 0;
}
.tre select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6963' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.tre select:disabled { opacity: .55; cursor: not-allowed; }
.tre select:focus, .tre input:focus, .tre textarea:focus { outline: none; border-color: var(--tre-secondary); box-shadow: 0 0 0 3px rgba(39, 134, 91, .15); }
.tre-search__submit { min-height: 48px; padding-inline: 28px; border-radius: var(--tre-radius-sm); }
.tre-search__more { margin-top: 12px; }
.tre-search__more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tre-secondary); list-style: none; display: inline-block; }
.tre-search__more summary::-webkit-details-marker { display: none; }
.tre-search__more summary::after { content: " +"; }
.tre-search__more[open] summary::after { content: " –"; }
.tre-search__more .tre-search__row { margin-top: 12px; }

/* ---------- Sections (used in page content) */
.tre-section { padding: 64px 0; }
.tre-section--tight { padding: 48px 0 24px; }
.tre-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }
.tre-section__head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0; }
.tre-section__head .tre-eyebrow { color: var(--tre-secondary); margin-bottom: 8px; }
.tre-section__sub { color: var(--tre-muted); margin: 8px 0 0; max-width: 640px; }
.tre-section--light { background: var(--tre-light); }
@media (min-width: 1024px) { .tre-section { padding: 88px 0; } }
.tre-section .tre-section { padding: 0; }

/* ---------- Categories & locations */
.tre-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .tre-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tre-cats { grid-template-columns: repeat(6, 1fr); } }
.tre-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 18px; border-radius: var(--tre-radius); background: #fff; border: 1px solid var(--tre-border); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tre-cat:hover { border-color: var(--tre-secondary); transform: translateY(-3px); box-shadow: var(--tre-shadow); }
.tre-cat__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tre-light); color: var(--tre-primary); margin-bottom: 10px; }
.tre-cat__icon .tre-icon { width: 26px; height: 26px; }
.tre-cat__name { font-weight: 600; font-size: 16px; color: var(--tre-text); }
.tre-cat__count { font-size: 13px; color: var(--tre-muted); }
.tre-locs { display: flex; flex-wrap: wrap; gap: 10px; }
.tre-loc { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--tre-border); text-decoration: none; font-weight: 500; transition: border-color .2s, background .2s; }
.tre-loc:hover { border-color: var(--tre-secondary); background: var(--tre-light); }
.tre-loc .tre-icon { color: var(--tre-secondary); }
.tre-loc small { background: var(--tre-light); border-radius: 999px; padding: 0 8px; font-size: 12px; color: var(--tre-primary); font-weight: 600; }

/* ---------- Stats */
.tre-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .tre-stats { grid-template-columns: repeat(4, 1fr); } }
.tre-stats > div { text-align: center; padding: 18px; }
.tre-stats strong { display: block; font-family: var(--tre-font-head); font-size: 38px; color: var(--tre-primary); line-height: 1.1; }
.tre-stats span { font-size: 14px; color: var(--tre-muted); }

/* ---------- Videos */
.tre-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.tre-tabs button { flex: 0 0 auto; border: 1px solid var(--tre-border); background: #fff; color: var(--tre-text); padding: 8px 16px; border-radius: 999px; font: 600 14px var(--tre-font); cursor: pointer; }
.tre-tabs button.is-active { background: var(--tre-primary); border-color: var(--tre-primary); color: #fff; }
.tre-video-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .tre-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tre-video-grid { grid-template-columns: repeat(3, 1fr); } }
.tre-video { background: #fff; border: 1px solid var(--tre-border); border-radius: var(--tre-radius); overflow: hidden; transition: box-shadow .25s; }
.tre-video:hover { box-shadow: var(--tre-shadow-lg); }
.tre-video[hidden] { display: none; }
.tre-video__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #0d2f22; cursor: pointer; overflow: hidden; }
.tre-video__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .4s, opacity .3s; }
.tre-video__thumb:hover img { transform: scale(1.04); opacity: 1; }
.tre-video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--tre-primary); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.tre-video__thumb:hover .tre-video__play { transform: translate(-50%, -50%) scale(1.08); }
.tre-video__play .tre-icon { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.tre-video__body { padding: 16px 18px 18px; }
.tre-video__cat { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tre-secondary); }
.tre .tre-video__body h3 { font-family: var(--tre-font); font-size: 17px; color: var(--tre-text); margin: 6px 0; letter-spacing: 0; }
.tre-video__body p { margin: 0 0 10px; color: var(--tre-muted); font-size: 14px; }
.tre-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tre-radius); overflow: hidden; background: #000; }
.tre-video-frame iframe, .tre-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Testimonials */
.tre-testimonials { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 768px) { .tre-testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tre-testimonials { grid-template-columns: repeat(3, 1fr); } }
.tre-quote { margin: 0; background: #fff; border: 1px solid var(--tre-border); border-radius: var(--tre-radius); padding: 26px; display: flex; flex-direction: column; }
.tre-quote__stars { color: var(--tre-gold); margin-bottom: 10px; display: flex; gap: 2px; }
.tre-quote__stars .tre-icon { fill: currentColor; }
.tre-quote blockquote { margin: 0 0 18px; padding: 0; border: 0; font-size: 16px; color: var(--tre-text); font-style: normal; }
.tre-quote blockquote p { margin: 0 0 .6em; }
.tre-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.tre-quote figcaption img, .tre-quote__initial { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.tre-quote__initial { display: grid; place-items: center; background: var(--tre-primary); color: #fff; font-weight: 700; }
.tre-quote figcaption small { display: block; color: var(--tre-muted); font-size: 13px; }

/* ---------- CTA band */
.tre-cta { background: linear-gradient(135deg, var(--tre-primary) 0%, #0f3a29 60%, var(--tre-secondary) 140%); color: #fff; border-radius: 22px; padding: 36px 24px; display: grid; gap: 24px; align-items: center; }
.tre .tre-cta h2 { color: #fff; font-size: clamp(24px, 3.6vw, 34px); }
.tre-cta p { margin: 0; opacity: .88; max-width: 620px; }
.tre-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .tre-cta { grid-template-columns: 1.3fr 1fr; padding: 52px 56px; } .tre-cta__actions { justify-content: flex-end; } }

/* ---------- Contact */
.tre-contact { display: grid; gap: 24px; }
@media (min-width: 900px) { .tre-contact { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.tre-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tre-contact__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--tre-border); border-radius: var(--tre-radius-sm); margin: 0; }
.tre-contact__list .tre-icon { width: 22px; height: 22px; color: var(--tre-secondary); margin-top: 2px; }
.tre-contact__list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--tre-muted); }
.tre-contact__list a { color: var(--tre-primary); font-weight: 600; text-decoration: none; }
.tre-map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--tre-radius); overflow: hidden; background: var(--tre-light); }
.tre-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tre-map__link { margin: 10px 0 0; font-size: 14px; }
.tre-map__link a { color: var(--tre-secondary); font-weight: 600; text-decoration: none; }

/* ---------- Page hero (archive) & breadcrumb */
.tre-page-hero { background: var(--tre-light); padding: 36px 0 32px; border-bottom: 1px solid var(--tre-border); }
.tre-page-hero h1 { font-size: clamp(28px, 4.6vw, 42px); margin: 8px 0 8px; }
.tre-page-hero__desc { color: var(--tre-muted); max-width: 720px; margin: 0; }
.tre-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--tre-muted); }
.tre-breadcrumb li { margin: 0; }
.tre-breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.tre-breadcrumb a { text-decoration: none; color: var(--tre-secondary); }
.tre-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Archive layout & filters */
.tre-archive__layout { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 1024px) { .tre-archive__layout { grid-template-columns: 300px 1fr; align-items: start; } }
.tre-filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 92vw); background: #fff; z-index: 99990; transform: translateX(-105%); transition: transform .3s ease; overflow-y: auto; box-shadow: var(--tre-shadow-lg); }
.tre-filters.is-open { transform: none; }
.tre-filters__backdrop { display: none; }
.tre-filters.is-open + .tre-filters__backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 34, 25, .45); z-index: 99989; }
.tre-filters__form { padding: 20px; display: grid; gap: 14px; }
.tre-filters__head { display: flex; justify-content: space-between; align-items: center; }
.tre .tre-filters__head h2 { font-family: var(--tre-font); font-size: 17px; margin: 0; display: flex; gap: 8px; align-items: center; color: var(--tre-text); letter-spacing: 0; }
.tre-filters__close { border: 0; background: var(--tre-light); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--tre-text); }
.tre-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tre-seg { display: flex; border: 0; padding: 4px; margin: 0; background: var(--tre-light); border-radius: 999px; }
.tre-seg label { flex: 1; text-align: center; }
.tre-seg span { display: block; padding: 8px 6px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--tre-muted); }
.tre-seg input:checked + span { background: #fff; color: var(--tre-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.tre-filters__actions { display: grid; gap: 4px; justify-items: center; padding-top: 6px; }
@media (min-width: 1024px) {
	.tre-filters { position: sticky; top: 24px; inset: auto; width: auto; transform: none; box-shadow: none; border: 1px solid var(--tre-border); border-radius: var(--tre-radius); z-index: 1; max-height: calc(100vh - 48px); }
	.tre-filters__close, .tre-results__filter-btn { display: none !important; }
	.tre-filters.is-open + .tre-filters__backdrop { display: none; }
}
.tre-results__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 20px; }
.tre-results__count { margin: 0; font-weight: 600; color: var(--tre-primary); flex: 1 1 auto; }
.tre-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--tre-muted); margin: 0; white-space: nowrap; }
.tre-sort select { min-width: 190px; min-height: 42px; }
@media (max-width: 520px) { .tre-sort { width: 100%; } .tre-sort select { flex: 1; min-width: 0; } }
.tre-grid--results { transition: opacity .2s; }
@media (min-width: 1024px) { .tre-grid--results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .tre-grid--results { grid-template-columns: repeat(3, 1fr); } }
.tre-grid--results.is-loading { opacity: .45; pointer-events: none; }
.tre-empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: var(--tre-light); border-radius: var(--tre-radius); }
.tre-empty > .tre-icon { width: 44px; height: 44px; color: var(--tre-secondary); margin-bottom: 12px; }
.tre-empty p { color: var(--tre-muted); max-width: 520px; margin: 0 auto 20px; }
.tre-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tre-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.tre-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tre-border); text-decoration: none; font-weight: 600; color: var(--tre-text); background: #fff; }
.tre-pagination .page-numbers.current { background: var(--tre-primary); border-color: var(--tre-primary); color: #fff; }
.tre-pagination a.page-numbers:hover { border-color: var(--tre-secondary); }

/* ---------- Single property */
.tre-single { padding: 24px 0 72px; }
.tre-single__head { display: grid; gap: 18px; margin: 18px 0 22px; }
@media (min-width: 900px) { .tre-single__head { grid-template-columns: 1fr auto; align-items: end; } }
.tre .tre-single__title { font-size: clamp(28px, 4.4vw, 42px); margin: 0 0 8px; }
.tre-single__loc { display: flex; gap: 8px; align-items: flex-start; color: var(--tre-muted); margin: 0; }
.tre-single__loc .tre-icon { color: var(--tre-secondary); margin-top: 3px; }
.tre-single__pricebox { text-align: left; }
@media (min-width: 900px) { .tre-single__pricebox { text-align: right; } }
.tre-single__price .tre-price { font-size: clamp(26px, 4vw, 34px); }
.tre-single__price-sub { color: var(--tre-muted); font-size: 14px; }
.tre-single__pid { font-size: 14px; color: var(--tre-muted); margin-top: 4px; }
.tre-single__pid strong { color: var(--tre-primary); font-family: ui-monospace, Menlo, Consolas, monospace; }

.tre-gallery { position: relative; display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); border-radius: 18px; overflow: hidden; margin-bottom: 32px; }
.tre-gallery__item { position: relative; display: block; overflow: hidden; background: var(--tre-light); aspect-ratio: 4 / 3; }
.tre-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tre-gallery__item:hover img { transform: scale(1.04); }
.tre-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.tre-gallery__item:nth-child(n+2) { display: none; }
.tre-gallery__item--hidden { display: none !important; }
.tre-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 34, 25, .55); color: #fff; font-weight: 700; font-size: 18px; }
.tre-gallery__all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; border: 0; background: #fff; color: var(--tre-primary); font: 600 14px var(--tre-font); padding: 10px 16px; border-radius: 999px; cursor: pointer; box-shadow: var(--tre-shadow); }
@media (min-width: 768px) {
	.tre-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; }
	.tre-gallery__item, .tre-gallery__item:first-child { aspect-ratio: auto; }
	.tre-gallery__item:first-child { grid-column: 1; grid-row: 1 / 3; }
	.tre-gallery__item:nth-child(n+2) { display: block; }
	.tre-gallery--n4 .tre-gallery__item:nth-child(4) { grid-column: 2 / 4; }
}
@media (min-width: 1100px) {
	.tre-gallery { grid-template-rows: 250px 250px; }
}
@media (min-width: 768px) {
	.tre-gallery.tre-gallery--n1 { grid-template-columns: 1fr; grid-template-rows: clamp(320px, 45vw, 540px); }
	.tre-gallery.tre-gallery--n1 .tre-gallery__item:first-child { grid-row: 1; }
	.tre-gallery.tre-gallery--n2, .tre-gallery.tre-gallery--n3 { grid-template-columns: 2fr 1fr; }
	.tre-gallery.tre-gallery--n2 .tre-gallery__item:nth-child(2) { grid-row: 1 / 3; }
}

.tre-single__layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .tre-single__layout { grid-template-columns: 1fr 360px; align-items: start; } }
.tre-single__main { display: grid; gap: 24px; min-width: 0; }
.tre-panel { background: #fff; border: 1px solid var(--tre-border); border-radius: var(--tre-radius); padding: 24px; }
.tre .tre-panel h2 { font-size: 24px; margin-bottom: 18px; }
.tre-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
@media (min-width: 640px) { .tre-facts { grid-template-columns: repeat(3, 1fr); } }
.tre-fact { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; background: var(--tre-light); border-radius: var(--tre-radius-sm); }
.tre-fact .tre-icon { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--tre-secondary); }
.tre-fact dt { font-size: 12px; color: var(--tre-muted); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.tre-fact dd { margin: 0; font-weight: 600; color: var(--tre-text); }
.tre-prose { font-size: 16px; }
.tre-prose p { margin: 0 0 1em; }
.tre-amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px 20px; }
@media (min-width: 560px) { .tre-amenities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tre-amenities { grid-template-columns: repeat(3, 1fr); } }
.tre-amenities li { display: flex; gap: 10px; align-items: center; margin: 0; }
.tre-amenities .tre-icon { color: #fff; background: var(--tre-secondary); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.tre-single__side { display: grid; gap: 20px; }
@media (min-width: 1024px) { .tre-single__side { position: sticky; top: 24px; } }
.tre-agent { background: var(--tre-primary); color: #fff; border-radius: var(--tre-radius); padding: 26px; }
.tre .tre-agent h2 { color: #fff; font-size: 22px; }
.tre-agent p { opacity: .88; margin: 0 0 18px; font-size: 15px; }
.tre-agent__actions { display: grid; gap: 10px; }
.tre-agent .tre-btn--primary { background: #fff; color: var(--tre-primary) !important; flex-wrap: wrap; }
.tre-agent .tre-btn--primary:hover { background: var(--tre-light); }
.tre-agent .tre-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.tre-panel--form { margin-top: 32px; display: grid; gap: 20px; background: var(--tre-light); border: 0; }
@media (min-width: 1024px) { .tre-panel--form { grid-template-columns: 320px 1fr; gap: 40px; padding: 40px; } }
.tre-panel--form__intro p { color: var(--tre-muted); margin: 0; }
.tre-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; gap: 8px; padding: 10px var(--tre-gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--tre-border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.tre-mobile-cta .tre-btn { flex: 1; padding-inline: 10px; }
@media (min-width: 1024px) { .tre-mobile-cta { display: none; } }
@media (max-width: 1023px) { .tre-single { padding-bottom: 110px; } }

/* ---------- Forms */
.tre-form__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tre-form__grid { grid-template-columns: 1fr 1fr; } .tre-field--full { grid-column: 1 / -1; } }
.tre-field { margin: 0; min-width: 0; }
.tre-req { color: #B42318; }
.tre-input-prefix { display: flex; align-items: stretch; }
.tre-input-prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--tre-light); border: 1.5px solid var(--tre-border); border-right: 0; border-radius: var(--tre-radius-sm) 0 0 var(--tre-radius-sm); font-weight: 600; color: var(--tre-muted); font-size: 14px; }
.tre-input-prefix input { border-radius: 0 var(--tre-radius-sm) var(--tre-radius-sm) 0 !important; }
.tre-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tre-chip { position: relative; margin: 0; cursor: pointer; }
.tre-chip span { display: block; padding: 9px 14px; border: 1.5px solid var(--tre-border); border-radius: 999px; font-size: 14px; font-weight: 500; background: #fff; transition: all .2s; }
.tre-chip input:checked + span { border-color: var(--tre-primary); background: var(--tre-primary); color: #fff; }
.tre textarea { min-height: 110px; resize: vertical; }
.tre-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.tre-form__note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--tre-muted); }
.tre-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tre-alert { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--tre-radius-sm); margin-bottom: 18px; outline: none; }
.tre-alert--success { background: #E8F5EE; border: 1px solid #A7D9BD; color: var(--tre-primary); }
.tre-alert--success > .tre-icon { width: 28px; height: 28px; color: #fff; background: var(--tre-secondary); border-radius: 50%; padding: 5px; }
.tre-alert--success p { margin: 4px 0 12px; }
.tre-alert--error { background: #FDECEC; border: 1px solid #F4B4B4; color: #8A1C1C; }
.tre-form-wrap { scroll-margin-top: 100px; }
#tre-consultation { scroll-margin-top: 100px; }

/* ---------- Modal */
.tre-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(8, 20, 15, .92); display: grid; place-items: center; padding: 56px 12px; }
.tre-modal[hidden] { display: none; }
.tre-modal__stage { width: 100%; max-width: 1200px; display: grid; place-items: center; }
.tre-modal--gallery .tre-modal__stage img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; border-radius: 10px; object-fit: contain; }
.tre-modal--video .tre-modal__stage { aspect-ratio: 16 / 9; max-width: min(1100px, calc((100vh - 120px) * 16 / 9)); }
.tre-modal--video .tre-modal__stage iframe, .tre-modal--video .tre-modal__stage video { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #000; }
.tre-modal--video .tre-modal__nav { display: none; }
.tre-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.tre-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; cursor: pointer; z-index: 2; }
.tre-modal__nav--prev { left: 10px; }
.tre-modal__nav--next { right: 10px; }
.tre-modal__close:hover, .tre-modal__nav:hover { background: rgba(255, 255, 255, .25); }
.tre-modal__caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; }

/* ---------- Footer */
.tre-footer { background: #0F3326; color: rgba(255, 255, 255, .78); padding: 64px 0 0; margin-top: 0; font-size: 15px; }
.tre-footer__grid { display: grid; gap: 36px; padding-bottom: 44px; }
@media (min-width: 700px) { .tre-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tre-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; } }
.tre-footer__logo { display: inline-block; font-family: var(--tre-font-head); font-size: 26px; font-weight: 600; color: #fff !important; text-decoration: none; margin-bottom: 14px; }
.tre-footer p { margin: 0 0 18px; max-width: 360px; }
.tre.tre-footer h2, .tre .tre-footer h2 { color: #fff; font-family: var(--tre-font); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.tre-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tre-footer li { margin: 0; }
.tre-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.tre-footer a:hover { color: #fff; }
.tre-footer__social { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.tre-footer__social a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 13px; }
.tre-footer__social a:hover { border-color: #fff; }
.tre-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.tre-footer__contact .tre-icon { color: #7FD1A4; margin-top: 3px; }
.tre-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Theme header integration (Blocksy transparent header) */
.tre-solid-header #header [data-device][data-transparent] { position: relative !important; background-color: var(--tre-primary); }
.tre-solid-header #header [data-device][data-transparent] [data-transparent-row="yes"] { background-color: transparent !important; }
.tre-hide-header-top #header [data-row="top"] { display: none !important; }
.tre-hero { padding-top: 150px; }
@media (min-width: 1024px) { .tre-hero { padding-top: 170px; } }

/* ---------- Floating WhatsApp */
.tre-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 9980; width: 56px; height: 56px; border-radius: 50%; background: var(--tre-wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 175, 90, .4); transition: transform .2s; }
.tre-wa-float:hover { transform: scale(1.06); color: #fff; }
.tre-wa-float .tre-icon { width: 30px; height: 30px; }

/* ---------- Page content helpers (used in homepage blocks) */
.tre-why { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .tre-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tre-why { grid-template-columns: repeat(4, 1fr); } }
.tre-why__item { background: #fff; border: 1px solid var(--tre-border); border-radius: var(--tre-radius); padding: 26px 22px; }
.tre-why__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tre-light); color: var(--tre-primary); font-weight: 700; margin-bottom: 14px; font-family: var(--tre-font-head); font-size: 18px; }
.tre .tre-why__item h3 { font-family: var(--tre-font); font-size: 18px; color: var(--tre-text); letter-spacing: 0; }
.tre-why__item p { margin: 0; color: var(--tre-muted); font-size: 15px; }

.tre-about { display: grid; gap: 32px; }
@media (min-width: 900px) { .tre-about { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.tre-about__text h2 { font-size: clamp(26px, 4vw, 36px); }
.tre-about__text p { color: var(--tre-muted); }
.tre-about__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tre-about__list li { margin: 0; padding: 18px 20px; border: 1px solid var(--tre-border); border-left: 4px solid var(--tre-secondary); border-radius: var(--tre-radius-sm); background: #fff; }
.tre-about__list strong { display: block; color: var(--tre-primary); font-size: 17px; margin-bottom: 4px; }
.tre-about__list span { color: var(--tre-muted); font-size: 15px; }
.tre-stats-band { padding: 8px 0 56px; }

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

/* =====================================================================
   iOS design layer (1.0.3) – Apple-style type, materials and motion.
   Kept at the end of the file so it refines the base styles above.
   ===================================================================== */
:root {
	--tre-light: #F5F5F7;
	--tre-text: #1D1D1F;
	--tre-muted: #6E6E73;
	--tre-border: rgba(0, 0, 0, .08);
	--tre-fill: rgba(118, 118, 128, .12);
	--tre-radius: 22px;
	--tre-radius-sm: 14px;
	--tre-shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 4px 14px rgba(0, 0, 0, .05);
	--tre-shadow-lg: 0 2px 6px rgba(0, 0, 0, .04), 0 22px 48px rgba(0, 0, 0, .12);
	--tre-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tre-font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tre-ease: cubic-bezier(.22, 1, .36, 1);
	--tre-spring: cubic-bezier(.34, 1.56, .64, 1);
	--tre-glass: rgba(16, 52, 38, .72);
	--tre-header-top: var(--wp-admin--admin-bar--height, 0px);
	--theme-font-family: var(--tre-font);
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--tre-ease); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--tre-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: var(--tre-text); background: #fff; }
::selection { background: rgba(39, 134, 91, .22); }
.tre { font-family: var(--tre-font); letter-spacing: -.011em; }
.tre h1, .tre h2, .tre h3 { font-family: var(--tre-font-head); font-weight: 700; letter-spacing: -.028em; color: var(--tre-text); }
.tre h2 { line-height: 1.08; }
.tre-eyebrow { text-transform: none; letter-spacing: -.01em; font-size: 17px; font-weight: 600; color: var(--tre-gold); }
.tre-section__head .tre-eyebrow { color: var(--tre-secondary); margin-bottom: 6px; }
.tre-section__head h2, .tre-about__text h2, .tre-mc-loc h2, .tre-mc-book h2 { font-size: clamp(32px, 5vw, 52px) !important; }
.tre-section__sub { font-size: 19px; line-height: 1.45; color: var(--tre-muted); }
.tre-section__head { margin-bottom: 40px; }
.tre-section { padding: 80px 0; }
@media (min-width: 1024px) { .tre-section { padding: 120px 0; } }
.tre-section .tre-section { padding: 0; }
.tre-link { font-weight: 500; font-size: 17px; }
.tre-link:hover { text-decoration: none; opacity: .75; }
.tre a, .tre button { -webkit-tap-highlight-color: transparent; }

/* Buttons: pill, press feedback */
.tre-btn { min-height: 48px; padding: 12px 24px; font: 600 16px/1.2 var(--tre-font); letter-spacing: -.01em; transition: transform .35s var(--tre-spring), background-color .25s, color .25s, border-color .25s, box-shadow .25s, opacity .25s; }
.tre-btn:hover { transform: translateY(-1px) scale(1.015); }
.tre-btn:active { transform: scale(.96); transition-duration: .12s; }
.tre-btn--primary { box-shadow: 0 6px 18px rgba(22, 75, 54, .22); }
.tre-btn--primary:hover { background: #1B5A41; }
.tre-btn--ghost { background: var(--tre-fill); border-color: transparent; }
.tre-btn--ghost:hover { border-color: transparent; background: rgba(118, 118, 128, .2); }
.tre-btn--outline-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.tre-btn--light { box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }

/* Header: fixed frosted-glass bar */
#header [data-device] { transition: background-color .45s var(--tre-ease), box-shadow .45s var(--tre-ease), -webkit-backdrop-filter .45s, backdrop-filter .45s; }
body.tre-ios #header { position: relative; z-index: 1000; }
body.tre-ios #header [data-device], body.tre-ios.tre-solid-header #header [data-device][data-transparent] { position: fixed !important; top: var(--tre-header-top); left: 0; right: 0; z-index: 1000; }
body.tre-ios.tre-solid-header #header { min-height: var(--tre-header-h, 0px); }
body.tre-ios.tre-scrolled #header [data-device] { background-color: var(--tre-glass) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .12); }
body.tre-ios #header [data-row="middle"] { transition: min-height .45s var(--tre-ease); }
body.tre-ios.tre-scrolled #header [data-row="middle"] > .ct-container { transition: height .45s var(--tre-ease); }
#header .ct-menu-link { letter-spacing: -.01em; font-weight: 500; transition: opacity .2s; }
#header .ct-menu-link:hover { opacity: .7; }
#header .site-logo-container img { transition: transform .45s var(--tre-ease); transform-origin: left center; }
body.tre-ios.tre-scrolled #header [data-device="desktop"] .site-logo-container img { transform: scale(.88); }
#offcanvas .ct-panel-inner { background: rgba(14, 44, 33, .86) !important; -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
#offcanvas .ct-menu-link { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* Hero */
.tre-hero { min-height: 100svh; }
@media (min-width: 1024px) { .tre-hero { min-height: 760px; } }
.tre .tre-hero__title { font-size: clamp(40px, 7.4vw, 80px); letter-spacing: -.035em; line-height: 1.02; }
.tre-hero__sub { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.45; letter-spacing: -.012em; }
.tre-hero__shade { background: linear-gradient(180deg, rgba(8, 28, 20, .55) 0%, rgba(8, 28, 20, .25) 42%, rgba(8, 28, 20, .82) 100%); }
.tre-hero__bg, .tre-mc-hero__bg { will-change: transform; }

/* Search: glass card + iOS segmented control */
.tre-search { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 1px solid rgba(255, 255, 255, .6); border-radius: 26px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .22); }
@media (min-width: 1024px) { .tre-search { padding: 22px 24px; } }
.tre-search__tabs, .tre-seg { background: var(--tre-fill); padding: 3px; border-radius: 11px; }
.tre-search__tabs span, .tre-seg span { border-radius: 9px; padding: 7px 18px; font-size: 14px; font-weight: 600; color: var(--tre-text); transition: background-color .3s var(--tre-ease), box-shadow .3s var(--tre-ease), color .3s; }
.tre-search__tabs input:checked + span, .tre-seg input:checked + span { background: #fff; color: var(--tre-text); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.tre-search__field label, .tre-field label, .tre-field__label { text-transform: none; letter-spacing: -.005em; font-size: 13px; font-weight: 600; color: var(--tre-muted); }

/* iOS text fields */
.tre select, .tre input[type="text"], .tre input[type="number"], .tre input[type="email"], .tre input[type="tel"], .tre input[type="search"], .tre input[type="date"], .tre textarea {
	min-height: 50px; border: 1.5px solid transparent; background-color: var(--tre-fill); border-radius: 12px; font-size: 16px; transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.tre select:hover, .tre input:hover, .tre textarea:hover { background-color: rgba(118, 118, 128, .16); }
.tre select:focus, .tre input:focus, .tre textarea:focus { background-color: #fff; border-color: var(--tre-secondary); box-shadow: 0 0 0 4px rgba(39, 134, 91, .16); }
.tre-input-prefix span { background: var(--tre-fill); border: 0; border-radius: 12px 0 0 12px; }
.tre-input-prefix input { border-left: 0 !important; }
.tre-search__submit { border-radius: 14px; min-height: 50px; }
.tre-chip span { border: 0; background: var(--tre-fill); padding: 10px 16px; transition: background-color .25s, color .25s, transform .3s var(--tre-spring); }
.tre-chip:active span { transform: scale(.95); }
.tre-chip input:checked + span { background: var(--tre-primary); color: #fff; }

/* Cards & surfaces */
.tre-card, .tre-video, .tre-quote, .tre-panel, .tre-why__item, .tre-mc-amen__card, .tre-cat, .tre-contact__list li { border: 0; border-radius: var(--tre-radius); box-shadow: var(--tre-shadow); }
.tre-section--light .tre-card, .tre-section--light .tre-video, .tre-section--light .tre-why__item, .tre-section--light .tre-mc-amen__card, .tre-section--light .tre-quote { box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.tre-card { transition: transform .5s var(--tre-ease), box-shadow .5s var(--tre-ease); }
.tre-card:hover { transform: translateY(-6px); box-shadow: var(--tre-shadow-lg); }
.tre-card:active { transform: scale(.985); transition-duration: .15s; }
.tre-card__media img, .tre-gallery__item img, .tre-video__thumb img, .tre-mc-gallery img, .tre-mc-promo__img img { transition: transform .9s var(--tre-ease), opacity .6s var(--tre-ease); }
.tre-card:hover .tre-card__media img { transform: scale(1.05); }
.tre-card__body { padding: 20px 20px 18px; }
.tre .tre-card__title { font-size: 19px; letter-spacing: -.02em; }
.tre-card__price { font-size: 22px; letter-spacing: -.02em; }
.tre-card__facts { border-top: 1px solid var(--tre-border); }
.tre-badge { border-radius: 8px; padding: 4px 10px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }
.tre-badge:not([class*="--"]) { background: rgba(255, 255, 255, .85); }
.tre-cat { transition: transform .45s var(--tre-spring), box-shadow .45s var(--tre-ease); }
.tre-cat:hover { transform: translateY(-4px) scale(1.02); border-color: transparent; }
.tre-cat__icon { border-radius: 14px; background: rgba(39, 134, 91, .1); color: var(--tre-secondary); }
.tre-loc { border: 0; background: #fff; box-shadow: var(--tre-shadow); transition: transform .35s var(--tre-spring), box-shadow .35s; }
.tre-section--light .tre-loc { background: #fff; }
.tre-loc:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--tre-shadow-lg); }
.tre-why__num { border-radius: 14px; background: rgba(39, 134, 91, .1); color: var(--tre-secondary); font-family: var(--tre-font-head); }
.tre .tre-why__item h3, .tre .tre-mc-amen__card h3 { font-size: 20px; letter-spacing: -.02em; }
.tre-why__item p { font-size: 16px; line-height: 1.5; }
.tre-mc-amen__card { border-top: 0; }
.tre-about__list li { border: 0; border-radius: 18px; box-shadow: var(--tre-shadow); border-left: 0; position: relative; padding-left: 26px; }
.tre-about__list li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--tre-secondary); }
.tre-stats strong { font-family: var(--tre-font-head); font-weight: 700; letter-spacing: -.04em; font-size: clamp(40px, 5vw, 56px); }
.tre-video__play { -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); background: rgba(255, 255, 255, .78); transition: transform .45s var(--tre-spring); }
.tre-video__thumb:hover .tre-video__play { transform: translate(-50%, -50%) scale(1.12); }
.tre-tabs button { border: 0; background: var(--tre-fill); transition: background-color .25s, color .25s, transform .3s var(--tre-spring); }
.tre-tabs button:active { transform: scale(.95); }
.tre-cta { border-radius: 30px; background: radial-gradient(120% 140% at 0% 0%, #1E6B4B 0%, var(--tre-primary) 45%, #0B2A1E 100%); box-shadow: 0 30px 60px rgba(22, 75, 54, .25); overflow: hidden; position: relative; }
.tre-cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 164, 92, .28), transparent 70%); pointer-events: none; }
.tre-cta > * { position: relative; z-index: 1; }
.tre .tre-cta h2 { font-size: clamp(28px, 4vw, 42px); }
.tre-page-hero { background: linear-gradient(180deg, var(--tre-light), #fff); border-bottom: 0; padding: 56px 0 40px; }
.tre-page-hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.035em; }
.tre-page-hero__desc { font-size: 19px; line-height: 1.45; }
.tre-breadcrumb ol { font-size: 14px; }

/* Single property */
.tre-gallery { border-radius: 26px; }
.tre-gallery__all { -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); background: rgba(255, 255, 255, .8); }
.tre-fact { border-radius: 16px; background: var(--tre-light); }
.tre-agent { border-radius: var(--tre-radius); background: radial-gradient(120% 120% at 0% 0%, #1E6B4B, var(--tre-primary) 55%, #0B2A1E); box-shadow: 0 20px 40px rgba(22, 75, 54, .22); }
.tre-panel--form { background: var(--tre-light); box-shadow: none; }
.tre-mobile-cta { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0, 0, 0, .06); box-shadow: none; }

/* Filters: bottom sheet on phones/tablets */
@media (max-width: 1023px) {
	.tre-filters { inset: auto 0 0 0; width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .5s var(--tre-ease); padding-top: 10px; }
	.tre-filters::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); margin: 0 auto 4px; }
	.tre-filters.is-open { transform: none; }
	.tre-filters.is-open + .tre-filters__backdrop { background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: tre-fade .35s var(--tre-ease); }
}
@media (min-width: 1024px) { .tre-filters { border: 0; box-shadow: var(--tre-shadow); border-radius: var(--tre-radius); } }
.tre-filters__close { background: var(--tre-fill); }
.tre-pagination .page-numbers { border: 0; background: var(--tre-fill); border-radius: 12px; transition: transform .3s var(--tre-spring), background-color .25s; }
.tre-pagination a.page-numbers:hover { transform: translateY(-2px); background: rgba(118, 118, 128, .2); }
.tre-sort select { min-height: 44px; }

/* Modal: blurred backdrop, spring-in */
.tre-modal { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); animation: tre-fade .35s var(--tre-ease); }
.tre-modal__stage { animation: tre-pop .5s var(--tre-ease); }
.tre-modal__close, .tre-modal__nav { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: rgba(255, 255, 255, .16); }
.tre-alert { border-radius: 16px; animation: tre-pop .5s var(--tre-ease); }

/* Floating WhatsApp */
.tre-wa-float { box-shadow: 0 10px 28px rgba(31, 175, 90, .38); transition: transform .45s var(--tre-spring); animation: tre-float-in .8s var(--tre-ease) .6s both; }
.tre-wa-float:hover { transform: scale(1.08); }
.tre-wa-float:active { transform: scale(.94); }

/* Footer */
.tre-footer { background: #0B2A1E; }
.tre.tre-footer h2, .tre .tre-footer h2 { color: #fff; font-family: var(--tre-font); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .95; }
.tre-footer a { transition: color .2s, opacity .2s; }
.tre-footer__social a { border: 0; background: rgba(255, 255, 255, .08); transition: background-color .25s, transform .3s var(--tre-spring); }
.tre-footer__social a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

/* ---------- Motion: keyframes */
@keyframes tre-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tre-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tre-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes tre-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes tre-float-in { from { opacity: 0; transform: translateY(30px) scale(.6); } to { opacity: 1; transform: none; } }

/* Hero entrance (runs once on load) */
.tre-anim .tre-hero__bg, .tre-anim .tre-mc-hero__bg { animation: tre-zoom-out 2.6s var(--tre-ease) both; }
.tre-anim .tre-hero__inner > *, .tre-anim .tre-mc-hero__inner > *, .tre-anim .tre-page-hero .tre-container > * { animation: tre-rise 1s var(--tre-ease) both; }
.tre-anim .tre-hero__inner > :nth-child(2), .tre-anim .tre-mc-hero__inner > :nth-child(2), .tre-anim .tre-page-hero .tre-container > :nth-child(2) { animation-delay: .12s; }
.tre-anim .tre-hero__inner > :nth-child(3), .tre-anim .tre-mc-hero__inner > :nth-child(3), .tre-anim .tre-page-hero .tre-container > :nth-child(3) { animation-delay: .24s; }
.tre-anim .tre-hero__inner > :nth-child(4), .tre-anim .tre-mc-hero__inner > :nth-child(4) { animation-delay: .36s; }
.tre-anim .tre-hero__inner > :nth-child(n+5) { animation-delay: .48s; }

/* Scroll reveal. html.tre-anim is set in <head>; tre.js adds .is-in as items enter the viewport.
   If tre.js never runs, the head script removes .tre-anim after 3s so nothing stays hidden. */
.tre-anim :is(.tre-section__head, .tre-card, .tre-cat, .tre-loc, .tre-why__item, .tre-mc-amen__card, .tre-video, .tre-quote, .tre-cta, .tre-about__text, .tre-about__list li, .tre-stats > div, .tre-mc-gallery a, .tre-mc-facts__grid > div, .tre-mc-promo, .tre-contact__list li, .tre-map, .tre-mc-map, .tre-mc-loc > div:first-child, .tre-mc-book > div, .tre-panel, .tre-gallery, .tre-single__head, .tre-footer__grid > div, .tre-empty, .tre-results__bar) {
	opacity: 0; transform: translate3d(0, 32px, 0) scale(.985); transition: opacity .9s var(--tre-ease), transform 1s var(--tre-ease), box-shadow .5s var(--tre-ease); transition-delay: calc(var(--tre-i, 0) * 70ms);
}
.tre-anim :is(.tre-section__head, .tre-card, .tre-cat, .tre-loc, .tre-why__item, .tre-mc-amen__card, .tre-video, .tre-quote, .tre-cta, .tre-about__text, .tre-about__list li, .tre-stats > div, .tre-mc-gallery a, .tre-mc-facts__grid > div, .tre-mc-promo, .tre-contact__list li, .tre-map, .tre-mc-map, .tre-mc-loc > div:first-child, .tre-mc-book > div, .tre-panel, .tre-gallery, .tre-single__head, .tre-footer__grid > div, .tre-empty, .tre-results__bar).is-in { opacity: 1; transform: none; }
.tre-anim :is(.tre-card, .tre-cat, .tre-loc, .tre-mc-gallery a).is-done { transition: transform .5s var(--tre-ease), box-shadow .5s var(--tre-ease); transition-delay: 0s; }
.tre-anim .tre-card.is-done:hover { transform: translateY(-6px); }
.tre-anim .tre-cat.is-done:hover { transform: translateY(-4px) scale(1.02); }
.tre-anim .tre-loc.is-done:hover { transform: translateY(-2px); }
.tre-anim img.tre-img-fade { opacity: 0; }
.tre-anim img.tre-img-fade.is-loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	@view-transition { navigation: none; }
	.tre-anim :is(.tre-section__head, .tre-card, .tre-cat, .tre-loc, .tre-why__item, .tre-mc-amen__card, .tre-video, .tre-quote, .tre-cta, .tre-about__text, .tre-about__list li, .tre-stats > div, .tre-mc-gallery a, .tre-mc-facts__grid > div, .tre-mc-promo, .tre-contact__list li, .tre-map, .tre-mc-map, .tre-mc-loc > div:first-child, .tre-mc-book > div, .tre-panel, .tre-gallery, .tre-single__head, .tre-footer__grid > div, .tre-empty, .tre-results__bar) { opacity: 1 !important; transform: none !important; transition: none !important; }
	.tre-anim img.tre-img-fade { opacity: 1 !important; }
	.tre-anim .tre-hero__bg, .tre-anim .tre-mc-hero__bg, .tre-anim .tre-hero__inner > *, .tre-anim .tre-mc-hero__inner > *, .tre-anim .tre-page-hero .tre-container > *, .tre-wa-float, .tre-modal, .tre-modal__stage, .tre-alert { animation: none !important; }
}

/* 1.0.3 refinements: header menu, header button, hero headline */
#header .ct-menu-link { text-transform: none !important; font-size: 15px !important; letter-spacing: -.01em !important; }
#header .ct-header-cta a { border-radius: 999px !important; padding-inline: 18px !important; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .25s, transform .35s var(--tre-spring) !important; }
#header .ct-header-cta a:hover { background: #fff; color: var(--tre-primary) !important; }
#header .ct-header-cta a:active { transform: scale(.95); }
.tre .tre-hero__title { font-size: clamp(40px, 6.2vw, 76px); max-width: 940px; }

/* 1.0.5 Bangla typography: Noto Sans Bengali (Kohinoor Bangla on Apple devices), no negative tracking, taller lines. */
:root {
	--tre-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Noto Sans Bengali", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tre-font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Noto Sans Bengali", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[lang^="bn"] body, html[lang^="bn"] .tre { letter-spacing: 0; }
html[lang^="bn"] .tre h1, html[lang^="bn"] .tre h2, html[lang^="bn"] .tre h3, html[lang^="bn"] .tre-page-hero h1, html[lang^="bn"] .tre-stats strong, html[lang^="bn"] .tre-card__price, html[lang^="bn"] .tre .tre-card__title { letter-spacing: 0; line-height: 1.32; }
html[lang^="bn"] .tre .tre-hero__title { letter-spacing: 0; line-height: 1.2; font-size: clamp(36px, 5.6vw, 68px); }
html[lang^="bn"] .tre-btn, html[lang^="bn"] .tre-eyebrow, html[lang^="bn"] .tre-link, html[lang^="bn"] #header .ct-menu-link, html[lang^="bn"] .tre-section__sub, html[lang^="bn"] .tre-hero__sub { letter-spacing: 0 !important; }
html[lang^="bn"] .tre p, html[lang^="bn"] .tre li, html[lang^="bn"] .tre-section__sub { line-height: 1.7; }
html[lang^="bn"] .tre-btn { line-height: 1.35; }

/* 1.0.6 Bangla chat assistant */
.tre-chat { --chat-gap: 18px; font-family: var(--tre-font); }
.tre-chat__fab { position: fixed; right: var(--chat-gap); bottom: var(--chat-gap); z-index: 9986; width: 58px; height: 58px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; background: var(--tre-primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(22, 75, 54, .35); transition: transform .45s var(--tre-spring, ease), background .2s; animation: tre-float-in .8s var(--tre-ease, ease) .9s both; }
.tre-chat__fab:hover { transform: scale(1.07); background: #0f3a29; }
.tre-chat__fab:active { transform: scale(.94); }
.tre-chat__fab:focus-visible { outline: 3px solid var(--tre-secondary); outline-offset: 3px; }
.tre-chat__fab svg { width: 28px; height: 28px; }
.tre-chat.has-wa .tre-chat__fab { bottom: calc(var(--chat-gap) + 70px); }
.tre-chat.has-cta .tre-chat__fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
.tre-chat.is-open .tre-chat__fab svg { transform: scale(.9); }

.tre-chat__hint { position: fixed; right: calc(var(--chat-gap) + 68px); bottom: calc(var(--chat-gap) + 8px); z-index: 9986; display: flex; align-items: center; gap: 2px; background: #fff; border-radius: 999px; box-shadow: 0 8px 26px rgba(0, 0, 0, .14); padding: 4px 4px 4px 16px; animation: tre-chat-pop .5s var(--tre-spring, ease) both; }
.tre-chat.has-wa .tre-chat__hint { bottom: calc(var(--chat-gap) + 78px); }
.tre-chat.has-cta .tre-chat__hint { bottom: calc(92px + env(safe-area-inset-bottom)); }
.tre-chat__hint[hidden] { display: none; }
.tre-chat__hint-open { border: 0; background: none; padding: 6px 0; font: 600 14px/1.4 var(--tre-font); color: var(--tre-primary); cursor: pointer; white-space: nowrap; }
.tre-chat__hint-x { border: 0; background: var(--tre-light); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--tre-muted); padding: 0; }
.tre-chat__hint-x svg { width: 14px; height: 14px; }

.tre-chat__panel { position: fixed; right: var(--chat-gap); bottom: calc(var(--chat-gap) + 72px); z-index: 99985; width: 380px; max-width: calc(100vw - 2 * var(--chat-gap)); height: min(620px, calc(100vh - 140px)); display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 64px rgba(10, 30, 20, .22), 0 2px 8px rgba(0, 0, 0, .06); opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .25s ease, transform .35s var(--tre-ease, ease); }
.tre-chat.has-wa .tre-chat__panel { bottom: calc(var(--chat-gap) + 142px); height: min(600px, calc(100vh - 200px)); }
.tre-chat.is-open .tre-chat__panel { opacity: 1; transform: none; }
.tre-chat__panel[hidden] { display: none; }

.tre-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--tre-primary); color: #fff; }
.tre-chat__head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tre-chat__head strong { font-size: 16px; line-height: 1.35; }
.tre-chat__head span { font-size: 12.5px; opacity: .8; line-height: 1.4; }
.tre-chat__avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.tre-chat__close, .tre-chat__reset { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s; }
.tre-chat__close:hover, .tre-chat__reset:hover { background: rgba(255, 255, 255, .24); }
.tre-chat__close svg, .tre-chat__reset svg { width: 18px; height: 18px; }

.tre-chat__log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--tre-light); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }
.tre-chat__msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.65; color: var(--tre-text); animation: tre-chat-pop .35s var(--tre-ease, ease) both; overflow-wrap: anywhere; }
.tre-chat__msg.is-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.tre-chat__msg.is-user { align-self: flex-end; background: var(--tre-secondary); color: #fff; border-bottom-right-radius: 6px; }
.tre-chat__msg p { margin: 0 0 6px; }
.tre-chat__msg p:last-child { margin-bottom: 0; }
.tre-chat__msg ul { margin: 4px 0 8px; padding-left: 18px; }
.tre-chat__msg li { margin: 2px 0; }
.tre-chat__msg a:not(.tre-chat__btn):not(.tre-chat__card) { color: var(--tre-secondary); font-weight: 600; }
.tre-chat__rows { margin: 6px 0 8px; display: grid; gap: 6px; }
.tre-chat__rows > div { display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 7px 10px; background: var(--tre-light); border-radius: 10px; }
.tre-chat__rows dt { font-weight: 600; color: var(--tre-primary); font-size: 13.5px; }
.tre-chat__rows dd { margin: 0; font-size: 13.5px; }
.tre-chat__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tre-chat__btn { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--tre-primary); color: #fff !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; line-height: 1.4; transition: transform .2s, background .2s; }
.tre-chat__btn:hover { background: #0f3a29; }
.tre-chat__btn:active { transform: scale(.96); }
.tre-chat__btn.is-wa { background: var(--tre-wa); }
.tre-chat__btn.is-call { background: #fff; color: var(--tre-primary) !important; box-shadow: inset 0 0 0 1.5px var(--tre-primary); }
.tre-chat__cards { display: grid; gap: 8px; margin: 6px 0 4px; }
.tre-chat__card { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; background: var(--tre-light); text-decoration: none !important; color: var(--tre-text) !important; transition: background .2s; }
.tre-chat__card:hover { background: #eaf2ed; }
.tre-chat__card img { width: 64px; height: 52px; flex: none; object-fit: cover; border-radius: 8px; }
.tre-chat__card span { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.tre-chat__card strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tre-chat__card em { font-style: normal; font-weight: 700; color: var(--tre-primary); font-size: 13px; }
.tre-chat__card small { font-size: 12px; color: var(--tre-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tre-chat__typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.tre-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa7a0; animation: tre-chat-dot 1s infinite ease-in-out; }
.tre-chat__typing i:nth-child(2) { animation-delay: .15s; }
.tre-chat__typing i:nth-child(3) { animation-delay: .3s; }

.tre-chat__chips { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; background: var(--tre-light); scrollbar-width: none; flex: none; }
.tre-chat__chips::-webkit-scrollbar { display: none; }
.tre-chat__chips:empty { display: none; }
.tre-chat__chips button { flex: none; border: 1px solid rgba(22, 75, 54, .22); background: #fff; color: var(--tre-primary); border-radius: 999px; padding: 6px 12px; font: 600 13px/1.4 var(--tre-font); cursor: pointer; transition: background .2s, transform .2s; }
.tre-chat__chips button:hover { background: #eaf2ed; }
.tre-chat__chips button:active { transform: scale(.95); }

.tre-chat__form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--tre-border); background: #fff; flex: none; }
.tre-chat__form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--tre-border); border-radius: 999px; padding: 0 16px; font: 16px/1.4 var(--tre-font); background: var(--tre-light); color: var(--tre-text); outline: none; transition: border-color .2s, background .2s; }
.tre-chat__form input:focus { border-color: var(--tre-secondary); background: #fff; }
.tre-chat__form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--tre-primary); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .2s; }
.tre-chat__form button:active { transform: scale(.92); }
.tre-chat__form button svg { width: 20px; height: 20px; }

@keyframes tre-chat-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tre-chat-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 639px) {
	.tre-chat { --chat-gap: 14px; }
	.tre-chat__panel, .tre-chat.has-wa .tre-chat__panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 88vh; height: 88dvh; border-radius: 22px 22px 0 0; transform-origin: bottom center; }
	.tre-chat.is-open .tre-chat__fab, .tre-chat.is-open .tre-chat__hint { opacity: 0; pointer-events: none; }
	.tre-chat__hint-open { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.tre-chat__fab, .tre-chat__panel, .tre-chat__msg, .tre-chat__hint { animation: none !important; transition: none !important; }
}
