/*
Theme Name:        EstateSite Classic
Theme URI:         https://estatesite.eu
Author:            Estate Site
Author URI:        https://estatesite.eu
Description:       A real-estate WordPress theme. Presentation layer for the EstateSite Core plugin — handles templates, layouts, and styling. Requires EstateSite Core. Works without Elementor; full Elementor theme-builder support optional.
Version:           1.0.2
Requires at least: 6.4
Tested up to:      6.7
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       estatesite-classic
Tags:              real-estate, business, two-columns, custom-menu, featured-images, translation-ready
*/

/* ========================================================================
   Phase 0 baseline styles — minimal but presentable.
   Replaced/extended in Phase 3 when full template-parts are ported.
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #2d3748;
	background: #f7fafc;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ----- layout ----- */
.esc-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.esc-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.esc-main {
	flex: 1;
	padding: 2rem 0;
}

/* ----- header ----- */
.esc-header {
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	padding: 1rem 0;
}

.esc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.esc-header__brand {
	font-weight: 700;
	font-size: 1.25rem;
	color: #1a202c;
}

.esc-header__brand:hover { text-decoration: none; }

.esc-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.esc-nav a {
	color: #4a5568;
	font-weight: 500;
}

/* ----- footer ----- */
.esc-footer {
	background: #1a202c;
	color: #cbd5e0;
	padding: 2rem 0;
	margin-top: 4rem;
	font-size: 0.9rem;
}

.esc-footer a { color: #90cdf4; }

/* ----- content ----- */
.esc-content {
	background: #fff;
	padding: 2rem;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.esc-content h1, .esc-content h2, .esc-content h3 {
	color: #1a202c;
	line-height: 1.3;
}

/* ----- property archive grid ----- */
.esc-property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	padding: 0;
	list-style: none;
}

.esc-property-card {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.esc-property-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.esc-property-card__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #edf2f7;
}

.esc-property-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.esc-property-card__body {
	padding: 1rem 1.25rem 1.25rem;
}

.esc-property-card__title {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: #1a202c;
}

.esc-property-card__title a { color: inherit; }

.esc-property-card__price {
	color: #2563eb;
	font-weight: 600;
	font-size: 1.1rem;
	margin: 0.25rem 0 0.75rem;
}

.esc-property-card__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
	color: #718096;
	flex-wrap: wrap;
}

.esc-property-card__meta span { display: inline-flex; align-items: center; gap: 0.25rem; }

/* ----- single property ----- */
.esc-property-header { margin-bottom: 1.5rem; }
.esc-property-title  { margin: 0 0 0.5rem; font-size: 1.75rem; }
.esc-property-price  { color: #2563eb; font-size: 1.5rem; font-weight: 600; }

.esc-property-featured-image {
	margin: 0 0 1.5rem;
	border-radius: 6px;
	overflow: hidden;
}

.esc-property-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
	background: #f7fafc;
	padding: 1rem 1.5rem;
	border-radius: 6px;
	margin: 1.5rem 0;
}

.esc-property-meta-grid dt { font-size: 0.8rem; color: #718096; text-transform: uppercase; letter-spacing: 0.05em; }
.esc-property-meta-grid dd { margin: 0.25rem 0 0; font-weight: 500; color: #1a202c; }

/* ----- notice banner (phase 0 indicator) ----- */
.esc-phase-banner {
	background: #fffaf0;
	border: 1px solid #fbd38d;
	color: #744210;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}
