/* NE Properties — front end */
.nep-single, .nep-listing, .nep-grid, .nep-search, .nep-single * , .nep-listing * { box-sizing: border-box; }
.nep-single img, .nep-listing img, .nep-grid img { max-width: 100%; }
.nep-single, .nep-listing, .nep-grid, .nep-search {
	--nep-ink: var(--ne-ink, #141414);
	--nep-gold: var(--ne-gold, #C9973F);
	--nep-gold-text: var(--ne-gold-text, #8A6424);
	--nep-gold-light: var(--ne-gold-light, #D4A757);
	--nep-cream: var(--ne-cream, #F6F2EA);
	--nep-line: var(--ne-line, #E6E0D4);
	--nep-muted: var(--ne-muted, #5C5A55);
	--nep-head: var(--ne-font-head, inherit);
	--nep-radius: 8px;
}
.nep-hidden { display: none !important; }
.nep-ico { flex: none; vertical-align: middle; }
[dir="rtl"] .nep-arrow { display: inline-block; transform: scaleX(-1); }

/* Buttons */
.nep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 6px; font-family: var(--nep-head); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1px solid var(--nep-gold); background: var(--nep-gold); color: var(--nep-ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.nep-btn:hover, .nep-btn:focus-visible { background: #B5852F; border-color: #B5852F; color: var(--nep-ink); }
button.nep-btn, .nep-search .nep-btn { border-radius: 6px; }
.nep-btn--dark, .nep-search button.nep-btn--dark { background: var(--nep-ink); border-color: var(--nep-ink); color: #fff; }
.nep-btn--dark:hover, .nep-btn--dark:focus-visible, .nep-search button.nep-btn--dark:hover, .nep-search button.nep-btn--dark:focus { background: #2B2723; border-color: #2B2723; color: #fff; }
.nep-btn--line { background: transparent; border-color: var(--nep-ink); color: var(--nep-ink); }
.nep-btn--line:hover, .nep-btn--line:focus-visible { background: var(--nep-ink); color: #fff; }
.nep-btn--block { display: flex; width: 100%; }

/* Badges */
.nep-badges, .nep-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.nep-badge { display: inline-block; background: var(--nep-gold); color: var(--nep-ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; line-height: 1.3; }
.nep-badge--dark { background: var(--nep-ink); color: #fff; }
.nep-badge--line { background: transparent; border: 1px solid #D5CCBA; color: var(--nep-ink); }
.nep-badge--sold { background: #9E2B25; color: #fff; }
.nep-badge--booked { background: #2F4D7A; color: #fff; }
[dir="rtl"] .nep-badge { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* Grid + card */
.nep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.nep-card { background: #fff; border-radius: var(--nep-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--nep-line), 0 0 0 1px rgba(20,20,20,.04); transition: transform .25s, box-shadow .25s; }
.nep-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20,20,20,.10), 0 0 0 1px rgba(20,20,20,.04); }
.nep-card__media { position: relative; display: block; aspect-ratio: 16 / 11; background: #2B2723; overflow: hidden; }
.nep-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.nep-card:hover .nep-card__media img { transform: scale(1.04); }
.nep-card__badges { position: absolute; top: 14px; inset-inline-start: 14px; }
.nep-card__count { position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex; gap: 5px; align-items: center; background: rgba(20,20,20,.75); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; }
.nep-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 16px); }
.nep-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nep-card__type { font-size: 13px; font-weight: 700; color: var(--nep-gold-text); }
.nep-card__title { font-family: var(--nep-head); font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0; color: var(--nep-ink); }
.nep-card__title a { color: inherit; text-decoration: none; }
.nep-card__title a:hover { color: var(--nep-gold-text); }
.nep-card__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--nep-muted); }
.nep-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #3A3833; border-top: 1px solid #EEE8DC; padding-top: 12px; margin-top: 8px; }
.nep-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.nep-card__meta .nep-ico { color: var(--nep-gold-text); }
.nep-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.nep-card__price { font-family: var(--nep-head); font-weight: 800; font-size: 19px; color: var(--nep-ink); }
.nep-card__more { font-size: 14px; font-weight: 700; color: var(--nep-gold-text); text-decoration: none; white-space: nowrap; }
.nep-card.is-sold .nep-card__media img { filter: grayscale(.7); }
.nep-empty { color: var(--nep-muted); }

/* Search */
.nep-search { background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(20,20,20,.12); padding: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; align-items: end; }
.nep-search label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.nep-search label > span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nep-muted); }
[dir="rtl"] .nep-search label > span { letter-spacing: 0; font-size: 14px; }
.nep-search select, .nep-sort select { width: 100%; min-height: 48px; border: 1px solid #DDD5C5; border-radius: 6px; padding: 10px 12px; font-size: 15px; background: #fff; color: var(--nep-ink); }
.nep-search .nep-btn { width: 100%; }
.nep-search--compact { box-shadow: none; border: 1px solid var(--nep-line); }

.nep-toolbar > * { min-width: 0; max-width: 100%; }
.nep-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.nep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nep-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid #DDD5C5; background: #fff; color: var(--nep-ink); font-family: var(--nep-head); font-weight: 700; font-size: 14px; text-decoration: none; }
.nep-chip:hover { border-color: var(--nep-ink); color: var(--nep-ink); }
.nep-chip.is-active { background: var(--nep-ink); border-color: var(--nep-ink); color: #fff; }
.nep-sort label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--nep-muted); }
.nep-sort select { width: auto; min-height: 44px; }
.nep-count { font-size: 14px; color: var(--nep-muted); margin: 18px 0 20px; }
.nep-count strong { color: var(--nep-ink); }
.nep-empty-box { background: #fff; border-radius: var(--nep-radius); padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nep-pagination { margin-top: 44px; }
.nep-pagination ul { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; }
.nep-pagination a, .nep-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 6px; border: 1px solid #DDD5C5; background: #fff; color: var(--nep-ink); font-weight: 700; text-decoration: none; }
.nep-pagination .current { background: var(--nep-ink); border-color: var(--nep-ink); color: #fff; }

/* Single */
.nep-single { background: #fff; color: var(--nep-ink); }
.nep-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 24px 96px; }
.nep-crumbs { font-size: 14px; color: var(--nep-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.nep-crumbs a { color: inherit; text-decoration: none; }
.nep-crumbs a:hover { color: var(--nep-gold-text); }
.nep-crumbs [aria-current] { color: var(--nep-gold-text); font-weight: 700; }
.nep-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 18px; }
.nep-title { font-family: var(--nep-head); font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 8px; color: var(--nep-ink); }
.nep-loc { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--nep-muted); margin: 0; }
.nep-loc .nep-ico { color: var(--nep-gold-text); }
.nep-head__price { text-align: end; display: flex; flex-direction: column; }
.nep-price-label { font-size: 13px; color: var(--nep-muted); }
.nep-price { font-family: var(--nep-head); font-weight: 800; font-size: clamp(24px, 3vw, 34px); }
.nep-price-sub { font-size: 14px; font-weight: 700; color: var(--nep-gold-text); }

.nep-gallery { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 17vw, 230px); }
.nep-gallery__item { position: relative; display: block; border-radius: var(--nep-radius); overflow: hidden; background: #2B2723; }
.nep-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.nep-gallery__item:hover img { transform: scale(1.03); }
.nep-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.nep-gallery--1 { grid-template-columns: 1fr; grid-auto-rows: clamp(240px, 40vw, 520px); }
.nep-gallery--1 .nep-gallery__item:first-child { grid-column: auto; grid-row: auto; }
.nep-gallery--2 .nep-gallery__item:nth-child(2), .nep-gallery--3 .nep-gallery__item:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.nep-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,20,20,.45); color: #fff; font-weight: 700; }

.nep-layout { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; align-items: flex-start; }
.nep-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.nep-aside { flex: 1 1 320px; min-width: 0; position: sticky; top: 110px; }
.nep-block h2, .nep-similar h2 { font-family: var(--nep-head); font-weight: 800; font-size: 28px; margin: 0 0 14px; color: inherit; }
.nep-content { font-size: 16px; line-height: 1.75; color: #3A3833; }
.nep-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--nep-line); border-radius: var(--nep-radius); margin: 0; }
.nep-facts > div { padding: 18px 20px; border-inline-end: 1px solid var(--nep-line); }
.nep-facts > div:last-child { border-inline-end: 0; }
.nep-facts dt { font-size: 12px; color: var(--nep-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
[dir="rtl"] .nep-facts dt { text-transform: none; letter-spacing: 0; font-size: 14px; }
.nep-facts dd { font-family: var(--nep-head); font-weight: 800; font-size: 22px; margin: 4px 0 0; }
.nep-sizes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.nep-sizes li { border: 1px solid #DDD5C5; border-radius: 6px; padding: 10px 18px; font-weight: 700; }
.nep-plan { background: var(--nep-ink); color: #fff; border-radius: 10px; padding: 32px; }
.nep-plan__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.nep-plan__head h2 { margin: 0; color: #fff; }
.nep-plan__head span { font-size: 14px; color: #B5AFA4; }
.nep-plan__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 22px 0 0; }
.nep-plan__grid > div { border: 1px solid #34302B; border-radius: 8px; padding: 18px; }
.nep-plan__grid dt { font-size: 13px; color: #B5AFA4; }
.nep-plan__grid dd { font-family: var(--nep-head); font-weight: 800; font-size: 24px; color: var(--nep-gold-light); margin: 4px 0 0; }
.nep-plan__note { font-size: 13px; color: #B5AFA4; margin: 16px 0 0; }
.nep-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.nep-features li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.nep-features .nep-ico { color: #B8893D; }
.nep-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 32px; margin: 0; font-size: 15px; }
.nep-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EEE8DC; }
.nep-details dt { color: var(--nep-muted); }
.nep-details dd { margin: 0; font-weight: 700; text-align: end; }
.nep-map { width: 100%; height: clamp(260px, 40vw, 420px); border-radius: var(--nep-radius); overflow: hidden; background: var(--nep-cream); }
.nep-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.nep-contact { border: 1px solid var(--nep-line); border-radius: 10px; padding: 26px; box-shadow: 0 20px 50px rgba(20,20,20,.08); display: flex; flex-direction: column; gap: 14px; background: #fff; }
.nep-contact__who { display: flex; align-items: center; gap: 12px; }
.nep-contact__who strong { display: block; font-family: var(--nep-head); font-size: 17px; }
.nep-contact__who span { font-size: 13px; color: var(--nep-muted); }
.nep-contact__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--nep-ink); color: var(--nep-gold-light) !important; display: grid; place-items: center; font-family: var(--nep-head); font-weight: 800; font-size: 19px !important; flex: none; }
.nep-or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--nep-muted); text-transform: uppercase; letter-spacing: .1em; }
.nep-or::before, .nep-or::after { content: ""; flex: 1; height: 1px; background: var(--nep-line); }
[dir="rtl"] .nep-or { text-transform: none; letter-spacing: 0; font-size: 14px; }
.nep-contact__office { font-size: 13px; color: var(--nep-muted); line-height: 1.6; margin: 0; }
.nep-similar { margin-top: 72px; }
.nep-similar__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.nep-similar__head h2 { margin: 0; }
.nep-similar__head a { font-family: var(--nep-head); font-weight: 700; color: var(--nep-ink); text-decoration: none; border-bottom: 2px solid var(--nep-gold); padding-bottom: 4px; }

/* Lightbox */
.nep-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,10,.94); display: flex; align-items: center; justify-content: center; }
.nep-lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.nep-lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.nep-lb button:hover, .nep-lb button:focus-visible { background: rgba(255,255,255,.25); }
.nep-lb__close { top: 20px; right: 20px; }
.nep-lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.nep-lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
.nep-lb__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 14px; }

@media (max-width: 767px) {
	.nep-wrap { padding: 20px 16px 64px; }
	.nep-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
	.nep-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
	.nep-gallery__item:nth-child(n+4) { display: none; }
	.nep-head__price { text-align: start; }
	.nep-aside { position: static; }
	.nep-plan { padding: 22px; }
	.nep-facts > div { border-inline-end: 0; border-bottom: 1px solid var(--nep-line); }
	.nep-toolbar { flex-direction: column; align-items: stretch; }
	.nep-chips { flex-wrap: wrap; gap: 6px; }
	.nep-chip { min-height: 40px; padding: 6px 14px; font-size: 13px; }
	.nep-sort label { justify-content: space-between; }
	.nep-sort select { flex: 1; min-width: 0; }
	.nep-search { padding: 16px; }
	.nep-head__price { align-items: flex-start; }
	.nep-details > div { flex-wrap: wrap; }
}
