/* Brand theme overrides (Bootstrap 5 compatible) */
:root {
  --tcpa-claret: #7e1f41;
  --tcpa-lime: #a7c481;
  --tcpa-cherry: #d27a5f;
  --tcpa-charcoal: #1f1f23;
  --tcpa-gray-1: #34343a;
  --tcpa-gray-2: #62626f;
  --tcpa-gray-3: #f5f0ea;
  --tcpa-white: #ffffff;
  --tcpa-radius: 12px;
  --tcpa-shadow-sm: 0 8px 20px rgba(22, 20, 20, 0.07);
  --tcpa-shadow-md: 0 18px 40px rgba(22, 20, 20, 0.11);
  --bs-primary: var(--tcpa-claret);
  --bs-secondary: var(--tcpa-gray-2);
  --bs-success: #4f8a31;
  --bs-warning: #b17a13;
  --bs-danger: #9f1c3d;
  --bs-body-color: var(--tcpa-gray-1);
  --bs-body-bg: #f8f5f3;
  --bs-border-color: #e6dfda;
}

html,
body {
  font-family: "Gordita", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--tcpa-gray-1);
  font-size: 16px;
  line-height: 1.55;
  background: linear-gradient(180deg, #f7f3ee 0%, #f4efea 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-title,
.dash-title-two,
.dash-title-three {
  color: var(--tcpa-charcoal);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--tcpa-claret);
}

a:hover,
a:focus {
  color: #7d0341;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  padding: 0.62rem 1rem;
}

.btn-primary,
.btn-success {
  border-color: transparent;
  box-shadow: var(--tcpa-shadow-sm);
}

.btn-primary {
  background-color: var(--tcpa-claret);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #7d0341;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #4f8a31;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #3f7027;
}

.btn-outline-primary {
  color: var(--tcpa-claret);
  border-color: var(--tcpa-claret);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--tcpa-claret);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--tcpa-gray-2);
  border-color: #d8ccc2;
}

.form-control,
.form-select,
.nice-select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea {
  border-radius: 8px;
  min-height: 44px;
  border-color: #d9cdc2;
  background-color: #fff;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus {
  border-color: var(--tcpa-claret);
  box-shadow: 0 0 0 0.2rem rgba(148, 0, 63, 0.15);
}

.table {
  --bs-table-bg: #fff;
  --bs-table-hover-bg: #faf6f2;
  border-color: #eadfd5;
}

