:root {
  --theme-general-font: "Barlow", sans-serif;
  --theme-hiperlink-font: "Sen", sans-serif;
  --theme-highlight-font: "Sen", sans-serif;

  /* Emerald Essence Theme */
  --bg-primary: #6b8f71;
  --bg-muted: #f7f9fc;
  --bg-light: #f8f5f0;

  --bg-dark: #0d2b1d;
  --bg-dark-2: #345635;
  --bg-dark-rgb: 13, 43, 29;

  --text-light: #f9fff1;
  --text-dark: #0d2b1d;
  --text-brand-color: #6b8f71;
  /* END of Emerald Essence Theme */
}

/* Applies to all scrollable elements */
::-webkit-scrollbar {
  width: 8px; /* Adjust the width of the scrollbar */
  height: 8px; /* Adjust the height for horizontal scrollbars */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(
    255,
    255,
    255,
    0.2
  ); /* Subtle light thumb for contrast */
  border-radius: 4px; /* Rounded corners */
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4); /* Slightly brighter on hover */
}

::-webkit-scrollbar-track {
  background-color: rgba(
    0,
    0,
    0,
    0.6
  ); /* Darker track to blend with dark mode */
  border-radius: 4px; /* Match the thumb's rounded style */
}

::-webkit-scrollbar-corner {
  background-color: rgba(
    0,
    0,
    0,
    0.6
  ); /* For scroll corner in dual-scrollable areas */
}

/* For Firefox */
* {
  scrollbar-width: thin; /* Thin scrollbar */
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.6); /* Thumb and track colors */
  touch-action: manipulation;
}

@media only screen and (max-width: 768px) {
  /* Styles for all mobile devices */
  .carousel-images {
    max-height: 250px !important;
  }
}

body {
  font-family: var(--theme-general-font), sans-serif;
  color: var(--bg-dark);
  overflow-x: hidden;
}

main {
  background-color: rgba(210, 193, 163, 0.2);
}

button:disabled {
  opacity: 0.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--theme-highlight-font);
  line-height: revert;
  font-weight: 700;
}

.bg-primary {
  background-color: var(--bg-primary) !important;
}

.bg-muted {
  background-color: var(--bg-muted) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}

.bg-dark-2 {
  background-color: var(--bg-dark-2) !important;
}

.text-primary {
  color: var(--text-dark) !important;
}

.text-light {
  color: var(--text-light) !important;
}

.text-brand-color {
  color: var(--text-brand-color) !important;
}

.btn:hover.btn-hero {
  background-color: var(--bg-dark-2);
  border-color: var(--bg-dark-2);
}

.btn.btn-primary:active {
  background-color: var(--bg-dark-2);
  border-color: var(--bg-dark-2);
}

.btn-primary {
  background: var(--bg-dark-2);
  font-size: 1em;
  font-weight: 500;
  font-family: "Sen";
  color: var(--text-light);
  padding: 10px 25px;

  border: none;
  text-align: center;
}

.btn-primary:disabled {
  background: var(--bg-dark-2);
}

.btn-primary:hover:not(.btn-hero) {
  background: var(--bg-dark);
  font-size: 1em;
  font-weight: 500;
  font-family: "Sen";
  color: var(--text-light);
  padding: 10px 25px;
  border: none;
}

.btn-secondary {
  background: var(--bg-light);
  font-size: 1em;
  font-weight: 500;
  font-family: "Sen";
  color: var(--text-dark);
  padding: 10px 25px;
  border: none;
}

.btn-secondary:hover {
  background: var(--bg-dark);
  color: var(--text-light);
}

.bg-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  top: 0;
  z-index: 0;
}

.title-divider {
  width: 3.5em;
  border: 2px var(--bg-primary) solid;
  opacity: 1;
  margin: 1em auto;
}

@keyframes zoom-in-out-img {
  0% {
    background-size: 100%;
  }
  50% {
    background-size: 109%;
  }
  100% {
    background-size: 100%;
  }
}

select.form-control {
  position: relative;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 12px;
  color: #000;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  gap: 10px;
}

.pagination-dotted-active .page-item:first-child .page-link,
.pagination-dotted-active .page-item:last-child .page-link {
  width: auto;
}
.pagination .page-link,
.pagination .page-item.disabled .page-link {
  background: transparent;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

.pagination-dotted-active .page-link {
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
  text-align: center;
}

.pagination-dotted-active .page-link {
  color: var(--theme-general-color);
  font-size: 15px;
  font-weight: 500;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.page-link {
  position: relative;
  display: block;
  color: #0d6efd;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control {
  padding: 0.7rem 1em;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: var(--bg-primary);
  outline: 0;
  box-shadow: 0 0 0 0.05rem rgba(0, 123, 255, 0.25);
  border: 1px solid var(--bg-primary);
}

.modal {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: top;
}

.modal-dialog {
  border-radius: 25px;
  max-width: none;
}

.modal-body {
  padding: 2em;
}

.modal-content {
  background: white;
  border-radius: 10px;
  width: 40em;
}

.not-found {
  align-items: center;
  text-align: center;
}

.woo-filter-bar {
  background-color: #fff;
  border: 1px solid #dee2e6;
  margin-bottom: 30px;
}

.widget {
  padding: 30px;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  max-height: 450px;
  margin-bottom: 2em;
}

.carousel-image {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.carousel-all-images {
  background: rgba(0, 0, 0, 0.25);
}

.nav-button {
  background: rgba(0, 0, 0, 0.25);
  border: none;
  padding: 10px;
  color: #fff;
}

.nav-button.prev {
  position: absolute;
  z-index: 10000;
  top: 45%;
}

.nav-button.next {
  position: absolute;
  z-index: 10000;
  right: 0;
  top: 45%;
}

.carousel-all-images {
  position: absolute;
  bottom: 33px;
  z-index: 10999;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  white-space: nowrap;
  transition: opacity 0.25s ease-in-out;
  scroll-behavior: smooth;
}

.carousel-all-images .thumb-item {
  max-width: 80px;
  max-height: 80px;
  width: 80px;
  height: 80px;
  padding: 10px 5px;
  margin: 0;
  background-color: transparent;
  border: none;
}

.carousel-all-images .thumb-item img {
  width: 100%;
  height: 100%;
  opacity: 0.5;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
  object-fit: cover;
}

.carousel-all-images .thumb-item.active img {
  opacity: 1;
}

.media-fullscreen-container {
  position: fixed;
  height: 100vh;
  width: 100vw;
  z-index: 11000;
  top: 0;
}

.media-fullscreen-container::before {
  content: "";
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 11000;
}

.media-fullscreen-container .container {
  padding-top: 4em;
}

.media-fullscreen-container img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  z-index: 11001;
  position: relative;
  width: 100%;
  max-height: 800px;
}

.close-button-container {
  position: absolute;
  z-index: 11002;
  right: 20px;
}

.table-responsive {
  max-width: 100%;
  white-space: nowrap;
}

.close-button-container {
  padding-top: 1em;
}

.has-scrolled {
  padding-top: 9em !important;
}

.ql-toolbar.ql-snow {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.ql-container {
  margin-top: -8px !important;
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

#editor {
  height: 40rem;
}

#post {
  height: 100%;
}

.ql-editor img {
  object-fit: contain !important;
  width: 100% !important;
}

iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.bg-open-to-free-consultations {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/images/exclusive-real-estate-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.btn-sm {
  padding: 5px 10px !important;
}

.btn-sm:hover {
  padding: 5px 10px !important;
}