/*
 *
 * RP Prospects Portal Stylesheet
 * SMSF General Styling
 * Author: RP Prospects
 * File Created: 07/07/2025
 * Last Update: MM/DD/YYYY - Carl
 *
 *
 * Table of Contents:
 *
 * 1. CSS Variables
 * 2. Base Styles
 * 3. Global / Common Components
 * 3.1. Navbar
 * 3.2. Footer
 * 3.3. Utility Classes (Placeholders)
 * 4. Form Elements & General Controls
 * 5. Page-Specific Layouts & Components
 * 5.1. Headers & Filter Bars
 * 5.2. Card / Section Wrappers
 * 5.3. List / Detail Items & Info Displays
 * 5.4. Table Specifics
 * 5.5. Property Cards (Reused Component)
 * 5.6. Map Related Styles
 * 5.7. Carousel Specifics
 * 5.8. Stats Cards
 * 5.9. Dashboard Page Sections
 * 5.10. Affiliate Pages
 * 5.11. Property Calculator Page
 * 5.12. View Contact Page
 * 5.13. Edit Profile Page
 * 5.14. Property View Page
 * 6. Responsive Adjustments
 */


/* ==========================================================================
   1. CSS Variables
========================================================================== */

:root {
  --bs-font-sans-serif: 'Segoe UI', sans-serif;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #28a745;
  --bs-info: #17a2b8;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-white: #fff;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-black: #000;

  /* Common border and shadow values */
  --bs-border-color: #eee;
  --bs-box-shadow-sm: 0 1px 5px rgba(0, 0, 0, 0.05);
  --bs-box-shadow-md: 0 2px 12px rgba(0, 0, 0, 0.05);
  --bs-box-shadow-lg: 0 4px 15px rgba(0, 0, 0, 0.08);
  --bs-box-shadow-off: none !important;

  /* Navbar heights for sticky/fixed calculations */
  --navbar-height: 72px;
  --sub-header-height: 62px; /* Approx height of bg-white py-3 border-bottom */

  /* RP Variables - Typography  */
  --rp-font-heading: "Red Hat Display", sans-serif;
  --rp-font-body: "Inter", sans-serif;
  --rp-font-button: "Red Hat Display", sans-serif;

  /* RP Variables - Colors  */
  --rp-body: #9FA4AA;
  --rp-footer-bg: #1C1D1F;

  --rp-primary:#D0010A;
  --rp-primary-hover:#B30C00;
  --rp-primary-lighter:#d9343b;
  --rp-primary-darker:#a60108;

  --rp-secondary:#1C295D;
  --rp-secondary-hover:#333e6d;
  --rp-secondary-lighter:#60698e;
  --rp-secondary-darker:#141d41;

  --rp-accent:;
  --rp-accent-hover:;
  --rp-accent-lighter:;
  --rp-accent-darker:; 


}


/* ==========================================================================
   2. Base Styles
   ========================================================================== */
html {
  height: 100%;
}

body {
  font-family: var(--rp-font-body);
  background-color: var(--bs-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scroll on small screens from wide elements */
  color: var(--rp-body);
}

/* Specific body overflow for full map view */
body.map-full-view-active {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--rp-font-heading);
    font-weight: 600;
    color:var(--bs-dark);
}

a {
  color:var(--rp-primary)
}

a:hover,
a:focus {
  color:var(--rp-primary-hover)
}




/* ==========================================================================
   3. Global / Common Components
   ========================================================================== */

/* 3.1. Navbar */
.navbar {
  transition: transform 0.3s ease-in-out;
  z-index: 1030;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* background-color: var(--bs-white);
  box-shadow: var(--bs-box-shadow-sm);
  height: var(--navbar-height); Explicit height for fixed nav */
}

.navbar--hidden {
  transform: translateY(-100%);
}

@media (min-width: 992px) {
  #navbarContent.collapse:not(.show) {
    display: none !important;
  }
}

.nav__link--active {
  background-color: var(--bs-gray-200);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--bs-black);
  font-weight: 500;
}

.dropdown-mega {
  position: static;
}

.mega-menu {
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  position: absolute;
  padding: 2rem 0;
  background: var(--bs-white);
  border-top: 1px solid var(--bs-border-color);
  box-shadow: var(--bs-box-shadow-md);
  z-index: 1000;
}

