body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #090809;
  color: white;
}

.bg-illustration {
  background-image: url("https://wmp.wmvcentral.com/wp-content/uploads/2025/05/8d0f5d8a39ee96da8d6c6aa6f562f93ae1eb887b-2.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 220px;
  /* Tablet default */
}

@media (min-width: 992px) {
  .bg-illustration {
    height: 100vh;
    /* Full height on desktop */
  }
}

.login-panel {
  background-color: #20271f;
  padding: 60px 30px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-logo img {
  max-width: 220px;
}

.zonebtn {
  background-color: #C5a95E;
  border: none;
  color: #20271f;
  font-weight: bold;
}

.zonebtn:hover {
  background-color: #b2913e;
}

.form-control::placeholder {
  color: #ccc;
}

.back-link {
  color: #C5a95E;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.back-link i {
  margin-right: 5px;
}

.theme-dark-gold .content-wrapper {
  background-color: #090809;
}

[data-widget="pushmenu"] i,
.main-header .nav-link i {
  font-size: 30px;
}

.theme-dark-gold .main-footer a,
.theme-dark-gold .nav-link.active i,
.theme-dark-gold .nav-link:hover i,
[data-widget="pushmenu"] i {
  color: #C5a95E;
}

.theme-dark-gold .nav-link.active {
  background-color: #2a2d35;
}

.theme-dark-gold .sidebar .nav-link {
  padding: 1rem;
}

.floating-help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background-color: #C5a95E;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-help-btn:hover {
  background-color: #b2913e;
  transform: scale(1.05);
  color: #fff;
}

.floating-help-btn i {
  pointer-events: none;
}

.custom-glow-modal .modal-content {
  background-color: #1f241f;
  color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  animation: glowIn 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(197, 169, 94, 0.4);
  border: 1px solid #C5a95E;
  animation: fadeInUp 0.3s ease;
}

.custom-glow-modal .modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.custom-glow-modal .modal-title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}

