
/* ===========================
   Insights Page Stylesheet
   =========================== */

.insights-page {
  background-color: var(--color-bg-page);
  min-height: 100vh;

}

/* Page Header */
.insights-header {
  padding: 60px 0 80px;
  background-color: var(--color-bg-page);
}

.insights-header__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0px;
}

.insights-header__title {
  font-size: 48px;
  font-weight: 100;
  width: 60%;
  text-align: left;
  color: var(--color-text-dark);
  margin: 0;
  /* opacity: 0; */
  transform: translateY(30%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Featured/Sticky Post - CTA Block 2 Style */
.insights-featured {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 40px;
  display: flex;
      border-radius: 4px;
  align-items: center;
  justify-content: center;
 max-height: 450px;
  width: 1440px;
  margin: 0 auto;
}

.insights-featured__overlay {
  position: absolute;
  top: 0;
      border-radius: 4px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.insights-featured__container {
  position: relative;
  z-index: 2;
  /* max-width: 1200px; */
  margin: 0 auto;
  width: 100%;
}

.insights-featured__content {
  background: rgb(0 0 0 / 19%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2rem;
  display: block;
  width: 45%;
  gap: 4rem;
  align-items: center;
}

.insights-featured__left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insights-featured__title {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.insights-featured__title a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.insights-featured__title a:hover {
  opacity: 0.8;
}

.insights-featured__excerpt {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.insights-featured__button {
  display: inline-block;
  padding: 16px 48px;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid #ffffff;
  border-radius: 32px;
  transition: all 0.3s ease;
  line-height: 1;
  align-self: flex-start;
}

.insights-featured__button:hover {
  background-color: #ffffff;
  color: var(--color-text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.insights-featured__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.insights-featured__image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  max-height: 400px;
}

/* Category Filter */
.insights-filter {
  padding: 40px 0;
  /* background-color: #fff; */
  /* border-bottom: 1px solid #e5e5e5; */
}

.insights-filter__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 00px;
}

.insights-filter__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.insights-filter__button {
  padding: 10px 24px;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 200;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.insights-filter__button:hover {
  background-color: #e5e5e5;
  border-color: #d5d5d5;
}

.insights-filter__button--active {
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  color: #fff;
}

.insights-filter__button--active:hover {
  background-color: #333;
  border-color: #333;
}

/* Blog Posts Grid */
.insights-grid {
  padding: 10px 0 80px;
  background-color: var(--color-bg-page);
}

.insights-grid__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0px;
}

.insights-grid__posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.insights-grid__post {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.insights-grid__post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.insights-grid__post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f5f5f5;
}

.insights-grid__post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.insights-grid__post:hover .insights-grid__post-image img {
  transform: scale(1.05);
}

.insights-grid__post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.insights-grid__post-title {
  font-size: 20px;
  font-weight: 200;
  margin: 0;
  line-height: 1.3;
}

.insights-grid__post-title a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.insights-grid__post-title a:hover {
  color: #666;
}

.insights-grid__post-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insights-grid__no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #999;
}

/* Google Maps InfoWindow Styling */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-t::after {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Remove focus outline from InfoWindow */
.gm-style-iw.gm-style-iw-c:focus,
.gm-style-iw.gm-style-iw-c:focus-visible {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Design */

@media(max-width: 1440px) {
  .insights-filter {
    padding: 40px 20px;
  }
  .insights-grid {
    padding: 10px 20px 80px;
  }
}
@media (max-width: 1024px) {
  .insights-header__title {
    font-size: 36px;
    width: 100%;
  }

  .insights-featured__post {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .insights-featured__post-title {
    font-size: 28px;
  }

  .insights-grid__posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .insights-header {
    padding: 20px 20px 70px;
  }

  .insights-header__container,
  .insights-featured__container,
  .insights-filter__container,
  .insights-grid__container {
    padding: 0 20px;
  }

  .insights-header__title {
    font-size: 28px;
  }

  .insights-featured {
    padding: 40px 0;
    justify-content: center;
    min-height: auto;
    width: unset;
    margin: 0 20px 20px;
    border-radius: 4px;
  }
  
  .insights-featured__content {
    width: 100%;
  }

  .insights-featured__post-title {
    font-size: 24px;
  }

  .insights-featured__excerpt {
    font-size: 16px;
  }

  .insights-filter {
    padding: 4px 0;
  }

  .insights-grid {
    padding: 40px 0 60px;
  }

  .insights-grid__posts {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .insights-grid__post-title {
    font-size: 18px;
  }

  .insights-grid__post-excerpt {
    font-size: 14px;
  }
}

/* Mobile Filter Drawer */
@media (max-width: 1024px) {
    .filter-mobile-toggle {
        display: flex;
        justify-content: flex-end;
        cursor: pointer;
    }

    .filter-tabs--mobile-drawer {
        position: fixed;
        top: 0;
        /* right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh; */
        background: white;
        transform: translate(0vw, 40vw);
        z-index: 1002;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        /* display: flex; */
        width: 90vw !important;
        border-radius: 14px;
        flex-direction: column;
        gap: 12px;
        display: none;
    }

    .filter-tabs--mobile-drawer.is-open {
        display: flex;
    }

      /* Backdrop - separate element */
    .filter-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1001;
    }

    .filter-tabs--mobile-drawer.is-open .filter-backdrop {
        display: block;
    }

    .filter-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 10;
    }

    .filter-close img {
        width: 24px;
        height: 24px;
    }

    /* Backdrop overlay */
    /* .filter-tabs--mobile-drawer.is-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    } */
}

@media (min-width: 1025px) {
    .filter-mobile-toggle {
        display: none;
    }

    .filter-close {
        display: none;
    }
}
