.event-layout-container {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 20px;
  align-items: start;
  grid-template-areas: "left right";
  margin-top: 48px;
  width: 100%;

  @media (max-width: 768px) {
    widh: 50%;
  }
}

/* Se o mapa não estiver presente, o lado esquerdo ocupa 100% */
.ph-campaign-event.no-map .event-layout-container {
  grid-template-columns: 1fr;
  grid-template-areas: "left";
}

.event-left-side {
  grid-area: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.fields-wrapper {
  margin: 0 15px;
}

/* O lado direito só aparece se o mapa existir */

.ph-campaign-event.no-map .js-campaign-event-container.js-form-wrapper.form-wrapper {
  display: none;
}


.event-right-side {
  grid-area: right;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Responsividade */
@media (max-width: 768px) {
  .event-layout-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "right"
      "left";
  }

  .ph-campaign-event.no-map .event-layout-container {
    grid-template-columns: 1fr;
    grid-template-areas: "left";
  }
}

.ph-campaign-event .js-campaign-event-container {
  display: flex;
  gap: 1.7rem;
}

@media (max-width: 768px) {

  .ph-campaign-event .js-campaign-event-container,
  .ph-campaign-event .js-campaign-event-map {
    max-height: 614px;
  }
}

/* Layout padrão dos eventos */
.ph-campaign-event .events {
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(313px, 313px));
  gap: 32px;

  @media (max-width: 1010px) {
    grid-template-columns: repeat(auto-fit, minmax(313px, 313px));
    /* 1 coluna em telas pequenas */
    justify-content: center;
    overflow-y: unset;
  }
}


.ph-campaign-event.no-map .events {
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 64px 0px;
}

/* Estilo dos cards */
.ph-campaign-event .event-card {
  width: 100%;
  max-width: 313px;
  margin: 0 auto;
}

.ph-campaign-event .event-card .description-container {
  max-height: 90px;
  min-height: 90px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Responsividade para telas médias */
@media (max-width: 1024px) {
  .ph-campaign-event.no-map .events {
    grid-template-columns: repeat(2, minmax(313px, 1fr));
    /* 2 colunas em telas médias */
  }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .ph-campaign-event.no-map .events {
    grid-template-columns: 1fr;
    /* 1 coluna em telas pequenas */
    justify-content: center;
  }

  .ph-campaign-event .event-card {
    max-width: 100%;
  }
}



/* Estilo dos cards */
.ph-campaign-event .event-card {
  width: 100%;
  max-width: 313px;
  flex: 1 1 313px;
}

/* Responsividade para telas menores */
@media (max-width: 1024px) {
  .ph-campaign-event.no-map .events {
    justify-content: center;
  }

  .ph-campaign-event .event-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .ph-campaign-event .event-card {
    flex: 1 1 90%;
    max-width: 313px;
  }
}


.ph-campaign-event .js-campaign-event-map {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
}


.event-cards {
  width: 100%;
  height: inherit;
  padding: 0px 0px 50px 0px;
}

.event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Adjust width to fit within the container */
  height: auto;
  overflow: hidden;
}

.event-card .image-container {
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card strong {
  font-weight: bold;
  margin: 16px 0 4px 0;
}

.event-card h3 {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}

.event-card p {
  flex-grow: 1;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.js-map-event-details-link,
.event-card a {
  display: inline-block;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  padding: 12px 30px;
  border: 1px solid;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
  margin-top: 22px;
}

.event-card button {
  align-self: flex-end;
  margin: 0.5rem;
  border: none;
  cursor: pointer;
}

.search-container {
  display: flex;
  justify-content: space-between;
  height: 48px;
  margin-bottom: 25px;
  gap: 20px;

  @media (max-width: 480px) {
    gap: 0;
    width: 90%;
    justify-content: left;
  }
}

.form-wrapper .option>div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 5px;
    flex-shrink: 1;
  }

}

.search-content {
  display: flex;
  flex-grow: 1;
  align-items: center;

  @media (max-width: 768px) {
    flex-grow: 1;
  }
}

.search-content .form-item-search {
  width: 100%;
}


.search-content .form-text {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  background-color: #fff;
  height: 48px;
  border: none;
}

.search-content .form-text:focus-visible {
  outline-width: 0;
}

.search-content .form-submit {
  text-indent: -99999px;
  width: 32px;
  height: 32px;
  border-radius: 30px;
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23000" d="M15.5 14h-.79l-.28-.27a6.471 6.471 0 001.48-5.34C15.16 5.53 12.79 3 9.99 3 7.2 3 4.83 5.53 4.83 8.39c0 2.87 2.37 5.39 5.16 5.39 1.27 0 2.44-.48 3.34-1.27l.27.28v.79l4.25 4.25c.39.39 1.02.39 1.41 0 .39-.38.39-1.01 0-1.41l-4.26-4.25zM6.83 8.39c0-1.76 1.41-3.17 3.16-3.17s3.17 1.41 3.17 3.17-1.42 3.16-3.17 3.16-3.16-1.41-3.16-3.16z"></path></svg>') no-repeat center center;
  background-size: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  right: 40px;
  flex-shrink: 0;
}

