:root {
  --brand-navy: #10243F;
  --brand-gold: #D3B455;
  --brand-border: #28496D;
  --brand-ink: #10243F;
  --brand-muted: #4E6077;
  --brand-surface: #F4F1EA;
  --brand-panel: #FFFFFF;
  --brand-soft: #EFE9DD;
}

body {
  background-color: var(--brand-surface);
  color: var(--brand-muted);
}

.preloader {
  background-color: var(--brand-surface) !important;
}

.loader-p {
  width: 64px;
  height: 64px;
  top: 50%;
  left: 50%;
  margin: -32px 0 0 -32px;
  border: 5px solid rgba(16, 36, 63, 0.16);
  border-top-color: var(--brand-gold);
  border-right-color: var(--brand-gold);
  box-shadow: 0 16px 36px rgba(16, 36, 63, 0.14);
  animation: theme-loader-spin 0.85s linear infinite;
}

.loader-p::before {
  content: "";
  position: absolute;
  inset: 12px;
  width: auto;
  height: auto;
  border: 1px solid rgba(211, 180, 85, 0.45);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.72);
  animation: none;
  opacity: 1;
}

.loader-p::after {
  content: "";
  position: absolute;
  inset: 22px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 50%;
  background-color: var(--brand-navy);
  animation: none;
  opacity: 1;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
.section-heading__title,
.breadcrumb__title,
.property-details__title,
.dashboard-card__title,
.card-title {
  color: var(--brand-ink);
}

a {
  color: var(--brand-navy) !important;
}

a:hover,
a:focus,
.text--base,
.breadcrumb__text,
.property-card__title a:hover,
.blog-card__title a:hover {
  color: var(--brand-gold) !important;
}

.section-bg,
.account,
.dashboard,
.breadcrumb::before {
  background-color: var(--brand-surface) !important;
}

.header,
.header.fixed-header {
  background-color: var(--brand-surface) !important;
  border-bottom: 1px solid rgba(40, 73, 109, 0.22);
  box-shadow: 0 12px 30px rgba(15, 35, 64, 0.12);
}

.nav-menu .nav-link,
.navbar-toggler.header-button,
.language-box .form-select,
.language-box .icon {
  color: var(--brand-navy) !important;
}

.language-box .icon {
  background-color: rgba(16, 36, 63, 0.08);
}

.nav-menu .nav-item.active .nav-link,
.nav-menu .nav-link:hover,
.nav-menu .nav-link:focus {
  color: var(--brand-gold) !important;
}

.nav-menu .nav-item.active .nav-link::before {
  background-color: var(--brand-gold);
}

.btn--base,
.bg--base {
  background-color: var(--brand-gold) !important;
  border-color: var(--brand-gold) !important;
  color: var(--brand-navy) !important;
}

.btn--base:hover,
.btn--base:focus,
.btn--base:focus-visible {
  background-color: var(--brand-navy) !important;
  border-color: var(--brand-navy) !important;
  color: #FFFFFF !important;
}

.btn-outline--base {
  background-color: transparent !important;
  border-color: var(--brand-gold) !important;
  color: var(--brand-gold) !important;
}

.btn-outline--base:hover,
.btn-outline--base:focus,
.btn-outline--base:focus-visible,
.btn-soft--base:hover,
.btn-soft--base:focus,
.btn-soft--base:focus-visible {
  background-color: var(--brand-gold) !important;
  border-color: var(--brand-gold) !important;
  color: var(--brand-navy) !important;
}

.btn-soft--base,
.badge--base,
.alert--base {
  background-color: rgba(211, 180, 85, 0.12) !important;
  border-color: rgba(211, 180, 85, 0.35) !important;
  color: var(--brand-navy) !important;
}

.custom--card,
.card,
.property-card,
.property--card,
.blog-card,
.blog--card,
.dashboard-card,
.dashboard-widget,
.invest-card,
.sidebar-menu,
.filter-sidebar,
.property-page-sidebar,
.property-details-sidebar,
.contact-card,
.testimonial-card,
.why-invest-card,
.cookies-card,
.custom--modal .modal-content {
  background-color: var(--brand-panel) !important;
  border-color: rgba(40, 73, 109, 0.18) !important;
  box-shadow: 0 12px 30px rgba(15, 35, 64, 0.08);
}

.banner,
.bg-pattern3,
.breadcrumb {
  background-color: var(--brand-surface) !important;
}

.breadcrumb {
  min-height: 96px;
  padding: 26px 0;
}

.breadcrumb__title {
  margin-bottom: 0;
}

.breadcrumb__list {
  margin-top: 8px;
}

.cookies-card {
  width: min(360px, calc(100vw - 24px));
  padding: 16px 18px;
  left: 16px;
  bottom: 16px;
  text-align: left !important;
}

.cookies-card__icon {
  width: 36px;
  height: 36px;
  font-size: 20px;
  margin-bottom: 10px;
}

.cookies-card__content {
  font-size: 13px;
  line-height: 1.45;
}

.cookies-card .mt-4 {
  margin-top: 10px !important;
}

.cookies-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 92px;
  min-height: 36px;
  height: 36px;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 575px) {
  .cookies-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px 16px;
  }
}

