* {
  font-family: "Roboto", sans-serif;
}

::-webkit-scrollbar {
  width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  padding-top: 0;
}
.events_list--header {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #FFF;
  padding: 0 24px;
  height: 72px;
  width: 100%;
  z-index: 10;
  transition: all ease-in-out .5s;
  opacity: 1;
}

.events_list--header.hidden {
  opacity: 0;
  height: 0;
}

.events_list--header nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.events_list--header .events_list--logo img {
  max-width: 160px;
  height: 54px;
  padding: 2px 0 0 10px;
  object-fit: contain;
}

.events_list--header .events_list--navIcon {
  display: none;
}

.events_list--header .lang_nav--wrapper {
  display: flex;
  gap: 8px;
}
.events_list--header .lang_nav--wrapper .lang_nav--wrapperItem span{
  color: #333;
  border-bottom: 1px solid #333;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  padding: 4px;
  margin: 0 2px;
}

.events_list--header .lang_nav--wrapper .lang_nav--wrapperItem a {
  color: #333;;
  border-bottom: 1px solid transparent;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  padding: 4px;
  margin: 0 2px;
}


.account-user {
  padding: 20px 16px 20px 16px;
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  /* border-bottom: 1px solid #e8e8e8; */
}

.account-user:hover{
  background-color: #f8f8f8;
  cursor:pointer;
}

.account-user-photo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 12px;
  margin-left: 2px;
}

