/**
 * AUREVIA Properties — Developments Archive & Master Enclaves Styles
 *
 * @package AureviaProperties
 */

/* ==========================================================================
   1. ARCHIVE HERO SECTION
   ========================================================================== */
.dev-hero {
  position: relative;
  background-color: var(--aurevia-obsidian, #161719);
  color: var(--aurevia-ivory, #e9e1d4);
  padding: 80px 24px 70px;
  overflow: hidden;
  border-bottom: 1px solid rgba(233, 225, 212, 0.1);
}

.dev-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(233, 225, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 225, 212, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.7;
}

.dev-hero__container {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.dev-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aurevia-bronze, #b08a57);
  margin-bottom: 1rem;
}

.dev-hero__title {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--aurevia-white, #ffffff);
  margin: 0 0 1.25rem;
}

.dev-hero__subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(233, 225, 212, 0.8);
  max-width: 720px;
  margin: 0 0 1.75rem;
  font-weight: 300;
}

.dev-hero__badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aurevia-limestone, #d6cebf);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(233, 225, 212, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.dev-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--aurevia-bronze, #b08a57);
}

/* ==========================================================================
   2. BELOW-HERO QUICK JUMP INDEX BAR
   ========================================================================== */
.dev-index-bar {
  position: relative;
  top: auto;
  bottom: auto;
  inset: auto;
  transform: none;
  z-index: 10;
  background: var(--aurevia-obsidian, #161719);
  border-bottom: 1px solid rgba(233, 225, 212, 0.12);
}

.dev-index-bar__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dev-index-bar__container::-webkit-scrollbar {
  display: none;
}

.dev-index-bar__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurevia-sage, #788275);
  padding: 16px 16px 16px 0;
  white-space: nowrap;
  border-right: 1px solid rgba(233, 225, 212, 0.12);
  margin-right: 8px;
}

.dev-index-bar__links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  white-space: nowrap;
}

