/* ==========================================
   1. BASE & SEARCH FILTER STRIP
   ========================================== */
.archive-main {
    background-color: #fcfcfc; /* Faint off-white backdrop */
    padding-top: 100px;
    min-height: 100vh;
}

.archive-filters-section {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.archive-filters-section .hero-console-wrapper {
    margin-bottom: 0;
    box-shadow: none;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

/* --- RESULTS HEADER --- */
.archive-results-header {
    padding: 40px 0 20px;
}

.results-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    color: #111111;
    margin: 0 0 15px 0;
}

.results-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
}

.results-count {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #555555;
}

.sort-select {
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #111;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* ==========================================
   3. THE GRID & PRISTINE CARDS (ENTERPRISE FIX)
   ========================================== */
.je-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 30px; /* Slightly larger gap for luxury breathing room */
    padding-top: 30px;
    padding-bottom: 60px;
}

.je-card {
    position: relative;
    display: flex;
    flex-direction: column; /* ALWAYS vertical */
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.je-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-2px); /* Very subtle lift */
}

/* ⭐️ PROMOTED CARDS (Massive, cinematic, 2 per row) */
.je-card.promoted-card {
    grid-column: span 3; 
    border-bottom: 3px solid #111; /* Stronger anchor */
}

.je-card.promoted-card .je-card-image {
    width: 100%;
    aspect-ratio: 3 / 2; /* Perfect cinematic ratio for large formats */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.je-card.promoted-card .je-card-content {
    padding: 30px; /* Spacious, expensive padding */
}

/* ⭐️ STANDARD CARDS (Smaller, 3 per row) */
.je-card.standard-card {
    grid-column: span 2;
}

.je-card.standard-card .je-card-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* Slightly boxier for standard listings */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.je-card.standard-card .je-card-content {
    padding: 20px;
}

/* --- SHARED CARD ELEMENTS --- */
.je-card-image {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.je-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.je-badge {
    background: #ffffff;
    color: #111111;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    padding: 5px 8px;
    text-transform: uppercase;
    border-radius: 2px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.je-badge.highlight {
    background: #111111;
    color: #ffffff;
}

/* Content Typography */
.je-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.je-content-top {
    display: flex;
    justify-content: space-between;
    align-items: center; /* PERFECT ALIGNMENT */
    margin-bottom: 10px;
}

.je-price {
    font-family: var(--font-sans);
    font-size: 24px; /* Larger, prouder pricing */
    font-weight: 700;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Smaller price on standard cards */
.je-card.standard-card .je-price {
    font-size: 20px; 
}

.je-contact-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 30px; /* Pill shape for modern UI */
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.je-contact-btn:hover {
    background: #111;
    color: #fff;
}

.je-specs-large {
    font-family: var(--font-sans);
    font-size: 15px;
    color: #111;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.je-specs {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #444;
    margin: 0 0 4px 0;
}

.je-location {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.je-description {
    font-family: var(--font-serif);
    font-size: 15px;
    color: #555;
    margin-top: 15px;
    line-height: 1.6;
}

.je-agency-footer {
    margin-top: auto; 
    padding-top: 15px;
    margin-top: 20px;
    border-top: 1px solid #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.je-agency-logo {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #999;
}

.je-agent-name {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #111;
    font-weight: 600;
}

.je-card-link-overlay { position: absolute; inset: 0; z-index: 1; }
.je-contact-btn { position: relative; z-index: 2; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .je-card.promoted-card { grid-column: span 6; } /* Promoted stacks full width on tablet */
    .je-card.standard-card { grid-column: span 3; } /* Standard becomes 2 per row */
}

@media (max-width: 768px) {
    .je-grid { grid-template-columns: 1fr; }
    .je-card.promoted-card, .je-card.standard-card { grid-column: span 1; }
}

/* ==========================================
   4. PAGINATION & NEWSLETTER
   ========================================== */
.je-pagination {
    display: flex;
    justify-content: center;
    padding-bottom: 60px;
}

.je-pagination ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.je-pagination li a, .je-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: #111;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.1);
}

.je-pagination li span.current {
    background: #111;
    color: #fff;
    border-color: #111;
}

.je-newsletter-block {
    background-color: #f7f7f7;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================
   5. RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
    .je-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .je-grid { grid-template-columns: 1fr; }
    .results-title { font-size: 24px; }
    .location-hero { height: 35vh; }
}