.dropdown-mega:hover > .mega-menu {
  display: block;
}

.mega-menu__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mega-menu__list {
  list-style: none;
  padding-left: 0;
}

.mega-menu__link {
  display: block;
  padding: 0.25rem 0;
  color: var(--bs-gray-800);
  text-decoration: none;
  font-size: 0.875rem;
}

.mega-menu__link:hover {
  color: var(--bs-danger); /* Assuming pink color from previous mocks */
  text-decoration: underline;
}


/* Utility Help Link in Navbar */
.utility-nav__link--active {
  color: var(--bs-danger) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}


/* 3.2. Footer */
.footer {
  background-color: var(--bs-dark);
  color: var(--bs-gray-500);
  padding: 1rem 0;
  font-size: 0.875rem;
  flex-shrink: 0; /* Prevent footer from shrinking */
}

.footer a {
  color: var(--bs-gray-500);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* 3.3. Utility Classes (Placeholders) */
.shadow-off {
  box-shadow: var(--bs-box-shadow-off) !important;
}

.placeholder,
.placeholder--avatar,
.placeholder--logo {
  background-color: var(--bs-gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-gray-700);
  font-weight: bold;
  overflow: hidden;
}

.placeholder--logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.placeholder--avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.75rem;
}

/* ==========================================================================
   4. Form Elements & General Controls
   ========================================================================== */
.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--rp-font-heading);
  color: var(--bs-gray-700);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  font-size: 0.9rem;
  border-radius: 0.375rem;
  height: 38px; /* Standard height for inputs/selects */
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: var(--rp-primary);
}

.btn:hover {
  background-color: var(--rp-primary-hover);
  border-color: var(--rp-primary-hover);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}


.file-upload-placeholder {
  border: 2px dashed var(--bs-gray-400);
  border-radius: 0.375rem;
  padding: 2rem;
  text-align: center;
  color: var(--bs-gray-600);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.file-upload-placeholder:hover {
  border-color: var(--bs-primary);
}

.file-upload-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.file-upload-placeholder .text-primary {
  font-weight: 500;
}

.password-toggle {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-gray-600);
  z-index: 10;
}

.form-check-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.form-check-switch .form-check-label {
  font-weight: 500;
  color: var(--bs-gray-800);
}

.form-check-switch .form-check-input {
  width: 3.5rem;
  height: 1.75rem;
}

/* ==========================================================================
   5. Page-Specific Layouts & Components
   ========================================================================== */

/* 5.1. Headers & Filter Bars */
/* Fixed Sub-Header below main navbar */
/* .bg-white.py-3.border-bottom {
  margin-top: var(--navbar-height); 
  position: sticky;
  top: var(--navbar-height);
  z-index: 1020; 
  background-color: var(--bs-white) !important; 
  box-shadow: var(--bs-box-shadow-sm); 
  height: var(--sub-header-height);
  display: flex; 
  align-items: center;
}
.bg-white.py-3.border-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
} */


.filters-bar {
  background-color: var(--bs-white);
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.02);
  position: sticky; /* Make filter bar sticky */
  top: calc(var(--navbar-height) + var(--sub-header-height)); /* Stick below main nav and sub-header */
  z-index: 1010; /* Below sub-header */
}

/* Map toggle button within the filters bar */
.filters-bar .map-filter-toggle-btn {
  background-color: var(--bs-gray-200);
  color: var(--bs-gray-700);
  border: 1px solid var(--bs-gray-400);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  min-width: 120px;
  justify-content: center;
}

.filters-bar .map-filter-toggle-btn:hover {
  background-color: var(--bs-gray-300);
  color: var(--bs-gray-800);
}


/* 5.2. Card / Section Wrappers */
.detail-card,
.dashboard-section,
.calculator-section-card {
  background-color: var(--bs-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
  margin-bottom: 1.5rem;
}

/* Form sidebar & main content for builder/profile edit pages */
.form-sidebar {
  background-color: var(--bs-white);
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
  height: fit-content;
  min-height: 400px;
}

.form-main-content {
  background-color: var(--bs-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--bs-gray-800);
}


/* 5.3. List / Detail Items & Info Displays */
.property-data-item,
.detail-info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--bs-border-color);
  font-size: 0.9rem;
  color: var(--bs-gray-700);
}
.property-data-item:last-of-type,
.detail-info-item:last-child {
  border-bottom: none;
}

