/*
 * All The Properties Footer Styles
 * Organized using component-based architecture for better maintainability
 */

/* ============================
   0. FIX FOOTER SPACING - ENSURE BODY FILLS VIEWPORT
   ============================ */
html {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}

body > *:not(footer) {
  flex: 1 0 auto !important;
}

/* ============================
   1. BASE FOOTER STYLES
   ============================ */
body footer.footer-modern {
  background-color: #222 !important;
  color: #fff !important;
  padding-top: 2rem !important;
  padding-bottom: 0 !important;
  position: relative !important;
  z-index: 100 !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

footer.footer-modern .container-fluid {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

footer.footer-modern .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -15px !important;
  margin-right: -15px !important;
  margin-bottom: 2rem !important;
}

footer.footer-modern .footer-column {
  position: relative !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  flex: 0 0 auto !important;
  margin-bottom: 0.75rem !important;
}

footer.footer-modern .footer-column .fw-bold {
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  margin-bottom: 0.75rem !important;
  color: #fff !important;
  display: block !important;
}

/* ============================
   2. FOOTER LOGO & BRANDING
   ============================ */
footer.footer-modern .footer-logo-link {
  display: block !important;
  margin-bottom: 1.5rem !important;
  text-decoration: none !important;
}

footer.footer-modern .footer-logo {
  max-width: 200px !important;
  height: auto !important;
}

/* ============================
   3. CONTACT & SOCIAL MEDIA
   ============================ */
/* Email contact section */
footer.footer-modern .email-section-compact {
  margin-bottom: 1.5rem !important;
}

footer.footer-modern .email-heading {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.75rem !important;
  color: #fff !important;
  padding-bottom: 5px !important;
  position: relative !important;
}

footer.footer-modern .email-heading:after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 30px !important;
  height: 2px !important;
  background-color: #B91C43 !important;
}

footer.footer-modern .email-links-inline a {
  display: block !important;
  color: #f8f9fa !important;
  margin-bottom: 0.5rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-size: 0.875rem !important;
  padding: 6px 10px !important;
  border-radius: 4px !important;
  position: relative !important;
  overflow: hidden !important;
}

footer.footer-modern .email-links-inline a:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  padding-left: 15px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

footer.footer-modern .email-links-inline a:before {
  content: "";
  position: absolute !important;
  left: -100% !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
  transition: left 0.7s !important;
}

footer.footer-modern .email-links-inline a:hover:before {
  left: 100% !important;
}

footer.footer-modern .email-links-inline a i {
  margin-right: 6px !important;
  transition: all 0.3s ease !important;
}

footer.footer-modern .email-links-inline a:hover i {
  color: #B91C43 !important;
  transform: scale(1.2) !important;
}

/* Social media links */
footer.footer-modern .social-section {
  margin-top: 1.5rem !important;
}

footer.footer-modern .social-heading {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.75rem !important;
  color: #fff !important;
}

footer.footer-modern .social-links {
  display: flex !important;
  gap: 0.75rem !important;
}

footer.footer-modern .social-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
}

footer.footer-modern .social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* Social media brand colors on hover */
footer.footer-modern .social-icon.facebook {
  background-color: #3b5998 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(59, 89, 152, 0.4) !important;
}

footer.footer-modern .social-icon.twitter {
  background-color: rgb(34, 34, 34) !important;
  color: #fff !important;
  box-shadow: 0 1px 1px rgba(241, 239, 239, 0.7) !important;
}

footer.footer-modern .social-icon.instagram {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(225, 48, 108, 0.4) !important;
}

footer.footer-modern .social-icon.linkedin {
  background-color: #0077B5 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(0, 119, 181, 0.4) !important;
}

footer.footer-modern .social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* Social media brand colors on hover */
footer.footer-modern .social-icon.facebook:hover {
  background-color: #3b5998 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(59, 89, 152, 0.4) !important;
}

