/*=========================================================================
# 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;
  display: grid;
  grid-template-columns: 1fr;
}

/* Layout Responsive */
@media screen and (min-width: 1024px) {
  .wep-root {
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }

  .wep-content-area {
    order: 1;
  }
  .wep-map-wrapper {
    order: 2;
  }
}

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

/* Map Responsive */
@media screen and (min-width: 1024px) {
  .wep-map-wrapper,
  .wep-map-wrapper .wpgmp_map_parent {
    margin-bottom: 0;
    height: 100%;
  }

  .wep-map-wrapper .wpgmp_map_parent .wpgmp_map {
    height: 100% !important;
  }
}

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

.wep-search-box {
  margin-bottom: 1.5rem;
}

.wep-categories-filter {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 15px;
}

.wep-section-filter :is(.wep-input-group, .wep-form-select) {
  filter: drop-shadow(var(--wep-box-shadow));
}

.wep-section-result__header {
  margin-bottom: 1.25rem;
  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: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  color: inherit;
  max-height: 550px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Filter Responsive */
@media screen and (min-width: 1024px) {
  .wep-section-result__list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* 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;
  align-items: flex-start;
}

.wep-card__image-action .wep-chip-wrapper {
  justify-content: flex-end;
}

.wep-card__image-action .wep-chip {
  --wep-chip-bg: rgba(0, 0, 0, 0.6);
  --wep-chip-color: var(--wep-white);
  --wep-chip-border-radius: 50px;
}

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

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

.wep-card__header {
  margin-bottom: 0.25em;
}

.wep-card__text:not(:last-child) {
  margin-bottom: 1rem;
}

.wep-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  font-size: 0.875em;
  padding-top: 1rem;
  border-top: 1px dashed var(--wep-border-color);
}

.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;
}

/* 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;
}