.account-user-name {
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

.account-user-mail {
  color: #888;
  font-size: 12px;
}


.popup {
  display: none;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  z-index: 9;
}

.popup-account, .popup-languages {
  position: fixed;
  min-width: 120px;
}

.popup-account .list-item, .popup-languages .list-item{
  padding: 12px 15px;
  justify-content: flex-start;
}

.popup-scroll{
  overflow: auto;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

form {
  margin: 0;
}
#btn-open-my-account{
  cursor: pointer;
  gap: 0.5rem;
}
.list-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  background-color: #fff;
  border: 0;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.list-item:hover {
  background-color: #eee;
}

@media screen and (max-width: 896px) {
  .events_list--header .events_list--navIcon {
    display: block;
  }
}

.events_list--header .events_list--navItems {
  display: flex;
  background-color: #FFF;
  z-index: 10;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  width: 100%;
  height: 100%;
  max-width: 50%;
  padding: 16px;
}

@media screen and (max-width: 896px) {
  .events_list--header .events_list--navItems {
    position: fixed;
    top: 70px;
    right: 0;
    opacity: 0;
    justify-content: flex-start;
    align-items: flex-start;
    flex-flow: column;
    transform: translateX(100%);
    transition: all .3s ease-in-out;
  }
}

@media screen and (max-width: 896px) {
  .events_list--header .events_list--navItems.show {
    opacity: 1;
    transition: all .3s ease-in-out;
    transform: translateX(0);
  }
}

.events_list--banner {
  height: 100%;
  max-height: 250px;
  margin-top: 72px;
  transition: all ease-in-out .5s;
  opacity: 1;
}
.events_list--banner img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.events_list--banner.hidden {
  opacity: 0;
  height: 0;
}

.events_filter--tabs {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media screen and (max-width: 896px) {
  .events_filter--tabs {
    display: none;
  }
}

.events_filter--tabs .events_filter--tab {
  position: relative;
  font-size: 14px;
  color: #707287;
  cursor: pointer;
}

.events_filter--tabs .events_filter--tab.active,
.events_filter--tabs .events_filter--tab:hover {
  color: #0019ce;
}

.events_filter--tabs .events_filter--tab.active::after,
.events_filter--tabs .events_filter--tab:hover::after {
  content: "";
  position: absolute;
  bottom: -10px;
  background-color: #0019ce;
  width: 100%;
  height: 1px;
  left: 0;
}

.events_filter--select {
  display: none;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 4px 0 #e0e2e4;
  background-color: #FFF;
  appearance: none;
  outline: none;
  border: none;
  font-size: 14px;
  color: #757575;
  align-items: center;
  cursor: pointer;
  width: fit-content;
}
.events_filter--select select {
  appearance: none;
  border: 0;
  margin-left: 4px;
}
@media screen and (max-width: 896px) {
  .events_filter--select {
    display: flex;
    align-items: center;
  }
}

.events_list--title {
  font-size: 32px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #39354f;
  margin: 32px 0;
}

.events_list--wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.events_list--wrapper .event_card {
  position: relative;
  background-color: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 7%), 0 2px 4px rgb(0 0 0 / 5%), 0 12px 24px rgb(0 0 0 / 5%);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.events_list--wrapper .event_card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.events_list--wrapper .event_card .event_card--floating-actions {
  display: flex;
  position: absolute;
  top: 16px;
  right: 16px;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.events_list--wrapper .event_card .event_card--floating-actions .event_card--floating-action {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FFF;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 7px 15px -7px;
  border-radius: 50%;
  z-index: 1;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.events_list--wrapper .event_card .event_card--floating-actions .event_card--floating-action.like:hover {
  color: red;
}

.events_list--wrapper .event_card .event_card--floating-actions .event_card--floating-action.share:hover {
  color: #0019ce;
}

.events_list--wrapper .event_card .event_card--wrapper {
  display: flex;
  flex-direction: column;
}

.events_list--wrapper .event_card .event_card--wrapper .event_card--image {
  position: relative;
  cursor: pointer;
  z-index: 1;
}

.events_list--wrapper .event_card .event_card--wrapper .event_card--image img {
  max-width: 100%;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.events_list--wrapper .event_card .event_card--wrapper .event_card--body {
  position: relative;
  background-color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 16px;
  margin-top: -10px;
  z-index: 2;
}

.events_list--wrapper .event_card .event_card--wrapper .event_card--body h4,
.events_list--wrapper .event_card .event_card--wrapper .event_card--body p {
  margin: 0;
}

.events_list--wrapper .event_card .event_card--wrapper .event_card--body .event_card--date {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9a9a9a;
  font-size: 12px;
}

.events_list--wrapper .event_card .event_card--wrapper .event_card--body .event_card--date i {
  font-size: 16px;
}

.events_list--wrapper .event_card .event_card--wrapper .event_card--body .event_card--title {
  padding-bottom: 8px;
  font-size: 13px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  padding-right: 1.5rem;
}

.events_list--wrapper .event_card--finished{
  font-size: 12px;
  color: #333;
  padding-top: 8px;
  height: 15px;
}

.container {
  padding-bottom: 48px;
}

.events_list--container {
  display: block;
  transition: all ease-in-out .5s;
  opacity: 1;
}

.events_list--container.hidden {
  opacity: 0;
  height: 0;
}

.events_list--loading {
  display: grid;
  height: 100vh;
  place-items: center;
  grid-template-columns: 1fr;
  transition: all  ease-in-out .5s;
  opacity: 1;
}
.events_list--loading.hidden {
  opacity: 0;
  height: 0;
}

.events_list--loading i {
  animation:rotate 4s linear infinite;
}

/* .s0:first-of-type{
  animation:rotate 4s linear infinite;
} */

@keyframes rotate { 
  0% { 
      -webkit-transform: rotate(0deg); 
      transform:rotate(0deg); 
      transform-origin: center center;
  }
  100% { 
      -webkit-transform: rotate(360deg); 
      transform:rotate(360deg); 
      transform-origin: center center;
  } 
}


.empty-state {
  display: grid;
  height: 275px;
  place-items: center;
  grid-template-columns: 1fr;
}

.empty-state div {
  text-align: center;
}

.empty-state i {
  font-size: 32px;
}
.empty-state h2 {
  margin-bottom: 8px;
}
.empty-state p {
  margin-top: 8px;
}

#modal-share .modal-share-wrapper{
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}
#modal-share .modal-body-cont{
  overflow: inherit;
  padding: 24px 30px;
}

.calendar__share--button{
  position: relative;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FFF;
  cursor: pointer;
}
.calendar__share--button i{
  font-size: 42px;
  color: #000;
}
.calendar__share--button > img{ width: 42px; }

.calendar__share--button svg{
  font-size: 32px;
  color: #0019ce;
  height: 100%;
}
.generate-ics-btn{
  cursor: pointer;
}
.generate-ics-btn i {
  /* border-radius: 16px; */
  /* border: 1px solid grey; */
  /* width: 24px; */
  /* height: 24px; */
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
}

.group-buttons select{
  color: #333333;
  font-size: 13px;
  padding: 0 4px;
  font-weight: 500;
}
.group-buttons select option {
  font-size: 13px;
  color: #333;
}

.pu-op{
  line-height: 24px;
  padding: 6px 12px;
  color: #444;
  font-size: 13px;
  cursor: pointer;
  min-width: 120px;
  max-width: 280px;
}

.pu-prop-title{
  cursor: default;

}

.pu-op:not(.pu-prop-title):hover{
  background-color: #f8f8f8;
}

.searcher {
  display:flex;
  align-items:center;
  width:100%;
  box-sizing:border-box;
  padding:10px;
  line-height: 1.3em;
  color: #333;
  margin: 6px 0;
  border-radius: 5px;
  border: solid 1px #DFDFDF;
  max-width:360px;
}
.searcher > input {
  outline:none;
  color:#333333;
  font-size:13px;
  border:0;
  width:100%;
  padding:0 10px;
}
.searcher > i { color: #333333; font-size:18px; }
/* .input-date{ max-width:150px; font-size:13px; color:#333333; height:40px; border-color:#cbd6e2; } */
.date-picker input[type=date]{ height:45px; position:absolute; opacity:0; left:0; width:100%; cursor: pointer;}
.date-picker i{
  height: 17px;
  width: 17px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left:4px;
}
.date-picker i.ph-x{ background-color:#fff; color:#333333;}
.date-picker i.ph-x:hover{ background-color:#333333; color:#fff; }
#modal-filters{ min-width:520px; padding:16px; }
.link{ cursor:pointer; }
#num-property-filters{ font-size:13px; }

.group-filters-buttons{
  flex-wrap: wrap;
}

.filter-option .m-button{
  padding: 4px 6px;
}

.filter-count{
  display: none;
}

.filter-option .prop-option{
  white-space: normal;
}

.filter-option .filter-button > span:first-child, #btn-filter-date-end, #btn-filter-date-start{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#btn-filter-date-end, #btn-filter-date-start,
.flatpickrdate.m-button {
  padding: 4px 4px 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 100px;
  max-width: 120px;
}

.filter-button{
  border-color: #DFDFDF;
}

.filter-button > span, .filter-button > i{
  color: #333333;
}

.filter-option .popup-scroll label{
  white-space: normal;
}

.filter-option-desktop{
  min-width: 100px;
  max-width: 165px;
  display: flex;
}
.filter-option-desktop > span:first-child{
  flex: 1;
}

@media screen and (max-width: 768px) {
  .prop-dsk{
    display: none;
  }
  .group-buttons .filters-mobile{
    display: block!important;
  }
 .group-buttons{
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .popup-filters.show#modal-filters-mobile .group-buttons{
    display: flex;
  }
  .events_list--banner{
    max-height: 150px;
  }

  .account-user-name{
    display: none;
  }

  .searcher input,
  #flatpickr-date-range-mobile,
  .flatpickr-input {
    font-size: 16px !important; /* Tamaño mínimo para evitar zoom en iOS */
  }
  .date-picker i{
    height: 28px;
    width: 28px;
    font-size: 15px;
  }
}


#container-options{
  max-height: 250px;
  overflow-y: auto;
}

#container-options>label{
  display: flex;
  align-items: flex-start;
  word-break: break-word;
}

#container-options>label input{
  margin-top: 6px;
  margin-right: 8px;
}

#open-modal-filters-mobile.filters-applied{
  border: solid 1px #333;
  color: #333;
}

/* Añade o modifica estos estilos en tu CSS */
#modal-filters-mobile {
  display: none;
  position: fixed;
  bottom: -100%;
  padding: 1rem;
  left: 0;
  width: 100%;
  max-height: 80%;
  min-height: 60%;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 9;
  /* Cambio clave: usar transform en lugar de modificar bottom */
  transform: translateY(100%);
  transition: transform 0.2s ease-in-out;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.flatpickr-calendar {
  max-height: 300px !important; /* Limitar altura del calendario */
}

.flatpickr-mobile.form-control.input {
  position: absolute !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#modal-filters-mobile.show {
  display: flex;
  flex-direction: column;
  bottom: 0;
  transform: translateY(0);
}

#container-filters {
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem;
  -webkit-overflow-scrolling: touch;
}
#container-filters span{
  color: #333;
}

