/* =========================================
   SHOP HERO
========================================= */

.page-hero-shop {
   background-image:
      linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)),
      url("../images/hero/shop-hero.jpg");
}


/* =========================================
   SHOP SEARCH
========================================= */

.shop-search {
   position: relative;
   margin-top: -55px;
   z-index: 20;
}

.shop-search-wrapper {
   display: grid;
   grid-template-columns: 2fr repeat(4, 1fr) auto;
   gap: 1rem;
   align-items: end;
   padding: 1.5rem;
   background: var(--white);
   border-radius: var(--radius-xl);
   box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.shop-search label {
   display: block;
   margin-bottom: .6rem;
   font-size: .85rem;
   font-weight: 600;
   color: var(--text-muted);
}

.search-field {
   position: relative;
}

.search-field i {
   position: absolute;
   top: 50%;
   left: 1rem;
   transform: translateY(-50%);
   color: var(--text-muted);
}

.search-field input,
.filter-group select {
   width: 100%;
   height: 52px;
   padding: 0 1rem;
   border: 1px solid var(--border);
   border-radius: var(--radius-md);
   background: var(--white);
   transition: .3s;
}

.search-field input {
   padding-left: 2.8rem;
}

.search-field input:focus,
.filter-group select:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: none;
}

.shop-search .btn {
   height: 52px;
   padding: 0 2rem;
}

@media(max-width:1200px) {

   .shop-search-wrapper {
      grid-template-columns: repeat(2, 1fr);
   }

}

@media(max-width:768px) {

   .shop-search {
      margin-top: 0;
      padding-top: 4rem;
   }

   .shop-search-wrapper {
      grid-template-columns: 1fr;
   }

   .shop-search .btn {
      width: 100%;
   }

}

/* =========================================
   MOBILE FILTER DRAWER
========================================= */

.mobile-filter-btn {
   display: none;
}

.filter-overlay {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, .45);
   opacity: 0;
   visibility: hidden;
   transition: .3s;
   z-index: 998;
}

.filter-close {
   display: none;
}

@media(max-width:768px) {

   .mobile-filter-btn {
      display: flex;
      align-items: center;
      gap: .6rem;
      position: fixed;
      left: 15px;
      bottom: 20px;
      z-index: 999;
      border: none;
      color: #fff;
      background: var(--primary);
      border-radius: 50px;
      padding: .9rem 1.2rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
   }

   .shop-search {
      position: fixed;
      top: 85px;
      left: -100%;
      width: 95%;
      height: 100vh;
      margin: 0;
      padding: 1rem;
      background: #fff;
      overflow-y: auto;
      transition: .35s ease;
      z-index: 999;
   }

   .shop-search.active {
      left: 0;
   }

   .shop-search-wrapper {
      grid-template-columns: 1fr;
      box-shadow: none;
      padding: 0;
      border-radius: 0;
   }

   .filter-close {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 42px;
      height: 42px;
      margin-left: auto;
      margin-bottom: 1rem;
      border: none;
      border-radius: 50%;
      background: #f5f5f5;
      font-size: 1.2rem;
   }

   .filter-overlay.active {
      opacity: 1;
      visibility: visible;
   }

}


/* =========================================
   AVAILABLE HOMES
========================================= */
.product-grid-wrapper {
   position: relative;
   min-height: 250px;
}

.filter-loader {
   position: absolute;
   inset: 0;
   background: rgba(255, 255, 255, .75);
   display: none;
   justify-content: center;
   align-items: center;
   z-index: 30;
}

.filter-loader.active {
   display: flex;
}

.homes-grid-section {
   background: var(--white);
}

.homes-grid-section .section-header {
   max-width: 720px;
   margin: 0 auto 4rem;
}

.homes-pagination {
   margin-top: 4rem;
   text-align: center;
}

.homes-pagination .btn {
   min-width: 220px;
}


/* =========================================
   WHY CHOOSE MARTIN
========================================= */

.why-martin {
   background: var(--section-gray);
}

.feature-card {
   height: 100%;
   padding: 2.5rem 2rem;
   text-align: center;
   background: var(--white);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-sm);
   transition: .35s ease;
}

.feature-card:hover {
   transform: translateY(-8px);
   box-shadow: var(--shadow-lg);
}

.feature-icon {
   width: 75px;
   height: 75px;
   margin: 0 auto 1.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(var(--primary-rgb), .12);
   color: var(--primary);
   border-radius: 50%;
   font-size: 2rem;
}