footer.footer-modern .social-icon.twitter:hover {
  background-color: rgb(34, 34, 34) !important;
  color: #fff !important;
  box-shadow: 0 3px 3px rgba(241, 239, 239, 0.7) !important;
}

footer.footer-modern .social-icon.instagram:hover {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(225, 48, 108, 0.4) !important;
}

footer.footer-modern .social-icon.linkedin:hover {
  background-color: #0077B5 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(0, 119, 181, 0.4) !important;
}

/* ============================
   4. FOOTER NAVIGATION LINKS
   ============================ */
footer.footer-modern .footer-link {
  display: inline-block !important;
  width: 100% !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  color: #f8f9fa !important;
  text-decoration: none !important;
  margin-bottom: 0.25rem !important;
  transition: all 0.3s ease !important;
  font-size: 0.875rem !important;
  text-align: left !important;
  position: relative !important;
  padding-left: 0rem !important;
}

footer.footer-modern .footer-link::before {
  content: "\203A" !important;
  /* › right-pointing single angle quote */
  position: absolute !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
}

footer.footer-modern .footer-link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: none !important;
  text-decoration: none !important;
  transform: translateX(1px) !important;
  padding-left: 1.1rem !important;
}

footer.footer-modern .footer-link:hover::before {
  opacity: 1 !important;
}

/* ============================
   5. NEWSLETTER FORM
   ============================ */
footer.footer-modern .newsletter-form {
  margin-top: 1.5rem !important;
}

footer.footer-modern .input-group {
  display: flex !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

footer.footer-modern .input-group .form-control {
  flex: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  padding: 0.5rem 0.75rem !important;
  height: auto !important;
}

footer.footer-modern .input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

footer.footer-modern .input-group .btn-accent {
  background-color: var(--primary-color, #B91C43) !important;
  color: white !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
}

.newsletter-container {
  max-width: 100%;
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  flex-wrap: nowrap;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
}

.newsletter-input {
  border-radius: 50px 0 0 50px;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.95);
  flex-grow: 1;
  min-width: 0;
  /* Prevents flex item from overflowing */
  width: calc(100% - 50px);
  /* Accounts for button width */
}

.newsletter-btn {
  background-color: #B91C43;
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  min-width: 50px;
  width: 50px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.newsletter-btn:hover {
  background-color: #a01939;
  transform: translateX(2px);
}

.newsletter-btn i {
  font-size: 16px;
}

/* ============================
   6. COPYRIGHT SECTION
   ============================ */
footer.footer-modern .copyright {
  background-color: rgba(0, 0, 0, 0.2) !important;
  padding: 0 !important;
  margin-top: 1rem !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  min-height: 40px !important;
  max-height: 60px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  -webkit-box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
}

footer.footer-modern .copyright .row {
  height: 100% !important;
  margin-bottom: 0 !important;
}

footer.footer-modern .copyright * {
  box-sizing: border-box !important;
}

footer.footer-modern .copyright p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.75rem !important;
  margin: 0 !important;
  line-height: 1 !important;
}

footer.footer-modern .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  margin-left: 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1 !important;
  transition: color 0.2s ease !important;
}

footer.footer-modern .footer-bottom-links a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* ============================
   7. LOCATION PREFERENCE MODAL
   ============================ */
/* Modal structure */
.location-modal-dialog {
  max-width: 520px;
  width: 98vw;
  margin: 1.2rem auto !important;
}

.location-modal-content {
  min-height: auto;
  background-color: #fff !important;
  border-radius: 1.2rem !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13) !important;
  padding: 0 !important;
}

.location-modal-body {
  padding-bottom: 0.5rem !important;
}

/* Modal elements */
.location-modal-text {
  font-size: 1.05rem;
  color: #333 !important;
  margin-bottom: 0.5rem !important;
}