.custom-glow-modal .close {
  font-size: 28px;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.custom-glow-modal .close:hover {
  opacity: 1;
}

.custom-glow-modal .modal-body {
  font-size: 14px;
  color: #fff;
  padding-top: 10px;
}

.modal-link {
  color: #C5a95E;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.modal-link:hover {
  color: #d8b763;
}

@keyframes glowIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.theme-dark-gold .main-header {
  border-bottom: 1px solid #4b545c;
}

.theme-dark-gold .main-footer {
  border-top: 1px solid #4b545c;
}

.theme-dark-gold .sidebar,
.theme-dark-gold .main-footer,
.theme-dark-gold .main-header {
  background: #171717;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}


.theme-dark-gold form#caspioform>div:not(.cbFormCommonError),
div[id^="cbOuterAjaxCtnr"]>div>div {
  width: 100%;
}

.theme-dark-gold :not(.search-result-grid) [data-cb-name="cbTable"] {
  width: 100%;
  grid-column-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

/* Exclude if inside .search-result-grid */
.search-result-grid [data-cb-name="cbTable"] {
  all: unset;
  /* Removes the above styling */
}

.theme-dark-gold .cbHTMLBlockContainer.cbFormData,
.theme-dark-gold .cbFormLabelCell,
.theme-dark-gold .cbFormFieldCell,
.theme-dark-gold .cbFormNestedTableContainer,
.theme-dark-gold .cbSubmitButtonContainer,
.theme-dark-gold [data-cb-name="cbTable"],
.theme-dark-gold .cbBackButtonContainer,
.theme-dark-gold .cbFormDataCell,
.theme-dark-gold .cb-list-report.comments-cont .cbResultSetActionsContainer,
.theme-dark-gold .cb-list-report.comments-cont .cbResultSetListViewTableOddCell,
.theme-dark-gold .cb-list-report.comments-cont .cbResultSetListViewTableEvenCell,
.theme-dark-gold .cbFormDataCellNumberDate,
.theme-dark-gold .cbResultSetListViewTableOddCell,
.theme-dark-gold .cbResultSetListViewTableEvenCell,
.theme-dark-gold .cbResultSetActionsContainer,
.theme-dark-gold .cbInlineAddFormButtonContainer,
.theme-dark-gold .Dialog, 
.theme-dark-gold .Window, #Alert {
  background-color: #171717 !important;
}

.theme-dark-gold .cbFormLabelCell {
  color: #bebebe !important;
}

.theme-dark-gold .cbFormDataCell .cbFormData,
.theme-dark-gold .cbFormDataCellNumberDate .cbFormData,
section[class^="cbFormSection"] input[type=radio]+label,
.theme-dark-gold .cbResultSetNavigationMessages {
  font-size: 14px !important;
  color: #fff !important;

}

section[class^="cbFormSection"] input[type=radio]+label {
  margin-bottom: 0px !important;
}

.theme-dark-gold .cbFormSelect,
.theme-dark-gold .cbFormTextField,
.theme-dark-gold .cbFormTextArea,
.theme-dark-gold input,
.theme-dark-gold .cbResultSetSortControl,
.theme-dark-gold .cbResultSetSelect {
  color: #a0a09e !important;
  background-color: #232323 !important;
  border: 1px solid #413c30 !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}

input:focus,
input:active,
input:focus-visible,
select:focus,
textarea:focus {
  outline: 1px solid #C5a95E !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 6px rgba(199, 165, 76, 0.7) !important;
  border: 1px solid #C5a95E !important;
}

.theme-dark-gold .card {
  background-color: #171717 !important;
  border-radius: 15px !important;
  border: 1px solid #413c303d !important;
  box-shadow: 0 1px 2px rgba(65, 60, 48, 0.25),
    0 4px 6px rgba(65, 60, 48, 0.15) !important;

}

.theme-dark-gold label,
.theme-dark-gold .cbFormLabel {
  font-size: 14px !important;
}

.theme-dark-gold .section-header {
  color: #C5a95E;
  border-bottom: 1px solid #C5a95E;
}

.theme-dark-gold .cbFormRequiredMarker,
.theme-dark-gold .cbFormError {
  color: #e06060db !important;
  font-size: 14px !important;
}

.theme-dark-gold input[type="checkbox"]:checked {
  background-color: #C5a95E !important;
  border-color: #C5a95E !important;
  color: #C5a95E !important;
}

/* Match input field height & gold theme */
.theme-dark-gold input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #C5a95E;
  border: 1px solid #C5a95E;
  cursor: pointer;
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

.theme-dark-gold input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 12px;
  border: solid #1a1a1a;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #1a1a1a inset !important;
  -webkit-text-fill-color: #fff !important;
}

.cbFormCalendarPickerNavBar,
.cbFormCalendarPickerSelectedDate {
  background-color: #C5a95E !important;
}

.cbFormError .cbFormErrorMarker {
  display: none !important;
  /* Hide original marker */
}

.cbFormError::before {
  content: "\f06a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  font-size: 14px;
  background: #fff;
  color: #e66161;
  border-radius: 50%;
  width: 11px;
  height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

}

.cbFormCalendarPickerNavBarItem input {
  background-color: transparent !important;
  border: none !important;
}

.cbFormCalendarPickerTodayDate {
  border: 1px solid #C5a95E !important;
}

.cbFormCalendarPickerTodaySection,
.cbFormCalendarPickerTodayLabel {
  color: #C5a95E !important;
}

select {
  font-size: 14px !important;
  height: 39px !important;
}

.theme-dark-gold .hide-caspio-button .cbBackButtonContainer {
  visibility: hidden !important;
}

.content-header {
  padding: 20px 10px !important;
}

.content-header.main {
  padding: 30px 20px 10px 20px !important;
}

label {
  margin-bottom: 0px !important;
}

.breadcrumb-item a {
  color: #C5a95E !important;
}

.breadcrumb-item.active {
  color: #dbdbdb !important;
}

.theme-dark-gold #sub-navbar-tabs .nav-link.active i,
.theme-dark-gold #sub-navbar-tabs.nav-pills .nav-link:hover i {
  color: #fff !important;
}

.form-mt-0 :not(.custom-search-report) form#caspioform>div>section {
  margin-top: 0px !important;
}

/* Caspio default primary buttons */
.theme-dark-gold .cb-edit-form .cbUpdateButton,
.theme-dark-gold .cb-add-form .cbSubmitButton,
.theme-dark-gold #edit-listing-btn {
  min-width: auto !important;
}

.theme-dark-gold .cb-edit-form.cb-form-btn-right .cbBackButtonContainer,
.theme-dark-gold .cb-add-form.cb-form-btn-right .cbSubmitButtonContainer {
  justify-content: end;
}

