/* TND Estate theme */
:root { --tnde-primary: #e07a35; --tnde-dark: #5a2a1e; --tnde-soft: #fde3c3; --tnde-text: #23262d; --tnde-font: system-ui, sans-serif; --tnde-header-h: 88px; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--tnde-font); font-size: 16px; line-height: 1.65; color: var(--tnde-text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
a { color: var(--tnde-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tnde-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--tnde-font); color: var(--tnde-dark); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; left: 10px; top: 10px; z-index: 100000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }
.tnde-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.tnde-section { padding-top: 70px; padding-bottom: 80px; }
body.tep-lock, body.tnde-lock { overflow: hidden; }

/* Buttons */
.tnde-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--tnde-primary); color: #fff; border-radius: 8px; padding: 12px 24px; font-weight: 600; font-size: 15px; line-height: 1.2; border: 0; cursor: pointer; transition: background .25s, transform .25s, box-shadow .25s; white-space: nowrap; }
.tnde-btn:hover { background: var(--tnde-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.15); }
.tnde-btn .tnde-ico { width: 17px; height: 17px; }
.tnde-btn-block { width: 100%; }
.tnde-btn.is-wobble { animation: tnde-wobble 4s ease-in-out infinite; }
.tnde-btn.is-wobble:hover { animation: none; }
@keyframes tnde-wobble { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-4deg) scale(1.03); } 86% { transform: rotate(3deg) scale(1.03); } 90% { transform: rotate(-2deg); } 94% { transform: rotate(1deg); } }

/* ---------- Top bar marquee ---------- */
.tnde-topbar { background: var(--tnde-dark); color: #fff; overflow: hidden; white-space: nowrap; }
.tnde-topbar-track { display: inline-flex; gap: 70px; padding: 10px 0; animation: tnde-marq var(--speed, 30s) linear infinite; }
.tnde-topbar:hover .tnde-topbar-track { animation-play-state: paused; }
.tnde-topbar-item { color: #fff; font-weight: 700; font-size: 17px; }
a.tnde-topbar-item:hover { color: var(--tnde-soft); }
@keyframes tnde-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.tnde-header { position: relative; z-index: 900; background: #fff; }
.tnde-sticky .tnde-header { position: sticky; top: 0; }
.admin-bar.tnde-sticky .tnde-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.tnde-sticky .tnde-header { top: 0; } }
.tnde-navbar { background: #fff; transition: box-shadow .3s; }
.tnde-header.is-scrolled .tnde-navbar { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.tnde-navbar-in { display: flex; align-items: center; gap: 28px; min-height: var(--tnde-header-h); transition: min-height .3s; }
.tnde-header.is-scrolled .tnde-navbar-in { min-height: 72px; }
.tnde-logo { flex: none; }
.tnde-logo img, .tnde-logo .custom-logo { max-height: 70px; width: auto; display: block; transition: max-height .3s; }
.tnde-header.is-scrolled .tnde-logo img { max-height: 56px; }
.tnde-text-logo { display: flex; align-items: center; gap: 10px; color: var(--tnde-dark); }
.tnde-logo-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--tnde-primary), var(--tnde-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.tnde-logo-name { font-weight: 800; font-size: 20px; line-height: 1.1; display: flex; flex-direction: column; letter-spacing: .5px; }
.tnde-logo-name small { font-weight: 500; font-size: 11px; color: #8a8f99; letter-spacing: 0; }
.tnde-nav { flex: 1; display: flex; justify-content: flex-end; }
.tnde-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.tnde-menu li { position: relative; margin: 0; }
.tnde-menu > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 13px; color: var(--tnde-dark); font-weight: 500; font-size: 16px; position: relative; }
.tnde-menu > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2.5px; border-radius: 2px; background: var(--tnde-primary); transform: scaleX(0); transition: transform .25s; }
.tnde-menu > li:hover > a, .tnde-menu > li.current-menu-item > a, .tnde-menu > li.current-menu-ancestor > a { color: var(--tnde-primary); }
.tnde-menu > li:hover > a::after, .tnde-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.tnde-menu .menu-item-has-children > a::before { content: ""; order: 2; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.tnde-menu .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.14); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s; z-index: 10; border-top: 3px solid var(--tnde-primary); }
.tnde-menu li:hover > .sub-menu, .tnde-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tnde-menu .sub-menu .sub-menu { top: -10px; left: 100%; }
.tnde-menu .sub-menu a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--tnde-text); font-size: 15px; }
.tnde-menu .sub-menu a:hover { background: var(--tnde-soft); color: var(--tnde-dark); }
.tnde-nav-actions { display: flex; align-items: center; gap: 12px; }
.tnde-cta { padding: 13px 22px; border-radius: 10px; box-shadow: 0 8px 20px rgba(224, 122, 53, .3); }
.tnde-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--tnde-soft); color: var(--tnde-dark); cursor: pointer; align-items: center; justify-content: center; }
.tnde-burger .tnde-ico { width: 24px; height: 24px; }

