/* TND Estate Pro – frontend */
:root {
	--tep-primary: #0078db;
	--tep-accent: #ff6b35;
	--tep-text: #091e42;
	--tep-muted: #6b7a90;
	--tep-border: #e6eaf0;
	--tep-bg: #f5f7fa;
	--tep-card: #fff;
	--tep-green: #0f9d58;
	--tep-radius: 12px;
	--tep-shadow: 0 2px 6px rgba(9, 30, 66, .06), 0 8px 24px rgba(9, 30, 66, .06);
	--tep-shadow-lg: 0 12px 40px rgba(9, 30, 66, .16);
}
.tep, .tep * { box-sizing: border-box; }
.tep { color: var(--tep-text); font-size: 15px; line-height: 1.5; }
.tep a { color: inherit; text-decoration: none; }
.tep button { font: inherit; cursor: pointer; }
.tep img { max-width: 100%; display: block; }
.tep-ico { flex: none; vertical-align: middle; }
.tep-container { max-width: 1240px; margin: 0 auto; padding: 24px 16px 60px; }
.tep[hidden], .tep [hidden] { display: none !important; }

/* Buttons */
.tep .tep-btn, .tep-modal .tep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--tep-primary); color: #fff; border: 1px solid var(--tep-primary); border-radius: 8px; padding: 11px 22px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: .2s; white-space: nowrap; }
.tep .tep-btn:hover { filter: brightness(1.08); color: #fff; }
.tep .tep-btn-sm { padding: 8px 16px; font-size: 14px; }
.tep .tep-btn-block { width: 100%; }
.tep .tep-btn-outline { background: #fff; color: var(--tep-primary); }
.tep .tep-btn-outline:hover { background: var(--tep-primary); color: #fff; }
.tep .tep-btn-wa { background: #25d366; border-color: #25d366; }
.tep-btn-icon { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tep-border); color: var(--tep-muted); background: #fff; transition: .2s; }
.tep-btn-icon.tep-wa { color: #25d366; border-color: #c9f2d8; }
.tep-btn-icon.tep-wa:hover { background: #25d366; color: #fff; }

/* ================= HERO SEARCH ================= */
.tep-search { width: 100%; max-width: 1000px; margin: 0 auto; }
.tep-search-form { background: #fff; border-radius: 16px; box-shadow: var(--tep-shadow-lg); overflow: visible; position: relative; }
.tep-search-tabs { display: flex; align-items: stretch; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--tep-border); overflow-x: auto; scrollbar-width: none; }
.tep-search-tabs::-webkit-scrollbar { display: none; }
.tep .tep-search-tab { position: relative; background: none; border: 0; padding: 20px 18px 18px; font-size: 16px; color: #42526e; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.tep .tep-search-tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--tep-primary); transform: scaleX(0); transition: .2s; }
.tep .tep-search-tab.active { color: var(--tep-text); font-weight: 700; }
.tep .tep-search-tab.active::after { transform: scaleX(1); }
.tep .tep-search-tab:hover { color: var(--tep-text); }
.tep-dot { width: 6px; height: 6px; border-radius: 50%; background: #e02020; display: inline-block; transform: translateY(-7px); }
.tep-tab-sep { width: 1px; background: var(--tep-border); margin: 14px 6px; }
.tep-free { font-style: normal; font-size: 10px; font-weight: 700; background: var(--tep-green); color: #fff; border-radius: 3px; padding: 1px 4px; margin-left: 4px; }
.tep-search-bar { display: flex; align-items: center; min-height: 72px; }
.tep-type-wrap { border-right: 1px solid var(--tep-border); height: 72px; display: flex; align-items: center; }
.tep-type-select { border: 0 !important; background: transparent !important; font-weight: 600; font-size: 15px; padding: 0 28px 0 24px !important; height: 100%; max-width: 200px; color: var(--tep-text); cursor: pointer; box-shadow: none !important; }
.tep-kw-wrap { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 18px; position: relative; height: 72px; color: var(--tep-muted); }
.tep .tep-kw { flex: 1; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 15px; padding: 0 !important; height: 40px; color: var(--tep-text); min-width: 0; }
.tep-search-icons { display: flex; gap: 8px; padding-right: 12px; }
.tep .tep-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #eef5fd; color: var(--tep-primary); display: inline-flex; align-items: center; justify-content: center; transition: .2s; padding: 0; }
.tep .tep-icon-btn:hover { background: var(--tep-primary); color: #fff; }
.tep .tep-icon-btn.is-active { background: #e02020; color: #fff; animation: tep-pulse 1s infinite; }
@keyframes tep-pulse { 50% { box-shadow: 0 0 0 8px rgba(224, 32, 32, .15); } }
.tep .tep-search-btn { margin-right: 16px; padding: 12px 34px; }
.tep-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1px dashed var(--tep-border); }
.tep-quick select { border: 1px solid var(--tep-border); border-radius: 20px; padding: 6px 14px; font-size: 13px; background: #fff; }
.tep-bhk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tep-popular { padding: 0 20px 16px; font-size: 13px; color: var(--tep-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tep-popular a { background: var(--tep-bg); padding: 4px 12px; border-radius: 20px; color: var(--tep-text); }
.tep-popular a:hover { color: var(--tep-primary); }
.tep-geo-msg { padding: 0 20px 14px; margin: 0; font-size: 13px; color: var(--tep-primary); }

/* Suggestions */
.tep-suggest { position: absolute; top: calc(100% - 6px); left: 0; right: 0; z-index: 50; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 10px; box-shadow: var(--tep-shadow-lg); max-height: 320px; overflow: auto; }
.tep-suggest li { padding: 9px 12px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; color: var(--tep-text); font-size: 14px; }
.tep-suggest li small { color: var(--tep-muted); font-size: 12px; }
.tep-suggest li.active, .tep-suggest li:hover { background: #eef5fd; }

/* Chips */
.tep-chip { display: inline-flex; margin: 0; cursor: pointer; }
.tep-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tep-chip span { border: 1px solid var(--tep-border); border-radius: 20px; padding: 5px 13px; font-size: 13px; background: #fff; transition: .15s; user-select: none; }
.tep-chip:hover span { border-color: var(--tep-primary); }
.tep-chip input:checked + span { background: #eef5fd; border-color: var(--tep-primary); color: var(--tep-primary); font-weight: 600; }

/* ================= CARDS ================= */
.tep-grid { display: grid; grid-template-columns: repeat(var(--tep-cols, 3), minmax(0, 1fr)); gap: 24px; }
.tep-grid.tep-cols-1 { --tep-cols: 1; } .tep-grid.tep-cols-2 { --tep-cols: 2; } .tep-grid.tep-cols-3 { --tep-cols: 3; } .tep-grid.tep-cols-4 { --tep-cols: 4; }
.tep-list { display: flex; flex-direction: column; gap: 18px; }
.tep-card { background: var(--tep-card); border: 1px solid var(--tep-border); border-radius: var(--tep-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; position: relative; }
.tep-card:hover { box-shadow: var(--tep-shadow-lg); transform: translateY(-3px); }
.tep-card.is-featured { border-color: #ffd8a8; }
.tep-card.is-sold .tep-card-img img { filter: grayscale(.7); }
.tep-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--tep-bg); }
.tep-card-img { display: block; }
.tep-card-img, .tep-card-img img { width: 100%; height: 100%; }
.tep-card-img img { object-fit: cover; transition: transform .5s; }
.tep-card:hover .tep-card-img img { transform: scale(1.06); }
.tep-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.tep-badges-inline { position: static; margin-bottom: 8px; }
.tep-badge { font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 4px 9px; border-radius: 5px; background: #fff; color: var(--tep-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tep-badge-featured { background: linear-gradient(135deg, #ffb347, var(--tep-accent)); color: #fff; }
.tep-badge-new { background: #e02020; color: #fff; }
.tep-badge-hot { background: #7b2ff7; color: #fff; }
.tep-badge-sold { background: #253858; color: #fff; }
.tep-badge-verified { background: var(--tep-green); color: #fff; }
.tep-badge-status { background: #eef5fd; color: var(--tep-primary); box-shadow: none; }
.tep .tep-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #42526e; display: flex; align-items: center; justify-content: center; padding: 0; transition: .2s; }
.tep .tep-fav:hover { transform: scale(1.1); }
.tep .tep-fav.is-on { color: #e02020; }
.tep .tep-fav.is-on svg { fill: #e02020; }
.tep-img-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 4px; }
.tep-for-tag { position: absolute; left: 10px; bottom: 10px; background: rgba(9,30,66,.75); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.tep-offer-strip { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, #e02020, var(--tep-accent)); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; text-transform: uppercase; letter-spacing: .3px; }
.tep-card-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tep-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tep-card-price strong { font-size: 21px; font-weight: 800; color: var(--tep-text); }
.tep-card-price strong small { font-size: 13px; font-weight: 500; color: var(--tep-muted); }
.tep-card-price > small { font-size: 12px; color: var(--tep-muted); }
.tep-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--tep-green); margin-left: auto; }
.tep-verified .tep-ico { width: 14px; height: 14px; }
.tep-card-title { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tep-card-title a:hover { color: var(--tep-primary); }
.tep-card-sub, .tep-card-inproj { margin: 0; font-size: 13.5px; color: var(--tep-muted); display: flex; align-items: center; gap: 4px; }
.tep-card-sub .tep-ico { width: 15px; height: 15px; }
.tep-card-inproj a { color: var(--tep-primary); font-weight: 600; }
.tep-builder { font-size: 12px; font-weight: 600; color: var(--tep-primary); text-transform: uppercase; letter-spacing: .4px; }
.tep-specs { list-style: none; margin: 8px 0 4px; padding: 10px 0 0; border-top: 1px solid var(--tep-border); display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.tep-specs li { display: flex; gap: 7px; align-items: flex-start; color: var(--tep-muted); margin: 0; }
.tep-specs li span { display: flex; flex-direction: column; min-width: 0; }
.tep-specs b { font-size: 13.5px; color: var(--tep-text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tep-specs em { font-style: normal; font-size: 11.5px; }
.tep-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tep-card-tags span { font-size: 12px; background: var(--tep-bg); border-radius: 4px; padding: 3px 8px; color: #42526e; }
.tep-card-excerpt { font-size: 13.5px; color: var(--tep-muted); margin: 2px 0 0; }
.tep-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tep-posted { font-size: 12px; color: var(--tep-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tep-posted b { color: var(--tep-text); font-weight: 600; }
.tep-card-actions { display: flex; gap: 8px; align-items: center; flex: none; }

/* List-style card */
.tep-card-list { flex-direction: row; }
.tep-card-list .tep-card-media { width: 300px; flex: none; aspect-ratio: auto; min-height: 220px; }
.tep-card-list .tep-card-body { padding: 18px 22px; }
.tep-card-list .tep-card-title { font-size: 17px; }

/* Carousel */
.tep-carousel { position: relative; }
.tep-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--tep-cols, 3) - 1) * 24px) / var(--tep-cols, 3)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 16px; scrollbar-width: none; }
.tep-carousel-track::-webkit-scrollbar { display: none; }
.tep-carousel-track > * { scroll-snap-align: start; }
.tep .tep-car-nav { position: absolute; top: 40%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--tep-border); box-shadow: var(--tep-shadow); font-size: 26px; line-height: 1; color: var(--tep-text); display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.tep-car-prev { left: -20px; } .tep-car-next { right: -20px; }
.tep .tep-car-nav:hover { background: var(--tep-primary); color: #fff; }
.tep-view-all { text-align: center; margin-top: 28px; }

/* ================= RESULTS ================= */
.tep-results { position: relative; }
.tep-res-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--tep-border); border-radius: var(--tep-radius); padding: 12px; margin-bottom: 20px; }
.tep-res-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tep-res-tab input { position: absolute; opacity: 0; }
.tep-res-tab span { display: block; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #42526e; cursor: pointer; }
.tep-res-tab input:checked + span { background: var(--tep-primary); color: #fff; }
.tep-res-search { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--tep-border); border-radius: 8px; padding: 0 4px 0 12px; position: relative; color: var(--tep-muted); }
.tep-res-search .tep-kw { height: 42px; }
.tep-res-search .tep-btn { padding: 8px 18px; }
.tep-res-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.tep-results:not(.has-sidebar) .tep-res-body { grid-template-columns: 1fr; }
.tep-filters { background: #fff; border: 1px solid var(--tep-border); border-radius: var(--tep-radius); padding: 6px 18px 18px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; }
.tep-filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--tep-border); position: sticky; top: -6px; background: #fff; z-index: 2; }
.tep-filters-head strong { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.tep-clear-all { color: var(--tep-primary) !important; font-size: 13px; font-weight: 600; }
.tep .tep-filters-close, .tep .tep-filters-apply, .tep .tep-filters-open { display: none; }
.tep-fgroup { padding: 14px 0; border-bottom: 1px solid var(--tep-border); }
.tep-fgroup:last-of-type { border-bottom: 0; }
.tep-fgroup h4 { font-size: 14px; margin: 0 0 10px; font-weight: 700; color: var(--tep-text); }
.tep-checks { display: flex; flex-wrap: wrap; gap: 7px; }
.tep-range-sel { display: flex; align-items: center; gap: 8px; }
.tep-range-sel select, .tep-range-sel input { flex: 1; min-width: 0; border: 1px solid var(--tep-border); border-radius: 6px; padding: 8px; font-size: 13px; background: #fff; }
.tep-loc-list { max-height: 240px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.tep-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; cursor: pointer; margin: 0; }
.tep-check em { margin-left: auto; font-style: normal; color: var(--tep-muted); font-size: 12px; }
.tep-check-city { font-weight: 700; }
.tep-check-sub { padding-left: 20px; }
.tep-collapsible.is-collapsed .tep-checks, .tep-collapsible.is-collapsed .tep-loc-list { max-height: 118px; overflow: hidden; }
.tep-more-toggle { background: none; border: 0; padding: 6px 0 0; color: var(--tep-primary); font-size: 13px; font-weight: 600; }
.tep-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; margin: 0; }
.tep-toggle input { position: absolute; opacity: 0; }
.tep-toggle span { width: 38px; height: 22px; border-radius: 22px; background: #c1c7d0; position: relative; transition: .2s; flex: none; }
.tep-toggle span::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.tep-toggle input:checked + span { background: var(--tep-green); }
.tep-toggle input:checked + span::after { left: 19px; }
.tep-res-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tep-res-summary { font-size: 16px; }
.tep-res-summary strong { font-size: 20px; }
.tep-res-tools { display: flex; gap: 10px; align-items: center; }
.tep-sort { border: 1px solid var(--tep-border); border-radius: 8px; padding: 9px 12px; background: #fff; font-size: 14px; }
.tep-view-toggle { display: flex; border: 1px solid var(--tep-border); border-radius: 8px; overflow: hidden; }
.tep .tep-view-toggle button { background: #fff; border: 0; padding: 8px 10px; color: var(--tep-muted); display: flex; }
.tep .tep-view-toggle button.active { background: var(--tep-primary); color: #fff; }
.tep-chips-applied { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tep-chips-applied:empty { display: none; }
.tep .tep-applied { display: inline-flex; align-items: center; gap: 6px; background: #eef5fd; color: var(--tep-primary); border: 1px solid #cfe3f9; border-radius: 20px; font-size: 13px; padding: 4px 8px 4px 12px; font-weight: 600; }
.tep .tep-applied b { font-weight: 700; cursor: pointer; font-size: 15px; line-height: 1; }
.tep-res-main { position: relative; min-height: 300px; }
.tep-res-list { transition: opacity .2s; }
.tep-results.is-loading .tep-res-list { opacity: .4; pointer-events: none; }
.tep-loader { position: absolute; inset: 0; display: flex; justify-content: center; padding-top: 120px; }
.tep-loader span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--tep-border); border-top-color: var(--tep-primary); animation: tep-spin .8s linear infinite; }
@keyframes tep-spin { to { transform: rotate(360deg); } }
.tep-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.tep-pagination a, .tep-pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tep-border); border-radius: 8px; background: #fff; font-weight: 600; font-size: 14px; }
.tep-pagination .current { background: var(--tep-primary); border-color: var(--tep-primary); color: #fff; }
.tep-pagination .dots { border: 0; background: none; }
.tep-pagination a:hover { border-color: var(--tep-primary); color: var(--tep-primary); }
.tep-empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--tep-border); border-radius: var(--tep-radius); color: var(--tep-muted); }
.tep-empty-state .tep-ico { width: 44px; height: 44px; color: var(--tep-primary); margin: 0 auto 10px; }
.tep-empty-state h3 { margin: 0 0 6px; color: var(--tep-text); }
.tep-archive-title { font-size: 28px; margin: 0 0 18px; }

/* ================= LOCATIONS ================= */
.tep-locations { display: grid; grid-template-columns: repeat(var(--tep-cols, 4), minmax(0, 1fr)); gap: 20px; }
.tep-loc-card { position: relative; border-radius: var(--tep-radius); overflow: hidden; display: block; aspect-ratio: 4/3; background: #253858; }
.tep-loc-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.tep-loc-noimg { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); background: linear-gradient(135deg, var(--tep-primary), #253858); }
.tep-loc-noimg .tep-ico { width: 60px; height: 60px; }
.tep-loc-card:hover .tep-loc-img { transform: scale(1.08); }
.tep-loc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; display: flex; flex-direction: column; }
.tep-loc-info strong { font-size: 18px; }
.tep-loc-info small { opacity: .85; font-size: 13px; }
.tep-loc-pill { display: flex; flex-wrap: wrap; gap: 10px; }
.tep-loc-pill .tep-loc-card { aspect-ratio: auto; background: #fff; border: 1px solid var(--tep-border); border-radius: 30px; padding: 8px 18px; color: var(--tep-text); }
.tep-loc-pill .tep-loc-img { display: none; }
.tep-loc-pill .tep-loc-info { position: static; padding: 0; background: none; color: inherit; flex-direction: row; align-items: baseline; gap: 8px; }
.tep-loc-pill .tep-loc-info strong { font-size: 14px; }
.tep-loc-pill .tep-loc-card:hover { border-color: var(--tep-primary); color: var(--tep-primary); }

/* ================= EMI ================= */
.tep-emi { background: #fff; border: 1px solid var(--tep-border); border-radius: var(--tep-radius); padding: 24px; }
.tep-emi-title { margin: 0 0 18px; font-size: 20px; }
.tep-emi-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.tep-emi-inputs { display: flex; flex-direction: column; gap: 18px; }
.tep-emi-inputs label { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tep-emi-inputs label > span { display: flex; justify-content: space-between; font-size: 14px; color: var(--tep-muted); }
.tep-emi-inputs output { font-weight: 700; color: var(--tep-text); }
.tep-emi input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--tep-primary) var(--p, 50%), var(--tep-border) var(--p, 50%)); outline: 0; border: 0; padding: 0; }
.tep-emi input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--tep-primary); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.tep-emi input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--tep-primary); cursor: pointer; }
.tep-emi-result { text-align: center; }
.tep-emi-donut { width: 150px; margin: 0 auto 10px; }
.tep-emi-donut circle { fill: none; stroke-width: 6; }
.tep-d-bg { stroke: var(--tep-accent); }
.tep-d-fg { stroke: var(--tep-primary); transition: stroke-dasharray .4s; }
.tep-emi-monthly { margin: 0 0 12px; }
.tep-emi-monthly small { display: block; color: var(--tep-muted); }
.tep-emi-monthly strong { font-size: 28px; color: var(--tep-primary); }
.tep-emi-result ul { list-style: none; padding: 0; margin: 0; text-align: left; font-size: 14px; }
.tep-emi-result li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--tep-border); color: var(--tep-muted); }
.tep-emi-result li b { margin-left: auto; color: var(--tep-text); }
.tep-k { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.tep-k1 { background: var(--tep-primary); } .tep-k2 { background: var(--tep-accent); }

/* ================= ENQUIRY ================= */
.tep-enquiry { display: flex; flex-direction: column; gap: 10px; }
.tep-enq-title { margin: 0; font-size: 18px; }
.tep-enq-sub { margin: 0; color: var(--tep-muted); font-size: 14px; }
.tep-enquiry input[type=text], .tep-enquiry input[type=tel], .tep-enquiry input[type=email], .tep-enquiry textarea { width: 100%; border: 1px solid var(--tep-border); border-radius: 8px; padding: 11px 13px; font-size: 14px; background: #fff; color: var(--tep-text); }
.tep-enquiry input:focus, .tep-enquiry textarea:focus { border-color: var(--tep-primary); outline: 0; box-shadow: 0 0 0 3px rgba(0, 120, 219, .12); }
.tep-enq-interest { display: flex; flex-wrap: wrap; gap: 6px; }
.tep-consent { font-size: 12px; color: var(--tep-muted); display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.tep-hp { position: absolute; left: -9999px; }
.tep-enq-msg { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.tep-enq-msg.ok { background: #e3fcef; color: #006644; }
.tep-enq-msg.err { background: #ffebe6; color: #bf2600; }
.tep-enq-contact { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* Modal */
.tep-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tep-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 30, 66, .55); backdrop-filter: blur(2px); }
.tep-modal-box { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; padding: 26px; box-shadow: var(--tep-shadow-lg); animation: tep-pop .25s ease; }
@keyframes tep-pop { from { transform: translateY(20px); opacity: 0; } }
.tep .tep-modal-close { position: absolute; top: 12px; right: 12px; background: var(--tep-bg); border: 0; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--tep-text); }
.tep-modal-listing { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; padding-right: 36px; }
.tep-modal-listing:empty { display: none; }
.tep-modal-listing img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.tep-modal-listing strong { display: block; font-size: 15px; line-height: 1.3; }
.tep-modal-listing span { color: var(--tep-primary); font-weight: 700; font-size: 14px; }
body.tep-lock { overflow: hidden; }

/* Lightbox */
.tep-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.tep-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.tep .tep-lb-close, .tep .tep-lb-prev, .tep .tep-lb-next { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 30px; padding: 0 0 4px; }
.tep-lb-close { top: 18px; right: 18px; } .tep-lb-prev { left: 18px; } .tep-lb-next { right: 18px; }
.tep-lb-count { position: absolute; bottom: 18px; color: #fff; font-size: 14px; }

/* ================= SINGLE ================= */
.tep-single { background: var(--tep-bg); }
.tep-breadcrumb { font-size: 13px; color: var(--tep-muted); margin-bottom: 14px; }
.tep-breadcrumb a:hover { color: var(--tep-primary); }
.tep-single-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.tep-single-title { font-size: 28px; line-height: 1.25; margin: 0 0 6px; }
.tep-single-sub { margin: 0; color: var(--tep-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tep-single-sub a { color: var(--tep-primary); font-weight: 600; }
.tep-single-price { text-align: right; }
.tep-single-price strong { font-size: 30px; font-weight: 800; display: block; }
.tep-single-price small { color: var(--tep-muted); display: block; }
.tep-neg { color: var(--tep-green) !important; font-weight: 600; }
.tep-single-tools { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.tep .tep-fav-inline, .tep .tep-share { position: static; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--tep-border); padding: 7px 12px; gap: 6px; background: #fff; font-size: 14px; display: inline-flex; align-items: center; color: var(--tep-text); }
.tep-project-id { display: flex; gap: 16px; align-items: center; }
.tep-builder-logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--tep-border); padding: 6px; }
.tep-offer-banner { background: linear-gradient(90deg, #e02020, var(--tep-accent)); color: #fff; font-weight: 700; text-align: center; border-radius: 8px; padding: 10px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }

.tep-gallery-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: 16px; overflow: hidden; position: relative; margin-bottom: 26px; }
.tep .tep-gm-item { border: 0; padding: 0; position: relative; overflow: hidden; background: #dfe3ea; }
.tep-gm-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tep-gm-item:hover img { transform: scale(1.05); }
.tep-gm-0 { grid-row: 1 / 3; }
.tep-gallery-mosaic.count-1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
.tep-gallery-mosaic.count-2 { grid-template-columns: 2fr 1fr; }
.tep-gallery-mosaic.count-2 .tep-gm-1 { grid-row: 1 / 3; }
.tep-gallery-mosaic.count-3 { grid-template-columns: 2fr 1fr; }
.tep-gallery-mosaic.count-4 .tep-gm-3 { grid-column: 2 / 4; }
.tep-gm-more { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.tep-gm-tools { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.tep .tep-gm-all, .tep .tep-gm-video { background: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; box-shadow: var(--tep-shadow); }

.tep-single-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.tep-single-nav { display: flex; gap: 4px; background: #fff; border: 1px solid var(--tep-border); border-radius: var(--tep-radius); padding: 6px; margin-bottom: 18px; position: sticky; top: 10px; z-index: 5; overflow-x: auto; }
.tep-single-nav a { padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #42526e; white-space: nowrap; }
.tep-single-nav a:hover { background: #eef5fd; color: var(--tep-primary); }
.tep-section { background: #fff; border: 1px solid var(--tep-border); border-radius: var(--tep-radius); padding: 22px 24px; margin-bottom: 18px; scroll-margin-top: 80px; }
.tep-section > h2 { font-size: 20px; margin: 0 0 16px; }
.tep-section > h2 small { color: var(--tep-muted); font-weight: 500; }
.tep-section .tep-emi { border: 0; padding: 0; }
.tep-similar { background: transparent; border: 0; padding: 30px 0 0; }
.tep-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tep-fact { display: flex; gap: 10px; align-items: flex-start; }
.tep-fact .tep-ico { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #eef5fd; color: var(--tep-primary); }
.tep-fact span { display: flex; flex-direction: column; }
.tep-fact em { font-style: normal; font-size: 12.5px; color: var(--tep-muted); }
.tep-fact b { font-size: 14.5px; }
.tep-content { color: #42526e; }
.tep-readmore.is-clamped { max-height: 180px; overflow: hidden; position: relative; }
.tep-readmore.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #fff); }
.tep-amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tep-amenities li { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; }
.tep-amenities .tep-ico { color: var(--tep-green); }
.tep-floorplans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tep .tep-fp { border: 1px solid var(--tep-border); border-radius: 10px; padding: 6px; background: #fff; }
.tep-video, .tep-map { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; }
.tep-map { padding-top: 45%; }
.tep-video iframe, .tep-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tep-address { display: flex; gap: 6px; color: #42526e; margin: -6px 0 12px; }
.tep-link { display: inline-block; margin-top: 10px; color: var(--tep-primary) !important; font-weight: 600; }
.tep .tep-brochure { margin-bottom: 18px; }
.tep-single-side { position: sticky; top: 20px; }
.tep-side-card { background: #fff; border: 1px solid var(--tep-border); border-radius: var(--tep-radius); padding: 22px; box-shadow: var(--tep-shadow); }
.tep-agent { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.tep-agent-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--tep-primary), #7b2ff7); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.tep-agent strong { display: block; }
.tep-agent small { color: var(--tep-muted); }
.tep-agent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--tep-border); }
.tep-mobile-bar { display: none; }

/* Shortlist page */
.tep-shortlist-empty { grid-column: 1 / -1; text-align: center; padding: 50px; color: var(--tep-muted); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
	.tep-grid.tep-cols-3, .tep-grid.tep-cols-4 { --tep-cols: 2; }
	.tep-locations { --tep-cols: 3 !important; }
	.tep-res-body { grid-template-columns: 1fr; }
	.tep .tep-filters-open { display: inline-flex; }
	.tep-filters { position: fixed; inset: 0; z-index: 99990; max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .3s; padding-bottom: 80px; top: 0; }
	.tep-results.filters-open .tep-filters { transform: none; }
	.tep .tep-filters-close { display: flex; background: none; border: 0; padding: 4px; }
	.tep .tep-filters-apply { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; }
	.tep-results:not(.filters-open) .tep-filters-apply { display: none; }
	.tep-single-cols { grid-template-columns: 1fr; }
	.tep-single-side { position: static; }
	.tep-carousel-track { --tep-cols: 2 !important; }
}
@media (max-width: 767px) {
	.tep-search-bar { flex-wrap: wrap; min-height: 0; padding: 10px; gap: 8px; }
	.tep-type-wrap { height: 44px; border: 1px solid var(--tep-border); border-radius: 8px; flex: 1 1 100%; }
	.tep-type-select { max-width: none; width: 100%; padding-left: 12px !important; }
	.tep-kw-wrap { height: 48px; flex: 1 1 100%; border: 1px solid var(--tep-border); border-radius: 8px; padding: 0 12px; order: 2; }
	.tep-search-icons { order: 3; padding: 0; }
	.tep .tep-search-btn { order: 4; flex: 1; margin: 0; }
	.tep .tep-search-tab { padding: 14px 10px 12px; font-size: 14px; }
	.tep-quick { padding: 10px; }
	.tep-grid, .tep-grid.tep-cols-2, .tep-grid.tep-cols-3, .tep-grid.tep-cols-4 { --tep-cols: 1; }
	.tep-locations { --tep-cols: 2 !important; gap: 12px; }
	.tep-card-list { flex-direction: column; }
	.tep-card-list .tep-card-media { width: 100%; aspect-ratio: 4/3; min-height: 0; }
	.tep-carousel-track { --tep-cols: 1.15 !important; }
	.tep-car-nav { display: none !important; }
	.tep-res-top { padding: 8px; }
	.tep-res-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
	.tep-res-search { min-width: 0; width: 100%; }
	.tep-view-toggle { display: none; }
	.tep-emi-grid { grid-template-columns: 1fr; }
	.tep-single-title { font-size: 22px; }
	.tep-single-price { text-align: left; }
	.tep-single-tools { justify-content: flex-start; }
	.tep-gallery-mosaic, .tep-gallery-mosaic.count-1, .tep-gallery-mosaic.count-2, .tep-gallery-mosaic.count-3 { grid-template-columns: 1fr; grid-template-rows: 260px; border-radius: 12px; }
	.tep-gm-item:not(.tep-gm-0) { display: none; }
	.tep-gm-0 { grid-row: auto; }
	.tep-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tep-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tep-section { padding: 18px 16px; }
	.tep-single { padding-bottom: 70px; }
	.tep-mobile-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.1); }
	.tep-mobile-bar a, .tep .tep-mobile-bar button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 15px 8px; font-weight: 700; font-size: 14px; border: 0; background: #fff; color: var(--tep-text); }
	.tep-mobile-bar .tep-mb-wa { color: #128c3e; }
	.tep .tep-mobile-bar .tep-mb-enq { background: var(--tep-primary); color: #fff; }
	.tep-modal { align-items: flex-end; padding: 0; }
	.tep-modal-box { border-radius: 16px 16px 0 0; }
}
/* Prevent long spec text from widening cards */
.tep-card, .tep-card-body, .tep-specs li, .tep-grid > *, .tep-list > * { min-width: 0; }
.tep-card-body { overflow: hidden; }
/* Section wrappers (built-in + Elementor listing widgets) */
.tep-section-plain { background: transparent; border: 0; padding: 0; }
.tep-single-cols > .tep-contact-wrap { position: sticky; top: 20px; }
.tep-contact-wrap .tep-single-side { position: static; }
.tep-single-cols + .tep > .tep-section-plain { margin-top: 30px; }
.tep-elementor-single .tep-section { margin-bottom: 0; }
.tep-field-value { margin: 0; }
.tep-field-label { display: block; font-size: 12px; color: var(--tep-muted); font-weight: 500; }
@media (max-width: 1024px) { .tep-single-cols > .tep-contact-wrap { position: static; } }