.property-page,
.blog,
.contact-page,
.blog-section,
.contact-section,
.policy-section,
.policy {
  padding-top: 48px !important;
}

.property-page,
.blog,
.contact-page,
.policy {
  padding-bottom: 72px !important;
}

.banner-content__subtitle,
.section-heading__subtitle {
  color: var(--brand-gold) !important;
}

.banner-content__title,
.banner-info__item .title,
.dashboard .dashboard-widget__number,
.property--card .card-title a,
.blog--card .card-title a {
  color: var(--brand-navy) !important;
}

.banner-info__item .text,
.dashboard .dashboard-widget__text,
.property--card .card-meta__item,
.property--card .card-meta__item .text,
.blog--card .card-text,
.contact-card__desc {
  color: var(--brand-muted) !important;
}

.dashboard .sidebar-menu {
  background-color: var(--brand-panel) !important;
  border: 1px solid rgba(40, 73, 109, 0.18);
}

.dashboard .sidebar-menu-list__link,
.dashboard .sidebar-submenu-list__link,
.dashboard .sidebar-menu .menu-title,
.dashboard .sidebar-menu-list__link .icon,
.dashboard .sidebar-submenu-list__link .icon {
  color: var(--brand-navy) !important;
}

.dashboard .sidebar-menu-list__item.active > a,
.dashboard .sidebar-submenu-list__item.active > a,
.dashboard .sidebar-menu-list__link:hover,
.dashboard .sidebar-submenu-list__link:hover {
  color: var(--brand-gold) !important;
  background-color: rgba(211, 180, 85, 0.12) !important;
}

.dashboard .dashboard-widget__icon,
.contact-card__icon,
.scroll-top {
  background-color: var(--brand-gold) !important;
  color: var(--brand-navy) !important;
}

.scroll-top:hover,
.scroll-top:focus {
  background-color: var(--brand-navy) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--brand-gold);
}

.property-details__buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  width: 100%;
}

.property-details__buttons .btn {
  width: 100% !important;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px !important;
  font-size: 0.95rem !important;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.property-details__buttons .btn i {
  flex: 0 0 auto;
}

@media (min-width: 1200px) {
  .property-details__buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .property-details__buttons {
    grid-template-columns: 1fr;
  }

  .property-details__buttons .btn {
    min-height: 48px;
  }
}

.custom--card .card-header,
.custom--modal .modal-header,
.modal-form__header {
  border-color: rgba(40, 73, 109, 0.18) !important;
}

.form--control,
.form-select,
.select2-container--default .select2-selection--single {
  background-color: #FFFFFF !important;
  border-color: rgba(40, 73, 109, 0.24) !important;
  color: var(--brand-navy) !important;
}

.form--control:focus,
.form-select:focus,
.select2-container--open .select2-selection.select2-selection--single,
.select2-container--open .select2-selection.select2-selection--multiple {
  border-color: var(--brand-gold) !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 180, 85, 0.18) !important;
}