#container-filters .m-button{
  height: auto;
  padding: 8px 10px;
}

#modal-filters-mobile .header-filters {
  margin-bottom: 1.5rem;
  justify-content: space-between;
  flex-shrink: 0;
}

#modal-filters-mobile .header-filters > div {
  flex: 1;
  font-size: 20px;
  color: #333;
}

#modal-filters-mobile .header-filters > div:nth-child(2) {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: #333;
}

#modal-filters-mobile .header-filters > div:last-child {
  text-align: right;

}

#modal-filters-mobile .header-filters > div:last-child a{
  font-size: 16px;
  color: #333;
}

#apply-filters-container{
  flex-shrink: 0;

}

#apply-filters-container span{
  font-size: 16px;
}

#modal-filters-mobile .field-title{
  font-size: 16px;
}

#modal-filters-mobile .date-filter-mobile > .date-picker{
  flex: 1;
}

#modal-filters-mobile .flatpickr-wrapper, #flatpickr-date-range-mobile, #modal-filters-mobile .flatpickr-wrapper .flatpickr-input{
  width: 100%;
}

#str-filter-date-range-mobile{
  flex: 1;
  text-align: left;
}

#modal-filters-mobile .group-buttons{
  display: flex;
  flex-direction: column;
  align-items: flex-start;  
  margin: 1rem 0 0 0;
  gap: 0;
}