.property-data-item strong {
  color: var(--bs-gray-800);
  font-weight: 500;
}

.property-data-item .value {
  color: var(--bs-black);
  font-weight: 600;
  text-align: right;
}

.detail-info-item {
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--bs-gray-700);
}

.detail-info-item i {
  width: 25px;
  text-align: center;
  margin-right: 0.5rem;
  color: var(--bs-gray-600);
}

.detail-info-item a {
  color: var(--bs-gray-700);
  text-decoration: none;
}

.detail-info-item a:hover {
  color: var(--bs-black);
  text-decoration: underline;
}

.document-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.document-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--bs-gray-800);
  margin-bottom: 0.5rem;
}

.document-list-item i {
  color: var(--bs-primary);
}

.document-list-item:last-child {
  margin-bottom: 0;
}

.property-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.property-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--bs-gray-700);
}

.property-feature-item i {
  font-size: 1.1rem;
  color: var(--bs-gray-600);
}


/* 5.4. Table Specifics */
.dashboard-table .table {
  margin-bottom: 0;
}

.dashboard-table .table thead th {
  font-size: 0.85rem;
  color: var(--bs-gray-600);
  font-weight: normal;
}

.dashboard-table .table tbody td {
  font-size: 0.875rem;
  vertical-align: middle;
}

.dashboard-table .table tbody tr {
  border-bottom: 1px solid var(--bs-gray-100);
}

.dashboard-table .table tbody tr:last-child {
  border-bottom: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--bs-success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.status-text {
  color: var(--bs-gray-700);
  font-size: 0.85rem;
}

.tag-badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  color: var(--bs-white);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  background-color: var(--bs-danger); /* Example for "HOT" or "Under EOI" */
}

.tag-badge--secondary {
  background-color: var(--bs-secondary); /* For "Marketing Group" */
}

/* Specific to View Contacts table */
.contacts-table-card {
  background-color: var(--bs-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
}
.contacts-table-card .table {
  margin-bottom: 0;
}
.contacts-table-card .table thead th {
  font-size: 0.85rem;
  color: var(--bs-gray-600);
  font-weight: normal;
  border-bottom-width: 1px;
}
.contacts-table-card .table tbody td {
  font-size: 0.9rem;
  vertical-align: middle;
  padding: 0.75rem 0.5rem;
  border-bottom: none;
}
.contacts-table-card .table tbody tr {
  border-bottom: 1px solid var(--bs-gray-100);
}
.contacts-table-card .table tbody tr:last-child {
  border-bottom: none;
}

.contact-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--bs-gray-800);
}

.contact-name-cell .placeholder--avatar {
  flex-shrink: 0;
}

.contact-email-cell a {
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-email-cell a:hover {
  text-decoration: underline;
}

.contact-phone-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-phone-cell .dropdown-toggle {
  color: var(--bs-gray-600);
  font-size: 0.85rem;
  padding: 0;
  background: none;
  border: none;
}

.contact-phone-cell .dropdown-toggle::after {
  margin-left: 0.25em;
  vertical-align: 0.15em;
}

.contact-phone-cell .dropdown-menu {
  font-size: 0.85rem;
}

.contact-notes-cell .status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--bs-success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.contact-notes-cell span {
  color: var(--bs-gray-700);
  font-size: 0.85rem;
}

.contact-company-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--bs-gray-800);
}

.contact-company-cell .company-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.company-dot.red { background-color: var(--bs-danger); }
.company-dot.green { background-color: var(--bs-success); }
.company-dot.blue { background-color: var(--bs-primary); }
.company-dot.orange { background-color: var(--bs-warning); }

.table-footer-info {
  font-size: 0.85rem;
  color: var(--bs-gray-600);
}