.filter-form__hint {
  color: var(--brand-muted);
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 18px;
}

.listing-purpose-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.listing-purpose-options__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.listing-purpose-options__item {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(40, 73, 109, 0.22);
  border-radius: 6px;
  background-color: #FFFFFF;
  color: var(--brand-navy);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.listing-purpose-options__item .icon {
  color: var(--brand-gold);
  font-size: 1.125rem;
  line-height: 1;
}

.listing-purpose-options__input:checked + .listing-purpose-options__item,
.listing-purpose-options__item:hover,
.listing-purpose-options__item:focus {
  border-color: var(--brand-gold);
  background-color: rgba(211, 180, 85, 0.14);
  color: var(--brand-navy);
}

.listing-purpose-options__input:focus + .listing-purpose-options__item {
  box-shadow: 0 0 0 0.2rem rgba(211, 180, 85, 0.18);
}

.property-page-sidebar {
  top: 88px;
  max-height: min(640px, calc(100vh - 248px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-gold) rgba(40, 73, 109, 0.14);
}

.property-page-sidebar::-webkit-scrollbar {
  width: 8px;
}

.property-page-sidebar::-webkit-scrollbar-track {
  background-color: rgba(40, 73, 109, 0.10);
  border-radius: 999px;
}

.property-page-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--brand-gold);
  border-radius: 999px;
}

.property-page-sidebar .filter-form > button[type="submit"] {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 16px;
  background-color: var(--brand-gold) !important;
  border-color: var(--brand-gold) !important;
  color: var(--brand-navy) !important;
  box-shadow: 0 -10px 20px rgba(255, 255, 255, 0.92);
}

.property-page-sidebar .filter-form > button[type="submit"]:hover,
.property-page-sidebar .filter-form > button[type="submit"]:focus {
  background-color: var(--brand-navy) !important;
  border-color: var(--brand-navy) !important;
  color: #FFFFFF !important;
}

@media screen and (max-width: 991px) {
  .breadcrumb {
    min-height: auto;
    margin-top: 68px;
    padding: 22px 0;
  }

  .property-page,
  .blog,
  .contact-page,
  .blog-section,
  .contact-section,
  .policy-section,
  .policy {
    padding-top: 36px !important;
  }

  .property-page-sidebar {
    max-height: 100vh;
    overflow-y: auto;
  }
}

@media screen and (max-width: 424px) {
  .breadcrumb {
    min-height: auto;
    padding: 18px 0;
  }
}

.footer {
  background-color: var(--brand-surface) !important;
}

.footer-item__desc,
.footer-menu__link {
  color: #4E6077 !important;
}

.footer-item__title,
.footer-bottom .copyright {
  color: #10243F !important;
}

.footer-bottom {
  border-top-color: rgba(40, 73, 109, 0.24) !important;
}

.footer a,
.footer-bottom .footer-link,
.footer-menu__link a {
  color: #10243F !important;
}

.footer-menu.style-two .footer-menu__item {
  color: #10243F !important;
}

.footer a:hover,
.footer a:focus,
.footer-bottom .footer-link:hover,
.footer-bottom .footer-link:focus,
.footer-menu__link a:hover,
.footer-menu__link a:focus {
  color: var(--brand-gold) !important;
}

.footer-menu.style-two .footer-menu__item:hover {
  color: var(--brand-gold) !important;
}

.footer .social-list__link,
.footer .footer-menu__link i {
  color: var(--brand-gold) !important;
}

.footer-item__title::before {
  background-color: var(--brand-gold) !important;
}
