/* Ashford & Vale Estates - Layout CSS */

/* ==========================================================
   Ashford & Vale Estates — Nav bar polish v3
   ========================================================== */

.site-header {
	background: var(--color-primary, #1F3B33);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(176, 141, 87, 0.35); /* thin brass hairline under header */
}
.site-header__inner {
	max-width: var(--container-max, 1280px);
	margin: 0 auto;
	height: var(--header-height, 76px);
	padding: 0 var(--container-padding, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	position: relative;
}

/* ---------- Logo ---------- */
.site-logo {
	font-family: var(--font-display, 'Fraunces', Georgia, serif);
	font-size: 21px;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: 0.3px;
	white-space: nowrap;
}
.site-logo .amp { color: var(--color-accent, #B08D57); font-style: italic; }

/* ---------- Nav links ---------- */
.main-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1;
	justify-content: center;
}
.main-nav a {
	position: relative;
	color: rgba(247, 244, 238, 0.88);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	white-space: nowrap;
	padding: 6px 0;
	transition: color 0.2s ease;
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--color-accent, #B08D57);
	transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav a:hover { color: #FFFFFF; }
.main-nav a:hover::after { width: 100%; }
.main-nav a.is-active { color: var(--color-accent, #B08D57); }
.main-nav a.is-active::after { width: 100%; }

.main-nav__actions-mobile { display: none; }

/* ---------- Header actions (Saved + Request Valuation v3) ---------- */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

/* Saved button v3 */
.saved-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px 9px 14px;
	border: 1.5px solid rgba(247, 244, 238, 0.3);
	border-radius: 999px;
	background: rgba(247, 244, 238, 0.04);
	color: var(--color-text-inverse, #ffffff);
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.saved-pill:hover {
	border-color: var(--color-accent, #B08D57);
	background: rgba(176, 141, 87, 0.15);
	transform: translateY(-1px);
}
.saved-pill:active { transform: translateY(0) scale(0.97); }

.saved-pill svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.saved-pill svg path {
	stroke: var(--color-accent, #B08D57);
	fill: none;
	transition: fill 0.15s ease;
}
.saved-pill:hover svg { transform: scale(1.12); }

/* Filled heart once at least one property is saved */
.saved-pill.has-items svg path {
	fill: var(--color-accent, #B08D57);
}

/* Count badge — small solid circle */
.saved-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--color-accent, #B08D57);
	color: #1A1D1B;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}
.saved-pill:not(.has-items) .saved-count {
	background: rgba(247, 244, 238, 0.18);
	color: rgba(247, 244, 238, 0.75);
}

/* ---------- Request Valuation button v3 ---------- */
.btn--valuation {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-accent, #B08D57);
	color: #FFFFFF !important;
	border: none;
	border-radius: 999px;
	padding: 11px 22px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn--valuation::after {
	content: "\2192"; /* → */
	font-size: 14px;
	transition: transform 0.15s ease;
}
.btn--valuation:hover {
	background: #8F7143;
	box-shadow: 0 6px 18px rgba(176, 141, 87, 0.45);
	transform: translateY(-1px);
}
.btn--valuation:hover::after { transform: translateX(3px); }
.btn--valuation:active { transform: translateY(0) scale(0.97); }
.btn--valuation:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* ---------- Hamburger button (hidden on desktop) ---------- */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 101;
}
.nav-toggle span {
	display: block;
	height: 2px;
	width: 24px;
	background: #ffffff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Drawer styles ---------- */
.drawer-overlay.open {
	opacity: 1 !important;
	pointer-events: auto !important;
}
.favourites-drawer.open {
	right: 0 !important;
}

/* ---------- Mobile breakpoint ---------- */
@media (max-width: 1024px) {
	.site-header__actions { display: none; }
	.nav-toggle { display: flex; }

	.main-nav {
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		background: #1F3B33;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
		border-top: 1px solid rgba(247, 244, 238, 0.1);
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	}
	.main-nav.is-open {
		max-height: 520px;
	}
	.main-nav a {
		width: 100%;
		padding: 16px 24px;
		border-bottom: 1px solid rgba(247, 244, 238, 0.08);
		opacity: 1;
		font-size: 14px;
	}
	.main-nav__actions-mobile {
		display: flex;
		flex-direction: column;
		gap: 12px;
		width: 100%;
		padding: 20px 24px 28px 24px;
	}
	.main-nav__actions-mobile .btn--valuation { width: 100%; justify-content: center; text-align: center; }
	.main-nav__actions-mobile .saved-pill {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.site-logo { font-size: 18px; }
	.site-header__inner { padding: 0 16px; }
}

/* Prevent page scroll while mobile menu is open */
body.nav-open { overflow: hidden; }

/* Filter Bar Widget */
.filter-bar-box {
  background: var(--color-bg-surface, #ffffff);
  border-radius: var(--radius-lg, 20px);
  padding: var(--space-6, 24px);
  box-shadow: var(--shadow-xl, 0 10px 30px rgba(0,0,0,0.1));
  color: var(--color-text-main, #1A1D1B);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: var(--space-4, 16px);
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

.filter-group label {
  font-size: var(--text-xs, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary, #1F3B33);
}

.filter-group input,
.filter-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border, #E1DACD);
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-sans, sans-serif);
  font-size: var(--text-sm, 14px);
  background-color: var(--color-bg-main, #F7F4EE);
  color: var(--color-text-main, #1A1D1B);
  width: 100%;
}
