/* ==========================================================
   Ashford & Vale Estates — Ultra-Luxury Homepage & Footer Styling
   Matches the Modern Luxury Architectural Mockup Design
   ========================================================== */

/* ---------- Base section container ---------- */
.section {
	max-width: 1280px;
	margin: 0 auto;
	padding: 80px var(--container-padding, 24px);
}
.section--alt { background: #F0EBE2; max-width: none; }
.section--alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section--alt { padding-left: 0; padding-right: 0; }
.section--alt .section__head,
.section--alt .agent-row,
.section--alt .faq-list { padding-left: var(--container-padding, 24px); padding-right: var(--container-padding, 24px); }

/* ---------- 2-Column Split Valuation Page ---------- */
.valuation-page--split {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 32px;
	align-items: stretch;
}

@media (max-width: 1024px) {
	.valuation-page--split { grid-template-columns: 1fr; }
	.valuation-page__image { min-height: 260px !important; order: -1; }
}

.section__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}
.section__head h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 32px;
	color: #1F3B33;
	margin: 4px 0 0;
}
.section .eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #B08D57;
	margin: 0;
}

/* ---------- Property Card & 3-Column Grid Fix ---------- */
.property-card {
	background: #ffffff;
	border: 1px solid #E1DACD;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.property-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.property-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;      /* fixes the "full-bleed huge image" bug */
	overflow: hidden;
	background: #F0EBE2;
}
.property-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;        /* crops instead of stretching */
	display: block;
	transition: transform 0.4s ease;
}
.property-card:hover .property-card__media img { transform: scale(1.05); }

.property-card__media-placeholder {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #E1DACD, #E1DACD 10px, #F0EBE2 10px, #F0EBE2 20px);
}

