/**
 * EstateFlow — baza e përbashkët e template-ve.
 * Reset, tokenë, modali i pronës, galeria dhe gjendjet e përbashkëta.
 * Çdo template i mbishkruan tokenët në assets/theme.css.
 */

:root {
  --ef-accent: #173b31;
  --ef-accent-soft: rgba(23, 59, 49, 0.08);
  --ef-ink: #14201c;
  --ef-muted: #6b7772;
  --ef-line: #e2e8e5;
  --ef-surface: #ffffff;
  --ef-paper: #f5f4f0;
  --ef-radius: 14px;
  --ef-radius-sm: 9px;
  --ef-shadow: 0 18px 45px -28px rgba(15, 30, 25, 0.55);
  --ef-container: 1200px;
  --ef-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ef-display: var(--ef-font);
  --ef-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ef-surface);
  color: var(--ef-ink);
  font-family: var(--ef-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.ef-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ef-display);
  margin: 0;
  line-height: 1.12;
  font-weight: 600;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ef-container {
  width: 100%;
  max-width: var(--ef-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ef-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ef-accent);
  margin: 0;
}

.ef-badge {
  display: inline-block;
  background: var(--ef-surface);
  color: var(--ef-accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ef-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--ef-accent);
  outline-offset: 3px;
}

/* -------------------------------------------------------------- animacione */

[data-ef-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ef-ease), transform 0.7s var(--ef-ease);
}

[data-ef-reveal].ef-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-ef-reveal],
  [data-ef-reveal].ef-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------- gjendja bosh */

.ef-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--ef-paper);
  border-radius: var(--ef-radius);
  border: 1px dashed var(--ef-line);
}

.ef-empty h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.ef-empty p {
  color: var(--ef-muted);
  font-size: 14px;
}

/* -------------------------------------------------------------------- modal */

.ef-modal[hidden] {
  display: none;
}

.ef-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(16px, 4vh) 16px;
}

.ef-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 15, 0.72);
  backdrop-filter: blur(4px);
}

.ef-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--ef-surface);
  color: var(--ef-ink);
  border-radius: var(--ef-radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: ef-modal-in 0.32s var(--ef-ease);
}

/* Faqja e dedikuar e pronës përdor të njëjtën galeri profesionale, pa sjelljen e modalit. */
body.ef-property-detail {
  overflow: auto;
}

body.ef-property-detail .ef-modal {
  position: relative;
  inset: auto;
  z-index: 1;
  display: block;
  padding: 42px max(16px, 4vw) 72px;
  background: var(--ef-paper);
}

body.ef-property-detail .ef-modal-backdrop,
body.ef-property-detail .ef-modal-close {
  display: none;
}

body.ef-property-detail .ef-modal-panel {
  width: min(1180px, 100%);
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid var(--ef-line);
  box-shadow: 0 28px 70px -42px rgba(9, 25, 19, 0.55);
  animation: ef-modal-in 0.4s var(--ef-ease);
}

body.ef-property-detail .ef-modal-photo {
  min-height: min(66vh, 680px);
}

.ef-detail-breadcrumb{display:flex;align-items:center;gap:10px;padding:16px 22px;border-bottom:1px solid var(--ef-line);font-size:12px;color:var(--ef-muted)}.ef-detail-breadcrumb a{color:var(--ef-accent);font-weight:700;text-decoration:none}.ef-detail-breadcrumb b{color:var(--ef-ink)}

@keyframes ef-modal-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
}

.ef-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #14201c;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
}

.ef-modal-gallery {
  position: relative;
  background: var(--ef-paper);
}

.ef-modal-photo {
  margin: 0;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--ef-accent-soft);
}

.ef-modal-photo-empty {
  background-image: linear-gradient(135deg, var(--ef-accent-soft), transparent);
}

.ef-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #14201c;
  font-size: 26px;
  line-height: 1;
}

.ef-modal-prev {
  left: 14px;
}

.ef-modal-next {
  right: 14px;
}

.ef-modal-counter {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(10, 18, 15, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.ef-modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ef-line);
}

.ef-modal-thumbs button {
  flex: 0 0 88px;
  height: 60px;
  border-radius: var(--ef-radius-sm);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.ef-modal-thumbs button.active,
.ef-modal-thumbs button:hover {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--ef-accent);
}

.ef-modal-body {
  padding: 28px;
}

.ef-modal-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 12px 0 6px;
}

.ef-modal-head p {
  color: var(--ef-muted);
  font-size: 14px;
}

.ef-modal-head .ef-badge {
  background: var(--ef-accent-soft);
}

.ef-modal-price {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  color: var(--ef-accent);
}

.ef-modal-unit {
  display: block;
  color: var(--ef-muted);
  font-size: 12px;
}