#modal-filters-mobile .filter-option-mobile {
  color: #cbd6e2;
  font-size: 14px;
}

#modal-filters-mobile .filter-option-mobile.filter-active{
  border: solid 1px #333;
  color: #333; 
}

#modal-filters-mobile .container-options-mobile{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#apply-filters{
  width: 100%;
  margin-top: 1rem;
  font-size: 16px;
  font-weight: 500;
}

#apply-filters.default-color{
  background-color:#333;
}

#apply-filters span{
  color: white;
}


.modal-background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 8;
}

.modal-background.show {
  display: block;
}

.ph-arrow-right {
  margin-left: 10px;
}

.ph-trash {
  margin-left: 10px;
  cursor: pointer;
}

.mm-options{ z-index:9; display:none; position:absolute; background-color:#fff; min-width:190px; border-radius:3px; box-shadow:0 0 4px 0px rgba(0,0,0,0.4); top:46px; left:262px; }
.mm-options.on{ display:inline-block; }
.mm-opt{ padding:6px 10px; border-bottom:1px solid #e2e2e2; cursor:pointer; line-height:24px; display:block; }
.mm-opt:hover{ background-color:#f2f2f2; }
.mm-opt > i{ line-height:28px; width:28px; text-align:center; vertical-align:middle; font-size:14px; color:#ababab; margin-right:6px; }
.mm-opt > span{ display:inline-block; line-height:28px; vertical-align:middle; font-size:13px; color:#333; }
.mm-opt.off > i{ color:#d2d2d2; }
.mm-opt.off > span{ color:#d2d2d2; }
.mm-opt.on { background-color:#f2f2f2; }
.mm-opt.on > span{ font-weight:500; }

.events_list--nav {
  gap: 1rem;
}

.avatar-circle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  border: 1px solid #d2d2d2;
}

.lang-option {
  display: block;
  color: black;
  text-decoration: none;
}

.lang-switcher.active .ph-caret-down {
  transform: rotate(180deg);
  transition: transform 0.2s ease-in-out;
} 

.lang-button span {
  text-transform: uppercase;
}

.filter-button-active {
  background-color: #f0f0f0;
  border: 1px solid #999 !important;
}

.flatpickr-mobile.form-control.input {
  position: absolute !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}