.theme-dark-gold .cb-edit-form .cbUpdateButton,
.theme-dark-gold .cb-edit-form .cbUpdateButton:active,
.theme-dark-gold .cb-add-form .cbSubmitButton,
.theme-dark-gold .cb-add-form .cbSubmitButton:active,
.theme-dark-gold .cbResultSetAddButton,
.theme-dark-gold .cbResultSetModifyButton,
.theme-dark-gold #edit-listing-btn {
  border-radius: 0px;
  color: #ffff !important;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem !important;
  font-weight: 400;
  height: auto;
  margin: 0px 0px;
  padding: 12px 20px;
  background-color: #C5a95E !important;
  transition: all 0.3s ease-in-out;
  border: 1px solid #C5a95E !important;
  text-transform: capitalize !important;
}

.theme-dark-gold .cb-edit-form .cbUpdateButton,
.theme-dark-gold .cb-add-form .cbSubmitButton,
.theme-dark-gold .cbResultSetAddButton,
.theme-dark-gold .cbResultSetModifyButton {
  min-width: 100%;
}

.theme-dark-gold .cb-edit-form .cbUpdateButton:hover,
.theme-dark-gold .cb-edit-form .cbUpdateButton:focus,
.theme-dark-gold .cb-add-form .cbSubmitButton:hover,
.theme-dark-gold .cb-add-form .cbSubmitButton:focus,
.theme-dark-gold .cbResultSetAddButton:hover,
.theme-dark-gold .cbResultSetModifyButton:hover,
.theme-dark-gold #edit-listing-btn:hover {

  border: 1px solid #c7a54c !important;
  color: #c7a54c !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
}

.theme-dark-gold .checkbox-container label {
  margin-top: 5px;
  margin-bottom: 5px;
}

.theme-dark-gold .field-mb .cbFormLabelCell.cbFormLabel {
  margin-bottom: 10px !important;
  color: #C5a95E !important;
}

.theme-dark-gold .cb-list-report.comments-cont {}

/* comments list */
.comment-card {
  background: #1e1e1e;
  /* dark card background */
  border: 1px solid #413c30;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.comment-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.comment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.comment-card-header .name {
  font-weight: 600;
  color: #C5a95E;
  font-size: 1rem;
}

.comment-card-header .date {
  font-size: 0.85rem;
  color: #ccc;
}

.comment-card-body {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
}

.theme-dark-gold .cb-list-report.comments-cont .cbResultSetListViewTableOddCell,
.theme-dark-gold .cb-list-report.comments-cont .cbResultSetListViewTableEvenCell {
  border: none !important;
}

.theme-dark-gold .cb-list-report.comments-cont .cbResultSetPanelDataContainer {
  padding: 0px !important;
}

.theme-dark-gold .cb-list-report.comments-cont [data-cb-name="cbTable"] {
  display: block !important;
}

.theme-dark-gold .cbRecordCountMessage.cbResultSetRecordMessage ,
.theme-dark-gold .cbResultSetNavigationDDown{
  color: #C5a95E !important;
}

.theme-dark-gold .cbResultSetSortLabel,
.theme-dark-gold .cbFormData {
  color: #bebebe !important;
}

.theme-dark-gold .cb-edit-form [data-cb-name="cbFormDataCheckbox"] label {
  vertical-align: top !important;
}

.theme-dark-gold .create-form [data-cb-name="cbFormDataCheckbox"] label {
  vertical-align: bottom !important;
}

.theme-dark-gold .photos-cont [id^="RecordMessageTop"],
.theme-dark-gold .comments-cont [id^="RecordMessageTop"] {
  background: #bda32730 !important;
  color: #bebebe !important;

}

.theme-dark-gold [id^="RecordMessageTop"]:before {
  color: #C5a95E !important;

}

.theme-dark-gold .cbActionPanel div.cbAdvSorting {
  margin-bottom: 10px !important;
}


/* photo preview */
/* All table images (thumbnails) */
.photos-cont .cbResultSetTable td.cbResultSetTableCell img:not([alt="Exclamation-disc"]) {
  width: 60px;
  /* fixed thumbnail width */
  height: 60px;
  /* fixed thumbnail height */
  object-fit: cover;
  /* crops images to fill square */
  border-radius: 4px;
  /* optional for rounded corners */
  display: block;
  /* remove extra whitespace */
  margin: 0 auto;
  /* center image horizontally */
}


/* photos */
/* Card wrapper */
.photo-preview-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #171717;
  padding: 20px;
}

/* Internal wrapper to center everything */
.photo-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Image styling */
.photo-preview-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  /* keeps clarity */
  border-radius: 8px;
  border: 2px solid #C5a95E;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

/* Hover zoom */
.photo-preview-img:hover {
  transform: scale(1.02);
}

