/* Siam Immobilier Color Scheme Variables */
:root {
  --scs-orange-100: #f8ccb9;
  --scs-orange-500: #e75a1d;
  --scs-dark-blue-100: #bebec2;
  --scs-dark-blue-500: #2e2e3a;
  --scs-light-blue-100: #c8d9e4;
  --scs-light-blue-400: #709EB9;
  --scs-light-blue-500: #4c86a8;
  --scs-cool-grey-100: #f4f6f7;
  --scs-cool-grey-500: #dae3e5;
  --scs-warm-white-100: #fffaf7;
  --scs-warm-white-500: #feefe5;
}

/* Global Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--scs-dark-blue-500) !important;
  font-family: "Manrope", Arial, sans-serif !important;
  line-height: 1.6;
  margin: 0 0 150 0;
  padding: 0;
}

.header {
  background-color: #4CAF50;
  color: white;
  text-align: center;
  padding: 1rem;
}

.manrope-semibold {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: bold;
}

.tagline {
  width: 20rem;
  position: relative;
  margin-top: 5rem;
  font-size: 4.5rem;
}

.scs-btn {
  width: 89px;
  height: 39px;
  background: #FFFFFF;
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
  border-radius: 0px;  
}

.scs-btn-primary {
  width: 10rem;
  height: 63px;
  background: var(--scs-orange-500);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  line-height: 63px;
  text-align: center;
  font-size: 1.5rem;
  color: #EAEAEB;
}

input:focus {
  outline: none;
  border: none;
}

section button {
  color: white;
  height: 54px;
  background: #FFFFFF;
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
  border-radius: 15px;    
}

.scs-footer-cs {
  height: 40px;
  background-color: var(--scs-light-blue-400);
}

.scs-textarea {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--scs-cool-grey-100);
  border: none;
}

.scs-input {
  padding-bottom: 0.5rem;
  width: 100%;
}

.scs-label {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: bold;
  font-size: small;
  text-align: end;
  padding-right: 0.5rem;
  width: 15%;
}

.scs-action {
  width: 10%;
  margin: auto;
}

.scs-button {
  flex-direction: column;
  width: 5rem;
  height: 1.5rem !important;
  font-size: 0.75rem !important;
  line-height: 0.75rem !important;
  padding: 2px !important;
  margin: 0 0 2px 8px !important;
}

.scs-amenity-checkbox {
  flex-direction: column;
  width: auto;
  padding: 2px !important;
  margin: 4px !important;
}

.scs-table-button {
  flex-direction: column;
  width: auto;
  height: 2.0rem !important;
  font-size: 0.75rem !important;
  line-height: 0.75rem !important;
  padding: 2px !important;
  margin: 0 0 2px 8px !important;
}

.scs-nav-group {
  width: 180px;
  margin:  0 0 0 8px;
}

.scs-modal-section {
  padding: 1rem 0;
}

.scs-form {
  -ms-flex: 0 0 80%;
  flex: 0 0 80%;
}

/* Bento Box Photo Styling */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 5px;
  padding: 5px;
}

.bento-item {
  border-radius: 5px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.bento-item-md {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-item-th {
  grid-column: span 1;
  grid-row: span 1;
  /* background-color: #e9ecef; */
}

.scs-cms-photo-th {
  width: 150px;
  height: 100px;
  border-radius: 10px !important;
  background: var(--scs-cool-grey-100);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  padding: 5px;
  margin: 5px 150px 5px 15px;
}

.scs-cms-photo-sm {
  width: 300px;
  height: 200px;
  background: var(--scs-cool-grey-100);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  border-radius: 15px !important;
  padding: 5px;
  margin: 5px 15px 5px 15px;
}

.scs-cms-photo-md {
  width: 600px;
  height: 400px;
  background: var(--scs-cool-grey-100);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  border-radius: 15px !important;
  padding: 5px;
  margin: 5px 15px 5px 15px;
}

.scs-cms-photo-lg {
  width: 1280px;
  height: 900px;
  border-radius: 10px !important;
  background: var(--scs-cool-grey-100);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  padding: 5px;
  margin: 5px 150px 5px 15px;
}

.scs-cms-photo-xl {
  width: 1800px;
  height: 1200px;
  border-radius: 10px !important;
  background: var(--scs-cool-grey-100);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  padding: 5px;
  margin: 5px 150px 5px 15px;
}

.scs-photo-placeholder-card {
  opacity: 0.8;
}

.scs-photo-placeholder-box {
  width: 150px;
  height: 100px;
  border-radius: 10px;
  background: var(--scs-cool-grey-100);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-photo {
  position: absolute;
  top: 10%;
  left: 10%;
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: bold;
  font-size: 3rem;
  text-align: start;
  color: var(--scs-warm-white-100);
  text-shadow: 0px 4px 4px var(--scs-dark-blue-500) ;
  z-index: 10;
}

/* Landscape 1024w x 768h */
@media only screen and (min-width: 992px) {
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 0.5rem;
    padding: 0.5rem;
  }
  .bento-item-md {
    grid-column: span 3;
    grid-row: span 1;
  }
  .scs-cms-photo-md {
    width: 300px;
    height: 200px;
    border-radius: 0.5rem !important;
    padding: 3px;
    margin: 3px 10px 3px 10px;
  }
  .scs-cms-photo-th {
    width: 150px;
    height: 100px;
    border-radius: 0.5rem !important;
    padding: 3px;
    margin: 3px 10px 3px 10px;
  }
  .overlay-photo {
    font-size: 3rem;
  }
}

/* Portrait 768h x 1024w */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0.8rem;
    padding: 0.8rem;
  }
  .bento-item-md {
    grid-column: span 2;
    grid-row: span 1;
  }  
  .scs-cms-photo-md {
    width: 240px;
    height: 160px;
    border-radius: 0.5rem !important;
    padding: 2px;
    margin: 2px 8px 2px 8px;
  }
  .scs-cms-photo-th {
    width: 150px;
    height: 100px;
    border-radius: 0.5rem !important;
    padding: 2px;
    margin: 2px 8px 2px 8px;
  }
  .overlay-photo {
    font-size: 2.5rem;
  }
}

