/* --- HOMEPAGE REDESIGN 2026 --- */

:root {
  --hero-gradient: linear-gradient(135deg, rgba(59, 18, 16, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --accent-gold: #f2dd00;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hero Section Modernization */
.cta-block .hero {
  height: min(80vh, 720px);
  min-height: 560px;
  display: flex;
  align-items: center;
  background-attachment: scroll;
  background-image: none;
}

.cta-block .hero .overlay {
  background: var(--hero-gradient);
}

.cta-block .hero .description {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  min-height: 1.1em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cta-block .hero .fancy {
  color: var(--accent-gold);
  font-style: normal;
}

/* CTA Bar Floating Effect — reserve height to prevent font-driven CLS */
.cta-bar {
  max-width: 1000px;
  margin: -50px auto 50px;
  min-height: 96px;
  position: relative;
  z-index: 10;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  contain: layout style;
}
.cta-bar .prompt,
.cta-bar .cta {
  min-height: 96px;
  box-sizing: border-box;
}

/* Featured Listings Grid */
.recent-listings h2 {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.recent-listings h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color, #3B1210);
  border-radius: 2px;
}

.recent-listings .listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1rem;
}

/* Listing Card Redesign */
.recent-listings .listing {
  background: #fff;
  border: none !important;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.recent-listings .listing:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.recent-listings .listing .thumbnail {
  margin: 0;
  height: 240px;
  overflow: hidden;
}

.recent-listings .listing .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.recent-listings .listing:hover .thumbnail img {
  transform: scale(1.1);
}

.recent-listings .listing h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.recent-listings .listing .details {
  padding: 0 1.5rem;
  color: #83a846; /* Price color */
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.recent-listings .listing p:not(.details):not(.see-listing) {
  padding: 0.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.recent-listings .listing .see-listing {
  margin-top: auto;
  padding: 0 1.5rem 1.5rem;
}

.recent-listings .listing .see-listing .button {
  border-radius: 12px !important;
  background: #f8f6f2;
  color: #3B1210;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.recent-listings .listing .see-listing .button:hover {
  background: #3B1210;
  color: #fff;
}

.home-search {
  background: #f8f6f2;
  padding: 100px 0;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.home--listing-taxes--wrapper {
  padding: 80px 0;
}

.home-page--half h3 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px;
  border-left: 5px solid #83a846;
  padding-left: 15px;
  margin-bottom: 2rem;
}

.listing-tax--state-list .tax-container {
  border: none !important;
  background: #fff;
  border-radius: 15px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .cta-bar {
    margin: -20px 15px 30px;
    min-height: 120px;
    flex-direction: column;
  }
  
  .recent-listings .listings {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Below-fold: skip rendering work until near viewport */
.home-taxonomy-tabs,
.recent-listings .shell + .shell,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #222;
  border-bottom: 1px solid #eee;
}
.suggestion-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.suggestion-item .item-title {
  display: block;
  font-weight: 700;
}
.suggestion-item .item-meta {
  display: block;
  font-size: 0.85em;
  color: #666;
}
.no-suggestions {
  padding: 14px;
  color: #666;
}
