/* =============================================
   The Barroque Edit — Editorial Magazine Styles
   ============================================= */

/* Editorial Hero */
.editorial-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111a18;
}
.editorial-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.editorial-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 48, 0.45) 0%,
    rgba(17, 17, 48, 0.70) 100%
  );
  z-index: 1;
}
.editorial-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 120px 32px;
}
.editorial-hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid rgba(133, 164, 161, 0.5);
  padding: 6px 18px;
}
.editorial-hero-title {
  font-size: 3.6rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--white);
}
.editorial-hero-sub {
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.8;
}
.editorial-hero-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px;
  margin-bottom: 16px;
}
.editorial-hero-award {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 3;
  opacity: 0.5;
}
.editorial-hero-award img {
  height: 60px;
  width: auto;
}
.editorial-hero-breadcrumbs {
  position: absolute;
  top: 100px;
  left: 32px;
  z-index: 3;
  display: flex;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}
.editorial-hero-breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
}
.editorial-hero-breadcrumbs a:hover {
  color: var(--white);
}
.editorial-hero-breadcrumbs .current {
  color: var(--white);
}
.editorial-hero-breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.25);
}

/* Editorial Section */
.editorial-section {
  padding: 100px 0;
}
.editorial-section-light {
  background: var(--white);
}
.editorial-section-stone {
  background: var(--stone);
}
.editorial-section-header {
  text-align: center;
  margin-bottom: 60px;
}
.editorial-section-header .editorial-tag {
  margin-bottom: 12px;
}
.editorial-section-header h2 {
  font-size: 2.4rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.editorial-section-header p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.06em;
  max-width: 480px;
  margin: 0 auto;
}

/* Editorial Divider */
.editorial-divider {
  text-align: center;
  padding: 20px 0 48px;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  opacity: 0.6;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.split-layout-image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.split-layout-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-layout-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}
.split-layout-text .section-number {
  font-size: 4rem;
  font-weight: 200;
  color: var(--light-grey);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.split-layout-text .editorial-tag {
  margin-bottom: 12px;
}
.split-layout-text h3 {
  font-size: 1.6rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: var(--text);
}
.split-layout-text p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.9;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  max-width: 560px;
}
.split-layout-text p strong {
  font-weight: 500;
  color: var(--navy);
}
.split-layout-text .btn {
  align-self: flex-start;
  margin-top: 8px;
}
.split-layout-image .editorial-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.6rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  background: rgba(17, 17, 48, 0.5);
  padding: 4px 12px;
}

/* Reversed split layout */
.split-layout.reversed .split-layout-image {
  order: 2;
}
.split-layout.reversed .split-layout-text {
  order: 1;
}

/* Magazine Card Grid */
.magazine-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.magazine-card {
  position: relative;
  min-height: 520px;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.magazine-card:hover {
  transform: translateY(-4px);
}
.magazine-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.magazine-card:hover .magazine-card-img {
  transform: scale(1.05);
}
.magazine-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 17, 48, 0.85) 0%,
    rgba(17, 17, 48, 0.2) 50%,
    transparent 100%
  );
  z-index: 1;
}
.magazine-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 40px 36px;
}
.magazine-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.magazine-card-title {
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 8px;
}
.magazine-card-tagline {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  line-height: 1.5;
}
.magazine-card-cta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s ease;
}
.magazine-card:hover .magazine-card-cta {
  color: var(--accent-light);
}

/* Essential Reading Cards (hub page) */
.essential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.essential-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--light-grey);
  padding: 0;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 200px;
}
.essential-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.essential-card-image {
  width: 200px;
  min-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}
.essential-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.essential-card:hover .essential-card-image img {
  transform: scale(1.06);
}
.essential-card-body {
  padding: 28px 28px 28px 0;
  flex: 1;
}
.essential-card-body h3 {
  font-size: 1.2rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--text);
}
.essential-card-body p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.essential-card-link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.3s ease;
}
.essential-card:hover .essential-card-link {
  color: var(--accent);
}

