:root {
  --color--neutral--300: rgba(242, 242, 242, 1);
  --color--neutral--400: #e0e0e0;
  --color--neutral--800: rgb(51, 51, 51);
  --border-radius: 8px;
  --flag-size: 3rem;
  --flag-border-radius: 0.375rem;
  --check-green: #4caf50;
}

#map-canvas {
  width: 100%;
  height: 300px;
}
.form-control-feedback.fa {
  top: 10px;
}
.form-header {
  float: left;
  width: 100%;
  height: 40px;
}

.action-button {
  float: right;
}
.num-properties {
  margin-left: 54px;
}
.hotusa_codes {
  float: left;
}
.cke,
.textarea {
  margin-top: 20px !important;
}
.photos-list {
  margin-top: 10px;
}
.photo-item {
  border: 1px solid #d2d6de;
  padding: 10px;
}
.photo-item,
.photo-item img {
  margin-bottom: 10px;
}
.div_booking_cancellation {
  float: left !important;
}
.text-left,
.text-right {
  float: left;
  /* width: 48%; */
  /* padding: 0; */
}

input[type="number"] {
  width: 50px;
}
.checkin_min_age {
  width: 100px;
}
.skin-yellow .submenu__level-3 a {
  color: #8aa4af;
}
.submenu__level-3 a:hover,
.submenu__level-3.active a {
  color: #ffffff;
}

.btn-border__danger,
.btn-border__danger:hover {
  border-color: #d9534f;
  color: #d9534f;
}

.btn-border__success,
.btn-border__success:hover {
  border-color: #00a65a;
  color: #00a65a;
}

.flash-message {
  display: block;
  padding: 8px 5px;
  border-radius: 25px;
  color: #ffffff;
  text-align: center;
}
.flash-message.success {
  background-color: #3c763d;
}
.flash-message.error {
  background-color: #8b0000;
}

.box-histories {
  background: #f7f7f7;
}
.box-histories .box-history:first-of-type {
  padding-top: 0;
}
.box-histories .box-history {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.box-histories .box-history:after,
.box-histories .box-history:before {
  content: " ";
  display: table;
}
.box-histories .box-history i {
  font-size: 20px;
  margin-left: 15px;
}
.box-histories .box-history i.fa-minus {
  color: red;
}
.box-histories .box-history i.fa-plus {
  color: green;
}
.box-histories .history-text {
  color: #555;
  display: block;
}
.box-histories .action {
  margin-left: 20px;
  color: #444;
  display: inline-block;
}
.box-histories .text-muted {
  font-weight: 400;
  font-size: 12px;
  display: inline-block;
}
.box-histories .box-history:after {
  clear: both;
}
.box-histories .box-history:after,
.box-histories .box-history:before {
  content: " ";
  display: table;
}

thead input {
  width: 100%;
}

/* Property edit */
#images_list li {
  margin-bottom: 5px;
}

/* Providers Manager */
.provider-message {
  display: none;
  position: absolute;
  left: 27%;
  width: 50%;
  top: 10%;
}
#container {
  width: 100%;
}

.floating-message {
  position: fixed;
  right: 30px;
  top: 40px;
  background: #00a65a;
  padding: 10px 50px;
  font-size: 20px;
  color: white;
  transition: 0.5s ease-in-out;
  transform: translateX(200%);
  z-index: 10000;
  box-shadow: 1px 1px 3px gray;
}
.floating-message.visible {
  transform: translateX(0%);
}

.floating-message.error {
  background: #c83532;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0 !important;
}

.btn-unstyled {
  background: none;
}

/* Payment Providers */
.header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.header-row .text-right {
  width: 100%;
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 15px;
}

.header-row .search-markets-container {
  position: relative;
}

.header-row .search-markets {
  cursor: pointer;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;

  &.selected {
    border: 2px solid var(--color--neutral--800);

    .arrow {
      transform: rotate(180deg);
    }
  }

  .arrow {
    background-image: url(/img/arrow-down.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 2rem;
    height: 1.6rem;
    display: inline-block;
  }
}

#search-markets-search,
#modal-markets-search {
  margin-block: 0rem 1rem;
  background-color: var(--color--neutral--300);
  background-image: url(/img/search.svg);
  border-width: 0;
  min-height: 4rem;
  width: 100%;
  width: -webkit-fill-available;
  padding: 0.25rem 0.25rem 0.25rem 2.8rem;
  background-repeat: no-repeat;
  background-position: 1rem center;
  border-radius: 4px;
}

#search-markets-search {
  margin: 0.5rem 1rem;
}

.header-row .search-markets-dropdown {
  position: absolute;
  top: 4rem;
  left: 0;
  border: 2px solid var(--color--neutral--800);
  border-radius: var(--border-radius);
  background-color: white;
  z-index: 1;
  width: 100%;
  max-height: 30rem;
  overflow-y: scroll;
  display: none;
  user-select: none;

  ol {
    list-style: none;
    width: 100%;
    padding: 0;

    li {
      padding: 1rem;
      cursor: pointer;

      &:first-of-type {
        border-bottom: 1px solid var(--color--neutral--400);
        padding-block: 1rem;
      }

      &.search-market-option {
        display: flex;
        align-items: center;
        gap: 1rem;
      }

      &:has(input[type="checkbox"]:checked),
      &:hover {
        background-color: var(--color--neutral--300);
      }
    }
  }
}