.pagination-sm .page-link {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* 5.5. Property Cards (Reused Component) */
.property-card {
  background-color: var(--bs-white);
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card__image-placeholder {
  width: 100%;
  height: 200px; /* Default height, can be overridden */
  background-color: var(--bs-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-gray-700);
  font-weight: bold;
  border-bottom: 1px solid var(--bs-border-color);
  overflow: hidden;
}

.property-card__content {
  padding: 1rem;
  flex-grow: 1;
}

.property-card__price {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.property-card__address {
  font-size: 0.875rem;
  color: var(--bs-gray-700);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.property-card__bookmark {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.25rem;
  color: var(--bs-warning);
}

.property-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.property-detail-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--bs-gray-800);
}

.property-detail-item i {
  margin-right: 0.25rem;
  color: var(--bs-gray-600);
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.property-tag {
  background-color: var(--bs-gray-200);
  color: var(--bs-gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.property-additional-info {
  font-size: 0.875rem;
  color: var(--bs-gray-700);
}

.property-additional-info div {
  margin-bottom: 0.25rem;
}

.property-additional-info strong {
  color: var(--bs-gray-800);
  width: 100px;
  display: inline-block;
}

/* 5.6. Map Related Styles */
.map-column {
  background-color: var(--bs-gray-300);
  position: sticky;
  top: var(--navbar-height); /* Sticks below main navbar */
  height: calc(100vh - var(--navbar-height)); /* Fills remaining height */
  overflow: hidden;
}

.map-section {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.map-section .map-placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 2rem;
  color: var(--bs-danger);
  cursor: pointer;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-marker .map-marker-icon {
  line-height: 1;
}

.map-marker .map-marker-price {
  background-color: var(--bs-white);
  color: var(--bs-black);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  margin-top: -0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Simple Property Name marker (for full map view) */
.map-marker.simple-name .map-marker-price {
    display: none; /* Hide price for simple markers */
}
.map-marker.simple-name .map-marker-icon {
    font-size: 1.5rem; /* Smaller icon for simple name markers */
}
.map-marker.simple-name .map-marker-name {
    background-color: var(--bs-white);
    color: var(--bs-black);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    margin-top: -0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* Popover custom style for map markers */
.popover {
  max-width: 280px;
  --bs-popover-border-color: var(--bs-gray-400);
}

.popover-header {
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--bs-popover-border-color);
  margin-bottom: 0.25rem;
  padding-bottom: 0.25rem;
}

.popover-body {
  font-size: 0.8rem;
  color: var(--bs-gray-700);
}

.popover-body .popover-address {
  display: block;
  margin-bottom: 0.5rem;
}

.popover-body .popover-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.popover-body .popover-detail-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--bs-gray-800);
}

.popover-body .popover-detail-item i {
  margin-right: 0.25rem;
  color: var(--bs-gray-600);
}

.popover-body .popover-view-details {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
}

.popover-body .popover-view-details .btn-sm {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
}

/* For Full Map View Controls */
.map-controls-top-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 15;
}
.map-controls-bottom-left {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.map-controls-bottom-left .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Map Overlay Card (appears on marker click in full map view) */
.map-overlay-card {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background-color: var(--bs-white);
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 10;
    display: none; /* Hidden by default, shown by JS */
}
.map-overlay-card__image-placeholder {
    width: 100%;
    height: 120px;
    background-color: var(--bs-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-gray-700);
    font-weight: bold;
    overflow: hidden;
}
.map-overlay-card__content {
    padding: 0.75rem 1rem;
}
.map-overlay-card__price {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.map-overlay-card__address {
    font-size: 0.85rem;
    color: var(--bs-gray-700);
    margin-bottom: 0.75rem;
}
.map-overlay-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.map-overlay-card__detail-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--bs-gray-800);
}
.map-overlay-card__detail-item i {
    margin-right: 0.25rem;
    color: var(--bs-gray-600);
}
.map-overlay-card__footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--bs-border-color);
    text-align: right;
}
.map-overlay-card__footer .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}


/* 5.7. Carousel Specifics */
.carousel-inner .carousel-item {
  display: flex !important;
  transition: transform 0.5s ease-in-out;
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
  display: flex !important;
}

.carousel-inner .carousel-item > div {
  display: block;
  flex: 0 0 calc(100% / 3); /* Default: 3 items per slide */
  margin-right: 1rem; /* Spacing between cards */
}

.carousel-inner .carousel-item > div:last-child {
  margin-right: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 3%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.75rem;
  border-radius: 50%;
}


/* 5.8. Stats Cards */
.stats-card {
  background-color: var(--bs-white);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stats-card__number {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--bs-black);
  line-height: 1;
}

.stats-card__label {
  font-size: 0.85rem;
  color: var(--bs-gray-700);
}

/* Profile specific stats cards */
.profile-stats-card {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--bs-white);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.profile-stats-card__number {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
}

.profile-stats-card__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

.profile-stats-card__icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}


