/* TDF Editor — Site widgets (header, footer, off-canvas, industry cards) */

.tdf-site-header { width: 100%; border-bottom: 1px solid #e5e7eb; background: #fff; color: #0f172a; z-index: 100; }
.tdf-site-header--sticky { position: sticky; top: 0; }
.tdf-site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 14px 20px; }
.tdf-site-header__logo-text { font-size: 1.25rem; font-weight: 700; color: inherit; text-decoration: none; }
.tdf-site-header__logo-img { display: block; max-height: 48px; width: auto; }
.tdf-site-header__nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.tdf-site-header__nav__link { color: inherit; text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.tdf-site-header__nav__link:hover { color: var(--tdf-brand-primary, #1a7480); }
.tdf-site-header__actions { display: flex; align-items: center; gap: 12px; }
.tdf-site-header__phone { font-weight: 600; text-decoration: none; color: inherit; white-space: nowrap; }
.tdf-site-header__cta { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 6px; background: var(--tdf-brand-accent, #ecb238); color: var(--tdf-brand-dark, #0e3b48) !important; text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.tdf-site-header__cart, .tdf-mini-cart__btn { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; cursor: pointer; color: inherit; font: inherit; padding: 6px; }
.tdf-site-header__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer; padding: 0 10px; }
.tdf-site-header__toggle span { display: block; height: 2px; background: #0f172a; border-radius: 1px; }
@media (max-width: 991px) { .tdf-site-header__nav { display: none; } .tdf-site-header__toggle { display: inline-flex; } }

.tdf-top-bar { width: 100%; font-size: 0.8125rem; }
.tdf-top-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.tdf-top-bar__right { display: flex; gap: 16px; }
.tdf-top-bar a { text-decoration: none; }

.tdf-site-footer { width: 100%; padding: 40px 20px 0; }
.tdf-site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1200px; margin: 0 auto; }
.tdf-site-footer__col-title { margin: 0 0 14px; font-size: 1rem; font-weight: 700; }
.tdf-site-footer__links { list-style: none; margin: 0; padding: 0; }
.tdf-site-footer__links li + li { margin-top: 10px; }
.tdf-site-footer__link { text-decoration: none; font-size: 0.9375rem; }
.tdf-site-footer__link:hover { color: #fff; }
.tdf-site-footer__bottom { max-width: 1200px; margin: 28px auto 0; padding: 16px 0 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.tdf-site-footer__copyright { margin: 0; font-size: 0.8125rem; opacity: 0.85; }
@media (max-width: 767px) { .tdf-site-footer__grid { grid-template-columns: 1fr; } }

.tdf-nav-menu__list { list-style: none; margin: 0; padding: 0; }
.tdf-nav-menu--horizontal .tdf-nav-menu__list { display: flex; flex-wrap: wrap; gap: 18px; }
.tdf-nav-menu--vertical .tdf-nav-menu__list { display: grid; gap: 10px; }
.tdf-nav-menu__link { text-decoration: none; font-weight: 500; }

.tdf-search-bar { display: flex; gap: 8px; max-width: 420px; }
.tdf-search-bar input[type="search"] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.tdf-search-bar button { padding: 10px 16px; border: none; border-radius: 6px; background: #2563eb; color: #fff; font: inherit; cursor: pointer; }

.tdf-offcanvas { position: fixed; inset: 0; z-index: 999990; pointer-events: none; }
.tdf-offcanvas.is-open { pointer-events: auto; }
.tdf-offcanvas__overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.55); opacity: 0; transition: opacity 0.25s ease; }
.tdf-offcanvas.is-open .tdf-offcanvas__overlay { opacity: 1; }
.tdf-offcanvas__panel { position: absolute; top: 0; bottom: 0; width: 320px; max-width: 92vw; background: #fff; box-shadow: 0 0 40px rgba(0,0,0,0.18); transform: translateX(-105%); transition: transform 0.28s ease; display: flex; flex-direction: column; overflow-y: auto; padding: 20px; }
.tdf-offcanvas--right .tdf-offcanvas__panel { right: 0; left: auto; transform: translateX(105%); }
.tdf-offcanvas--left .tdf-offcanvas__panel { left: 0; }
.tdf-offcanvas.is-open .tdf-offcanvas__panel { transform: translateX(0); }
.tdf-offcanvas__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tdf-offcanvas__title { margin: 0; font-size: 1.125rem; font-weight: 700; }
.tdf-offcanvas__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: #f3f4f6; cursor: pointer; flex-shrink: 0; }
.tdf-offcanvas__close-icon { display: block; font-size: 22px; line-height: 1; pointer-events: none; }
.tdf-offcanvas__nav__list { list-style: none; margin: 0; padding: 0; }
.tdf-offcanvas__nav__item + .tdf-offcanvas__nav__item { margin-top: 4px; }
.tdf-offcanvas__nav__link { display: block; padding: 12px 0; text-decoration: none; color: #0f172a; font-weight: 500; border-bottom: 1px solid #f1f5f9; }
.tdf-offcanvas__contact { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e5e7eb; display: grid; gap: 8px; }
.tdf-offcanvas__contact a { text-decoration: none; color: #475569; }
body.tdf-offcanvas-open { overflow: hidden; }

.tdf-property-cards__grid, .tdf-vehicle-cards__grid, .tdf-product-cards__grid { display: grid; gap: 24px; }
.tdf-property-cards__card, .tdf-vehicle-cards__card, .tdf-product-cards__card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(15,23,42,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tdf-property-cards__card:hover, .tdf-vehicle-cards__card:hover, .tdf-product-cards__card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(15,23,42,0.12); }
.tdf-property-cards__media, .tdf-vehicle-cards__media, .tdf-product-cards__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e2e8f0; }
.tdf-property-cards__media img, .tdf-vehicle-cards__media img, .tdf-product-cards__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tdf-property-cards__badge, .tdf-vehicle-cards__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 4px; background: #2563eb; color: #fff; font-size: 0.75rem; font-weight: 600; }
.tdf-property-cards__body, .tdf-vehicle-cards__body, .tdf-product-cards__body { padding: 18px; }
.tdf-property-cards__price, .tdf-vehicle-cards__price, .tdf-product-cards__price { font-size: 1.125rem; font-weight: 700; color: #2563eb; margin-bottom: 6px; }
.tdf-property-cards__title, .tdf-vehicle-cards__title, .tdf-product-cards__title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.tdf-property-cards__location, .tdf-product-cards__meta { margin: 0 0 10px; color: #64748b; font-size: 0.875rem; }
.tdf-property-cards__meta, .tdf-vehicle-cards__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tdf-property-cards__meta__tag, .tdf-vehicle-cards__meta__tag { padding: 4px 8px; border-radius: 4px; background: #f1f5f9; color: #475569; font-size: 0.75rem; }
.tdf-property-cards__btn, .tdf-vehicle-cards__btn, .tdf-product-cards__btn { display: inline-flex; padding: 10px 16px; border-radius: 6px; background: #0f172a; color: #fff !important; text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.tdf-look--property-cards.tdf-look--look-07 .tdf-property-cards__card { background: #0f172a; color: #e2e8f0; }
.tdf-look--property-cards.tdf-look--look-07 .tdf-property-cards__title { color: #fff; }
.tdf-look--vehicle-cards.tdf-look--look-04 .tdf-vehicle-cards__card { background: #111827; color: #e5e7eb; }
.tdf-look--vehicle-cards.tdf-look--look-04 .tdf-vehicle-cards__title { color: #fff; }
