/* ==========================================================================
   Villa tipleri modülü (villatypes) – filtre grupları, header mega menü, hub sayfası.
   site.css değişkenlerini kullanır; mantıksal özellikler (inline-start/end) → RTL uyumlu.
   ========================================================================== */

/* ---------- Filtre paneli: gruplu, katlanır villa tipi çipleri ---------- */
.vt-filter .f-title { margin-bottom: 6px; }
.vt-all-link { font-size: 12.5px; font-weight: 700; color: var(--sea); }
.vt-all-link:hover { color: var(--terra-2); text-decoration: underline; }
.vt-fg { border-top: 1px dashed var(--line); }
.vt-fg:first-of-type { border-top: 0; }
.vt-fg > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 2px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--ink-2); user-select: none; }
.vt-fg > summary::-webkit-details-marker { display: none; }
.vt-fg > summary:hover { color: var(--ink); }
.vt-fg-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); flex: none; }
.vt-fg-ico .i-sm { width: 14px; height: 14px; }
.vt-fg-name { flex: 1; min-width: 0; }
.vt-fg-sel { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.vt-fg-chev { width: 14px; height: 14px; opacity: .55; transition: transform .2s var(--ease); }
.vt-fg[open] .vt-fg-chev { transform: rotate(180deg); }
.vt-chips { gap: 6px; padding: 0 0 14px; }
.vt-chips .chip { height: 32px; padding: 0 11px; font-size: 13px; gap: 6px; }
.vt-chips .chip .i-sm { width: 14px; height: 14px; opacity: .7; }
.vt-chips .chip:has(input:checked) .i-sm { opacity: 1; }
.vt-more { margin: 0; height: 32px; padding: 0 6px; }

/* ---------- Header mega menü ---------- */
.vt-mega { width: min(1040px, 94vw); padding: 22px 22px 14px; inset-inline-start: -300px; text-align: start; }
.vt-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; }
.vt-mega-col h4 { display: flex; align-items: center; gap: 8px; font: 700 11px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 12px 6px; }
.vt-mega-col h4 .i-sm { width: 14px; height: 14px; color: var(--terra-2); }
.vt-mega-col a { padding: 7px 12px; font-size: 14px; }
.vt-mega-col a small { margin-inline-start: auto; color: var(--muted); font-weight: 600; font-size: 12px; }
.dd-panel a.vt-mega-all { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 14px; color: var(--sea); font-weight: 800; }
.vt-mega-all small { color: var(--muted); font-weight: 600; }
.vt-mega-all .i-sm:last-child { margin-inline-start: auto; }
@media (max-width: 1280px) { .vt-mega { inset-inline-start: -360px; } .vt-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Hub sayfası ---------- */
.vt-hero { padding-block: 18px 8px; }
.vt-hero h1 { font-size: clamp(32px, 4.4vw, 58px); margin-top: 14px; max-width: 22ch; text-wrap: balance; }
.vt-jump { margin-top: 24px; padding-bottom: 6px; }
.vt-jump .chip .muted { font-weight: 600; }
.vt-sec { padding-block: clamp(26px, 3.4vw, 44px) 0; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.vt-sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.vt-sec-head h2 { font-size: clamp(24px, 2.6vw, 34px); }
.vt-sec-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--paper); flex: none; }
.vt-sec-n { margin-inline-start: auto; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.vt-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; overflow: hidden; }
.vt-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--c); opacity: .85; }
.vt-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.vt-card-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--card)); }
.vt-card-body { display: flex; flex-direction: column; gap: 6px; }
.vt-card-body b { font-weight: 800; font-size: 16px; line-height: 1.3; }
.vt-card-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vt-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.vt-count { font-size: 13px; font-weight: 700; color: var(--sea); }
.vt-card.is-empty .vt-count { color: var(--muted); font-weight: 600; }
.vt-arrow { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.vt-card:hover .vt-arrow { transform: translateX(3px); color: var(--ink); }
[dir="rtl"] .vt-arrow, [dir="rtl"] .vt-mega-all .i-sm:last-child { transform: scaleX(-1); }
[dir="rtl"] .vt-card:hover .vt-arrow { transform: scaleX(-1) translateX(3px); }
.vt-cta { display: flex; justify-content: center; padding-block: 44px 64px; }
@media (max-width: 640px) {
  .vt-grid { grid-template-columns: 1fr; gap: 10px; }
  .vt-card { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 14px; }
  .vt-card-body { flex: 1; min-width: 0; }
  .vt-card-foot { flex-basis: 100%; padding-top: 10px; }
  .vt-sec-ico { width: 38px; height: 38px; border-radius: 12px; }
}
/* RTL: negatif başlangıç ofseti paneli sağ kenardan taşırır → küçük ofset */
[dir="rtl"] .vt-mega { inset-inline-start: -60px; }
@media (max-width: 1024px) { .vt-mega { display: none; } }
