* {
  box-sizing: border-box;
}

.filters {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  /* margin-bottom: 1rem; */
  overflow: auto;
  padding-bottom: 0.35rem;
}

.filters select {
  padding: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #abb1b5;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: var(--me-chevron);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 30px !important;
  min-width: unset;
  width: auto;
  max-width: 50%;
}

.filters select:focus {
  border: 1px solid rgba(74, 189, 206, 1);
  border-color: rgba(74, 189, 206, 1);
  outline: none;
  background-color: rgba(74, 189, 206, 0.14);
}

.main-type-category {
  font-weight: bold;
}

.searcherContainer {
  display: flex;
  gap: 0.75rem;
}

.searchBtn {
  background-color: #4abdce !important;
  border: none;
  font-weight: 400;
  padding: 0.75rem;
  font-size: 1.1rem;
  border-radius: 12px;
  min-width: 60px;
  cursor: pointer;
}

.searchBtn:active {
  background-color: #29b9cf;
  cursor: wait;
}

.searchBtn:focus {
  outline: none;
}

#directory_searchbar {
  width: 100%;
  min-width: unset;
  padding: 0.7rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #abb1b5;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px !important;
  min-width: unset;
}

#directory_searchbar:focus {
  border: 2px solid rgba(74, 189, 206, 1);
  border-color: rgba(74, 189, 206, 1);
  outline: none;
  background-color: rgba(74, 189, 206, 0.14);
}

.openLocationMap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background-color: white;
  padding: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #abb1b5;
  border-radius: 8px;
  border-color: rgba(74, 189, 206, 1);
  background-color: rgba(252, 254, 254, 1);
  color: black;
  font-weight: 400;
}

.openLocationMap:focus {
  outline: none;
}

.openLocationMap:hover {
  border-color: #0cd3dc;
}

.card_list {
  overflow: visible;
  gap: 1rem;
  min-height: 500px;
}

.card_list::-webkit-scrollbar {
  display: auto;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
  background-color: #fff;
}

.card,
.upcoming_events_list .card {
  margin-bottom: 1rem;
}

.card:hover {
  transform: scale(1.01);
}

.card:focus {
  outline-color: #289eb2;
  outline-width: 1.5px;
}

a.card:focus .description,
.card:hover .description {
  color: #414141 !important;
}

.upcoming_events_more:hover,
.card:hover .title,
.toggle_desc:hover .chevron,
.toggle_desc:hover {
  color: #289eb2 !important;
  text-decoration: none;
}

.card_info {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  padding-bottom: 1rem;
}

.card_info .card_kicker {
  font-size: 0.9rem;
  color: #777;
  display: flex;
  align-items: center;
}

.card_info .card_locality {
  font-weight: 600;
  margin-left: 0.5rem;
  color: #000;
}