.custom-close-icon-style {
  font-size: 1.5rem;
  color: #B91C43;
  cursor: pointer;
  z-index: 1052 !important;
  transition: color 0.2s !important;
}

.custom-close-icon-style:hover {
  color: #7a122c !important;
}

body #preferredLocationModal .modal-title {
  font-size: 1.35rem !important;
  color: var(--primary-color) !important;
  letter-spacing: 0.2px !important;
}

body #preferredLocationModal input.form-control {
  padding: 0.7rem 0.9rem !important;
  font-size: 1.08rem !important;
  border-radius: 0.7rem !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body #preferredLocationModal .btn-danger {
  background-color: #B91C43 !important;
  border: none !important;
  font-size: 0.98rem !important;
  border-radius: 0.7rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 0 !important;
  box-shadow: 0 1px 4px rgba(185, 28, 67, 0.07) !important;
}

/* ============================
   8. PROPERTY FILTER MODAL
   ============================ */
.property-filter-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6 !important;
  padding: 1.5rem 2rem 1rem !important;
  position: relative !important;
}

#propertyFilterModal .modal-dialog {
  max-width: calc(100vw - 1.5rem);
  margin: 0.75rem auto;
}

/* Tablet (≥768px) */
@media (min-width: 768px) {
  #propertyFilterModal .modal-dialog {
    max-width: calc(100vw - 3rem);
  }
}

/* Desktop (≥992px) */
@media (min-width: 992px) {
  #propertyFilterModal .modal-dialog {
    max-width: 820px;
  }
}

/* Large Desktop (≥1200px) */
@media (min-width: 1200px) {
  #propertyFilterModal .modal-dialog {
    max-width: 1300px;
  }
}

/* Keep your existing styles */
body #propertyFilterModal .modal-content,
body #propertyFilterModalCommercial .modal-conten {
  border-radius: 1.2rem !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13) !important;
  border: none !important;
  overflow: hidden !important;
}

body #propertyFilterModal .modal-title,
body #propertyFilterModalCommercial .modal-title {
  font-size: 1.25rem !important;
  color: #B91C43 !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

body #propertyFilterModal .form-check-input:checked,
body #propertyFilterModalCommercial .form-check-input:checked {
  background-color: #a51c36 !important;
  box-shadow: none !important;
  border: none !important;
}

body #propertyFilterModal .form-check-input,
body #propertyFilterModalCommercial .form-check-input {
  box-shadow: none !important;
  border: black 0.2px solid !important;
}


/* ============================
   9. RESPONSIVE STYLES
   ============================ */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  /* No specific styles needed yet */
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  footer.footer-modern .footer-column {
    margin-bottom: 2rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .newsletter-container {
    width: 100%;
  }

  .newsletter-input-group {
    width: 100%;
  }

  #newsletter-form {
    width: 100%;
  }
}


.desktop-heading {
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  margin-bottom: 0.75rem !important;
  color: #fff !important;
}

@media (min-width: 767px) {
  .footer-accordion .accordion-button {
    pointer-events: none;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: default;
    border: none !important;

  }

  hr {
    display: none !important;
  }

  .desktop-heading {
    display: block !important;
  }

  .mobile-accordion {
    display: none !important;
  }

  .footer-accordion .accordion-collapse {
    display: block !important;
    height: auto !important;
  }

  .footer-accordion .accordion-item {
    border: none !important;
    background-color: transparent !important;
  }

  .footer-accordion .accordion-body {
    padding: 0 !important;
    padding-top: 0.5rem !important;
  }

  .footer-accordion .accordion-button::after {
    display: none !important;
  }

  .footer-accordion .accordion-button:not(.collapsed) {
    color: #333 !important;
    background-color: transparent !important;
  }

  .footer-accordion .accordion-button:hover {
    background-color: transparent !important;
  }

  .footer-accordion .accordion-collapse {
    display: block !important;
    height: auto !important;
    border: none !important;
  }

  .footer-accordion .accordion-item {
    border: none !important;
    background-color: transparent !important;
  }

  .footer-accordion .accordion-body {
    padding: 0 !important;
    padding-top: 0.5rem !important;
  }

  .footer-accordion .accordion-header {
    margin-bottom: 0.5rem;
  }
}