.dev-index-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 225, 212, 0.75);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.dev-index-bar__link:hover {
  color: var(--aurevia-white, #ffffff);
}

.dev-index-bar__link.is-active {
  color: var(--aurevia-bronze, #b08a57);
  border-bottom-color: var(--aurevia-bronze, #b08a57);
}

.dev-index-bar__num {
  font-size: 0.6875rem;
  color: var(--aurevia-bronze, #b08a57);
  opacity: 0.9;
}

/* ==========================================================================
   3. ARCHITECTURAL ALTERNATING DEVELOPMENT ROWS
   ========================================================================== */
.dev-archive-section {
  padding: 100px 0 120px;
  background-color: var(--aurevia-sand, #f8f6f2);
}

.dev-archive-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.dev-row {
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  padding-bottom: 120px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dev-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Odd row: 58% media on left, 42% text on right */
.dev-row--odd {
  flex-direction: row;
}

.dev-row--odd .dev-row__media {
  flex: 0 0 58%;
  max-width: 58%;
}

.dev-row--odd .dev-row__dossier {
  flex: 0 0 calc(42% - 64px);
  max-width: calc(42% - 64px);
}

/* Even row: 42% text on left, 58% media on right */
.dev-row--even {
  flex-direction: row-reverse;
}

.dev-row--even .dev-row__media {
  flex: 0 0 58%;
  max-width: 58%;
}

.dev-row--even .dev-row__dossier {
  flex: 0 0 calc(42% - 64px);
  max-width: calc(42% - 64px);
}

/* Visibility helpers */
.dev-mobile-only {
  display: none;
}

.dev-desktop-only {
  display: block;
}

/* ==========================================================================
   4. CONTROLLED IMAGE PRESENTATION
   ========================================================================== */
.dev-row__media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 620px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.dev-row__media-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.dev-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-row__media-link:hover .dev-row__img {
  transform: scale(1.028);
}

.dev-row__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(10, 10, 12, 0.72) 100%);
  pointer-events: none;
}

.dev-row__loc-pill {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  background: rgba(22, 23, 25, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--aurevia-ivory, #e9e1d4);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(233, 225, 212, 0.22);
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   5. EDITORIAL DEVELOPMENT DOSSIER
   ========================================================================== */
.dev-row__dossier {
  display: flex;
  flex-direction: column;
}

.dev-row__meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.dev-row__seq {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aurevia-bronze, #b08a57);
}

.dev-row__meta-divider {
  color: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
}

.dev-row__loc-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurevia-sage, #788275);
}

.dev-row__title {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--aurevia-obsidian, #161719);
  margin: 0 0 1.25rem;
}

.dev-row__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dev-row__title a:hover {
  color: var(--aurevia-bronze, #b08a57);
}

.dev-row__excerpt {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #4f584e;
  margin: 0 0 2rem;
  font-weight: 350;
}

.dev-row__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  margin-bottom: 1.75rem;
}

.dev-fact {
  display: flex;
  flex-direction: column;
}

.dev-fact__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurevia-sage, #788275);
  margin-bottom: 4px;
}

.dev-fact__value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--aurevia-obsidian, #161719);
}

.dev-fact__value .price-prefix {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--aurevia-sage, #788275);
  margin-right: 4px;
}

.dev-fact__value .price-currency {
  font-size: 0.9375rem;
  color: var(--aurevia-bronze, #b08a57);
}

.dev-fact__value .price-amount {
  font-weight: 600;
}

.dev-row__residences-link {
  margin-bottom: 2rem;
}

.dev-link-residences {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aurevia-bronze, #b08a57);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(176, 138, 87, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-link-residences:hover {
  color: #8c6a38;
  border-bottom-color: #8c6a38;
  transform: translateX(4px);
}

.dev-row__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dev-row__btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
}

.dev-row__btn-consult {
  padding: 14px 24px;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .dev-archive-container {
    padding: 0 32px;
    gap: 100px;
  }

  .dev-row {
    gap: 40px;
    padding-bottom: 90px;
  }

  .dev-row--odd .dev-row__media,
  .dev-row--even .dev-row__media {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .dev-row--odd .dev-row__dossier,
  .dev-row--even .dev-row__dossier {
    flex: 0 0 calc(50% - 40px);
    max-width: calc(50% - 40px);
  }

  .dev-row__media-frame {
    aspect-ratio: 4 / 3;
  }

  .dev-row__title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .dev-hero {
    padding: 60px 20px 50px;
  }

  .dev-hero__container {
    padding: 0;
  }

  .dev-hero__title {
    font-size: clamp(1.75rem, 6.2vw, 2.35rem);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .dev-index-bar {
    position: relative;
    top: auto;
    bottom: auto;
    inset: auto;
    transform: none;
  }

  .dev-index-bar__container {
    padding: 0 16px;
  }

  .dev-index-bar__label {
    display: none;
  }

  .dev-archive-section {
    padding: 60px 0 80px;
  }

  .dev-archive-container {
    padding: 0 20px;
    gap: 70px;
  }

  .dev-row,
  .dev-row--odd,
  .dev-row--even {
    flex-direction: column !important;
    gap: 20px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .dev-desktop-only {
    display: none !important;
  }

  .dev-mobile-only {
    display: block !important;
    width: 100%;
  }

  .dev-mobile-only .dev-row__meta-top {
    margin-bottom: 0.5rem;
  }

  .dev-mobile-only .dev-row__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .dev-row__media,
  .dev-row--odd .dev-row__media,
  .dev-row--even .dev-row__media {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100%;
  }

  .dev-row__media-frame {
    aspect-ratio: 5 / 4;
    max-height: 430px;
  }

  .dev-row__loc-pill {
    bottom: 16px;
    left: 16px;
    font-size: 0.625rem;
    padding: 6px 12px;
  }

  .dev-row__dossier,
  .dev-row--odd .dev-row__dossier,
  .dev-row--even .dev-row__dossier {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100%;
  }

  .dev-row__excerpt {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .dev-row__facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 1.25rem 0;
    margin-bottom: 1.25rem;
  }

  .dev-fact__label {
    font-size: 0.625rem;
  }

  .dev-fact__value {
    font-size: 0.9375rem;
  }

  .dev-row__residences-link {
    margin-bottom: 1.5rem;
  }

  .dev-row__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .dev-row__btn-explore,
  .dev-row__btn-consult {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .dev-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}