/* Expert Card */
.expert-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--light-grey);
  padding: 36px 40px;
  max-width: 520px;
  margin: 0 auto;
}
.expert-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.expert-card-body h4 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 2px;
}
.expert-card-body .expert-role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.expert-card-body .expert-cta {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.expert-card-body .expert-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Editorial Pull Quote */
.editorial-pull-quote {
  text-align: center;
  padding: 80px 32px;
  max-width: 720px;
  margin: 0 auto;
}
.editorial-pull-quote blockquote {
  font-size: 1.8rem;
  font-weight: 200;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: 0.04em;
  font-style: italic;
  font-family: 'Times New Roman', Georgia, serif;
}
.editorial-pull-quote blockquote::before {
  content: '\201C';
  display: block;
  font-size: 4rem;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 16px;
  font-weight: 200;
}
.editorial-pull-quote .attribution {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* Editorial CTA */
.editorial-cta {
  text-align: center;
  padding: 100px 0;
}
.editorial-cta h2 {
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--white);
}
.editorial-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Step Sections (Buying/Lettings Guide) */
.step-section {
  padding: 80px 0;
}
.step-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}
.step-number {
  font-size: 3rem;
  font-weight: 200;
  color: var(--light-grey);
  line-height: 1;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.step-header h2 {
  font-size: 1.6rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--text);
}
.step-sub {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.step-body {
  max-width: 680px;
}
.step-body p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.9;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.step-tip {
  background: var(--stone);
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.03em;
}
.step-tip strong {
  font-weight: 500;
  color: var(--navy);
}

/* On The Market Row */
.market-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
#areaPropertyGrid {
  grid-template-columns: repeat(3, 1fr);
}

/* Hero Search Background (index page) */
.hero-search {
  position: relative;
  overflow: hidden;
}
.hero-search-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-search-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 48, 0.50);
  z-index: 1;
}
.hero-search .container {
  position: relative;
  z-index: 2;
}

/* Hero text visibility enhancements */
.hero-search-content h1,
.hero-search-content p,
.hero-awards-text h3,
.hero-awards-text p,
.hero-awards-text .hero-awards-desc {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-search-content h1 {
  font-weight: 500;
}
.hero-search-content p {
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
}
.hero-awards-text h3 {
  font-weight: 700;
}
.hero-awards-text p {
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
}
.hero-awards-text .hero-awards-desc {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}
.hero-search-tab {
  color: rgba(255, 255, 255, 0.75);
}

/* Page Header Background Image (sales, lettings, etc.) */
.page-header {
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 48, 0.50);
  z-index: 1;
}
.page-header .container {
  position: relative;
  z-index: 2;
}

/* Editorial Section Intro */
.editorial-intro {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.editorial-intro p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.9;
  letter-spacing: 0.03em;
}

/* Life Style Divider (between sections on area pages) */
.lifestyle-section-divider {
  height: 1px;
  background: var(--light-grey);
  max-width: 80px;
  margin: 0 auto;
}

/* Responsive — Editorial */
@media (max-width: 1024px) {
  .split-layout-text {
    padding: 60px 40px;
  }
  .essential-card-image {
    width: 160px;
    min-height: 160px;
  }
  .market-row {
    grid-template-columns: repeat(2, 1fr);
  }
  #areaPropertyGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .editorial-hero {
    min-height: 70vh;
  }
  .editorial-hero-title {
    font-size: 2.4rem;
  }
  .editorial-hero-content {
    padding: 100px 24px 80px;
  }
  .editorial-hero-award {
    bottom: 16px;
    right: 16px;
  }
  .editorial-hero-breadcrumbs {
    top: 84px;
    left: 24px;
  }
  .editorial-section-header h2 {
    font-size: 1.6rem;
  }
  .editorial-section {
    padding: 64px 0;
  }
  .split-layout {
    grid-template-columns: 1fr;
  }
  .split-layout-image {
    min-height: 300px;
    order: 0 !important;
  }
  .split-layout-text {
    padding: 40px 28px;
    order: 0 !important;
  }
  .split-layout-text .section-number {
    font-size: 2.8rem;
  }
  .split-layout-text h3 {
    font-size: 1.3rem;
  }
  .magazine-card-grid {
    grid-template-columns: 1fr;
  }
  .magazine-card {
    min-height: 400px;
  }
  .magazine-card-title {
    font-size: 1.6rem;
  }
  .essential-grid {
    grid-template-columns: 1fr;
  }
  .essential-card {
    flex-direction: column;
    min-height: auto;
  }
  .essential-card-image {
    width: 100%;
    min-height: 180px;
  }
  .essential-card-body {
    padding: 24px;
  }
  .expert-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .editorial-pull-quote {
    padding: 48px 24px;
  }
  .editorial-pull-quote blockquote {
    font-size: 1.3rem;
  }
  .step-number {
    font-size: 2.2rem;
  }
  .step-header h2 {
    font-size: 1.2rem;
  }
  .market-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .editorial-hero-title {
    font-size: 1.8rem;
  }
  .editorial-hero-breadcrumbs {
    top: 76px;
    left: 16px;
    font-size: 0.6rem;
  }
  .editorial-hero-award img {
    height: 28px;
  }
  .split-layout-text {
    padding: 32px 20px;
  }
  .magazine-card-content {
    padding: 24px 20px;
  }
  .essential-card-image {
    min-height: 140px;
  }
  .market-row {
    grid-template-columns: 1fr;
  }
  #areaPropertyGrid {
    grid-template-columns: 1fr;
  }
}