/* Small devices (mobile, less than 768px) */
@media (max-width: 767.98px) {
  footer.footer-modern .footer-column {
    margin-bottom: 1.5rem !important;
  }



  footer.footer-modern .copyright {
    height: 60px !important;
  }

  footer.footer-modern .copyright .text-md-start {
    text-align: center !important;
  }

  footer.footer-modern .copyright .text-md-end {
    text-align: center !important;
    margin-top: 0.5rem !important;
  }

  footer.footer-modern .footer-bottom-links a {
    margin: 0 0.5rem !important;
    display: inline-block !important;
    line-height: 1.5 !important;
  }

  footer.footer-modern .footer-bottom-links {
    margin-bottom: 0 !important;
  }

  .footer-accordion .accordion-body .dash-links a {
    padding: 0 0.5rem !important;

  }

  .newsletter-input-group {
    width: 100%;
  }

  .newsletter-input {
    font-size: 16px;
    height: 42px;
    padding: 8px 12px;
  }

  .newsletter-btn {
    width: 45px;
    height: 42px;
  }

  .desktop-heading {
    display: none !important;
  }



  .mobile-accordion {
    display: block !important;
  }

  .footer-accordion .accordion-button {
    font-weight: bold;
  }

  .footer-accordion .accordion-body {
    display: flex;
    flex-direction: column;
  }
}





/* Extra small devices (phones, less than 576px) */
@media (max-width: 576px) {
  body #preferredLocationModal .modal-dialog {
    max-width: 98vw !important;
    margin: 0.5rem !important;
  }

  body #preferredLocationModal .modal-content {
    border-radius: 0.8rem !important;
    padding: 0.3rem !important;
  }

  body #preferredLocationModal .modal-title {
    font-size: 1.05rem !important;
  }

  body #preferredLocationModal input.form-control {
    font-size: 0.98rem !important;
    padding: 0.5rem 0.6rem !important;
  }

  /* Small mobile copyright adjustments */
  footer.footer-modern .copyright {
    height: 60px !important;
    padding: 0.25rem 0 !important;
  }

  /* Adjust spacing on very small screens */
  footer.footer-modern .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* ============================================
   Footer Button / Link Fix — prevent bold text
   ============================================ */

footer .footer-link,
footer .footer-link.active,
footer .footer-link:active,
footer .footer-link.current-menu-item,
footer .footer-link.current_page_item,
footer .btn-outline-light,
footer .btn-outline-light:active,
footer .btn-outline-light.active {
  font-weight: 400 !important;
  /* Reset bold text */
}

.footer-accordion .accordion-item {
  background-color: #222 !important;
  border: none !important;
  border-bottom: 1px solid #333 !important;
}

.footer-accordion .accordion-item:last-child {
  border-bottom: none !important;
}

.footer-accordion .accordion-button {
  background-color: #222 !important;
  color: #fff !important;
  border: none !important;
  padding: 15px 20px;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  display: flex;
  justify-content: space-between !important;
  align-items: center;
}

.footer-accordion .accordion-button:not(.collapsed) {
  background-color: #222 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.footer-accordion .accordion-button:hover {
  background-color: #222 !important;
}

.footer-accordion .accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

.footer-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
  margin-left: auto !important;
}

.footer-accordion .accordion-body {
  background-color: #222 !important;
  color: #fff !important;
  padding: 10px 0px 0px 0px !important;
}

hr.solid {
  border-top: 5px solid #444 !important;
}

.modal-grey-background {
  background-color: #494e53 !important;
  padding: 0.5rem !important;
  margin-bottom: 1rem !important;
}