/* Placeholder styling */
.photo-placeholder {
  text-align: center;
  color: #C5a95E;
  font-size: 20px;
}

/* Download icon */

.download-icon {
  font-size: 28px;
  color: #C5a95E !important;
  text-decoration: none;
  margin-top: 10px;
  transition: transform 0.2s ease-in-out;
}

.download-icon:hover {
  transform: scale(1.2);
}

.download-note {
  font-size: 14px;
  color: #C5a95E;
  text-align: center;
  margin-top: 5px;
  line-height: 1.4;
}


.cbResultSetHeaderCell,
.cbResultSetOddRow,
.cbResultSetEvenRow {
  background-color: #171717 !important;
}

.cbResultSetLabelLink,
.cbResultSetHeaderCell {
  color: #dedede !important;
}

.cbResultSetGroup1LabelCell {
  background: #2d303896 !important;
}

.cbResultSetGroup1Label,
.cbResultSetData {
  color: #fff !important;
}

.cb-tabular-report .cbResultSetActionCell>a[data-cb-name="InlineEdit"]::before,
.cb-tabular-report .cbResultSetActionCell>a[data-cb-name="InlineDelete"]::before {
  color: #C5a95E !important;
}

.cbResultSetActionsLinks {
  color: #dedede !important;
}


.cb-tabular-report tr {
  border-left: none !important;
}

.cb-tabular-report tr {
  border-bottom: 1px solid #59595973 !important;
  padding: 10px 3px;
}

.cbResultSetGroup1Left {
  border-bottom: 1px solid #59595973 !important;
  border-top: 1px solid #59595973 !important;
}

.cbResultSetAddButton {
  min-width: 100% !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

[data-cb-name="inlineaddrow"] td {
  padding: 25px 12px !important;
}

[id^="GridCtnr"] {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

[id^="GridCtnr"] table {
  width: 100%;
  /* or fixed width > container */
  border-collapse: collapse;
}

.Alert .Message,
.Alert .SimpleButton[value="Cancel"] {
  color: #090809 !important;
}

input.ClsBtn {
  background-color: #fff !important;
  border: none !important;
}


.content-wrapper>.content {
  padding: 0 20px !important;
}

.theme-dark-gold .theme-btn a {
  border-radius: 10px !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  display: inline-block !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  height: auto !important;
  margin: 0px 0px !important;
  padding: 7px 20px !important;
  text-align: center !important;
  background-color: #C5a95E !important;
  transition: all 0.3s ease-in-out !important;
  border: 1px solid #C5a95E !important;
}

.align-with-btn {
  display: flex;
  align-items: center;
}

.theme-dark-gold .cbResultSetRecordMessage {
  color: #C5a95E !important;
}


.card-header {
  border-bottom: 1px solid #b7b4a2 !important;
  color: 1px solid #b7b4a2 !important;
}

.brand-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 71px;
  /* adjust as needed */
}

.brand-link {
  padding: 20px !important;
}

.sidebar-collapse .brand-link {
  padding: 10px !important;
}

.brand-link svg {
  max-width: 100%;
  height: auto;
}

.navbar {
  padding: 5px .5rem !important;
}

.navbar-logo {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.navbar-logo-img {
  height: 35px !important;
  width: auto !important;
}

.navbar-logo-text {
  font-weight: bold !important;
  font-size: 18px !important;
  color: #333 !important;
  /* adjust based on theme */
}

body:not(.sidebar-mini-md) .content-wrapper,
body:not(.sidebar-mini-md) .main-footer,
body:not(.sidebar-mini-md) .main-header {
  z-index: 10000 !important;
}

.b-logo {
  width: 200px;
  /* adjust to your desired size */
  height: auto;
  /* keeps proportions */
}

.search-container .action-button,
.search-container .action-button:active {
  border-radius: 10px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem !important;
  font-weight: 400;
  height: auto;
  margin: 0px 0px;
  padding: 12px 20px;
  text-align: center;
  background-color: #C5a95E;
  transition: all 0.3s ease-in-out;
  border: 1px solid #C5a95E !important;
}

.search-container .action-button {
  min-width: 100%;
}

.search-container .cbHTMLBlockContainer {
  padding-top: 0px !important;
}

.search-container .action-button:hover,
.search-container .action-button:focus {

  border: 1px solid #C5a95E;
  color: #C5a95E;
  background-color: #FFFFFF;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.search-container .previous_button {
  background: #dee2e6;
  color: #5c5c5c;
  border-color: #d1d3e2 !important;
}

.search-container .previous_button:hover,
.search-container .previous_button:focus {
  background: transparent;
  border-color: #405867;
  color: #405867;
}

.search-container button:not(.secondary-button) {
  width: 120px;
}

#listingSearchContainer section[id^="cbTable_"] [class*=cbFormBlock6],
#listingSearchContainer section[id^="cbTable_"] .cbSubmitButtonContainer ,
#agentSearchContainer section[id^="cbTable_"] [class*=cbFormBlock6],
#agentSearchContainer section[id^="cbTable_"] .cbSubmitButtonContainer {
  display: none;
}

.search-result-grid .cbResultSetPanelDataContainer {
  padding: 0px !important;
}

.search-result-grid {
  position: relative !important;
  min-height: 100px;
  /* ensure it has height */
}

.results-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  /* on top of everything */
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #C5a95E;
  animation: spin .8s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}



