.text-underline {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  line-height: 1rem;
  /* vertical-align: -webkit-baseline-middle; */
}

.w-max-200 {
  max-width: 200px;
}

.w-max-250 {
  max-width: 250px;
}

@media (max-width: 767px) {
  .pull-sm-left {
    float: left;
  }

  .topbar {
    position: relative;
    width: 100%;
  }

  .flex-sm-column {
    flex-direction: column;
  }

  .d-sm-none {
    display: none;
  }

  .footable-filtering .form-inline {
    float: unset !important;
    width: 100%;
    display: block;
  }

  table.footable.footable-filtering-right > thead > tr.footable-filtering > th,
  table.footable > thead > tr.footable-filtering > th {
    padding-left: 0;
  }

  .row:has(.m-card-mobile) {
    margin-left: -28px;
    margin-right: -28px;
  }

  [class^="col"]:has(.m-card-mobile) {
    padding: 0;
  }
}

@media (min-width: 767px) {
  .pull-md-right {
    float: right;
  }

  .d-md-block {
    display: block;
  }

  .d-md-inline {
    display: inline;
  }
}

.page-wrapper {
  background: #383f48;
  /* padding-bottom: 37px; */
}

/* .container-fluid {
  padding: 0 30px 0 30px;
} */

.bg-dark-gray {
  background-color: #263238 !important;
}

.fs-24 {
  font-size: 24px;
}

.fs-18 {
  font-size: 18px;
}

.icon-xxl {
  font-size: 4rem;
}

.user-profile .profile-text a {
  color: #ffff !important;
}

.img-circle,
.profile-pic {
  object-fit: cover;
  border-radius: 50%;
  aspect-ratio: 1;
}

.user-profile {
  background-size: cover;
  background-position: center;
  width: 100%; /* or any desired width */
  position: relative;
  /*padding-top: 56.25%;*/ /* Example for 16:9 aspect ratio */
  aspect-ratio: 1;
}

.flex-grow-1 {
  flex-grow: 1;
}

.flex-grow-0 {
  flex-grow: 0;
}

/** STILE FOOTABLE */

@media (max-width: 767px) {
  table > tbody > tr > td > span.footable-toggle {
    float: right;
  }

  /* .m-datatable-mobile {
    margin-top: -48px;
  } */
}

table.footable.footable-filtering-right > thead > tr.footable-filtering > th,
table.footable > thead > tr.footable-filtering > th {
  padding-right: 0;
}

.footable-detail-row > td {
  padding: 0 !important;
}

.footable-filtering .form-inline {
  float: right !important;
}

.footable-filtering .form-inline .input-group-btn {
  display: none !important;
}

.footable .form-control {
  border-color: rgba(120, 130, 140, 0.13) !important;
  background-color: #263238;
  color: #747d8a !important;
  min-height: 38px;
  display: initial;
  font-weight: 300 !important;
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #495057;
  background-image: none;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  margin-bottom: 24px !important;
}

.footable .form-control:focus {
  color: #495057;
  border-color: #80bdff;
  outline: 0;
}

.footable-details.table > tbody > tr > td,
.footable-details.table > tbody > tr > th,
.footable-details.table > tfoot > tr > td,
.footable-details.table > tfoot > tr > th,
.footable-details.table > thead > tr > td,
.footable-details.table > thead > tr > th,
.footable.table > tbody > tr > td,
.footable.table > tbody > tr > th,
.footable.table > tfoot > tr > td,
.footable.table > tfoot > tr > th,
.footable.table > thead > tr > td,
.footable.table > thead > tr > th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid rgba(120, 130, 140, 0.13);
  border-bottom: unset;
}

.table-hover tbody tr:hover {
  background-color: #383f48 !important;
}

.footable .pagination li.active a {
  z-index: 2;
  color: #fff;
  background-color: #26c6da;
  border-color: #26c6da;
}

/** STILE FULL CALENDAR */

@media (max-width: 767px) {
  .fc-time {
    font-weight: 50 !important;
  }
}

@media (min-width: 767px) {
  .fc-event-container {
    padding: 0rem 0.5rem 0.5rem 0.5rem !important;
  }
}

.popover {
  background-color: #fff;
}

.fc-unthemed .fc-list-empty {
  background-color: #383f48;
}

.fc-toolbar {
  margin: 0;
  padding: 0;
}

.fc-body .fc-axis {
  width: 60px !important;
}

.fc-unthemed .fc-today {
  background: #263238 !important;
}

.fc-day-grid-event .fc-content {
  white-space: normal;
}

.fc-event {
  border-radius: 0.25rem;
}

.fc-content {
  color: white;
  cursor: pointer;
}

.fc-list-item {
  cursor: pointer;
}

.fc-bg {
  background: transparent !important;
}

.fc-time-grid-event.fc-v-event.fc-event.fc-start.fc-end.building-6 {
  background-color: #26c6da !important;
  border-color: #26c6da !important;
}

.fc-time-grid-event.fc-v-event.fc-event.fc-start.fc-end.building-5 {
  background-color: #1e88e5 !important;
  border-color: #1e88e5 !important;
}

/** STILE MODALI */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0; 0; 0; 0.5);
}

.modal-content {
  background: white;
  padding: 20px;
  margin: 5% auto;
  width: 300px;
  text-align: center;
  border-radius: 10px;
}

.dark-modal .modal-content {
  background: #383f48;
  padding: 20px;
  margin: 5% auto;
  width: 300px;
  text-align: center;
  border-radius: 10px;
}

.close {
  cursor: pointer;
  color: red;
  font-size: 2rem;
}

.aspect-ratio-1 {
  aspect-ratio: 1;
}

#map {
  height: 100%;
  min-height: 500px;
}

.map-icon {
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 50%;
  border: 2px solid #007bff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
* Property styles in unhighlighted state.
*/
.property {
  align-items: center;
  background-color: #ffffff;
  border-radius: 50%;
  color: #263238;
  display: flex;
  font-size: 14px;
  gap: 15px;
  height: 30px;
  justify-content: center;
  padding: 4px;
  position: relative;
  position: relative;
  transition: all 0.3s ease-out;
  width: 30px;
}

.property::after {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #ffffff;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 95%;
  transform: translate(-50%, 0);
  transition: all 0.3s ease-out;
  width: 0;
  z-index: 1;
}

.property .icon {
  align-items: center;
  display: flex;
  justify-content: center;
}

.property .icon svg {
  height: 20px;
  width: auto;
}

.property .details {
  display: none;
  flex-direction: column;
  flex: 1;
}

.property .address {
  color: #9e9e9e;
  font-size: 10px;
  margin-bottom: 10px;
  margin-top: 5px;
}

.property .features {
  align-items: flex-end;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.property .features > div {
  align-items: center;
  background: #f5f5f5;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: flex;
  font-size: 10px;
  gap: 5px;
  padding: 5px;
}

/*
* Property styles in highlighted state.
*/
.property.highlight {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
  height: 80px;
  padding: 8px 15px;
  width: auto;
}

.property.highlight::after {
  border-top: 9px solid #ffffff;
}

.property.highlight .details {
  display: flex;
}

.property.highlight .icon svg {
  width: 50px;
  height: 50px;
}

.property .bed {
  color: #ffa000;
}

.property .bath {
  color: #03a9f4;
}

.property .size {
  color: #388e3c;
}