.feature-card h3 {
   margin-bottom: 1rem;
   font-size: 1.25rem;
}

.feature-card p {
   margin: 0;
   color: var(--text-muted);
}


/* =========================================
   BUYING PROCESS
========================================= */

.buying-process {
   background: var(--white);
}

.process-wrapper {
   position: relative;
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 2rem;
   margin-top: 4rem;
}

.process-wrapper::before {
   content: "";
   position: absolute;
   top: 48px;
   left: 8%;
   width: 84%;
   height: 2px;
   background: var(--border);
   z-index: 0;
}

.process-step {
   position: relative;
   text-align: center;
   z-index: 2;
}

.process-number {
   position: absolute;
   top: -12px;
   right: 18px;
   font-size: 3rem;
   font-weight: 800;
   color: rgba(0, 0, 0, .05);
}

.process-icon {
   width: 95px;
   height: 95px;
   margin: 0 auto 1.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--white);
   border: 2px solid var(--primary);
   border-radius: 50%;
   color: var(--primary);
   font-size: 2rem;
   transition: .35s;
}

.process-step:hover .process-icon {
   background: var(--primary);
   color: var(--white);
   transform: translateY(-8px);
}

.process-step h3 {
   margin-bottom: .8rem;
   font-size: 1.3rem;
}

.process-step p {
   margin: 0;
   color: var(--text-muted);
   max-width: 250px;
   margin-inline: auto;
}

@media(max-width:991px) {

   .process-wrapper {
      grid-template-columns: repeat(2, 1fr);
   }

   .process-wrapper::before {
      display: none;
   }

}

@media(max-width:576px) {

   .process-wrapper {
      grid-template-columns: 1fr;
   }

}


/* =========================================
   TESTIMONIALS
========================================= */

.testimonials {
   background: var(--section-gray);
}

.testimonial-card {
   position: relative;
   height: 100%;
   padding: 2.5rem;
   background: var(--white);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-sm);
   transition: .35s ease;
}

.testimonial-card:hover {
   transform: translateY(-8px);
   box-shadow: var(--shadow-lg);
}

.quote-icon {
   width: 60px;
   height: 60px;
   margin-bottom: 1.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(var(--primary-rgb), .12);
   color: var(--primary);
   border-radius: 50%;
   font-size: 1.6rem;
}

.rating {
   display: flex;
   gap: .35rem;
   margin-bottom: 1.25rem;
   color: #f5b301;
}

.testimonial-card p {
   margin-bottom: 2rem;
   color: var(--text-muted);
}

.testimonial-author {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.testimonial-author img {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   object-fit: cover;
}

.testimonial-author h4 {
   margin-bottom: .2rem;
   font-size: 1rem;
}

.testimonial-author span {
   font-size: .9rem;
   color: var(--text-muted);
}

/* =========================================
   CTA + FAQ SECTION
========================================= */

.cta-faq-section {
   position: relative;
   padding: 100px 0;
   background: var(--primary);
}

.cta-faq-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.cta-content {
   color: var(--white);
}

.cta-content .section-tag {
   color: var(--accent);
}

.cta-content .heading-lg {
   color: var(--white);
}

.cta-content p {
   color: rgba(255, 255, 255, .85);
   margin-top: 1rem;
}

.cta-actions {
   display: flex;
   gap: 1rem;
   margin-top: 2rem;
}

.cta-content .btn-primary {
   background: var(--white);
   color: var(--primary);
}

.cta-content .btn-outline {
   border-color: var(--white);
   color: var(--white);
}

.cta-content .btn-outline:hover {
   background: var(--white);
   color: var(--primary);
}


/* FAQ */

.cta-faq-section .section-header {
   text-align: left;
   margin-bottom: 2rem;
}

.cta-faq-section .section-header .heading-lg {
   color: var(--white);
}

.faq-item {
   background: rgba(255, 255, 255, .95);
   border-radius: var(--radius-md);
   margin-bottom: 1rem;
   overflow: hidden;
}

.faq-question {
   width: 100%;
   padding: 1.2rem 1.5rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   background: transparent;
   border: 0;
   font-weight: 600;
   cursor: pointer;
}

.faq-answer {
   display: none;
   padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
   color: var(--text-muted);
}


@media(max-width:991px) {

   .cta-faq-wrapper {
      grid-template-columns: 1fr;
   }

   .cta-actions {
      flex-direction: column;
   }

}