/* Listing search */

/* =========================
   DESKTOP LAYOUT (base)
   Row 1: Search spans full width
   Row 2: Tabs | Property Type | Status
========================= */
#listingSearchContainer section[id^="cbTable_"],
#agentSearchContainer section[id^="cbTable_"] {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  grid-auto-rows: auto !important;
  align-items: center !important;
  gap: 5px 24px !important;
  padding: 0px 0 !important;
  background: transparent !important;
}

/* Row 1: search spans all columns */
#listingSearchContainer section[id^="cbTable_"] .cbFormBlock1 ,
#agentSearchContainer section[id^="cbTable_"] .cbFormBlock1 {
  grid-column: 1 / -1 !important;
}

/* Row 2 placement (tabs may be Block2 or Block3 depending on DP) */
#listingSearchContainer section[id^="cbTable_"] .cbFormBlock2,
#listingSearchContainer section[id^="cbTable_"] .cbFormBlock3,
#agentSearchContainer section[id^="cbTable_"] .cbFormBlock2,
#agentSearchContainer section[id^="cbTable_"] .cbFormBlock3 {
  grid-column: 1 / -1 !important;
  /* span all columns */
  order: 2 !important;
  /* ensure they appear after the search */
  flex: 1 1 100% !important;
  /* full width when flex is active */
}

#listingSearchContainer section[id^="cbTable_"] .cbFormBlock4,
#agentSearchContainer section[id^="cbTable_"] .cbFormBlock4 {
  grid-column: 2 !important;
}

/* Property Type */
#listingSearchContainer section[id^="cbTable_"] .cbFormBlock5,
#agentSearchContainer section[id^="cbTable_"] .cbFormBlock5 {
  grid-column: 3 !important;
}

/* Status */

/* Optional: hide helper blocks if present */
#listingSearchContainer section[id^="cbTable_"] .cbFormBlock6,
#agentSearchContainer section[id^="cbTable_"] .cbFormBlock6 {
  display: none !important;
}

/* =========================
   TABS (auto-wrap on overflow)
========================= */
#listingSearchContainer section[id^="cbTable_"] .tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  /* auto-wrap to new line when needed */
  gap: 12px 20px !important;
  align-items: center !important;
  width: 100% !important;
}

#listingSearchContainer section[id^="cbTable_"] .tabs .tab {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
  color: #f5f5f5 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 2px 0 !important;
  position: relative !important;
  white-space: nowrap !important;
  /* keep label on one line */
  flex: 0 1 auto !important;
  /* shrink before wrapping */
  border-bottom: 1px solid #666 !important;
  /* subtle divider line */
}

#listingSearchContainer section[id^="cbTable_"] .tabs .tab.active {
  color: #C5a95E !important;
  border-bottom-color: #C5a95E !important;
}

/* =========================
   DROPDOWNS + SEARCH INPUT
========================= */
#listingSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual2"],
#listingSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual3"],
#agentSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual2"],
#agentSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual3"] {
  color: #fff !important;
  min-width: 180px !important;
  font-weight: 600 !important;
  -webkit-appearance: menulist !important;
  appearance: menulist !important;
}

#listingSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual2"]:focus,
#listingSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual3"]:focus,
#agentSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual2"]:focus,
#agentSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual3"]:focus {
  border-color: #C5a95E !important;
  box-shadow: 0 0 0 2px rgba(230, 184, 76, .15) !important;
}

#listingSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual1"],
#agentSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual1"] {
  padding: 11px 10px !important;
}

.content-header h1 {
  font-size: 1.5rem !important;
}