.card_info .title {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.card_info .description {
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

.card_info .description.expanded {
  display: block;
}

.toggle_desc {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 5px 0 0;
  gap: 6px;
  font-weight: 400;
  color: #4a4f54;
  width: max-content;
}

.card_info :is(.card_kicker,
  .extra_info,
  .contact,
  .location,
  .undefined_date,
  .date_block) {
  color: #000;
  font-size: 0.9rem;
  margin: 0;
}

.card_info .extra_info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1rem;
}

:is(.location, .contact) {
  display: flex;
  align-items: center;
}

:is(.location, .contact) img {
  margin-right: 0.3rem;
  vertical-align: middle;
}

.card_date {
  display: flex;
}

.undefined_date,
.card_date {
  font-weight: 600;
  background-color: #f5f6f6;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
}

.card_photo {
  display: flex;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.card_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.date_block {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.date_sep {
  margin: 0 0.1rem;
}

.chevron.rotated {
  transform: rotate(180deg);
}

.no_events {
  margin-top: -120px;
  min-height: 10vh;
}

/* map */
.map {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  max-height: 510px;
}

.calendar_map_class a {
  cursor: pointer;
}

.map svg {
  width: 100%;
  height: auto;
  margin-left: -0.5rem;
  max-width: 693px;
}

.map svg g path {
  fill: rgb(102, 102, 102) !important;
  stroke: rgb(228, 228, 228) !important;
}

.map svg g path:hover {
  fill: rgb(0, 255, 234) !important;
  stroke: rgb(0, 255, 234) !important;
}

.map_tooltip {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
}

.card_type {
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
}

.card_type.leisure {
  background-color: #3498db;
}

.card_type.theater {
  background-color: #a34343;
}

.card_type.gastronomy {
  background-color: #e07934;
}

.card_type.townhall {
  background-color: #9137af;
}

.card_type.sport {
  background-color: #5c6ac4;
}

.card_type.artculture {
  background-color: #eb684b;
}

.card_type.hotelagrotourism {
  background-color: #34495e;
}

.card_type.outdoor {
  background-color: #3e7a4e;
}

.card_type.beach {
  background-color: #2d91c2;
}

.pagination {
  text-align: center;
}

.pagination button {
  padding: 5px 10px;
  border: none;
  background: none;
  cursor: pointer;
  color: #414141;
  aspect-ratio: 1/1;
}

.previous-page,
.next-page,
.page-number.active {
  background-color: #255665;
  color: #fff;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

.page-number:hover {
  background-color: #e5e7e8;
  color: #000;
  border-radius: 12px;
  outline: none;
  aspect-ratio: 1 / 1;
}

:is(.page-number, .next-page, .previous-page):focus {
  outline: none;
}

.pagination :is(.previous-page, .next-page) {
  background-color: #e5e7e8;
}

.pagination .page-info {
  margin: 0 10px;
}

.upcoming_events_container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upcoming_events_more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  min-width: 130px;
  max-width: unset;
  border: none;
  background-color: unset;
  outline: none;
  color: #414141;
  padding: 0;
  margin-top: 1rem;
  font-weight: 600;
}

.upcoming_events_more:hover {
  background: unset;
  border-color: unset;
}

.upcoming_events_list .card .card_photo {
  flex: 1.5;
  aspect-ratio: unset;
}

.upcoming_events_list .card .card_info {
  flex: 2.5;
}

#upcoming_events_more.open svg {
  transform: scaleY(-1);
}

@media (min-width: 400px) {
  .pagination button {
    padding: 5px 15px;
  }
}

@media (min-width: 512px) {
  .card {
    align-items: center;
    margin-bottom: 0;
    /* max-width: 395px; */
  }

  .upcoming_events_list .card {
    max-width: unset;
  }

  .card_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    row-gap: 2rem;
    /* max-width: 1216px !important; */
    margin: auto;
  }

  .upcoming_events_list .card_photo img {
    border-radius: 8px 0 0 0;
  }

  .filters select {
    min-width: unset;
    width: 33.33%;
  }

  .card_info {
    padding-top: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .upcoming_events_list .card {
    display: flex;
    flex-direction: row;
    min-height: 150px;
    background-color: white;
  }

  .upcoming_events_list .card .card_photo {
    border-radius: 8px 0 0 8px;
  }
}

@media (min-width: 767px) {
  .map {
    display: flex !important;
    margin-top: 5rem;
  }

  .openLocationMap {
    display: none;
  }

  .card_list {
    grid-template-columns: repeat(3, 1fr);
  }

  .upcoming_events_list .card {
    margin-bottom: 0;
    /* max-width: 600px; */
  }

  /* .upcoming_events_container {
    max-width: 1216px !important;
  } */

  .upcoming_events_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .upcoming_events_more {
    margin-top: 2rem;
  }
}

@media (min-width: 977px) {
  .map {
    justify-content: end;
  }

  @media (min-width: 1500px) {
    .upcoming_events_list .card_photo {
      min-width: 200px;
    }

    .card_info {
      padding-left: 1.5rem;
    }
  }
}

@media (min-width: 1350px) {
  .map {
    margin-top: 0;
  }
}

@media (min-width: 1700px) {
  .card_list {
    margin-top: 2rem;
  }

  .map svg {
    margin-right: 4rem;
  }
}

/* test */
/* 
.is-style-default>div:first-child {
  overflow: hidden;
}

.is-style-default {
  max-width: 1216px !important;
} */