/* ============================================================
   CATALUNYAAR — "The Simple Man" Series | Post #3
   Finding a Flat in Barcelona — /authority mode
   WP CODER: Paste into the CSS tab
   ============================================================ */

.cyr-p3-post * { box-sizing: border-box; margin: 0; padding: 0; }

.cyr-p3-post {
  font-family: 'Space Grotesk', sans-serif;
  color: #1a1a2e;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 60px;
  line-height: 1.7;
}

/* ── SERIES NAV ── */
.cyr-series-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f8;
  flex-wrap: wrap;
  gap: 10px;
}
.cyr-series-prev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.cyr-series-prev:hover { color: #f97316; }
.cyr-series-prev .ti { font-size: 15px; }
.cyr-series-current {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4AF37;
}

/* ── HERO — distinct terracotta+navy for housing theme ── */
.cyr-p3-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  background: #10143C;
  border-radius: 20px;
  padding: 52px 48px;
  margin-bottom: 36px;
  overflow: hidden;
  position: relative;
}
.cyr-p3-hero::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(249,115,22,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.cyr-p3-hero::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cyr-p3-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 14px;
}
.cyr-p3-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 5.5vw, 56px);
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.cyr-p3-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.65;
}

/* ── LANG TOGGLE ── */
.cyr-lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}
.cyr-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.cyr-lang-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.cyr-lang-btn.active { background: #D4AF37; color: #10143C; font-weight: 700; }

/* ── HERO STATS ── */
.cyr-p3-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 180px;
}
.cyr-stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.cyr-stat-num {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: #D4AF37;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.cyr-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ── OPENER ── */
.cyr-p3-opener {
  background: #fff8f0;
  border-left: 4px solid #f97316;
  border-radius: 0 14px 14px 0;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.cyr-p3-opener p {
  font-size: 16px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 14px;
}
.cyr-p3-opener p:last-child { margin-bottom: 0; }

/* ── SECTIONS ── */
.cyr-p3-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1.5px solid #f0f0f8;
}
.cyr-p3-section:last-of-type { border-bottom: none; }
.cyr-p3-sec-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.cyr-p3-sec-num {
  font-family: 'Anton', sans-serif;
  font-size: 52px;
  line-height: 1;
  color: #e8eaf0;
  min-width: 64px;
  letter-spacing: 0.02em;
}
.cyr-p3-sec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 6px;
  line-height: 1.3;
}
.cyr-p3-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f97316;
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 12px;
}
.cyr-p3-sec-tag .ti { font-size: 14px; }

.cyr-p3-body p {
  font-size: 16px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 18px;
}
.cyr-p3-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #10143C;
  margin: 28px 0 14px;
}