.form-my-0 .cb-tabular-report.cb-search-gray-bg form#caspioform>div>section {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

#listingSearchContainer [data-cb-row-collapsed="7"],
#listingSearchContainer [data-cb-row-collapsed="8"],
#agentSearchContainer [data-cb-row-collapsed="7"],
#agentSearchContainer [data-cb-row-collapsed="8"] {
  display: none !important;
}

.mobile-toggle {
  display: none;
}

.nav-sidebar .nav-link>p>.right {
  top: 1.3rem!important;
}

/* Search Form */
/* Hide search container on mobile by default */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }

  .mobile-toggle {
    border-radius: 10px !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    display: inline-block !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    height: auto !important;
    margin: 15px 0px !important;
    padding: 7px 20px !important;
    text-align: center !important;
    background-color: #232323 !important;
    transition: all 0.3s ease-in-out !important;
    border: 1px solid #C5a95E !important;
    width: 100% !important;
  }

  #fileList .item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #eee;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
  }

  #fileList .item .thumb {
    max-width: 80px;
    height: auto;
    margin-right: 10px;
    border-radius: 4px;
  }

  /* Image + remove button inline */
  #fileList .item .thumb,
  #fileList .item .remove {
    display: inline-block;
    vertical-align: middle;
  }

  #fileList .item .text-right {
    margin-top: 5px;
    text-align: left;
  }

  /* Meta block full width */
  #fileList .item .meta {
    width: 100%;
    margin-top: 8px;
  }

  #fileList .item .meta .desc {
    width: 100%;
    margin-top: 6px;
  }

  #fileList .item .meta input.form-control {
    width: 100%;
    font-size: 14px;
  }
}



/* =========================
   TABLET: stack rows
========================= */
@media (max-width: 992px) {
  #listingSearchContainer section[id^="cbTable_"],
  #agentSearchContainer section[id^="cbTable_"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #listingSearchContainer section[id^="cbTable_"] .cbFormBlock1,
  #listingSearchContainer section[id^="cbTable_"] .cbFormBlock2,
  #listingSearchContainer section[id^="cbTable_"] .cbFormBlock3,
  #listingSearchContainer section[id^="cbTable_"] .cbFormBlock4,
  #listingSearchContainer section[id^="cbTable_"] .cbFormBlock5,
  #agentSearchContainer section[id^="cbTable_"] .cbFormBlock1,
  #agentSearchContainer section[id^="cbTable_"] .cbFormBlock2,
  #agentSearchContainer section[id^="cbTable_"] .cbFormBlock3,
  #agentSearchContainer section[id^="cbTable_"] .cbFormBlock4,
  #agentSearchContainer section[id^="cbTable_"] .cbFormBlock5 {
    grid-column: 1 !important;
  }

  #listingSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual2"],
  #listingSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual3"],
  #agentSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual2"],
  #agentSearchContainer section[id^="cbTable_"] [id^="cbParamVirtual3"] {
    width: 100% !important;
  }
}

/* =========================
   MEDIUM: switch grid → flex for reliable ordering
========================= */
@media (max-width: 1395px) {
  #listingSearchContainer section[id^="cbTable_"],
  #agentSearchContainer section[id^="cbTable_"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px 16px !important;
    align-items: center !important;
  }

  /* Row 1: search (and optional search button) */
  #listingSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock1"],
  #listingSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock2"] ,
  #agentSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock1"],
  #agentSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock2"] {
    order: 1 !important;
    flex: 1 1 100% !important;
    /* search full width */
  }

  /* Row 2: tabs full width */
  #listingSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock3"],
  #agentSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock3"] {
    order: 2 !important;
    flex: 1 1 100% !important;
  }

  /* Row 3: filters below tabs */
  #listingSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock4"],
  #listingSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock5"] ,
  #agentSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock4"],
  #agentSearchContainer section[id^="cbTable_"]>[class^="cbFormBlock5"] {
    order: 3 !important;
    flex: 0 1 auto !important;
  }
}

/* =========================
   MOBILE: keep auto-wrap; center text
========================= */
@media (max-width: 640px) {
  #listingSearchContainer section[id^="cbTable_"] .tabs .tab {
    text-align: center !important;
  }
}


/* end listing search */


@media screen and (max-width: 767px) {

  .button-cont,
  .search-container button {
    width: 100%;

  }

  .search-container .action-button {
    margin-left: 1px;
    margin-right: 1px;
  }

  .button-cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

}