/* 5.9. Dashboard Page Sections */
.dashboard-section {
  background-color: var(--bs-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
  margin-bottom: 2rem;
}

.dashboard-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.dashboard-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
}

.dashboard-section__controls .btn-sm {
  font-size: 0.8rem;
}

/* Marketing Payments specific headers within dashboard */
.marketing-payments-header {
  background-color: var(--bs-gray-200);
  padding: 0.75rem 1rem;
  border-radius: 0.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bs-gray-800);
}



/* 5.10. Sign-up Pages (Sign-up, Registration, Affiliate) */

/* General 50-50 Page */
.form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.form-box {
  font-family: var(--rp-font-heading);
  background-color: var(--bs-white);
  padding: 3rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-lg);
  width: 100%;
   max-width: 560px; 
}

.landing-form .btn,
.landing-form .form-control,
.landing-form .form-select {
  border-radius: 50vw;
}


.logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bs-danger);
  color: var(--bs-white);
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--bs-gray-800);
}

.right-pane {
  background-color: var(--bs-gray-200);
  background-image: url(/assets/images/rp_default_login_bg.jpg);
  background-size:  cover;
  background-repeat:  no-repeat;
  min-height: 100vh;
}

.copyright-text {
  font-size: 0.8rem;
  color: var(--bs-gray-600);
  margin-top: 2rem;
}


/* Sign-up */

/* Registration */


/* Affiliate Page */
.affiliate-sign-up a {
  color: var(--rp-primary) !important
}

.affiliate-sign-up a:hover {
  color: var(--rp-primary-hover) !important
}



@media screen and (max-width:767px) {
  .form-container {
    padding: 1.5rem;
  }
  .form-box {
    box-shadow: none;
    padding: 1.5rem;
  }
  .right-pane {
    min-height: 200px;
    display: none;
  }
}




/* 5.11. Property Calculator Page */
.calculator-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--bs-gray-800);
}

.calculator-form .form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bs-gray-700);
  margin-bottom: 0.5rem;
}

.calculator-form .form-control,
.calculator-form .form-select {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

.price-breakdown-chart {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 15px solid var(--bs-warning);
  border-right-color: var(--bs-danger);
  border-top-color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--bs-gray-800);
  margin: 0 auto;
  position: relative;
}

.price-breakdown-chart::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--bs-white);
  z-index: -1;
}

.price-breakdown-chart small {
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--bs-gray-600);
  margin-top: 0.25rem;
}

.summary-card {
  background-color: var(--bs-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-card__amount {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--bs-black);
  margin-bottom: 0.25rem;
}

.summary-card__label {
  font-size: 0.9rem;
  color: var(--bs-gray-600);
}

.breakdown-table .table {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.breakdown-table .table th,
.breakdown-table .table td {
  padding: 0.75rem;
  vertical-align: middle;
}

.breakdown-table .table thead th {
  font-weight: 600;
  color: var(--bs-gray-700);
}

.breakdown-table .table tbody tr:last-child {
  border-top: 1px solid var(--bs-gray-300);
  font-weight: bold;
}

.breakdown-table .table tbody tr:last-child td {
  color: var(--bs-black);
}

.what-means-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bs-border-color);
}

.what-means-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--bs-gray-800);
}

.what-means-section__text {
  font-size: 0.9rem;
  color: var(--bs-gray-600);
}


/* 5.12. View Contact Page */
.detail-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.detail-text {
  font-size: 0.95rem;
  color: var(--bs-gray-800);
  margin-bottom: 0.5rem;
}

.detail-text strong {
  font-size: 1.2rem;
  display: block;
  line-height: 1.2;
}

.tag-badge {
  background-color: var(--bs-danger);
  margin-right: 0.5rem;
}

.tag-badge--secondary {
  background-color: var(--bs-secondary);
}