/* ── NEIGHBOURHOOD GRID ── */
.cyr-barrio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.cyr-barrio-card {
  background: #ffffff;
  border: 1.5px solid #e8eaf0;
  border-radius: 16px;
  padding: 22px;
  position: relative;
}
.cyr-barrio-best { border-color: #86efac; border-top: 4px solid #22c55e; }
.cyr-barrio-popular { border-color: #93c5fd; border-top: 4px solid #3b82f6; }
.cyr-barrio-avoid { border-color: #fca5a5; border-top: 4px solid #ef4444; }
.cyr-barrio-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  background: #dcfce7;
  color: #166534;
}
.cyr-badge-blue { background: #dbeafe; color: #1e40af; }
.cyr-badge-red { background: #fee2e2; color: #991b1b; }
.cyr-barrio-name {
  font-size: 18px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 4px;
}
.cyr-barrio-price {
  font-size: 13px;
  font-weight: 600;
  color: #f97316;
  margin-bottom: 10px;
}
.cyr-barrio-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 12px;
}
.cyr-barrio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cyr-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.cyr-tag-green { background: #dcfce7; color: #166534; }
.cyr-tag-amber { background: #fef3c7; color: #92400e; }
.cyr-tag-red { background: #fee2e2; color: #991b1b; }

/* ── PLATFORM LIST ── */
.cyr-platform-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.cyr-platform-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1.5px solid #e8eaf0;
  background: #fff;
}
.cyr-platform-top { border-color: #D4AF37; background: #fffdf0; }
.cyr-platform-good { border-color: #e8eaf0; }
.cyr-platform-caution { border-color: #fca5a5; background: #fff5f5; }
.cyr-platform-rank {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  color: #D4AF37;
  min-width: 36px;
  line-height: 1.1;
}
.cyr-platform-caution .cyr-platform-rank { color: #ef4444; font-size: 24px; }
.cyr-platform-name {
  font-size: 15px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 5px;
}
.cyr-platform-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 8px;
}
.cyr-platform-pro {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

/* ── VIEWING CHECKLIST ── */
.cyr-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.cyr-check-group {
  background: #f8f9ff;
  border-radius: 14px;
  padding: 20px;
  border: 1.5px solid #e8eaf0;
}
.cyr-check-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cyr-check-group-title .ti { color: #f97316; font-size: 17px; }
.cyr-check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.55;
}
.cyr-check-item:last-child { margin-bottom: 0; }
.cyr-check-item .ti { color: #10b981; font-size: 15px; margin-top: 2px; flex-shrink: 0; }

/* ── CONTRACT TYPES ── */
.cyr-contract-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.cyr-contract-card {
  border-radius: 16px;
  padding: 24px;
  border: 1.5px solid #e8eaf0;
  background: #fff;
}
.cyr-contract-best { border-top: 4px solid #22c55e; }
.cyr-contract-watch { border-top: 4px solid #f59e0b; }
.cyr-contract-avoid { border-top: 4px solid #ef4444; }
.cyr-contract-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 8px;
}
.cyr-label-amber { color: #f59e0b; }
.cyr-label-red { color: #ef4444; }
.cyr-contract-type {
  font-size: 15px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 12px;
  line-height: 1.35;
}
.cyr-contract-type em {
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: #6b7280;
  display: block;
  margin-top: 3px;
}
.cyr-contract-card p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 14px;
}
.cyr-contract-verdict {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
}
.cyr-verdict-good { background: #dcfce7; color: #166534; }
.cyr-verdict-amber { background: #fef3c7; color: #92400e; }
.cyr-verdict-bad { background: #fee2e2; color: #991b1b; }

/* ── CLAUSE LIST ── */
.cyr-clause-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid #e8eaf0;
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0;
}
.cyr-clause-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: #fff;
  border-bottom: 1px solid #f0f0f8;
}
.cyr-clause-item:last-child { border-bottom: none; }
.cyr-clause-icon {
  width: 34px; height: 34px;
  min-width: 34px;
  background: #fff8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cyr-clause-icon .ti { color: #f97316; font-size: 17px; }
.cyr-clause-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 5px;
}
.cyr-clause-item p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}

/* ── COST TABLE ── */
.cyr-cost-table {
  border: 1.5px solid #e8eaf0;
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0;
}
.cyr-cost-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 12px 20px;
  background: #10143C;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.cyr-cost-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f8;
  font-size: 14px;
  align-items: center;
}
.cyr-cost-row:last-child { border-bottom: none; }
.cyr-cost-row:nth-child(even) { background: #fafafa; }
.cyr-cost-amount {
  font-weight: 700;
  color: #10143C;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}
.cyr-cost-row span:first-child { color: #374151; }
.cyr-cost-row span:last-child { color: #6b7280; font-size: 13px; }
.cyr-cost-total {
  background: #fff8f0 !important;
  border-top: 2px solid #fed7aa;
}
.cyr-cost-total span:first-child { font-weight: 700; color: #10143C; }
.cyr-cost-total .cyr-cost-amount { color: #f97316; font-size: 17px; }
.cyr-cost-total span:last-child { color: #6b7280; }

/* ── CALLOUTS ── */
.cyr-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 20px 0;
}
.cyr-callout .ti { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.cyr-callout strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.cyr-callout p { font-size: 14px; line-height: 1.65; margin: 0; }
.cyr-callout-info { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.cyr-callout-info .ti, .cyr-callout-info strong { color: #1d4ed8; }
.cyr-callout-info p { color: #1e3a8a; }
.cyr-callout-warning { background: #fff8f0; border: 1.5px solid #fed7aa; }
.cyr-callout-warning .ti, .cyr-callout-warning strong { color: #ea580c; }
.cyr-callout-warning p { color: #7c2d12; }

/* ── TENANT RIGHTS STRIP ── */
.cyr-rights-strip {
  background: #10143C;
  border-radius: 20px;
  padding: 44px 48px;
  margin-bottom: 48px;
}
.cyr-rights-title {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  color: #D4AF37;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.cyr-rights-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}
.cyr-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.cyr-right-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cyr-right-item .ti {
  color: #D4AF37;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cyr-right-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}
.cyr-right-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  margin: 0;
}

/* ── COMMUNITY BOX ── */
.cyr-community-box {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 20px;
  padding: 4px;
  margin-bottom: 44px;
}
.cyr-community-inner {
  background: #fff8f0;
  border-radius: 17px;
  padding: 40px 44px;
}
.cyr-community-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 10px;
}
.cyr-community-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 24px;
  line-height: 1.35;
}
.cyr-community-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.cyr-comm-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cyr-comm-dot {
  width: 10px; height: 10px;
  min-width: 10px;
  background: #f97316;
  border-radius: 50%;
  margin-top: 7px;
}
.cyr-comm-point p {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin: 0;
}
.cyr-community-cta {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #f97316;
  text-decoration: none;
  border-bottom: 2px solid #fed7aa;
  transition: border-color 0.2s;
}
.cyr-community-cta:hover { border-color: #f97316; }

/* ── NEXT POST ── */
.cyr-next-post {
  background: #f8f9ff;
  border: 1.5px solid #e8eaf0;
  border-left: 5px solid #D4AF37;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
}
.cyr-next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 8px;
}
.cyr-next-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #10143C;
  margin-bottom: 8px;
  line-height: 1.4;
}
.cyr-next-post p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 14px;
  line-height: 1.6;
}
.cyr-next-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #f97316;
  text-decoration: none;
  border-bottom: 2px solid #fed7aa;
  transition: border-color 0.2s;
}
.cyr-next-cta:hover { border-color: #f97316; }

/* ── CTA BLOCK ── */
.cyr-cta-block {
  background: #fff8f0;
  border: 2px solid #fed7aa;
  border-radius: 20px;
  padding: 44px;
  text-align: center;
  margin-bottom: 44px;
}
.cyr-cta-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 10px;
}
.cyr-cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.35;
}
.cyr-cta-body {
  font-size: 15px;
  color: #4b5563;
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.65;
}
.cyr-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cyr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.cyr-btn-primary:hover { background: #1db954; transform: translateY(-1px); color: #fff; }
.cyr-btn-secondary {
  display: inline-flex;
  background: #fff;
  color: #1a1a2e;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid #e8eaf0;
  transition: border-color 0.2s, transform 0.15s;
}
.cyr-btn-secondary:hover { border-color: #1a1a2e; transform: translateY(-1px); color: #1a1a2e; }

/* ── SOCIAL FOOTER ── */
.cyr-social-footer {
  text-align: center;
  padding: 36px 0 0;
  border-top: 1.5px solid #f0f0f8;
}
.cyr-social-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 18px;
}
.cyr-social-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.cyr-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s, opacity 0.15s;
}
.cyr-social-icon:hover { transform: translateY(-2px); opacity: 0.9; }
.cyr-social-wa { background: #25D366; }
.cyr-social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cyr-social-yt { background: #FF0000; }
.cyr-social-fb { background: #1877F2; }
.cyr-social-tt { background: #000; }
.cyr-brand-tagline { font-size: 13px; color: #9ca3af; font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .cyr-p3-hero { grid-template-columns: 1fr; padding: 36px 24px 32px; }
  .cyr-p3-hero-stats { grid-template-columns: repeat(4, 1fr); min-width: unset; }
  .cyr-stat-num { font-size: 16px; }
  .cyr-p3-title { font-size: 34px; }
  .cyr-p3-sec-num { font-size: 38px; min-width: 48px; }
  .cyr-p3-sec-title { font-size: 19px; }
  .cyr-cost-header, .cyr-cost-row { grid-template-columns: 1fr auto; }
  .cyr-cost-header span:last-child, .cyr-cost-row span:last-child { display: none; }
  .cyr-rights-strip { padding: 32px 24px; }
  .cyr-community-inner { padding: 28px 24px; }
  .cyr-cta-block { padding: 28px 20px; }
  .cyr-p3-opener { padding: 20px; }
}