.status-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
	background: #1F3B33;
}
.status-pill--forsale { background: #3E7457; }
.status-pill--tolet { background: #3E6E8E; }
.status-pill--underoffer { background: #C79A3C; }
.status-pill--sold { background: #A24A3B; }

.property-card__save {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(0,0,0,0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1F3B33;
	cursor: pointer;
	z-index: 3;
	transition: all 0.2s ease;
}
.property-card__save:hover { color: #A24A3B; transform: scale(1.1); background: #ffffff; }
.property-card__save.is-saved { color: #A24A3B; background: #ffffff; }
.property-card__save.is-saved svg { fill: currentColor; }

.property-card__body { padding: 20px; }
.property-card__link { text-decoration: none; color: inherit; display: block; }

.property-card__price {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: #1F3B33;
	margin: 0 0 6px;
}
.property-card__title {
	font-size: 15px;
	font-weight: 600;
	color: #1F3B33;
	margin: 0 0 4px;
	line-height: 1.4;
}
.property-card__address {
	font-size: 13px;
	color: #5B6058;
	margin: 0 0 12px;
}
.property-card__specs {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: #5B6058;
	margin: 0;
	border-top: 1px solid #E1DACD;
	padding-top: 12px;
}
.property-card__specs span:not(:last-child)::after { content: "\00b7"; margin-left: 12px; color: #B08D57; font-weight: bold; }

/* Grid container */
.property-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
}
@media (max-width: 992px) {
	.property-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.property-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Map section ---------- */
.section--map {
	padding-top: 20px;
}
.map-preview-wrap {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid #E1DACD;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.map-preview {
	width: 100%;
	height: 460px;
	background: #F0EBE2; /* shows while tiles load */
}

/* Legend / stat chip floating over the map, bottom-left */
.map-preview-legend {
	position: absolute;
	left: 20px;
	bottom: 20px;
	background: #ffffff;
	border: 1px solid #E1DACD;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #1F3B33;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	z-index: 10; /* stays above Leaflet's own layers, below the site header */
}
.map-preview-legend span {
	color: #B08D57;
	font-weight: 800;
}

/* Leaflet's own controls (zoom +/-) restyled to match brand */
.leaflet-control-zoom a {
	color: #1F3B33 !important;
	border-radius: 6px !important;
}
.leaflet-container {
	font-family: 'Inter', sans-serif !important;
	border-radius: 24px;
	z-index: 1;
}

/* ---------- Hero section itself ---------- */
.hp-hero, .hero {
    position: relative;
    padding: 100px var(--container-padding, 24px) 80px var(--container-padding, 24px);
    background: linear-gradient(180deg, rgba(20, 40, 34, 0.75) 0%, rgba(31, 59, 51, 0.85) 100%), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #ffffff;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    max-width: 100%;
}

.hp-hero-badge {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
}

.hp-hero-title, .hero__title {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 auto 20px auto;
    color: #ffffff;
    max-width: 780px;
}

.hp-hero-subtitle, .hero__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
	.hp-hero, .hero { padding: 60px 16px; }
	.hp-hero-title, .hero__title { font-size: 32px; }
	.hp-hero-subtitle, .hero__subtitle { font-size: 15px; margin-bottom: 24px; }
}
@media (max-width: 480px) {
	.hp-hero-title, .hero__title { font-size: 26px; }
}

/* ---------- Floating Search Bar & Filter Container ---------- */
.hp-search-card, .filter-bar--hero {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: #1A1D1B;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .hp-search-card, .filter-bar--hero {
        width: 72% !important;
        max-width: 880px !important;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
	.hp-search-card, .filter-bar--hero {
		padding: 18px 20px;
		border-radius: 16px;
	}
}

/* ---------- Status tabs — horizontally scrollable below tablet ---------- */
.hp-search-tabs, .filter-bar__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E1DACD;
    padding-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hp-search-tabs::-webkit-scrollbar, .filter-bar__tabs::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
	.hp-search-tabs, .filter-bar__tabs {
		gap: 6px;
		padding-bottom: 10px;
		margin-bottom: 16px;
	}
	.hp-search-tab, .filter-bar__tabs button {
		padding: 7px 14px;
		font-size: 12px;
		flex-shrink: 0;
	}
}

.hp-search-tab, .filter-bar__tabs button {
    background: none;
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    color: #5B6058;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hp-search-tab.active, .hp-search-tab:hover, .filter-bar__tabs button.is-active, .filter-bar__tabs button:hover {
    background: #1F3B33;
    color: #ffffff;
}

/* ---------- Fields grid ---------- */
.hp-search-form, .filter-bar__fields {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr max-content;
    gap: 16px;
    align-items: flex-end;
    width: 100%;
    box-sizing: border-box;
}

.hp-search-field, .field-group {
    display: flex;
    flex-direction: column;
}

.hp-search-field label, .field-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5B6058;
    margin-bottom: 6px;
}

.hp-search-field input, .hp-search-field select, .field-group input, .field-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E1DACD;
    border-radius: 10px;
    background: #F7F4EE;
    font-size: 13px;
    color: #1A1D1B;
    outline: none;
    box-sizing: border-box;
    transition: border 0.2s ease;
}

.hp-search-field input:focus, .hp-search-field select:focus, .field-group input:focus, .field-group select:focus {
    border-color: #B08D57;
    background: #ffffff;
}

/* ---------- Search button ---------- */
.hp-search-btn, .btn--search {
    background: #1F3B33;
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap !important;
    min-width: 200px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(31, 59, 51, 0.3);
}

.hp-search-btn:hover, .btn--search:hover {
    background: #B08D57;
    box-shadow: 0 6px 18px rgba(176, 141, 87, 0.45);
    transform: translateY(-2px);
}

.hp-search-btn:active, .btn--search:active {
    transform: translateY(0) scale(0.97);
}

/* Responsive grid overrides & mobile zoom prevention */
@media (max-width: 900px) {
	.hp-search-form, .filter-bar__fields {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.hp-search-btn, .btn--search {
		grid-column: span 2;
		width: 100%;
		min-width: 0 !important;
	}
}

@media (max-width: 560px) {
	.hp-search-form, .filter-bar__fields {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.hp-search-btn, .btn--search {
		grid-column: span 1;
		width: 100%;
		min-width: 0 !important;
	}
	.hp-search-field input, .hp-search-field select, .field-group input, .field-group select {
		width: 100%;
		box-sizing: border-box;
		font-size: 16px; /* iOS Safari auto-zoom prevention */
	}
}

/* ---------- Global safety net ---------- */
.hero, .hp-hero, .filter-bar--hero, .hp-search-card, .filter-bar__fields, .hp-search-form, .field-group, .hp-search-field {
	max-width: 100%;
}

/* Feature Showcase Grid Section */
.hp-showcase-section {
    padding: 90px 0;
    background: #F7F4EE;
}

.hp-showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hp-featured-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.hp-featured-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hp-featured-card:hover img {
    transform: scale(1.03);
}

.hp-featured-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hp-featured-price {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #1F3B33;
}

.hp-side-card {
    background: #ffffff;
    border: 1px solid #E1DACD;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.25s ease;
}

.hp-side-card:hover {
    transform: translateY(-3px);
}

/* Stats Counter Bar */
.hp-stats-bar {
    background: #ffffff;
    border-y: 1px solid #E1DACD;
    padding: 50px 0;
}

.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.hp-stat-item {
    position: relative;
    padding: 0 20px;
}

.hp-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #E1DACD;
}

.hp-stat-number {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    color: #1F3B33;
    margin-bottom: 6px;
}

.hp-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #5B6058;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Interactive Map Section */
.hp-map-banner {
    padding: 90px 0;
    background: #ffffff;
}

.hp-map-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hp-map-preview {
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #E1DACD;
}

/* Property Collection Grid */
.hp-collection {
    padding: 90px 0;
    background: #F7F4EE;
}

.hp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.hp-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 38px;
    font-weight: 700;
    color: #1F3B33;
    margin: 6px 0 0 0;
}

.hp-btn-pill {
    background: #1F3B33;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hp-btn-pill:hover {
    background: #B08D57;
}

/* FAQ Accordion Section */
.hp-faq-section {
    padding: 90px 0;
    background: #ffffff;
}

.hp-faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
	background: var(--color-surface, #ffffff);
	border: 1px solid var(--color-border, #E1DACD);
	border-radius: 12px;
	margin-bottom: 14px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 24px;
	font-weight: 600;
	font-size: 16px;
	color: #1F3B33;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'Fraunces', Georgia, serif;
	transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "";
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	margin-left: 12px;
	border-right: 2.5px solid #B08D57;
	border-bottom: 2.5px solid #B08D57;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { background: #F7F4EE; border-bottom: 1px solid #E1DACD; }
.faq-item p { padding: 16px 24px 20px; font-size: 14px; color: #5B6058; margin: 0; line-height: 1.6; }

/* Empty State Card v2 */
.empty-state {
	background: #ffffff;
	border: 1px solid #E1DACD;
	border-radius: 20px;
	padding: 64px 32px;
	text-align: center;
	position: relative;
	overflow: hidden;
	grid-column: 1 / -1;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.empty-state::before {
	content: "";
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(176,141,87,0.12) 0%, rgba(176,141,87,0) 70%);
}

.empty-state__icon {
	position: relative;
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #F7F4EE;
	border: 1px solid #E1DACD;
	display: flex;
	align-items: center;
	justify-content: center;
}
.empty-state__icon svg { width: 28px; height: 28px; stroke: #B08D57; }

.empty-state h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 24px;
	color: #1F3B33;
	margin: 0 0 10px;
	position: relative;
}

.empty-state p {
	font-size: 15px;
	color: #5B6058;
	max-width: 48ch;
	margin: 0 auto 24px;
	line-height: 1.6;
	position: relative;
}

.empty-state__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
}

@media (max-width: 480px) {
	.empty-state { padding: 40px 16px; }
	.empty-state h3 { font-size: 20px; }
	.map-preview { height: 320px; }
	.section__head { align-items: flex-start; }
}

/* Testimonial Section */
.hp-testimonial-section {
    padding: 90px 0;
    background: #F7F4EE;
}

.hp-testimonial-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #E1DACD;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.hp-testimonial-avatar {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
}

.hp-quote-text {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-style: italic;
    color: #1F3B33;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* CTA Overlay Banner */
.hp-cta-banner {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, rgba(20, 40, 34, 0.8) 0%, rgba(31, 59, 51, 0.88) 100%), url('https://images.unsplash.com/photo-1613977257363-707ba9348227?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    border-radius: 32px;
    margin: 60px 24px;
    overflow: hidden;
}

.hp-cta-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

/* 4-Column Footer */
.site-footer {
	background: #1F3B33;
	color: #F7F4EE;
	margin-top: 80px;
	border-top: 4px solid #B08D57;
}
.site-footer__top {
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 24px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: 40px;
}
.footer-col h4 {
	color: #B08D57;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
	color: rgba(247, 244, 238, 0.8);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}
.footer-col a:hover { color: #B08D57; text-decoration: underline; }
.footer-logo { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 700; margin-bottom: 12px; color: #ffffff; }
.footer-logo .amp { color: #B08D57; }
.footer-tagline { font-size: 13px; color: rgba(247, 244, 238, 0.75); line-height: 1.6; max-width: 36ch; }
.footer-col address { font-style: normal; font-size: 14px; color: rgba(247, 244, 238, 0.85); margin-bottom: 12px; line-height: 1.6; }
.footer-col p { font-size: 14px; margin-bottom: 6px; }

.site-footer__bottom {
	border-top: 1px solid rgba(247, 244, 238, 0.15);
	padding: 20px 24px;
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
	color: rgba(247, 244, 238, 0.6);
}

/* Hover elevation polish */
.property-card, .agent-card, .testimonial-card {
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.btn { transition: background 0.2s ease, transform 0.2s ease; }
.btn:active { transform: scale(0.98); }

@media (max-width: 992px) {
    .hp-showcase-grid, .hp-map-grid, .hp-testimonial-card { grid-template-columns: 1fr; }
    .hp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stat-item::after { display: none; }
}