.table thead th {
  color: var(--tcpa-charcoal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  background: #f3ece6;
  border-bottom-width: 1px;
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.4em 0.7em;
}

.card,
.bg-white.border-20,
.dashboard-body .card-box,
.dashboard-body .dash-card-one,
.dashboard-body .bg-white,
.dashboard-body .theme-box,
.dashboard-body .border-20 {
  border: 1px solid #eadfd5;
  border-radius: var(--tcpa-radius) !important;
  box-shadow: var(--tcpa-shadow-sm);
  background: #fff;
}

.card .card-body {
  padding: 1rem 1.1rem;
}

.dashboard-body .card-box,
.dashboard-body .dash-card-one,
.dashboard-body .bg-white.border-20,
.dashboard-body .border-20,
.dashboard-body .brand-panel {
  padding: 1rem !important;
}

.dashboard-body .dash-title-two {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.dashboard-body {
  background: transparent;
}

.dashboard-body .dashboard-header {
  backdrop-filter: blur(8px);
  background: rgba(247, 242, 236, 0.94);
  border-bottom: 1px solid #e3d7cc;
}

.dash-aside-navbar {
  background: linear-gradient(180deg, #ffffff 0%, #f6f0ea 100%);
  border-right: 1px solid #e4d8ce;
}

.dash-aside-navbar .logo a {
  color: var(--tcpa-charcoal);
  font-weight: 700;
}

.dash-aside-navbar .dasboard-main-nav li a {
  border-radius: 8px;
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  color: #4a4a4a;
}

.dash-aside-navbar .dasboard-main-nav li a.active,
.dash-aside-navbar .dasboard-main-nav li a:hover {
  background: rgba(126, 31, 65, 0.09);
  color: var(--tcpa-claret);
}

.dash-aside-navbar .dasboard-main-nav li .nav-title {
  color: #6d6460;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-aside-navbar .dasboard-main-nav li a i {
  color: var(--tcpa-claret);
  opacity: 0.9;
}

.logout-btn,
.btn-danger {
  background-color: #9f1c3d;
  border-color: #9f1c3d;
}

.logout-btn:hover,
.btn-danger:hover {
  background-color: #851734;
  border-color: #851734;
}

.dash-aside-navbar .logout-btn.brand-logout-btn {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #9f1c3d;
  background: #9f1c3d;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--tcpa-shadow-sm);
}

.dash-aside-navbar .logout-btn.brand-logout-btn:hover {
  color: #fff;
  background: #851734;
  border-color: #851734;
  transform: translateY(-1px);
}

.dashboard-body .main-title {
  color: var(--tcpa-charcoal);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dashboard-body .dashboard-header .user-data .user-avatar {
  border-color: #fff;
  box-shadow: var(--tcpa-shadow-sm);
  background: #efe7e2;
  color: var(--tcpa-claret);
}

.brand-panel {
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: var(--tcpa-radius);
  box-shadow: var(--tcpa-shadow-sm);
}

.brand-kpi {
  background: linear-gradient(135deg, rgba(148, 0, 63, 0.06), rgba(155, 198, 120, 0.12));
  border: 1px solid #e5d8d2;
  border-radius: 12px;
}

.brand-hero {
  background: linear-gradient(120deg, #ffffff 0%, #f7f1ec 45%, #f2ece6 100%);
  border: 1px solid #e6dad0;
  border-radius: 16px;
}

.alert {
  border-radius: 10px;
}

.landing-brand {
  background:
    radial-gradient(1000px 600px at 92% 4%, rgba(210, 122, 95, 0.18), transparent 60%),
    radial-gradient(760px 480px at 10% 12%, rgba(167, 196, 129, 0.2), transparent 60%),
    linear-gradient(180deg, #f7f3ee 0%, #f2ece6 100%);
}

.landing-brand .landing-navbar {
  border-bottom: 1px solid rgba(148, 0, 63, 0.12);
  backdrop-filter: blur(10px);
}

.landing-brand .theme-main-menu.menu-style-two {
  background: rgba(255, 255, 255, 0.78);
}

.landing-brand .theme-main-menu .navbar-nav .nav-link {
  color: #3b3340;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-brand .theme-main-menu .navbar-nav .nav-link:hover {
  color: var(--tcpa-claret);
}

.landing-brand .hero-heading {
  color: #271f1d;
  text-wrap: balance;
}

.landing-brand .brand-hero-panel {
  border-radius: 20px;
  border: 1px solid #e4d8cd;
  padding-left: 22px;
  padding-right: 22px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 233, 0.95));
  box-shadow: var(--tcpa-shadow-md);
}

.landing-brand .brand-kpi .icon {
  background: rgba(148, 0, 63, 0.08);
}

.landing-brand .brand-kpi .value {
  color: var(--tcpa-claret);
}

.landing-brand .landing-listings .listing-card-brand {
  border: 1px solid #e7dbcf;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--tcpa-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.landing-brand .landing-listings .listing-card-brand:hover {
  transform: translateY(-4px);
  box-shadow: var(--tcpa-shadow-md);
}

.listing-card-one .img-gallery {
  min-height: 210px;
  background: linear-gradient(135deg, #f1e7de 0%, #e9ddd2 100%);
}

.listing-card-one {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.listing-card-one .img-gallery img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: center;
}

.listing-card-one .property-info {
  padding: 18px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card-one .property-info .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.listing-card-one .property-info .address {
  margin: 8px 0 14px;
  min-height: 2.6em;
}

.listing-card-one .property-info .feature {
  min-height: 2.1em;
}

.listing-card-one .property-info .pl-footer {
  margin-top: auto;
}

.card-style-four {
  padding: 20px 18px 18px !important;
  border: 1px solid #eadfd5;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--tcpa-shadow-sm);
}

.landing-brand .landing-listings .listing-media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 210px;
  background: linear-gradient(135deg, #f1e7de 0%, #e9ddd2 100%);
}

.landing-brand .landing-listings .listing-media-img {
  object-fit: cover;
  object-position: center;
}

.landing-brand .landing-listings .listing-media-frame.is-empty::after {
  content: "No image available";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b6d62;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.landing-brand .landing-listings .listing-card-content {
  padding: 18px 18px 16px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.landing-brand .landing-listings .listing-card-brand .property-info {
  padding: 18px 18px 16px !important;
}

.landing-brand .landing-listings .listing-card-brand .tag {
  background: var(--tcpa-claret);
  color: #fff;
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-brand .landing-listings .listing-card-brand .price {
  color: var(--tcpa-claret);
}

.landing-brand .landing-how .card-style-four {
  border: 1px solid #e8dcd1;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--tcpa-shadow-sm);
  padding: 20px 18px 18px !important;
}

.landing-brand .landing-how .card-style-four .icon {
  background: rgba(155, 198, 120, 0.22);
}

.landing-brand .landing-footer {
  background: linear-gradient(180deg, #292929 0%, #1f1f1f 100%);
}

.landing-brand .property-listing-two .title-one p,
.landing-brand .block-feature-seven .title-one p {
  color: #656270;
}

.landing-brand .property-listing-two .title,
.landing-brand .property-listing-two .address {
  color: #2d2d34;
}

.landing-brand .property-listing-two .pl-footer {
  border-top: 1px solid #eee3d9;
  margin-top: 12px;
  padding-top: 12px;
}

.landing-brand .property-listing-two .feature li span {
  font-size: 0.86rem;
  color: #5f5f6d;
}

.landing-brand .theme-main-menu .right-widget .login-btn-one {
  border: 1px solid #e1d4ca;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
}

.landing-brand .theme-main-menu .right-widget .login-btn-one i {
  color: var(--tcpa-claret);
}

.landing-brand .btn-two,
.landing-brand .btn-seven,
.landing-brand .btn-eight,
.landing-brand .btn-five {
  border-radius: 10px;
  border: 0;
}

.landing-brand .btn-two,
.landing-brand .btn-seven {
  background: var(--tcpa-claret);
  color: #fff;
}

.landing-brand .btn-eight,
.landing-brand .btn-five {
  background: #262626;
  color: #fff;
}

.landing-brand .btn-two:hover,
.landing-brand .btn-seven:hover,
.landing-brand .btn-eight:hover,
.landing-brand .btn-five:hover {
  filter: brightness(0.95);
}

/* Landing Modern Card Refresh */
.landing-brand .brand-kpi {
  border: 1px solid #e6d8cc;
  background: linear-gradient(145deg, #ffffff 0%, #f8f1eb 100%);
  box-shadow: 0 14px 30px rgba(32, 26, 24, 0.08);
  border-radius: 14px;
  min-height: 132px;
  padding: 14px 16px !important;
  overflow: hidden;
  position: relative;
}

.landing-brand .brand-kpi::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -38px;
  bottom: -52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 31, 65, 0.13) 0%, rgba(126, 31, 65, 0) 72%);
  pointer-events: none;
}

.landing-brand .brand-kpi .brand-kpi-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-brand .brand-kpi .kpi-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #6f6876;
  margin-bottom: 6px;
}

.landing-brand .brand-kpi .kpi-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.landing-brand .brand-kpi .icon {
  border-radius: 12px !important;
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px;
  background: rgba(126, 31, 65, 0.12);
}

.landing-brand .landing-listings .listing-card-brand {
  border: 1px solid #e9ddd2;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(24, 22, 22, 0.08);
}

.landing-brand .landing-listings .listing-card-brand:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(24, 22, 22, 0.12);
}

.landing-brand .landing-listings .listing-media-frame {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
}

.landing-brand .landing-listings .listing-media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0) 45%, rgba(16, 16, 16, 0.22) 100%);
  pointer-events: none;
}

.landing-brand .landing-listings .listing-card-brand .property-info,
.landing-brand .landing-listings .listing-card-content {
  padding: 22px !important;
}

.landing-brand .landing-listings .listing-card-brand .title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.landing-brand .landing-listings .listing-card-brand .address {
  font-size: 0.92rem;
  color: #6a6773;
}

.landing-brand .landing-listings .listing-card-brand .feature {
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.landing-brand .landing-listings .listing-card-brand .feature li {
  background: #f3ece6;
  border: 1px solid #ebdfd5;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.landing-brand .landing-listings .listing-card-brand .feature li .icon {
  opacity: 0.8;
}

.landing-brand .landing-listings .listing-card-brand .feature li span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #575563;
}

.landing-brand .landing-listings .listing-card-brand .pl-footer {
  border-top: 1px solid #ece2d9;
  margin-top: 14px;
  padding-top: 14px;
}

.landing-brand .landing-listings .listing-card-brand .price {
  font-size: 1.18rem;
  font-weight: 700;
}

.landing-brand .landing-listings .listing-card-brand .tag {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  backdrop-filter: blur(3px);
}

.landing-brand .landing-how .card-style-four {
  border-radius: 14px;
  border: 1px solid #eadfd4;
  padding: 24px 22px 20px !important;
  box-shadow: 0 12px 28px rgba(24, 22, 22, 0.07);
}

.landing-brand .landing-how .card-style-four h5 {
  font-size: 1.05rem;
  font-weight: 700;
}

.landing-brand .landing-how .card-style-four p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #666474;
}

/* Property detail page */
.property-detail-page .property-detail-shell {
  background: transparent;
}

.property-detail-page .brand-panel {
  border-radius: 14px;
}

.property-detail-page .property-gallery-main {
  background: #ece2d8;
  min-height: 360px;
}

.property-detail-page .property-gallery-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.property-detail-page .property-gallery-empty {
  min-height: 360px;
  font-size: 0.95rem;
}

.property-detail-page .property-thumb-btn {
  width: calc(16.66% - 0.5rem);
  min-width: 74px;
  max-width: 96px;
  flex: 0 0 auto;
  border: 1px solid #e4d6c8;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.property-detail-page .property-thumb-btn img {
  width: 100%;
  height: 52px;
  object-fit: cover;
}

.property-detail-page .carousel-control-prev-icon,
.property-detail-page .carousel-control-next-icon {
  background-color: rgba(25, 25, 25, 0.55);
  border-radius: 50%;
  background-size: 60% 60%;
}

.property-detail-page .badge.text-bg-light {
  color: #4f4c58 !important;
}

/* Admin buyer broadcast */
.buyer-broadcast-page .table {
  min-width: 980px;
}

.buyer-broadcast-page .table thead th {
  border-bottom: 1px solid #e9ddd2;
  color: #5e5866;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.buyer-broadcast-page .table tbody td {
  border-color: #efe5dc;
  vertical-align: middle;
}

.buyer-broadcast-page .badge {
  font-weight: 600;
}

.buyer-broadcast-page .btn {
  min-height: 42px;
}

@media (max-width: 991px) {
  .dashboard-body {
    padding-top: 96px;
  }

  .main-title,
  .admin-top-title {
    font-size: 1.4rem !important;
  }

  .landing-brand .brand-hero-panel {
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 14px;
  }

  .landing-brand .brand-kpi {
    min-height: 118px;
    padding: 12px !important;
  }

  .landing-brand .brand-kpi .kpi-value {
    font-size: 1.65rem;
  }

  .property-detail-page .property-gallery-main,
  .property-detail-page .property-gallery-image,
  .property-detail-page .property-gallery-empty {
    min-height: 250px;
  }
}