.ef-modal-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--ef-line);
  border: 1px solid var(--ef-line);
  border-radius: var(--ef-radius-sm);
  overflow: hidden;
  margin: 24px 0;
}

.ef-modal-specs > div {
  background: var(--ef-surface);
  padding: 14px 16px;
}

.ef-modal-specs dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ef-muted);
}

.ef-modal-specs dd {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.ef-modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ef-modal-features li {
  background: var(--ef-accent-soft);
  color: var(--ef-accent);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
}

.ef-modal-description p {
  color: var(--ef-muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.ef-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ef-line);
}

.ef-btn-primary,
.ef-btn-ghost {
  border-radius: var(--ef-radius-sm);
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s var(--ef-ease), background 0.2s, color 0.2s;
}

.ef-btn-primary {
  background: var(--ef-accent);
  color: #fff;
}

.ef-btn-ghost {
  border: 1px solid var(--ef-line);
  color: var(--ef-ink);
}

.ef-btn-primary:hover,
.ef-btn-ghost:hover {
  transform: translateY(-2px);
}

.ef-btn-ghost:hover {
  border-color: var(--ef-accent);
  color: var(--ef-accent);
}

/* ---------------------------------------------------------------- WhatsApp */

:root {
  --ef-wa: #25d366;
  --ef-wa-deep: #128c7e;
}

.ef-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ef-wa);
  color: #05231a;
  border-radius: var(--ef-radius-sm);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s var(--ef-ease);
}

.ef-wa-btn:hover {
  background: var(--ef-wa-deep);
  color: #fff;
  transform: translateY(-2px);
}

.ef-wa-icon {
  flex: 0 0 auto;
}

/* Buton i vogël për kartat e pronave. */
.ef-wa-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(37, 211, 102, 0.14);
  color: var(--ef-wa-deep);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.ef-wa-mini .ef-wa-icon {
  width: 16px;
  height: 16px;
}

.ef-wa-mini:hover {
  background: var(--ef-wa);
  color: #05231a;
}

/* ------------------------------------------------- llogaritësi i kredisë */

.ef-calc {
  display: grid;
  gap: 22px;
  background: var(--ef-surface);
  border: 1px solid var(--ef-line);
  border-radius: var(--ef-radius);
  padding: 26px;
}

.ef-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ef-calc-field {
  display: grid;
  gap: 7px;
}

.ef-calc-field > span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ef-muted);
  font-weight: 700;
}

.ef-calc-field > span b {
  color: var(--ef-accent);
  font-size: 13px;
}

.ef-calc-field input[type="number"],
.ef-calc-field select {
  border: 1px solid var(--ef-line);
  border-radius: var(--ef-radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  background: var(--ef-surface);
  color: var(--ef-ink);
  width: 100%;
}

.ef-calc-field input[type="number"]:focus,
.ef-calc-field select:focus {
  outline: none;
  border-color: var(--ef-accent);
}

.ef-calc-years {
  grid-column: 1 / -1;
}

.ef-calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--ef-accent);
}

.ef-calc-output {
  display: grid;
  gap: 16px;
  background: var(--ef-paper);
  border-radius: var(--ef-radius-sm);
  padding: 22px;
}

.ef-calc-monthly small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ef-muted);
  font-weight: 700;
}

.ef-calc-monthly strong {
  display: block;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--ef-accent);
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.ef-calc-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.ef-calc-rows dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ef-muted);
}

.ef-calc-rows dd {
  font-size: 16px;
  font-weight: 700;
  margin-top: 3px;
}

.ef-calc-warning {
  background: rgba(214, 138, 32, 0.12);
  color: #8a5a12;
  border-radius: var(--ef-radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
}

.ef-calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ef-calc-note {
  font-size: 12px;
  color: var(--ef-muted);
  line-height: 1.65;
}

.ef-modal-calc {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--ef-line);
}

.ef-modal-calc h3 {
  font-size: 19px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .ef-calc {
    padding: 20px;
  }
  .ef-calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ef-modal {
    padding: 0;
  }
  .ef-modal-panel {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }
  .ef-modal-body {
    padding: 22px 18px 40px;
  }
}

.ef-brand-logo-only>:not(.ef-brand-logo){display:none!important}.ef-brand-logo{display:grid!important;place-items:center!important;overflow:visible!important;background:transparent!important;border-radius:0!important;width:220px!important;max-width:220px!important;height:72px!important;flex:0 0 auto}.ef-brand-logo img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.site-footer .ef-brand-logo,footer .ef-brand-logo{width:280px!important;max-width:280px!important;height:96px!important}@media(max-width:640px){.ef-brand-logo{width:150px!important;max-width:150px!important;height:54px!important}.site-footer .ef-brand-logo,footer .ef-brand-logo{width:190px!important;max-width:190px!important;height:72px!important}}