/* Portrait 375w */
@media only screen and (min-width: 375px) and (max-width: 767px) {
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0.2rem;
    padding: 0.2rem;
  }
  .bento-item-md {
    grid-column: span 3;
    grid-row: span 1;
  }  
  .scs-cms-photo-md {
    width: 465px;
    height: 310px;
    border-radius: 0.25rem !important;
    padding: 2px;
    margin: 2px 8px 2px 8px;
  }
  .scs-cms-photo-th {
    width: 150px;
    height: 100px;
    border-radius: 0.25rem !important;
    padding: 2px;
    margin: 2px 8px 2px 8px;
  }
  .overlay-photo {
    font-size: 1.5rem;
  }
}

.dropdownMenu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 10px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-align: start;
  color: var(--scs-dark-blue-500);
  z-index: 1000;
}

.dropdown-menu li {
  padding: 5px 10px;
  cursor: pointer;
  color: var(--scs-dark-blue-500);
}

.dropdown-menu li:hover {
  background-color: var(--scs-cool-grey-100);
}

img {
  cursor: pointer;
  margin: 10px;
}

.left-nav-header {
  background-color: var(--scs-light-blue-500) !important;
  border-color: var(--scs-light-blue-500) !important;
}

.table-new-button {
  background-color: var(--scs-orange-500) !important;
  border-color: var(--scs-orange-500) !important;
  color: white !important;
}

.image-container {
  position: relative;
  display: inline-block;
}

.menu-image {
  display: block;
  /* cursor: pointer; */
}

.editIcon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hidden {
  display: none;
  /* visibility: hidden; */
}

.disabled {
  pointer-events:none; 
  opacity: 0.4;         
  color: var(--scs-dark-blue-100);
}

.grayscale {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  opacity: 0.2;
}

.modal-photo-header {
  color: #fff !important;
  text-align: center;
}

#mapDiv {
  height: 350px;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
}

.custom-map-control-button {
  background-color: #fff;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
  margin: 10px;
  padding: 0 0.5em;
  font: 400 18px Roboto, Arial, sans-serif;
  overflow: hidden;
  height: 40px;
  cursor: pointer;
}

.custom-map-control-button:hover {
  background: rgb(235, 235, 235);
}

.scs-cms-logo {
  height: 60px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.scs-header {
  background-color: var(--scs-light-blue-400) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#iframe-container {
  position: relative;
  width: 100%;
  height: 90dvh;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  z-index: 11;
}

#iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

tr {
  cursor: pointer;
}

.scs-main-content {
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: 1.5rem;
}

#div-table-listing {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#div-table-listing .dataTables_wrapper,
#div-table-listing .dt-container {
  width: 100%;
  max-width: 100%;
}

#div-table-listing .dataTables_scroll {
  width: 100%;
  overflow: hidden;
}

#div-table-listing .dataTables_scrollBody {
  overflow-x: auto !important;
}

#table-listings {
  width: 100% !important;
}

#table-listings.nowrap th,
#table-listings.nowrap td {
  white-space: nowrap;
}

#table-listings th.dt-col-wrap-250,
#table-listings td.dt-col-wrap-250 {
  max-width: 250px;
  min-width: 160px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#table-listings th.dt-col-wrap-220,
#table-listings td.dt-col-wrap-220 {
  max-width: 220px;
  min-width: 140px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.scs-modal-photo-body {
  margin: 2rem;
}

.modal-photo-header {
  background-color: var(--scs-light-blue-400) !important;
  color: #fff !important;
}

.upload-guidance {
  font-size: smaller;
}

.scs-btn-photos-upload {
  background-color: var(--scs-orange-500) !important;
  border-color: var(--scs-orange-500) !important;
  color: #fff !important;
}

