/* Akevler Real Estate — layered on the group base: logo-left header, search-led hero,
   listing catalogue with filters, property pages with gallery and enquiry panel. */
.site-head .bar { grid-template-columns: auto 1fr auto; gap: 28px; }
.site-head .brand { justify-self: start; order: 0; }
.site-head .brand img { height: 40px; }
.site-head .menu-btn { order: 3; justify-self: end; display: none; }
.nav { justify-self: end; display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: 15px; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-right { order: 2; }
@media (max-width: 980px) { .nav, .head-right .tel { display: none; } .site-head .menu-btn { display: inline-flex; } .site-head .bar { grid-template-columns: auto 1fr auto; } .head-right { justify-self: end; } }
@media (max-width: 520px) { .head-right .pill { display: none; } .site-head .brand img { height: 32px; } }

/* Hero with search */
.ehero { position: relative; min-height: min(100svh, 900px); display: grid; align-items: end; color: #fff; overflow: hidden; background: #2a2f33; }
.ehero .media { position: absolute; inset: 0; }
.ehero .media img { width: 100%; height: 110%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.02); animation: heroIn 2s var(--ease) both; }
.ehero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.05) 30%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.62)); }
.ehero .inner { position: relative; z-index: 1; padding-block: 160px clamp(32px, 5vw, 64px); display: grid; gap: 26px; }
.ehero h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 14ch; line-height: 1.02; text-shadow: 0 2px 30px rgba(0,0,0,.2); }
.ehero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ehero h1 .ln > span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.ehero h1 .ln:nth-child(2) > span { animation-delay: .14s; }
.ehero .sub { font-size: 1.1rem; max-width: 34em; color: rgba(255,255,255,.9); animation: fade 1.2s .5s var(--ease) both; }
.search { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 6px 6px 10px; max-width: 980px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: fade 1.2s .65s var(--ease) both; }
.search .sf { display: grid; padding: 8px 18px; border-right: 1px solid var(--line); min-width: 0; }
.search .sf:nth-child(4) { border-right: 0; }
.search label { font-size: 12px; color: var(--ink-2); }
.search select { font: inherit; font-size: 15px; border: 0; background: transparent; color: var(--ink); padding: 2px 18px 2px 0; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 5px top 55%, right 0 top 55%; background-size: 5px 5px; background-repeat: no-repeat; width: 100%; cursor: pointer; }
.search select:focus { outline: none; }
.search .go { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 28px; font: inherit; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: background .3s; }
.search .go:hover { background: var(--blue); }
.search .go svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .search { grid-template-columns: 1fr 1fr; border-radius: 22px; padding: 8px; } .search .sf { border-right: 0; border-bottom: 1px solid var(--line); } .search .sf:nth-child(3), .search .sf:nth-child(4) { border-bottom: 0; } .search .go { grid-column: 1 / -1; justify-content: center; padding: 14px; margin-top: 6px; } }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.85); animation: fade 1.2s .8s var(--ease) both; }
.hero-stats b { display: block; font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.9rem); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Listing cards */
.lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lgrid { grid-template-columns: 1fr; } }
.lcard { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.lcard .ph { aspect-ratio: 4 / 3; }
.lcard .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard .badges span { background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.lcard .price { font-size: clamp(1.25rem, 1.6vw, 1.45rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lcard .t { font-size: 15.5px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.lcard:hover .t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lcard .loc2 { font-size: 14px; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meta span + span { padding-left: 14px; border-left: 1px solid var(--line); }
.carousel .lcard .ph { aspect-ratio: 4 / 3; }

/* Catalogue filters */
.filters { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); padding-block: 14px; margin-bottom: clamp(32px, 4vw, 48px); transition: top .5s var(--ease); }
.site-head.hide ~ main .filters { top: env(safe-area-inset-top, 0px); }
.filters .row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.filters .f { display: grid; gap: 2px; min-width: 140px; flex: 1 1 140px; }
.filters label { font-size: 12px; color: var(--ink-2); }
.filters select, .filters input { font: inherit; font-size: 15px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 6px 18px 6px 0; border-radius: 0; color: var(--ink); width: 100%; }
.filters select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 5px top 55%, right 0 top 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.filters .count { margin-left: auto; font-size: 14px; color: var(--ink-2); align-self: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.filters .reset { font: inherit; font-size: 13.5px; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 6px 0; }
@media (max-width: 760px) { .filters { top: calc(70px + env(safe-area-inset-top, 0px)); } .filters .f { min-width: 44%; flex-basis: 44%; } .filters .count { margin-left: 0; width: 100%; } }
.empty { padding: 60px 0; text-align: center; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area { position: relative; text-decoration: none; color: #fff; display: block; overflow: hidden; }
.area .ph { aspect-ratio: 3 / 4; }
.area .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
.area .lab { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.area .lab b { font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.02em; }
.area .lab span { font-size: 13px; opacity: .9; }
.area:hover .lab b { font-family: var(--serif); font-style: italic; }

/* Property page */
.pgal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: min(70vh, 640px); margin-top: calc(84px + env(safe-area-inset-top, 0px)); }
.pgal a { position: relative; overflow: hidden; display: block; cursor: zoom-in; background: var(--band); }
.pgal a:first-child { grid-row: 1 / -1; }
.pgal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pgal a:hover img { transform: scale(1.04); }
.pgal .more { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--ink); font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.pgal.n1 { grid-template-columns: 1fr; } .pgal.n1 a:first-child { grid-row: auto; }
.pgal.n2 { grid-template-columns: 2fr 1fr; } .pgal.n2 a:nth-child(2) { grid-row: 1 / -1; }
.pgal.n3 { grid-template-columns: 2fr 1fr; }
.pgal.n4 { grid-template-columns: 2fr 1fr 1fr; } .pgal.n4 a:nth-child(4) { grid-column: 2 / -1; }
@media (max-width: 760px) {
  .pgal, .pgal.n2, .pgal.n3, .pgal.n4 { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; height: auto; margin-top: calc(70px + env(safe-area-inset-top, 0px)); gap: 4px; }
  .pgal a:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .pgal a:not(:first-child) { aspect-ratio: 1; grid-column: auto !important; grid-row: auto !important; }
  .pgal.n1 a:first-child { grid-column: 1 / -1; }
}
.pmain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .pmain { grid-template-columns: 1fr; } }
.ptitle h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 22ch; }
.ptitle .price { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.02em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.ptitle .meta { margin-top: 14px; font-size: 15px; }
.keyrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-block: 34px; }
.keyrow div { padding: 18px 16px 18px 0; display: grid; gap: 2px; }
.keyrow div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.keyrow b { font-weight: 400; font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.keyrow span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 560px) { .keyrow { grid-template-columns: 1fr 1fr; } .keyrow div:nth-child(3) { padding-left: 0; border-left: 0; } .keyrow div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.desc { font-size: 16px; line-height: 1.65; max-width: 40em; white-space: pre-line; color: var(--ink); }
.desc-note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.side { position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); border: 1px solid var(--line); padding: 26px; display: grid; gap: 18px; background: #fff; }
.side .agent { display: flex; gap: 14px; align-items: center; }
.side .agent .av { width: 52px; height: 52px; border-radius: 50%; background: var(--band); display: grid; place-items: center; flex: none; }
.side .agent .av img { width: 34px; height: auto; }
.side .agent b { font-weight: 500; display: block; }
.side .agent span { font-size: 13.5px; color: var(--ink-2); }
.side .ref { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.side .btns { display: grid; gap: 8px; }
.side .btns .pill { justify-content: center; }
.side .form { grid-template-columns: 1fr; gap: 16px; }
.wa-pill { background: #1fa855 !important; border-color: #1fa855 !important; color: #fff !important; }
.wa-pill:hover { background: #17863f !important; border-color: #17863f !important; }
.mobile-cta { display: none; }
@media (max-width: 960px) {
  .side { position: static; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; gap: 8px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line); }
  .mobile-cta .pill { flex: 1; justify-content: center; }
  body.has-mcta .wa { display: none; }
  body.has-mcta .site-foot { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
}

/* Services */
.svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.svcs > div { padding: 30px 28px 34px 0; display: grid; gap: 12px; align-content: start; border-bottom: 1px solid var(--line); }
.svcs > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.svcs h3 { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.svcs p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 860px) { .svcs { grid-template-columns: 1fr; } .svcs > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } }
.noimg { display: grid; align-content: end; gap: 4px; padding: 22px; background: var(--band); border: 1px solid var(--line); }
.noimg .ni-t { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em; }
.noimg .ni-a { font-size: 15px; }
.noimg .ni-n { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 760px) { .filters { position: static; } .pgal .more { display: none; } .area .lab { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* ---- Mobile pass (estate) ---- */
.ehero .media .ph { position: absolute; inset: 0; display: block; }
.ehero .media .ph img { height: 110%; }
.lcard.paged { display: none; }
.more-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(36px, 5vw, 56px); text-align: center; }
.more-wrap[hidden] { display: none; }
@media (max-width: 860px) {
  .search select { font-size: 16px; min-height: 40px; padding-block: 6px; }
  .search .go { min-height: 48px; }
}
@media (max-width: 760px) {
  .filters select, .filters input { font-size: 16px; min-height: 44px; }
  .filters .reset { min-height: 44px; padding-inline: 0; }
  .ehero .inner { padding-top: 120px; padding-bottom: 92px; gap: 22px; }
  .ehero .media::after { background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.15) 26%, rgba(0,0,0,.35) 52%, rgba(0,0,0,.78)); }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  a.small { display: inline-block; padding-block: 10px; }
  .site-head .menu-btn { justify-content: flex-end; padding: 8px 0 8px 8px; }
}