@media only screen and (min-width: 768px) {

  body:not(.sidebar-mini-md) .main-header {
    margin-left: 0px !important;
  }

}


@media only screen and (min-width: 992px) {
  .sidebar-mini.sidebar-collapse .main-header {
    margin-left: 0px !important;
  }
}


/* Mobile adjustments Photo*/
@media (max-width: 991.98px) {
  .photo-preview-card {
    height: auto;
  }

  .photo-preview-img {
    max-height: 70vh;
  }
}




@media only screen and (min-width: 577px) and (max-width: 1024px) {
  div[id^="cbOuterAjaxCtnr"] .cbFormCommonError {
    margin-left: 0% !important;
    margin-right: 0% !important;
  }


}

@media only screen and (max-width: 1024px) {
  table[id^="cbTable"]>tbody>tr[data-cb-name=data]>td:before {
    color: #ffffffbd !important;
  }

  .cbResultSetGroup1Row {
    background-color: #2a2e36 !important;
  }

  table[class^="cbResultSetTable"]>tbody>tr[data-cb-name="data"]:not([class~=Edit])>td.cbResultSetActionCell {
    filter: brightness(0) invert(1);
    /* turns image white */
  }

  #inlineActions.ToolBox .RAItem a[data-cb-name="InlineEdit"],
  #inlineActions.ToolBox .RAItem a[data-cb-name="InlineDelete"] {
    color: #171717 !important;
  }

  #inlineActions.ToolBox .RAItem a[data-cb-name="InlineEdit"]::before,
  #inlineActions.ToolBox .RAItem a[data-cb-name="InlineDelete"]::before {
    color: #171717 !important;
  }

  nav.cbReportNavBarPanel .cbNavBarCtnt ul[data-cb-name='ResponsiveJumpToNavBar'] a,
  nav.cbReportNavBarPanel .cbNavBarCtnt ul[data-cb-name='ResponsiveJumpToNavBar'] a,
  nav.cbReportNavBarPanel .cbNavBarCtnt ul[data-cb-name='ResponsiveJumpToNavBar'] span,
  nav.cbReportNavBarPanel .cbNavBarCtnt ul[data-cb-name='ResponsiveNavBar'] a,
  nav.cbReportNavBarPanel .cbNavBarCtnt ul[data-cb-name='ResponsiveNavBar'] a,
  nav.cbReportNavBarPanel .cbNavBarCtnt ul[data-cb-name='ResponsiveNavBar'] span {
    min-width: 25px !important;
    height: 30px !important;
    line-height: 30px !important;
  }

}

@media only screen and (max-width: 577px) {
  .comment-card-header {
    display: grid;
  }

  table[class^="cbResultSetTable"]>tbody>tr[data-cb-name="data"]:not([class~=Edit])>td.cbResultSetActionCell {
    filter: brightness(0) invert(1);
    /* turns image white */
  }

}



/* loader */
#zb-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  opacity: 1;
  pointer-events: auto;
  transition: opacity .28s ease
}

#zb-loader.hidden {
  opacity: 0;
  pointer-events: none
}

#zb-loader .spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, .3);
  border-top-color: #C5a95E;
  animation: zbspin 1s linear infinite
}

@keyframes zbspin {
  to {
    transform: rotate(360deg)
  }
}

/* topbar add listing */


.navbar-nav.ml-auto .nav-item .theme-button,
.theme-button {
  background-color: #c5a95f;
  border-radius: 10px;
  color: #fff;
}
.theme-button {
  padding: 5px 10px;
  border-color: #c5a95f;

}
/* bulk upload */
.zb-dropzone {
  border: 2px dashed #ced4da;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: background .15s
}

.zb-dropzone.dragover {
  background: #f8f9fa
}

.zb-filelist .item {
  display: grid;
  grid-template-columns: 64px 1fr 110px;
  grid-gap: 12px;
  align-items: center;
  border: 1px solid #eeeeee30;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px
}

.zb-filelist .thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #f2f2f2
}

.zb-filelist .name {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
  color: #fff;
}

.zb-filelist .desc input {
  width: 100%
}

.zb-filelist .status {
  font-size: 12px
}

.badge-queued {
  background: #6c757d
}

.badge-uploading {
  background: #17a2b8
}

.badge-done {
  background: #28a745
}

.badge-error {
  background: #dc3545
}

.modal.show .modal-dialog{
  margin-top: 90px;
}

#cb-modal-body .alert{
  gap: .25em;             /* puts space between text and <strong> */
}