.header-row #unsavedChanges,
.header-row #errorFound {
  font-size: 1.2rem;
  color: #1a42c6;
  display: none;
  min-width: fit-content;
}

.header-row #errorFound {
  color: #c83532;
}

.header-row #unsavedChanges::before,
.header-row #errorFound::before {
  content: "";
  display: inline-block;
  height: 0.8rem;
  width: 0.8rem;
  background-color: #1a42c6;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: baseline;
}

.header-row #errorFound::before {
  background-color: #c83532;
}

.alert-msg-providers {
  display: none;
  position: fixed;
  z-index: 999999;
  bottom: 1em;
  font-size: 2rem;
  padding: 2rem;
}

.select-markets {
  border-radius: 0.5rem;
}

.panel-transparent {
  background-color: transparent !important;
}

.panel-header {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  background-color: var(--color--neutral--400);
  padding: 1rem 0;
  display: flex;
  font-weight: 600;
}

.panel-row {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  margin-inline: 0;
  position: relative;
}

.panel-label {
  background-color: #333333;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  margin: -1rem 0 0 0.5rem;
  position: absolute;
  letter-spacing: 0.1em;
  font-weight: 500;
  top: 0;
}

.panel-row input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  cursor: pointer;
}

.panel-row .checkmark {
  position: relative;
  height: 1.8rem;
  width: 1.8rem;
  background-color: #fff;
  border: 0.25rem solid #333;
  border-radius: var(--flag-border-radius);
  display: inline-block;
  vertical-align: middle;
}

.panel-row input[type="checkbox"]:checked + .checkmark {
  background-color: var(--check-green);
  border-color: var(--check-green);
}

.panel-row .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 0.4rem;
  top: 0rem;
  width: 0.6rem;
  height: 1.1rem;
  border: solid white;
  border-width: 0 0.25rem 0.25rem 0;
  transform: rotate(45deg);
}

.panel-row input[type="checkbox"]:checked + .checkmark::after {
  display: block;
}

.panel-row .card-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  flex-direction: row;
}

.panel-row .card-container .card-image-container {
  border: 1px solid var(--color--neutral--400);
  border-radius: var(--flag-border-radius);
  width: 3.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel-row .card-container .card-image-container img {
  max-width: 95%;
  max-height: 80%;
}

.panel-row .secure {
  padding-left: 2.75rem;
  display: flex;
}

.panel-row .markets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#unassociatedMarketsContainer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#unassociatedMarkets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

span#unassociatedMarketsLabel {
  font-size: 1.2rem;
  display: none;
}

.panel-row .markets .market-wrapper,
.modal .market-wrapper,
.modal .market-flag,
.search-market-option .market-flag,
#unassociatedMarkets .market-wrapper {
  position: relative;
}

.panel-row .markets .market-wrapper > img,
.modal .market-wrapper > img,
.modal .market-flag > img,
.search-market-option .market-flag > img,
#unassociatedMarkets .market-wrapper > img {
  display: inline-block;
  height: var(--flag-size);
  width: var(--flag-size);
  border-radius: var(--flag-border-radius);
  border: 1px solid var(--color--neutral--400);
  aspect-ratio: 1;
}

.panel-row .markets .market-wrapper > button,
.modal .market-wrapper > button,
.modal .market-flag > button {
  height: var(--flag-size);
  width: var(--flag-size);
  border-radius: var(--flag-border-radius);
  border: 1px solid var(--color--neutral--400);
  aspect-ratio: 1;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(1, 1, 1, 0.3);
  cursor: pointer;
  background-image: url("../../img/markets/delete.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
}

.panel-row .markets .market-wrapper:hover > button,
.modal .market-wrapper:hover > button,
.modal .market-flag:hover > button {
  display: inline-block;
}

.panel-row .markets span.add-button {
  height: var(--flag-size);
  width: var(--flag-size);
  border-radius: var(--flag-border-radius);
  border: 1px solid var(--color--neutral--400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.panel-row .markets span.add-button img {
  height: 2rem;
  width: 2rem;
}

.panel-row.market-error {
  border: 2px solid red;
  margin-bottom: 0;
}

.error-message {
  color: red;
  margin-bottom: 2rem;
}

.add-market-modal .modal-content {
  user-select: none;
}

.add-market-modal .modal-body {
  .modal-your-selection {
    font-weight: 700;
  }

  #currentMarkets {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

.market-group {
  height: 30rem;
  position: relative;
  overflow: hidden;
  overflow-y: scroll;
}

.custom-select {
  display: flex;
  flex-direction: column;

  .toggle-market-option > div {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .toggle-market-option:hover > div {
    background-color: #e0e0e0;
  }

  hr {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
}

.toggle-market-option input,
.search-market-option input {
  display: none;
}

.toggle-market-option .flag-icon {
  margin-right: 8px;
}

.toggle-market-option .checkmark,
.search-market-option .checkmark {
  margin-left: auto;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="none" stroke="%239CCC65" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M5 10l3 3 7-7"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.2s;
}

.toggle-market-option > div:has(input:checked) {
  background-color: #f2f2f2;
}

.toggle-market-option input:checked ~ .checkmark,
.search-market-option input:checked ~ .checkmark {
  opacity: 1;
}

.toggle-market-option .market-name {
  padding-left: 1rem;
}
