/* ==========================================================================
   New Estepona Homes — design tokens
   Belleza (display, uppercase) + Work Sans (body). Coral accent #FF6464 —
   the site's own established brand colour (verified against the approved
   static mockups and site.webmanifest's theme_color), NOT Costa Listings'
   teal. Stage 1: header/footer/breadcrumbs/buttons/single-development/
   archive-development only — homepage-specific sections (hero band, FAQ,
   area grid, stats) are added in stage 2.
   ========================================================================== */

:root {
	--coral:         #FF6464;
	--coral-hover:   #F14E4E;
	--ink:           #071F1B;
	--body-text:     #393939;
	--blush:         #FAF6F6;
	--border:        #E4DEDE;
	--muted:         #8A8582;
	--content-width: 1200px;

	--font-display: 'Belleza', sans-serif;
	--font-body:    'Work Sans', sans-serif;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--body-text);
	background: #fff;
	overflow-x: hidden;
	font-size: 16px;
	line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	text-transform: uppercase;
	color: var(--ink);
	margin: 0 0 0.5em;
	line-height: 1.2;
	letter-spacing: 0.5px;
}
h1 { font-size: 30px; letter-spacing: 1px; }
h2 { font-size: 22px; }
h3 { font-size: 15px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.nht-container { max-width: var(--content-width); margin: 0 auto; padding: 0 40px; }
.nht-rule { width: 36px; height: 2px; background: var(--coral); margin-bottom: 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.nht-btn {
	display: inline-block;
	background: var(--coral);
	color: #fff;
	padding: 12px 26px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
	font-family: var(--font-body);
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s linear;
	white-space: nowrap;
	text-align: center;
}
.nht-btn:hover { background: var(--coral-hover); }
.nht-btn-outline {
	display: inline-block;
	background: #fff;
	color: var(--ink);
	padding: 10px 20px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--border);
	cursor: pointer;
	white-space: nowrap;
}
.nht-btn-outline:hover { border-color: var(--ink); }

/* WhatsApp button — same pill shape as .nht-btn, WhatsApp's own green so it
   reads as a distinct channel rather than a second "primary" CTA competing
   with the enquiry form's submit button. */
.nht-btn-whatsapp {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	background: #25D366; color: #fff; margin-top: 10px; width: 100%;
}
.nht-btn-whatsapp:hover { background: #1EBE5A; }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.nht-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.nht-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; gap: 20px; max-width: var(--content-width); margin: 0 auto; }
.nht-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nht-logo-mark { display: block; flex-shrink: 0; }
.nht-logo-text { font-family: var(--font-display); letter-spacing: 1.5px; font-size: 24px; text-transform: uppercase; white-space: nowrap; color: var(--ink); }

.nht-primary-nav { margin-left: auto; }
.nht-nav-list { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nht-nav-list a { color: var(--body-text); text-decoration: none; }
.nht-nav-list a:hover { color: var(--coral); }

.nht-nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; }
.nht-nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ==========================================================================
   Page header (rule + H1 + subtitle)
   ========================================================================== */

.nht-page-header { padding-top: 44px; padding-bottom: 8px; }
.nht-page-header h1 { margin-bottom: 10px; }
.nht-page-header p { font-size: 14px; margin: 0; color: var(--muted); }
.nht-page-header p strong { color: var(--ink); font-weight: 600; }
.nht-intro-copy p { margin: 0 0 1em; font-size: 15px; color: var(--body-text); }

/* ==========================================================================
   Search / filter form (area + type only — see the theme audit)
   ========================================================================== */

.nht-search-form {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 20px;
	display: grid;
	grid-template-columns: 1.3fr 1.3fr auto;
	gap: 12px;
	align-items: end;
	margin: 24px 0 8px;
}
.nht-field { display: flex; flex-direction: column; gap: 6px; }
.nht-field label { font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.nht-field select {
	font-family: var(--font-body); font-size: 14px; color: var(--ink);
	border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; background: #fff;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23393939' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
.nht-field-submit { flex-direction: row; gap: 8px; }

/* ==========================================================================
   Results meta + grid
   ========================================================================== */

.nht-results-count { font-size: 13px; color: var(--muted); padding: 10px 0; margin: 0; }
.nht-results-count strong { color: var(--ink); }

.nht-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 40px; }
.nht-card {
	display: block; width: 100%; min-width: 0; box-sizing: border-box; text-decoration: none;
	border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff;
	transition: box-shadow 0.15s linear, transform 0.15s linear;
}
.nht-card:hover { box-shadow: 0 8px 24px rgba(7,31,23,0.08); transform: translateY(-2px); }
.nht-card-img { width: 100%; height: 180px; overflow: hidden; background-color: var(--blush); position: relative; }
.nht-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nht-card-sold-out .nht-card-img img { filter: grayscale(40%); }
.nht-card-body { padding: 16px 18px 18px; }
.nht-card-price { font-family: var(--font-display); font-size: 17px; color: var(--coral); margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.nht-card-title { font-family: var(--font-body); font-size: 15px; margin: 0 0 6px; color: var(--ink); line-height: 1.3; font-weight: 600; text-transform: none; }
.nht-card-meta { font-size: 12px; color: var(--muted); margin: 0; display: block; }
.nht-card-meta span:not(:last-child)::after { content: '\00b7'; margin: 0 6px; }

.nht-no-results { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ==========================================================================
   Pagination
   ========================================================================== */

.nht-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 0 60px; flex-wrap: wrap; }
.nht-pagination .page-numbers {
	min-width: 36px; height: 36px; border-radius: 9999px; border: 1px solid var(--border);
	background: #fff; color: var(--body-text); font-size: 13px;
	display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
}
.nht-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.nht-breadcrumbs { padding: 18px 0 0; }
.nht-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; padding: 0 40px; max-width: var(--content-width); margin: 0 auto; }
.nht-breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.nht-breadcrumbs li:not(:last-child)::after { content: '\203a'; margin-left: 6px; color: var(--muted); }
.nht-breadcrumbs a { color: var(--muted); }
.nht-breadcrumbs a:hover { color: var(--coral); }
.nht-breadcrumbs [aria-current] { color: var(--ink); }

/* ==========================================================================
   Single development page
   ========================================================================== */

.nht-development { padding: 8px 0 0; }
.nht-sold-banner {
	background: var(--blush); border: 1px solid var(--border); border-radius: 12px;
	padding: 14px 18px; font-size: 14px; margin: 16px 0;
}
.nht-sold-banner a { color: var(--coral); text-decoration: underline; }

.nht-development-head { padding: 8px 0 24px; }
.nht-eyebrow { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--coral); margin: 0 0 6px; font-weight: 600; }

.nht-pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.nht-pill-dark { background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 9999px; }
.nht-pill-light { background: var(--blush); color: var(--ink); font-size: 13px; font-weight: 400; padding: 8px 16px; border-radius: 9999px; border: 1px solid var(--border); }
.nht-price-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.nht-gallery { margin: 24px 0 8px; }
.nht-gallery-main {
	display: block; width: 100%; padding: 0; border: none; background: none;
	border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 8; position: relative;
}
.nht-gallery-main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nht-gallery-expand-hint {
	position: absolute; right: 16px; bottom: 16px;
	background: rgba(7,31,27,0.72); color: #fff; padding: 8px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 500; pointer-events: none;
}
.nht-sold-badge {
	position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff;
	padding: 6px 12px; border-radius: 8px; line-height: 1.3; z-index: 2;
}
.nht-sold-badge span { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.nht-sold-badge small { display: block; font-size: 10px; color: #cfd6d4; }
.nht-sold-badge-hero { top: 20px; left: 20px; padding: 10px 18px; }
.nht-sold-badge-hero span { font-size: 16px; }
.nht-sold-badge-hero small { font-size: 12px; }

.nht-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.nht-gallery-thumb { position: relative; padding: 0; border: none; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--blush); cursor: pointer; }
.nht-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nht-gallery-more { position: absolute; inset: 0; background: rgba(7,31,23,0.6); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; }

.nht-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7,31,23,0.94); display: flex; align-items: center; justify-content: center; }
.nht-lightbox[hidden] { display: none; }
.nht-lightbox-img { width: min(88vw, 1400px); height: min(84vh, 900px); object-fit: contain; border-radius: 4px; }
.nht-lightbox-close, .nht-lightbox-prev, .nht-lightbox-next {
	position: absolute; background: rgba(255,255,255,0.1); border: none; color: #fff;
	width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem;
	display: flex; align-items: center; justify-content: center;
}
.nht-lightbox-close:hover, .nht-lightbox-prev:hover, .nht-lightbox-next:hover { background: rgba(255,255,255,0.2); }
.nht-lightbox-close { top: 20px; right: 20px; }
.nht-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.nht-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.nht-lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #C7D2CD; font-size: 0.85rem; }

.nht-development-body { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 32px 0 48px; align-items: start; }
.nht-development-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.nht-development-section:last-child { border-bottom: none; margin-bottom: 0; }
.nht-development-description p { margin: 0 0 1em; color: var(--body-text); }

.nht-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nht-pill { background: #fff; color: var(--body-text); font-size: 13px; padding: 8px 16px; border-radius: 9999px; border: 1px solid var(--border); }

.nht-why-buy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.nht-why-buy-card { background: var(--blush); border-radius: 12px; padding: 20px 22px; }
.nht-why-buy-card h3 { font-size: 14px; margin-bottom: 8px; }
.nht-why-buy-card p { font-size: 14px; line-height: 1.6; margin: 0; color: var(--body-text); }

.nht-location-map { width: 100%; max-width: 640px; border-radius: 12px; margin-bottom: 18px; }

/* Sticky enquiry card */
.nht-enquiry-card { position: sticky; top: 100px; background: var(--blush); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.nht-enquiry-card h3 { margin-bottom: 8px; }
.nht-enquiry-card p:not(.nht-eyebrow) { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.nht-enquiry-card form { display: flex; flex-direction: column; gap: 10px; }
.nht-enquiry-card input { border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; font-size: 13px; background: #fff; font-family: var(--font-body); }
.nht-enquiry-card .nht-btn { margin-top: 4px; width: 100%; }
.nht-form-error { color: #b32d2e; font-size: 12px; margin: 4px 0 0; }
.nht-enquiry-privacy-note { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.nht-enquiry-privacy-note a { color: var(--muted); text-decoration: underline; }
.nht-enquiry-privacy-note a:hover { color: var(--coral); }

/* ==========================================================================
   Related developments ("You may also like")
   ========================================================================== */

.nht-section { padding: 48px 0; }
.nht-section-alt { background: var(--blush); }
.nht-section-head { margin-bottom: 28px; }
.nht-section-head p { font-size: 13px; color: var(--muted); margin: 0; }

.nht-related-card { display: block; text-decoration: none; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.nht-related-card-img { height: 160px; overflow: hidden; background-color: var(--blush); }
.nht-related-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nht-related-card-body { padding: 14px 16px 16px; }
.nht-related-card-title { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.nht-related-card-area { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.nht-related-card-price { font-size: 13px; color: var(--ink); font-weight: 600; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.nht-footer { background: var(--ink); color: #C7D2CD; padding: 56px 0 0; }
.nht-footer .nht-logo-text { color: #fff; font-size: 18px; }
.nht-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nht-footer-tagline { margin-top: 12px; font-size: 13px; max-width: 260px; color: #C7D2CD; }
.nht-footer h3.nht-eyebrow { color: #FF9B9B; font-size: 12px; margin-bottom: 12px; }
.nht-footer-col ul li { margin-bottom: 8px; }
.nht-footer-col ul.nht-footer-areas { columns: 2; column-gap: 16px; }
.nht-footer-col ul.nht-footer-areas li { break-inside: avoid; }
.nht-footer-col a { font-size: 13px; color: #C7D2CD; }
.nht-footer-col a:hover { color: #fff; }
.nht-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px 0; font-size: 12px; color: #6B7A76; }
.nht-company-notice { font-size: 11px; color: #6B7A76; padding-top: 16px; margin: 0; max-width: 820px; line-height: 1.6; }

/* ==========================================================================
   Basic pages
   ========================================================================== */

.nht-basic-article { max-width: 760px; margin: 0 auto; padding: 20px 0; }
.nht-post-thumb { margin: 20px 0; border-radius: 14px; overflow: hidden; }
.nht-page-content ul { list-style: disc; margin: 0 0 1.2em; padding-left: 1.3em; }
.nht-page-content ul li { margin-bottom: 0.4em; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.nht-header-inner { padding: 16px 24px; }
	.nht-container { padding: 0 24px; }
	.nht-breadcrumbs ol { padding: 0 24px; }
	.nht-results-grid { grid-template-columns: repeat(2, 1fr); }
	.nht-development-body { grid-template-columns: 1fr; }
	.nht-enquiry-card { position: static; }
	.nht-footer-grid { grid-template-columns: 1fr 1fr; }
	.nht-search-form { grid-template-columns: 1fr 1fr; }
	.nht-field-submit { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	.nht-nav-toggle { display: flex; }
	.nht-primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: #fff;
		border-bottom: 1px solid var(--border); display: none; padding: 16px 24px;
	}
	.nht-primary-nav.is-open { display: block; }
	.nht-nav-list { flex-direction: column; align-items: flex-start; gap: 16px; }
	.nht-search-form { grid-template-columns: 1fr; }
	.nht-results-grid { grid-template-columns: 1fr; }
	.nht-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
	.nht-why-buy-grid { grid-template-columns: 1fr; }
	.nht-footer-grid { grid-template-columns: 1fr; }
	.nht-header-inner { padding: 14px 16px; gap: 10px; }
	.nht-header-inner .nht-logo { min-width: 0; flex: 1 1 auto; }
	.nht-header-inner .nht-logo-text { font-size: 17px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
	.nht-header-inner .nht-logo-mark { flex-shrink: 0; width: 24px; height: 24px; }
}