#cb-modal-body .alert {
  text-align: center;          /* center the note */
  font-size: 14px;             /* smaller on mobile */
  line-height: 1.4;
  word-break: keep-all;        /* prevent awkward breaks */
  white-space: normal;         /* allow wrapping */
}

#cb-modal-body .alert strong {
  white-space: nowrap;         /* keep "10 photos" together */
}


.modal-header{
  padding-left: 0px!important;
  padding-right: 0px!important;
  padding-top: 0px!important;
}

.modal-title{
  color: #fff;
}

.modal-content{
  padding: 20px;
}

.modal {
  background-color: #171717b8;
}

.modal-content{
  background-color: black;
  color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  animation: glowIn 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(197, 169, 94, 0.4);
  border: 1px solid #C5a95E;
  animation: fadeInUp 0.3s ease;
}

.item{
  background-color: #141414;
}

.bulk-photos,
.bulk-floorplans{
  padding-top: 15px;
}

.close, .cbFormDataLink{
  color: #fff!important;
}

.cbInlineAddFormButtonContainer{
  padding: 20px 0px 20px 0px!important;
}

#InlineAddFormLightBox{
  margin-top: 70px;
}

/* Format Phone */
.iti__country-list {
  list-style: none !important;   /* removes bullets */
  margin: 0;
  padding: 0px;
}

.iti__country-list li {
  list-style: none !important;   /* fallback */
  padding: 0px 5px!important;

}

.iti__country-list li::marker {
  content: none !important;      /* disable ::marker */
}
.iti.iti--allow-dropdown{
  width: 100%;
}

/* Agent Profile Image */
.file-preview {
  width: 200px;
  height: 200px;
  border: 1px solid #C5a95E;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #232323;
  cursor: pointer;
  overflow: hidden;
}

.file-preview-placeholder {
  color: #ccc;
  font-size: 14px;
  text-align: center;
}

.file-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.hide-input-file-upload input[type="file"][name*="RecordPhoto"] {
  margin-bottom: 10px;
}

.file-preview:hover {
  border-color: #C5a95E;
  background: #232323 ;
}

/* Select2 */
/* Select2 container (single & multiple) */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background-color: #232323;
  border: 1px solid #C5a95E;
  color: #fff;
  border-radius: 6px;
  min-height: 38px;
  font-size: 14px;
}

/* Rendered text */
.select2-container--default .select2-selection__rendered {
  color: #fff;
  line-height: 36px;
  padding-left: 10px;
}

/* Arrow icon */
.select2-container--default .select2-selection__arrow b {
  border-color: #C5a95E transparent transparent transparent;
}

/* Multiple mode: tag styling */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #C5a95E;
  border: none;
  border-radius: 4px;
  color: #111;
  padding: 2px 6px;
  margin-top: 4px;
}

/* Remove "x" button */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #111;
  margin-right: 4px;
  font-weight: bold;
}

/* Dropdown results */
.select2-container--default .select2-results > .select2-results__options {
  background: #232323;
  color: #fff;
}

/* Highlighted dropdown option */
.select2-container--default .select2-results__option--highlighted {
  background: #C5a95E !important;
  color: #111 !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container{
  background-color: #232323!important;

}
.select2-container--default .select2-selection--multiple{
  background-color: #232323!important;
  border-color: #C5a95E !important;

}

.theme-dark-gold input.select2-search__field:active,
.theme-dark-gold input.select2-search__field{
  outline: 0px solid #C5a95E !important;
  outline-offset: 0px !important;
  box-shadow: 0 0 0px rgba(199, 165, 76, 0.7) !important;
  border: 0px solid #C5a95E !important;
}

.theme-dark-gold input.select2-search__field::placeholder{
  color: #a0a09e !important;
}
#InsertRecordLanguages_Spoken option[value=""] {
  display: none;
}



[id*="EditRecordPhotoRemove"]{
  margin-right: 5px!important;
}

.alert-info {
  color: #fff;
  background: #c5a95f;
  border-color: #c5a95f;
}

.nav-link.theme-button i{
  font-size: 1rem;
}


.nav-link.theme-button:hover i{
  color: #fff !important;
}

.navbar-expand .navbar-nav{
  align-items: center;
}

.main-header .nav-link{
  height: auto!important;
}

#UIHolder + #Alert{
  background-color: #fff!important;
}

.theme-dark-gold #edit-listing-btn{
  border-radius: 10px!important;
  float: right;
  padding-top: 5px;
  padding-bottom: 5px;
}


.iti__country-list {
  color: #191D22!important;
}