/* ============================================================
   CASA LUNA — Blog CSS
   ============================================================ */

/* ── BLOG INDEX ──────────────────────────────────────────────── */
.post-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pf-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.pf-image img { width:100%; height:100%; object-fit:cover; transition: transform 0.6s; }
.post-featured:hover .pf-image img { transform: scale(1.03); }
.post-badge {
  position: absolute; top: 1.25rem; left: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  background: var(--terracotta); color: white;
  padding: 0.3rem 0.8rem; border-radius: 20px;
}
.pf-content { padding: 2.5rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.post-cat {
  font-family: var(--font-ui); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  color: var(--terracotta); background: rgba(194,113,79,0.1);
  padding: 0.25rem 0.7rem; border-radius: 20px;
}
.post-date, .post-read {
  font-family: var(--font-ui); font-size: 0.7rem; color: var(--stone); font-weight: 300;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--charcoal); line-height: 1.2; margin-bottom: 1rem;
}
.post-title a { color: inherit; transition: color 0.2s; }
.post-title a:hover { color: var(--terracotta-dk); }
.post-title em { font-style: italic; color: var(--terracotta-dk); }
.post-excerpt { font-family: var(--font-ui); font-size: 0.85rem; color: var(--stone); font-weight: 300; line-height: 1.8; }

.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.post-card { background: white; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.35s, box-shadow 0.35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-placeholder { opacity: 0.85; }
.pc-image { aspect-ratio: 16/10; overflow: hidden; }
.pc-image img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s; }
.post-card:hover .pc-image img { transform: scale(1.04); }
.pc-content { padding: 1.5rem; }
.pc-content h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--charcoal); margin: 0.5rem 0 0.6rem; line-height: 1.3; }
.pc-content p { font-family: var(--font-ui); font-size: 0.78rem; color: var(--stone); font-weight: 300; line-height: 1.7; }

.newsletter-form { display: flex; gap: 0.75rem; justify-content: center; max-width: 480px; margin: 0 auto; }
.nl-input {
  flex: 1; font-family: var(--font-ui); font-size: 0.85rem;
  padding: 0.85rem 1.25rem; border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 3px; background: rgba(255,255,255,0.08); color: white; outline: none;
  transition: border-color 0.2s;
}
.nl-input:focus { border-color: var(--gold); }
.nl-input::placeholder { color: rgba(255,255,255,0.35); }

/* ── BLOG POST ────────────────────────────────────────────────── */
.post-hero {
  position: relative; height: 65vh; min-height: 500px;
  display: flex; align-items: flex-end; padding-bottom: 5rem; overflow: hidden;
}
.post-hero .ph-bg { position: absolute; inset: 0; z-index: 0; }
.post-hero .ph-bg img { width:100%; height:100%; object-fit:cover; object-position:center 35%; }
.post-hero .ph-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(28,20,10,0.88) 0%, rgba(28,20,10,0.3) 60%, transparent 100%); }
.post-hero-content { position: relative; z-index: 2; width: 100%; }
.post-hero-inner { max-width: 760px; }
.post-hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem,4.5vw,3.8rem);
  font-weight: 400; color: white; line-height: 1.1; margin-bottom: 1rem;
}
.post-hero-title em { font-style: italic; color: var(--gold-lt); }
.post-hero-sub { font-family: var(--font-ui); font-size: 1rem; color: rgba(255,255,255,0.72); font-weight: 300; max-width: 580px; }

.post-body-section { background: var(--parchment); }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.post-article { min-width: 0; }
.post-lead {
  font-family: var(--font-body); font-size: 1.2rem; color: var(--stone-dk);
  font-weight: 400; line-height: 1.85; margin-bottom: 2rem;
  border-left: 3px solid var(--terracotta); padding-left: 1.5rem;
}
.post-article h2 {
  font-family: var(--font-display); font-size: 1.7rem; color: var(--charcoal);
  margin: 2.5rem 0 1rem; line-height: 1.2;
}
.post-article h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--charcoal); margin: 1.75rem 0 0.6rem; }
.post-article p { font-family: var(--font-ui); font-size: 0.9rem; color: var(--stone-dk); font-weight: 300; line-height: 1.85; margin-bottom: 1rem; }
.post-article strong { font-weight: 600; color: var(--charcoal); }
.post-article em { font-style: italic; color: var(--stone-dk); }

.post-img-full { margin: 2rem 0; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg); }
.post-img-full img { width:100%; object-fit:cover; max-height: 480px; }
.post-img-pair { margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.post-img-pair img { border-radius: 4px; aspect-ratio: 4/3; object-fit:cover; box-shadow: var(--shadow); }
.post-img-caption { display: block; font-family: var(--font-ui); font-size: 0.7rem; color: var(--stone); font-style: italic; margin-top: 0.6rem; text-align: center; grid-column: 1/-1; }
.post-img-full .post-img-caption { padding: 0.5rem 1rem 0; }

.post-highlight {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem; border-radius: 0 4px 4px 0; margin: 2rem 0;
}
.ph-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.post-highlight strong { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; color: var(--charcoal); display: block; margin-bottom: 0.4rem; }
.post-highlight p { font-family: var(--font-ui); font-size: 0.8rem; color: var(--stone-dk); font-weight: 300; line-height: 1.7; margin: 0; }

.post-footer { border-top: 1px solid var(--cream-dk); padding-top: 2rem; margin-top: 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pf-tags span { font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.28rem 0.75rem; border-radius: 20px; background: var(--cream-dk); color: var(--stone-dk); border: 1px solid var(--stone-lt); }
.pf-share { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.pf-share > span { font-family: var(--font-ui); font-size: 0.7rem; color: var(--stone); }
.share-btn { font-family: var(--font-ui); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 3px; transition: opacity 0.2s; }
.share-fb { background: #1877F2; color: white; }
.share-tw { background: #000; color: white; }
.share-btn:hover { opacity: 0.85; }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-property-img { width:100%; border-radius: 3px; margin: 0.75rem 0; aspect-ratio: 16/9; object-fit: cover; }
.sidebar-card { background: white; border-radius: 4px; padding: 1.5rem; box-shadow: var(--shadow); }
.sidebar-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--charcoal); margin-bottom: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--cream-dk); }
.sidebar-card p { font-family: var(--font-ui); font-size: 0.78rem; color: var(--stone); font-weight: 300; line-height: 1.7; }
.sidebar-facts { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-facts li { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-ui); font-size: 0.78rem; color: var(--stone-dk); font-weight: 300; }
.sidebar-facts li span { font-size: 1rem; }
.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-links li a { font-family: var(--font-ui); font-size: 0.8rem; color: var(--terracotta); font-weight: 400; transition: color 0.2s; }
.sidebar-links li a:hover { color: var(--terracotta-dk); }
.sidebar-links li a::before { content: '→ '; font-size: 0.75rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-featured { grid-template-columns: 1fr; }
  .pf-image { aspect-ratio: 16/7; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-img-pair { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; }
}
