/*=========================================================================
# General Guidelines
===========================================================================
1. Follow the BEM (Block Element Modifier) naming convention.
2. Maintain a modular approach for styles.
3. Test styles across all major browsers (Chrome, Firefox, Safari, Edge).
4. Ensure proper accessibility (e.g., WCAG compliance).
===========================================================================*/

/* Layout Style
===========================================================================*/
.wep-root {
  position: relative;
}

.wep-content-area {
  margin-top: 2rem;
}

.wep-content-header {
  display: none;
}

.wep-content-header .title {
  margin-bottom: 0;
}

.wep-content-header .wep-btn {
  min-width: auto;
}

/* Layout Responsive */
@media screen and (min-width: 768px) {
  .wep-content-area {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 2;
    max-width: 520px;
    background-color: var(--wep-white);
    border-radius: 8px;
    box-shadow: var(--wep-box-shadow);
    margin-top: 0;
  }

  .wep-content-area__inner {
    display: none;
  }

  .wep-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 6px 20px;
  }
}

/* Map Styles
===========================================================================*/
.wep-map-wrapper {
  position: relative;
  margin-bottom: 2em;
}

/* Filter Styles
===========================================================================*/
.wep-section-filter {
  margin-bottom: 0.5rem;
}

.wep-search-box .wep-btn-filter {
  --wep-btn-filter-bg-img: none;
  padding-right: var(--wep-btn-padding-x);
  min-width: auto;
}

.wep-categories-filter {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 15px;
  padding: 10px 24px;
  background-color: var(--wep-secondary);
}

.wep-section-result__header {
  padding-inline: 24px;
  margin-bottom: 0.75rem;
  color: inherit;
  display: flex;
  gap: 5px;
}

.wep-section-result__header .wep-result-action {
  margin-left: auto;
}

.wep-section-result__list {
  padding-block: 5px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  color: inherit;
  max-height: 480px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Filter Responsive */
@media screen and (min-width: 768px) {
  .wep-search-box input.wep-form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .wep-search-box .wep-btn-filter {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/* Card
===========================================================================*/
.wep-card {
  display: flex;
  flex-direction: column;
}

.wep-card__image {
  flex-shrink: 0;
  width: 100%;
  border-radius: 16px;
}

.wep-card__image-action {
  padding: 12px 14px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* z-index: 1; */
  height: auto;
  display: flex;
  justify-content: flex-end;
}

.wep-card__image-action .icon-more,
.wep-card__image-action .icon-more:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--wep-white);
  filter: brightness(10);
}

.wep-card__image > img {
  border-radius: 16px;
}

.wep-card__body {
  flex: 1 1 0;
  padding: 20px 0 10px;
}

.wep-card__header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0.25em;
}

.wep-card__extra {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wep-card__text:not(:last-child) {
  margin-bottom: 10px;
}

.wep-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  font-size: 0.875em;
}

.wep-card .wep-card__title {
  margin: 0 !important;
}

.wep-card .wep-dropdown-toggle {
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.8;
  background-color: rgba(0, 0, 0, 0.8);
  margin-left: 5px;
}

.wep-card .wep-dropdown-toggle > i {
  filter: brightness(10);
}

.wep-card .wep-dropdown-toggle:hover {
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 1;
}

.wep-card__extra .wep-btn-icon {
  transition: all 0.3s ease-in-out;
  margin-left: auto;
}

.wep-card__extra .wep-btn-icon.active {
  transform: rotate(90deg);
}

/* Card Responsive */
@media screen and (min-width: 576px) {
  .wep-section-result__list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding-inline: 24px;
  }
}

@media screen and (min-width: 768px) {
  .wep-section-result__list {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-inline: 0;
  }
  .wep-card__header,
  .wep-card {
    flex-direction: row;
  }

  .wep-card {
    padding: 8px 20px;
  }

  .wep-card:hover {
    background-color: var(--wep-secondary);
  }

  .wep-card__image {
    max-width: 140px;
  }
  .wep-card__body {
    padding: 0 0 0 20px;
  }

  .wep-card__extra {
    margin-left: auto;
  }

  .wep-card__extra .wep-btn-icon {
    margin-right: -15px;
    margin-left: 0;
  }
}

@media screen and (min-width: 1280px) {
  .wep-card__body {
    padding: 0 0 0 30px;
  }
}

/* List style
===========================================================================*/
.wep-categories__list {
  margin-bottom: 0.875rem;
}

.wep-card__title a {
  display: inline-flex;
  color: inherit;
  font-size: inherit;
}

.wep-categories__list .wep-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  opacity: 0.65;
}

.wep-list__item {
  position: relative;
  font-size: 0.875em;
  display: flex;
  align-items: center;
}

.wep-list__item:not(:last-child) {
  padding-right: 8px;
  margin-right: 8px;
}

.wep-list__item:not(:last-child)::before {
  content: "";
  display: block;
  width: 1px;
  height: 14px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #adadad;
}

/* Pagination
===========================================================================*/
.wpgmp_pagination {
  display: none !important;
}

/* listing button style
===========================================================================*/
.wep-listing-btn {
  background-color: var(--wep-white);
  color: #808080;
  padding: 12px 14px;
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  border-radius: var(--wep-btn-border-radius);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--wep-box-shadow);
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 1;
}

.wep-listing-btn:is(:hover, :focus) {
  background-color: var(--wep-secondary);
}

.wep-listing-btn.active .wep-icon {
  transform: rotate(-180deg);
}

/* Responsive */
@media screen and (min-width: 768px) {
  .wep-listing-btn {
    display: inline-flex;
  }
}
