/* ============================================
   ESTATERATE — SEO PAGES STYLESHEET
   ============================================ */

/* BREADCRUMBS */
.breadcrumb {
  padding: 0.75rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e8e6e1;
  font-size: 13px;
  color: #999;
}
.breadcrumb-inner { max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: #1D9E75; }
.breadcrumb span { color: #ccc; }

/* POSTCODE HERO */
.postcode-hero {
  background: #0f1a14;
  padding: 3rem 2rem;
  position: relative; overflow: hidden;
}
.postcode-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(29,158,117,0.2) 0%, transparent 70%);
}
.postcode-hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.postcode-hero h1 { font-size: clamp(26px, 4vw, 40px); color: #fff; margin-bottom: 0.5rem; }
.postcode-hero p { color: rgba(255,255,255,0.55); font-size: 15px; max-width: 560px; line-height: 1.7; margin-bottom: 1.5rem; }
.postcode-stats-strip {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}
.pstat { text-align: center; }
.pstat-num { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; color: #fff; }
.pstat-lbl { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.pstat-divider { width: 1px; background: rgba(255,255,255,0.1); }

/* POSTCODE TABS */
.postcode-tabs {
  background: #fff;
  border-bottom: 1px solid #e8e6e1;
  padding: 0 2rem;
}
.postcode-tabs-inner { max-width: 880px; margin: 0 auto; display: flex; gap: 0; }
.ptab-link {
  padding: 12px 20px; font-size: 14px; font-weight: 500; color: #888;
  border-bottom: 2px solid transparent; text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: all 0.15s;
  white-space: nowrap;
}
.ptab-link:hover { color: #1a1a1a; }
.ptab-link.active { color: #1D9E75; border-bottom-color: #1D9E75; }

/* DATA TABLES */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #999; font-weight: 500; border-bottom: 1px solid #e8e6e1; }
.data-table td { padding: 12px; border-bottom: 1px solid #f5f4f1; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafaf8; }
.data-table .rank { font-size: 12px; color: #ccc; font-weight: 500; }
.data-table .agent-cell { display: flex; align-items: center; gap: 10px; }
.data-table .mini-av { width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.data-table .fee-pill { display: inline-block; background: #f5f4f1; border-radius: 20px; padding: 2px 8px; font-size: 12px; font-weight: 500; }
.data-table .good { color: #1D9E75; }
.data-table .warn { color: #BA7517; }

/* MARKET DATA CARDS */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.market-card { background: #fff; border: 1px solid #e8e6e1; border-radius: 13px; padding: 1.25rem; }
.market-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #999; font-weight: 500; margin-bottom: 0.5rem; }
.market-card-value { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: #1a1a1a; margin-bottom: 2px; }
.market-card-sub { font-size: 12px; color: #999; }
.market-card-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; margin-top: 4px; }
.trend-up { color: #1D9E75; }
.trend-down { color: #E05555; }

/* GUIDE STYLES */
.guide-hero { background: #0f1a14; padding: 3rem 2rem; }
.guide-hero-inner { max-width: 720px; margin: 0 auto; }
.guide-tag { display: inline-block; border: 0.5px solid rgba(29,158,117,0.6); color: #5DCAA5; font-size: 11px; padding: 3px 12px; border-radius: 20px; margin-bottom: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.guide-hero h1 { font-size: clamp(26px, 4vw, 38px); color: #fff; margin-bottom: 0.75rem; line-height: 1.15; }
.guide-hero .guide-meta { display: flex; align-items: center; gap: 1rem; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; }
.guide-hero .guide-meta i { color: #5DCAA5; }

.guide-body { max-width: 720px; margin: 0 auto; padding: 2.5rem 2rem; }
.guide-body h2 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; margin: 2rem 0 0.75rem; color: #1a1a1a; }
.guide-body h3 { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; margin: 1.5rem 0 0.5rem; color: #1a1a1a; }
.guide-body p { font-size: 15px; color: #444; line-height: 1.75; margin-bottom: 1rem; }
.guide-body ul, .guide-body ol { margin: 0.75rem 0 1rem 1.25rem; }
.guide-body li { font-size: 15px; color: #444; line-height: 1.7; margin-bottom: 0.4rem; }
.guide-body a { color: #1D9E75; }

.guide-callout { background: #E1F5EE; border-left: 3px solid #1D9E75; border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.guide-callout p { color: #085041 !important; margin-bottom: 0 !important; font-size: 14px !important; }
.guide-callout strong { color: #085041; }

.guide-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 14px; }
.guide-table th { background: #f5f4f1; padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #888; font-weight: 500; }
.guide-table td { padding: 12px 14px; border-bottom: 1px solid #f0ede8; color: #444; }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table .g { color: #1D9E75; font-weight: 500; }
.guide-table .r { color: #E05555; }

.guide-toc { background: #fff; border: 1px solid #e8e6e1; border-radius: 12px; padding: 1.25rem; margin-bottom: 2rem; }
.guide-toc h4 { font-family: 'DM Sans', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #999; font-weight: 500; margin-bottom: 0.75rem; }
.guide-toc ol { margin: 0 0 0 1rem; }
.guide-toc li { font-size: 14px; margin-bottom: 4px; }
.guide-toc a { color: #1D9E75; }

.guide-cta-box { background: #0f1a14; border-radius: 14px; padding: 2rem; margin: 2rem 0; text-align: center; }
.guide-cta-box h3 { font-family: 'Fraunces', serif; font-size: 22px; color: #fff; margin-bottom: 0.5rem; }
.guide-cta-box p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }

/* BLOG / REPORTS */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.blog-card { background: #fff; border: 1px solid #e8e6e1; border-radius: 13px; overflow: hidden; transition: box-shadow 0.15s; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.blog-card-body { padding: 1.25rem; }
.blog-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #1D9E75; font-weight: 500; margin-bottom: 0.5rem; }
.blog-card h3 { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card h3 a { color: #1a1a1a; }
.blog-card p { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 0.75rem; }
.blog-meta { font-size: 12px; color: #ccc; }

/* SITEMAP / AREA INDEX */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.area-link { display: block; padding: 8px 12px; background: #fff; border: 1px solid #e8e6e1; border-radius: 8px; font-size: 13px; color: #444; transition: all 0.15s; }
.area-link:hover { border-color: #1D9E75; color: #1D9E75; background: #f7fdf9; }
.area-link span { font-size: 11px; color: #999; display: block; }

/* RELATED AREAS */
.related-areas { display: flex; gap: 8px; flex-wrap: wrap; }
.related-pill { display: inline-block; background: #f5f4f1; border-radius: 20px; padding: 5px 12px; font-size: 13px; color: #444; transition: all 0.15s; }
.related-pill:hover { background: #E1F5EE; color: #0F6E56; }

/* FAQ SCHEMA SECTION */
.faq-schema { background: #fff; }

/* RESPONSIVE */
@media (max-width: 700px) {
  .market-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .postcode-stats-strip { gap: 1rem; }
  .pstat-divider { display: none; }
}

/* =============================================
   BLOG & ARTICLE STYLES
   ============================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.blog-card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1D9E75;
  margin-bottom: 0.5rem;
}

.blog-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  font-size: 12px;
  color: #aaa;
}

/* Article pages */
.article-hero {
  background: #0f1a14;
  padding: 4rem 1.5rem 3rem;
}

.article-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 4vw, 38px);
  color: #fff;
  margin: 0.75rem 0 1rem;
  line-height: 1.2;
}

.article-hero .blog-meta {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.article-body {
  padding: 3rem 1.5rem;
}

.article-inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-intro {
  font-size: 18px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 2rem;
  border-left: 3px solid #1D9E75;
  padding-left: 1.25rem;
}

.article-inner h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: #1a1a1a;
  margin: 2.5rem 0 1rem;
}

.article-inner h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.5rem 0 0.5rem;
}

.article-inner p {
  font-size: 16px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article-inner ul, .article-inner ol {
  margin: 0 0 1.25rem 1.5rem;
}

.article-inner li {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.article-inner blockquote {
  background: #f5f4f1;
  border-left: 3px solid #1D9E75;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

.data-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: #0f1a14;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0ede8;
  color: #444;
}

.data-table tr:nth-child(even) td {
  background: #faf9f7;
}

.article-cta {
  background: #0f1a14;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0 2rem;
}

.article-cta h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 0.5rem;
}

.article-cta p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
  font-size: 15px;
}

.article-footer-links {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e6e1;
}

.article-footer-links a {
  color: #1D9E75;
  text-decoration: none;
  font-size: 14px;
}