.search-container .select2-selection.select2-selection--single {
  height: 48px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: left;
  border: none;
  border-radius: 4px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  text-align: right;
  margin-left: 34px;
}

.search-container .select2-container--default .select2-selection--single .select2-selection__placeholder {
  font-weight: initial;
}

.select2 .select2-container .select2-container--default {
  width: 75px;
}

.search-container .select2-selection.select2-selection--single[aria-expanded="true"] {
  border-radius: 25px 25px 0 0;
}

.search-container .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: relative;
  left: 7px;
  right: 0;
  display: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  @media (max-width: 768px) {
    display: none !important;
  }
}

.search-container .form-item-category {
  width: 215px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .search-container .form-item-category {
    width: 85px;
  }
}

.form-wrapper .form-type-radio {
  position: relative;
}

@media (max-width: 768px) {
  .form-wrapper .form-type-radio {
    width: 66px;
  }
}

@media (min-width: 768px) {
  .form-wrapper .form-type-radio {
    width: max-content;
    max-width: max-content;
  }
}

.form-wrapper .form-type-radio>div {
  display: flex;
  align-items: center;
  width: fit-content;
  position: absolute;
}

.form-wrapper .form-type-radio .form-radio {
  display: none;
}

.form-wrapper .form-type-radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 20px;
  border: 1px solid #ABAFB4;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  background: white;
  width: 100%;
  height: 50px;
  text-align: center;

  @media (max-width: 768px) {
    height: 80px;
    padding: 10px 5px;
  }
}

div[id*="edit-filter"] .ajax-progress.ajax-progress-throbber {
  position: absolute;
  z-index: 5;
}

div[id*="edit-filter"] div:nth-child(2) {
  display: flex;
  gap: 15px;
  font-family: 'corona headline', sans-serif;
  font-weight: 600;
  position: relative;

  @media screen and (max-width: 768px) {
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
  }
}

div[id*="edit-filter"] div[id*="edit-region"] {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;

  @media screen and (max-width: 768px) {
    justify-content: left;
    gap: 3px;
    flex-wrap: wrap;
  }
}

/* Modal */

/* Ajuste da barra de título do modal do jQuery UI */
.ui-dialog-titlebar {
  display: none !important;
}

/* Ajuste para a área do conteúdo do modal */
.ui-dialog-content {
  padding: 0px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ui-dialog .ui-dialog-buttonpane {
  border: none !important;
  padding: 15px 0px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 15px !important;
  background-color: transparent;
}

.ui-dialog .ui-dialog-buttonset {
  display: flex !important;
  justify-content: space-around !important;
  gap: 3px !important;
}

.ui-dialog.event-details-modal img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  margin-bottom: 20px !important;
}


/* 🔹 Estilização do botão de fechar (X) no modal */
.ui-dialog .ui-dialog-titlebar-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: transparent !important;
  border: none !important;
  font-size: 20px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  color: #000 !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease-in-out;
  display: block !important;
  /* 🔹 Garante que o botão seja sempre visível */
}

/* 🔹 Efeito hover para realce */
.ui-dialog .ui-dialog-titlebar-close:hover {
  opacity: 1 !important;
}

/* 🔹 Garantir que o botão não seja ocultado pelo jQuery UI */
.modal-close-button {
  display: block !important;
}

/* Botão de fechar */

/* .event-layout-container .custom-modal-close {
  position: absolute;
  top: -113px;
  left: -63px;
  font-size: 24px;
  cursor: pointer;
}

.event-layout-container .custom-modal .slider {
  width: 100%;
  margin: auto;
}

.event-layout-container .custom-modal .slide {
  text-align: center;
}

.event-layout-container .custom-modal .slide img {
  width: 100%;
  border-radius: 8px;
}

.slick-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.slick-dots li {
  margin: 0 5px;
}

.slick-dots li button {
  font-size: 0;
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.slick-dots li.slick-active button {
  background: #fff;
  border: 1px solid #fff;
} */

.form-item-region input[type="radio"]:checked+label .radio-image {
  filter: brightness(0.5) contrast(2);
}

.search-content .form-submit:focus-visible {
  box-shadow: none;
}

/* Estilo para o título desktop */
.page-title-desktop {
  display: block;
}

/* Estilo para o título mobile */
.page-title-mobile {
  display: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .page-title-desktop {
    display: none;
    /* Esconde o título desktop em mobile */
  }

  .page-title-mobile {
    display: block;
    /* Mostra o título mobile em mobile */
  }
}