.contact-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.contact-note-item {
  background-color: var(--bs-white);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.contact-note-item:last-child {
  margin-bottom: 0;
}

.contact-note-date {
  font-size: 0.85rem;
  color: var(--bs-gray-600);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-note-date i {
  margin-right: 0.25rem;
}

.contact-note-text {
  font-size: 0.9rem;
  color: var(--bs-gray-800);
  line-height: 1.5;
}

.social-icons a {
  color: var(--bs-gray-600);
  font-size: 1.2rem;
  margin-right: 1rem;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: var(--bs-black);
}

.btn-action {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}


/* 5.13. Edit Profile Page */
.profile-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bs-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-gray-600);
  font-size: 2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bs-gray-400);
  overflow: hidden;
}

.profile-photo-placeholder i {
  font-size: 2.5rem;
}

.browser-session-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--bs-gray-700);
  margin-bottom: 0.5rem;
}

.browser-session-item i {
  color: var(--bs-gray-600);
}

.browser-session-item .badge {
  font-size: 0.7em;
  font-weight: normal;
}

.delete-account-warning {
  background-color: #fcebe9;
  border: 1px solid var(--bs-danger);
  color: var(--bs-danger);
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.delete-account-warning i {
  margin-right: 0.5rem;
}

/* Profile header specific to Profile Overview page */
.profile-header-section {
  background-color: var(--bs-danger);
  color: var(--bs-white);
  padding: 2rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: var(--navbar-height);
}

.profile-header-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.profile-header-section__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-grow: 1;
}

.profile-header-section__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--bs-white);
  background-color: var(--bs-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: var(--bs-gray-600);
  flex-shrink: 0;
}

.profile-header-section__info {
  flex-grow: 1;
}

.profile-header-section__info h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-header-section__info p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
}

.profile-header-section__info i {
  margin-right: 0.5rem;
}

.profile-header-section__info .btn {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.profile-header-section__right {
  display: flex;
  flex-grow: 1;
  align-items: stretch;
}


/* 5.14. Property View Page */
.property-header-bar {
  background-color: var(--bs-danger);
  color: var(--bs-white);
  padding: 0.75rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: var(--navbar-height);
  z-index: 1000;
}

.property-header-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-header-bar__address {
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-header-bar__status {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  margin-right: 1.5rem;
}

.property-header-bar__details {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.property-header-bar__details i {
  font-size: 1rem;
}

.property-header-bar__price {
  font-size: 1.4rem;
  font-weight: bold;
  margin-left: 2rem;
}

.property-header-bar__bookmark {
  color: var(--bs-warning);
  font-size: 1.25rem;
  margin-left: 1rem;
}

/* Image Gallery */
.main-property-image-placeholder {
  background-color: var(--bs-gray-300);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--bs-gray-700);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.thumbnail-gallery .thumbnail-placeholder {
  background-color: var(--bs-gray-300);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--bs-gray-700);
  border-radius: 0.3rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.thumbnail-gallery .thumbnail-placeholder:hover {
  transform: scale(1.05);
}

/* Sub-section headers within Property Details card */
.property-details-subsection-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bs-gray-800);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.property-details-subsection-title:first-of-type {
  margin-top: 0;
}

.property-details-subsection-break {
  border-top: 1px solid var(--bs-border-color);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Contact Person */
.contact-person-info .detail-info-item {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.contact-person-info .detail-info-item i {
  font-size: 1rem;
  width: 28px;
}

/* Property Details (Right Column) - Map Location */
.map-location-placeholder {
  background-color: var(--bs-gray-300);
  height: 250px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-gray-700);
  font-weight: bold;
}

/* Progress Snapshots & Media Files */
.media-grid-item {
  background-color: var(--bs-gray-300);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--bs-gray-700);
  border-radius: 0.3rem;
  overflow: hidden;
}

.media-grid-item.large {
  height: 200px;
}

/* Similar Properties */
.similar-properties-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bs-border-color);
}

.similar-properties-section__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--bs-gray-800);
}

.text-status {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bs-white);
  background-color: var(--bs-primary); /* Example status color */
  padding: 0.15rem 0.6rem;
  border-radius: 0.25rem;
}


/* ==========================================================================
   6. Responsive Adjustments
   ========================================================================== */