.scs-btn-photos-cancel {
  background-color: grey !important;
  border-color: grey !important;
  color: #fff !important;
}

.upload-progress {
  margin: 10px 0 10px 0;
}

.upload-progress-bar {
  background-color: var(--scs-orange-500) !important;
}

.scs-listing-detail {
  margin-left: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
}

.scs-listing-actions-header {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--scs-light-blue-400);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.scs-navbar-action-group {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scs-navbar-action-group > div {
  display: inline-flex;
}

.scs-navbar-action-group > div:last-child {
  margin-right: 0.5rem;
}

.scs-btn-editor {
  width: 50px !important;
  text-align: center !important;
  background-color: var(--scs-orange-500) !important;
  color: var(--scs-warm-white-100) !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
  font-family: "Manrope", sans-serif !important;
  margin-top: -10px !important;
  border-radius: 5px !important;
}

.scs-tagline-text {
  font-size: 1.5rem;
  color: var(--scs-light-blue-400);
}

.scs-tagline-icon {
  height: 300px;
  width: 300px;
}

.scs-tagline-user {
  color: var(--scs-warm-white-100) !important;
}

.scs-link {
  padding-left: 1rem;
}

.btn-custom-cms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-custom-both {
  display: inline-flex;
  align-items: row;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.option-photo-both::before {
  content: "";
  display: inline-block;
  width: 25px; /* Adjust size */
  height: 15px; /* Adjust size */
  /* background-image: url('/images/Hostfully-Blue-Green-Icon.png'), url('/images/icon-scs.svg'); */
  background-repeat: no-repeat, no-repeat;
  background-size: 10px 15px, 10px 15px;
  background-position: left center, right center;
  margin: 0 5px 0 5px;
}

.scs-logo {
  display: inline-flex;
}

.scs-logo::after, .option-photo-cms::before {
  display: inline-block;
  content: "";
  /* background-image: url('/images/icon-scs.svg'); */
  background-repeat: no-repeat;
  background-position: center right;
  background-size: 15px 15px;
  width: 15px;
  height: 15px;
  margin: 0 5px 0 5px;
}

/* Add the background image after the text */
.btn-custom-cms::after {
  content: "";
  display: inline-block;
  width: 15px; /* Adjust size */
  height: 15px; /* Adjust size */
  /* background-image: url('/favicon.ico'); */
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 5px; /* Spacing between text and image */
}

.location-help p {
  font-size: 0.75rem;
}

.scs-modal-badge {
  width: 4rem !important;
}

.modal-action {
  width: 5rem;
  margin: auto;
}

.scs-header-image {
  height: 32px !important;
  width: 32px !important;
  margin-top: 5px;
}

.photo-card.dragging {
  opacity: 0.5;
}

.photo-card.moved {
  background-color: #fff3cd !important;
  transition: background-color 0.5s ease;
}

.grayscale-red {
  filter: grayscale(1) brightness(0.85) sepia(1) hue-rotate(-20deg) saturate(4);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.scs-photo-description {
  font-size: 0.8rem;
  color: var(--scs-dark-blue-500);
  text-align: end;
  padding-right: 0.25rem;
  padding-top: 0.25rem;
}

/* global styling for all bootstrap modals */
.modal-content {
  background-color: #EEEEEE !important;
  --bs-modal-header-border-width: none !important;
  --bs-modal-footer-border-width: none !important;
}
.modal-content .modal-body {
  background-color: #EEEEEE !important;
}
.modal-content .modal-footer {
  padding: 0 !important;
}
.modal-content .table>tbody>tr>td {
  background-color: #EEEEEE !important;
}
.modal-content label {
  margin-top: 0.5rem !important;
}
.modal-content input[type="checkbox"] {
  margin-top: 10px !important;
}

#tab-pane-top-ten .ts-dropdown .option img,
#tab-pane-top-ten .ts-control .item img {
  width: 20px;
  height: 20px;
  margin-right: .5rem;
  vertical-align: middle;
}

/* Add a red asterisk after labels for required fields */
label.required::after {
  content: " ∗";
  font-weight: bold;
  font-size: 1.5rem;
  color: red;
}

/* generic asterisk style */
.scs-asterisk::after {
  content: " ∗";
  color: var(--bs-danger, #dc3545);
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: .25rem;
}

/* Pure-CSS control via a data-flag on <body> */
[data-is-land="true"]  [data-asterisk-for="land"]::after { content: " ∗"; color: var(--bs-danger, #dc3545); font-size: 1.5rem; font-weight: bold;}
[data-is-land="false"] [data-asterisk-for="building"]::after { content: " ∗"; color: var(--bs-danger, #dc3545); font-size: 1.5rem; font-weight: bold;}

/* optional: harmonize with .form-control height */
.ts-control { min-height: 1.25rem; padding:0px !important;}
.ts-icon-img { display: inline-block; vertical-align: middle; }