/* Drawer */
.tnde-drawer { position: fixed; inset: 0; z-index: 99990; }
.tnde-drawer[hidden] { display: none; }
.tnde-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: tnde-fade .25s; }
.tnde-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; display: flex; flex-direction: column; animation: tnde-slide .3s ease; overflow-y: auto; }
@keyframes tnde-fade { from { opacity: 0; } }
@keyframes tnde-slide { from { transform: translateX(100%); } }
.tnde-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #eee; }
.tnde-drawer-head .tnde-logo img { max-height: 50px; }
.tnde-drawer-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--tnde-soft); color: var(--tnde-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tnde-menu-mobile { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 8px; }
.tnde-menu-mobile > li > a { padding: 14px 12px; border-bottom: 1px solid #f2f2f2; font-size: 16px; }
.tnde-menu-mobile > li > a::after { display: none; }
.tnde-menu-mobile .menu-item-has-children > a::before { display: none; }
.tnde-menu-mobile .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; min-width: 0; }
.tnde-menu-mobile li.is-open > .sub-menu { display: block; }
.tnde-sub-toggle { position: absolute; right: 4px; top: 6px; width: 38px; height: 38px; border: 0; background: var(--tnde-soft); border-radius: 8px; color: var(--tnde-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
li.is-open > .tnde-sub-toggle { transform: rotate(180deg); }
.tnde-drawer-foot { margin-top: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #eee; }
.tnde-drawer-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--tnde-dark); font-size: 18px; }

@media (max-width: 1100px) {
	.tnde-nav { display: none; }
	.tnde-burger { display: inline-flex; }
	.tnde-nav-actions { margin-left: auto; }
}
@media (max-width: 600px) {
	.tnde-navbar-in { min-height: 70px; gap: 10px; }
	.tnde-cta { padding: 10px 14px; font-size: 13.5px; }
	.tnde-cta .tnde-ico { display: none; }
	.tnde-logo img, .tnde-logo .custom-logo { max-height: 52px; }
	.tnde-topbar-item { font-size: 14px; }
	.tnde-logo-name small { display: none; }
}
@media (max-width: 380px) { .tnde-cta { display: none; } }

/* ---------- Floating ---------- */
.tnde-side-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 950; background: var(--tnde-primary); color: #fff; border-radius: 10px 0 0 10px; padding: 18px 11px; box-shadow: -4px 6px 18px rgba(0,0,0,.18); transition: padding .25s, background .25s; }
.tnde-side-tab span { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.tnde-side-tab .tnde-ico { transform: rotate(-90deg); width: 16px; height: 16px; }
.tnde-side-tab:hover { color: #fff; background: var(--tnde-dark); padding-right: 16px; }
.tnde-float-wa { position: fixed; left: 20px; bottom: 22px; z-index: 950; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); animation: tnde-pulse 2.4s infinite; }
.tnde-float-wa .tnde-ico { width: 30px; height: 30px; }
.tnde-float-wa:hover { color: #fff; transform: scale(1.08); }
@keyframes tnde-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.tnde-top { position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 46px; height: 46px; border-radius: 10px; border: 0; background: var(--tnde-primary); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.tnde-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.tnde-top:hover { background: var(--tnde-dark); }
@media (max-width: 767px) { .tnde-side-tab { padding: 14px 8px; } .tnde-side-tab span { font-size: 13px; } .tnde-float-wa { width: 50px; height: 50px; left: 14px; bottom: 16px; } .tnde-top { right: 14px; bottom: 16px; } }
/* Keep single-property mobile bar clear of floating buttons */
@media (max-width: 767px) { .single-tep_property .tnde-float-wa, .single-tep_project .tnde-float-wa, .single-tep_property .tnde-top, .single-tep_project .tnde-top { bottom: 76px; } }

/* ---------- Footer ---------- */
.tnde-footer { background: var(--tnde-dark); color: rgba(255,255,255,.8); padding-top: 70px; font-size: 15px; }
.tnde-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.tnde-footer h4 { color: #fff; font-size: 18px; margin: 0 0 18px; position: relative; padding-bottom: 12px; }
.tnde-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--tnde-primary); }
.tnde-footer a { color: rgba(255,255,255,.8); }
.tnde-footer a:hover { color: var(--tnde-primary); }
.tnde-logo-footer { margin-bottom: 18px; }
.tnde-logo-footer img { max-height: 70px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.tnde-logo-footer .tnde-text-logo, .tnde-logo-footer .tnde-logo-name { color: #fff; }
.tnde-flinks { list-style: none; margin: 0; padding: 0; }
.tnde-flinks li { margin: 0 0 10px; }
.tnde-flinks a { display: inline-flex; gap: 6px; transition: transform .2s, color .2s; }
.tnde-flinks a:hover { transform: translateX(4px); }
.tnde-fcontact ul { list-style: none; margin: 0 0 20px; padding: 0; }
.tnde-fcontact li { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.tnde-fcontact .tnde-ico { flex: none; color: var(--tnde-primary); margin-top: 3px; }
.tnde-social { display: flex; gap: 10px; margin-top: 18px; }
.tnde-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: .25s; }
.tnde-social a:hover { background: var(--tnde-primary); color: #fff; transform: translateY(-3px); }
.tnde-drawer .tnde-social a { background: var(--tnde-soft); color: var(--tnde-dark); }
.tnde-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 14px; }
.tnde-footer-bottom-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.tnde-legal { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
@media (max-width: 960px) { .tnde-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tnde-footer-grid { grid-template-columns: 1fr; gap: 30px; } .tnde-footer { padding-top: 50px; } .tnde-footer-bottom-in { justify-content: center; text-align: center; } }

/* ---------- Inner pages ---------- */
.tnde-page-hero { background: linear-gradient(120deg, var(--tnde-dark), var(--tnde-primary)); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.tnde-page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -180px; background: rgba(255,255,255,.07); }
.tnde-page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 46px); margin: 0 0 8px; }
.tnde-crumbs { font-size: 14.5px; opacity: .9; }
.tnde-crumbs a { color: #fff; }
.tnde-crumbs span { margin: 0 6px; opacity: .6; }
.tnde-content { font-size: 17px; }
.tnde-content > *:first-child { margin-top: 0; }
.tnde-content img { border-radius: 12px; }
.tnde-content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--tnde-primary); background: #fff8f1; border-radius: 0 12px 12px 0; }
.tnde-content table { width: 100%; border-collapse: collapse; }
.tnde-content th, .tnde-content td { border: 1px solid #eee; padding: 10px; }
.tnde-single-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 900px; }
.tnde-single-wrap:has(.tnde-sidebar) { max-width: 1240px; grid-template-columns: minmax(0, 1fr) 320px; }
.tnde-meta { display: flex; gap: 8px; align-items: center; color: #7a7f8a; font-size: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.tnde-featured img { border-radius: 16px; margin-bottom: 26px; width: 100%; }
.tnde-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.tnde-tags a { background: var(--tnde-soft); color: var(--tnde-dark); border-radius: 30px; padding: 5px 14px; font-size: 13px; }
.tnde-postnav { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0; padding: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-weight: 600; }
.tnde-sidebar .tnde-widget { background: #fff8f1; border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.tnde-widget-title { font-size: 18px; }
.tnde-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .tnde-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tnde-single-wrap:has(.tnde-sidebar) { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tnde-grid { grid-template-columns: 1fr; } .tnde-section { padding-top: 46px; padding-bottom: 56px; } }
.tnde-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(0,0,0,.07); display: flex; flex-direction: column; transition: .3s; }
.tnde-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(0,0,0,.12); }
.tnde-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--tnde-soft); }
.tnde-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tnde-card:hover .tnde-card-img img { transform: scale(1.06); }
.tnde-card-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--tnde-soft), #fff6ec); }
.tnde-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tnde-card-date { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--tnde-primary); font-weight: 600; margin-bottom: 8px; }
.tnde-card-date .tnde-ico { width: 15px; height: 15px; }
.tnde-card-title { font-size: 19px; margin: 0 0 10px; }
.tnde-card-title a { color: var(--tnde-dark); }
.tnde-card-body p { color: #666b77; font-size: 15px; }
.tnde-card-more { margin-top: auto; font-weight: 700; color: var(--tnde-dark); }
.tnde-pagination { margin-top: 44px; }
.tnde-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tnde-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #eee; color: var(--tnde-dark); font-weight: 600; padding: 0 12px; }
.tnde-pagination .current { background: var(--tnde-primary); border-color: var(--tnde-primary); color: #fff; }
.tnde-empty, .tnde-404 { text-align: center; }
.tnde-404-num { display: block; font-size: clamp(90px, 18vw, 180px); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--tnde-primary), var(--tnde-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tnde-search { display: flex; max-width: 460px; margin: 20px auto 0; border: 1.5px solid #e6dfd8; border-radius: 10px; overflow: hidden; }
.tnde-search input { flex: 1; border: 0; padding: 12px 14px; outline: 0; min-width: 0; }
.tnde-search button { border: 0; background: var(--tnde-primary); color: #fff; padding: 0 16px; cursor: pointer; }
.tnde-comments { margin-top: 40px; }
.tnde-comments input[type=text], .tnde-comments input[type=email], .tnde-comments input[type=url], .tnde-comments textarea { width: 100%; border: 1.5px solid #e6dfd8; border-radius: 10px; padding: 12px; }
.tnde-comments .submit { background: var(--tnde-primary); color: #fff; border: 0; border-radius: 8px; padding: 12px 24px; font-weight: 600; cursor: pointer; }

/* Elementor pages: full bleed */
.tnde-elementor-page .tnde-main { overflow: visible; }
.elementor-page .tnde-main > .elementor { width: 100%; }

/* TND Estate Pro pages inherit the theme font */
.tep, .tep-s, .tep-modal { font-family: var(--tnde-font); }
/* Long site names / big logos never push the header wider than the screen */
.tnde-logo { flex: 0 1 auto; min-width: 0; }
.tnde-text-logo { min-width: 0; }
.tnde-logo-name { min-width: 0; overflow: hidden; }
.tnde-logo-name, .tnde-logo-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tnde-nav-actions { flex: none; }
@media (max-width: 600px) { .tnde-logo-name { font-size: 16px; } .tnde-logo-mark { width: 38px; height: 38px; font-size: 18px; } }
.tnde-menu > li > a { white-space: nowrap; }
@media (max-width: 1320px) { .tnde-menu > li > a { padding: 10px 9px; font-size: 15px; } .tnde-navbar-in { gap: 18px; } }
.tnde-side-tab .tnde-ico { transform: rotate(90deg); }
@media (min-width: 768px) { .tep-hero .tep-sl-next { right: 64px; } }