@media (max-width: 991.98px) {
  /* Navbar */
  .navbar-collapse.border-top {
    border-top: none !important;
  }
  .navbar-toggler-icon {
    font-size: 1.5rem;
  }
  .navbar-nav.gap-3 {
    gap: 0.5rem;
  }
  .mega-menu {
    position: static;
    display: block;
    padding: 1rem;
    box-shadow: none;
    border-top: none;
  }
  .mega-menu .row > div {
    margin-bottom: 1rem;
  }

  /* Fixed Headers & Filter Bar */
  .bg-white.py-3.border-bottom {
    position: static;
    top: auto;
    height: auto;
  }
  .filters-bar {
    position: static;
    top: auto;
  }
  .filters-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .filters-bar .d-flex.flex-column.flex-sm-row {
    width: 100%;
    margin-bottom: 1rem;
    gap: 1rem;
  }
  .filters-bar .form-select,
  .filters-bar .form-control {
    width: 100% !important;
  }
  .filters-bar .d-flex.gap-2 {
    width: 100%;
    justify-content: center;
  }
  .filters-bar .btn,
  .filters-bar .map-filter-toggle-btn {
    flex-grow: 1;
  }

  /* Affiliate Pages */
  .form-container {
    padding: 1.5rem;
  }
  .form-box {
    box-shadow: none;
    padding: 1.5rem;
  }

  /* General Form Pages (Add Builder, Edit Profile) */
  .form-sidebar {
    margin-bottom: 1.5rem;
  }
  .form-main-content {
    padding: 1rem;
  }

  /* Property Search Results (Two-Column Layout) */
  .main-content-layout {
    flex-direction: column;
  }
  .main-content-layout .col-properties,
  .main-content-layout .col-map {
    width: 100%;
    padding-left: var(--bs-gutter-x, 1.5rem);
    padding-right: var(--bs-gutter-x, 1.5rem);
    position: static;
    height: auto;
  }
  .map-column {
    height: 400px;
    position: relative;
    top: auto;
    margin-bottom: 1.5rem;
  }
  .main-content-layout.map-full-width .col-properties {
    width: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
  }
  .main-content-layout.map-full-width .col-map {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .carousel-inner .carousel-item > div {
    flex: 0 0 100%; /* 1 item per slide on small */
    margin-right: 0;
  }

  /* Property View Page */
  .property-header-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    position: static;
    top: auto;
  }
  .property-header-bar__address,
  .property-header-bar__status {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  .property-header-bar__details {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .property-header-bar__price {
    margin-left: 0;
    margin-right: 1rem;
  }
  .property-header-bar__actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Dashboard Profile Overview */
  .profile-header-section {
    padding: 1.5rem 0;
  }
  .profile-header-section__left {
    flex-direction: column;
    text-align: center;
  }
  .profile-header-section__info h5 {
    margin-top: 0.5rem;
  }
  .profile-header-section__info p {
    margin-bottom: 0.5rem;
  }
  .profile-header-section__right .col { /* Target columns directly in smaller screens */
      width: 50%; /* Make them 2-wide on mobile */
      flex-grow: 0; /* Override flex-grow 1 from g-3 */
  }

}

@media (min-width: 768px) and (max-width: 1199px) {
  /* Carousel: 2 items per slide on medium screens */
  .carousel-inner .carousel-item > div {
    flex: 0 0 calc(100% / 2);
  }
}

@media (min-width: 992px) {
  /* Desktop specific adjustments */
  .main-content-layout .col-properties {
    width: 40%;
    padding-right: var(--bs-gutter-x, 1.5rem);
  }
  .main-content-layout .col-map {
    width: 60%;
    padding-left: var(--bs-gutter-x, 1.5rem);
    position: sticky;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
  }
  /* When properties column is hidden, map column expands */
  .main-content-layout.map-full-width .col-properties {
    width: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
  }
  .main-content-layout.map-full-width .col-map {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* Carousel: 3 items per slide on large screens (default for non-xl) */
  .carousel-inner .carousel-item > div {
    flex: 0 0 calc(100% / 3);
  }
}

@media (min-width: 1200px) {
  /* Carousel: 4 items per slide on extra large screens */
  .carousel-inner .carousel-item > div {
    flex: 0 0 calc(100% / 4);
  }
}

/* Ensure main content flex-grows to push footer down */
main.flex-grow-1 {
  flex-grow: 1;
}