/* css/style.css */

/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');


/* Base styles */
body { 
  font-family: "Manrope", sans-serif;
}
html { 
  scroll-behavior: smooth; 
}

/* Heading capitalization */
h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  font-weight: 600;
}

/* Hero section */
.hero-section {
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content { 
  position: relative; 
  z-index: 2; 
}

/* Desktop header larger */
@media (min-width: 992px) {
  header nav.container {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  header .navbar-brand { 
    font-size: 2rem; 
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  header nav.container { 
    /* padding: 10px !important; */
  }
  .hero-section { 
    padding-top: 120px !important; 
    text-align: center; 
    height: auto; 
  }
  .hero-content h1 { 
    color: #fff !important; 
    display: block !important; 
    visibility: visible !important; 
    text-align: center !important; 
  }
}

/* Buttons */
.btn-primary {
  background-color: #808000; /* Theme color */
  border-color: #808000;
  padding: 6px 30px;
}

.btn-primary:hover {
  background-color: #6b6b00;
  border-color: #6b6b00;
}

/* Desktop navbar background and links */
@media (min-width: 992px) {
  .navbar {
    background-color: #ffffff !important; /* White navbar */
  }
  .navbar-nav .nav-link {
    color: #000000; /* Black text */
    font-weight: 500;
  }
  .navbar-nav .nav-link:hover {
    color: #808000; /* Theme color on hover */
  }
}

/* Mobile menu dropdown */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #3b3b00; /* Theme color background */
    /* padding: 1rem 0; */
  }
  .navbar-nav {
    margin-top: 10px;
  }

  .navbar-collapse .nav-link {
    color: #ffffff; /* White text */
    padding: 0.5rem 1rem;
  }

  .navbar-collapse .nav-link:hover {
    color: #f0f0f0; /* Slightly lighter hover */
  }
  .navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #ffffff;
  }
  .last-menu-item {
    margin-left: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

/* Footer headings */
footer {
  background-image: url(../images/footer-bg-2.webp);
  --background-overlay: '';
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
footer h5, footer h6 {
  color: #ffffff; /* Heading text white */
  position: relative;
  padding-bottom: 5px;
}

footer h5::after,
footer h6::after {
  content: "";
  display: block;
  width: 40px; /* underline length */
  height: 2px;  /* underline thickness */
  background-color: #808000; /* Theme color underline */
  margin-top: 5px;
}

/* Footer icons */
footer i {
  color: #808000; /* Theme color for icons */
}

/* Form focus */
.form-control:focus, .form-select:focus {
  border-color: #808000; /* Theme color */
  box-shadow: 0 0 0 0.25rem rgba(128,128,0,0.25);
}

/* Sale/Rent toggle checked labels */
.form-check-input:checked + .form-check-label {
  color: #808000; /* Theme color */
  font-weight: 600;
}

/* Input group icons */
.input-group-text {
  background-color: #f8f9fa; /* Keep light for contrast */
  border-color: #d5d5d5; /* Theme color */
}

/* Placeholder text color */
::placeholder {
  color: #6b6b00;
  opacity: 1;
}

/* Logo height */
.navbar-brand img {
  height: 80px; /* Desktop logo */
}

@media (max-width: 767px) {
  .navbar-brand img {
    height: 60px; /* Mobile logo */
    margin-left: 10px;
  }
  .navbar-toggler {
    margin-right: 10px;
  }
}

/* Desktop navbar item spacing */
@media (min-width: 992px) {
  .navbar-nav .nav-item {
    margin-left: 1rem; /* Increase horizontal space between items */
  }
  /* Optional: remove left margin for first item */
  .navbar-nav .nav-item:first-child {
    margin-left: 0;
  }
}

/* Form fields border default and focus */
.form-control,
.form-select {
  border: 1px solid #d5d5d5; /* Theme color border */
}

.form-control:focus,
.form-select:focus {
  border-color: #d5d5d5; /* Theme color on focus */
  box-shadow: 0 0 0 0.25rem rgba(128,128,0,0.25);
}
/* Change checked form elements (radio, checkbox) to theme color */
.form-check-input:checked {
  background-color: #808000;
  border-color: #808000;
}

/* Focus state for checked elements */
.form-check-input:checked:focus {
  box-shadow: 0 0 0 0.25rem rgba(128,128,0,0.25);
}

/* Active states for buttons or toggles if using bootstrap */
.btn-check:checked + .btn,
.btn-check:active + .btn,
.btn.active {
  background-color: #808000;
  border-color: #808000;
}

/* Switch toggles */
.form-switch .form-check-input:checked {
  background-color: #808000;
  border-color: #808000;
}

/* Form input selection color */
::selection {
  background-color: #808000;
  color: #fff;
}
/* Override Bootstrap theme colors */
:root {
  --bs-primary: #808000;               /* Primary color */
  --bs-primary-rgb: 128,128,0;
  --bs-primary-hover-bg: #6b6b00;      /* Hover background */
  --bs-btn-hover-bg: #6b6b00;          /* Button hover */
  --bs-btn-hover-border-color: #6b6b00;
  --bs-btn-active-bg: #808000;          /* Active button background */
  --bs-btn-active-border-color: #808000;
  --bs-btn-disabled-bg: #808000;        /* Disabled button bg if needed */
  --bs-btn-disabled-border-color: #808000;
  --bs-form-check-input-checked-bg: #808000; /* Checked radio/checkbox */
  --bs-form-check-input-checked-border-color: #808000;
  --bs-form-check-input-focus-shadow-rgb: 128,128,0; /* Focus shadow */
}
/* Active button background */
.btn-primary:active,
.btn-primary.active,
.btn:not(.btn-check)+.btn:active {
  background-color: #808000 !important;
  border-color: #808000 !important;
  box-shadow: 0 0 0 0.25rem rgba(128,128,0,0.25);
}

/* Hover */
.btn-primary:hover {
  background-color: #6b6b00 !important;
  border-color: #6b6b00 !important;
}

/* Disabled */
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #808000 !important;
  border-color: #808000 !important;
}


/* Why Choose Us Section */
.why-box {
  border: 1px solid #d5d5d5; /* Theme color border */
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #ffffff;
}

.why-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(204, 204, 204, 0.3);
}

.why-box .why-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #808000; /* Theme color title */
}

.why-box i {
  color: #808000; /* Theme color icon */
}

.why-box p {
  margin-top: 10px;
  color: #333333;
  /* font-size: 0.95rem; */
  margin-bottom: 0;
}
.front-icons {
  font-size: 30px;
}

/* Featured Properties Section */
.property-card {
  border: 1px solid #d5d5d5; /* Theme color border */
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #ffffff;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(204, 204, 204, 0.3);
}

.property-title {
  font-weight: 600;
  color: #808000; /* Theme color title */
  text-align: center;
  margin-bottom: 0;
}

.property-features span {
  /* font-size: 0.9rem; */
  color: #333333;
  padding: 5px 10px;
  border: 1px solid #d5d5d5;
  border-radius: 20px;
}

.property-features i {
  color: #808000; /* Icon color theme */
}

.property-price {
  font-weight: 700;
  color: #808000;
  font-size: 1.2rem;
  text-align: center;
}

h6 a, h6 a:link {
  color: #808000;
}
.hero-form {
  border-radius: 20px !important;
  outline: 10px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 767px) {
  .align-items-center {
    padding: 20px;
  }
  .hero-form {
    margin-top: 20px;
    margin-bottom: 10px;
  }
}
.copyright-bottom {
  border-top: 1px solid #808000 !important;
}
.contact-icon {
  font-size: 20px;
}



/* -----------------------------------------------------
   PAGINATION STYLING (MATCH THEME #808000)
----------------------------------------------------- */

.pagination .page-link {
  color: #808000;
  border: 1px solid #d5d5d5;
  font-weight: 600;
  padding: 8px 16px;
}

.pagination .page-item.active .page-link {
  background-color: #808000;
  border-color: #808000;
  color: #fff;
}

.pagination .page-link:hover {
  background-color: #6b6b00;
  border-color: #6b6b00;
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  background-color: #e9e9e9;
  border-color: #d5d5d5;
  color: #999;
}

/* -----------------------------------------------------
   MATCH RENT/SALE PAGES & SEARCH CARDS EXACT STYLE
----------------------------------------------------- */

.property-card {
  border: 1px solid #d5d5d5;
  background-color: #ffffff;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(204, 204, 204, 0.3);
}

.property-title {
  color: #808000;
  font-weight: 600;
}

.property-features span {
  border: 1px solid #d5d5d5;
  border-radius: 20px;
  padding: 6px 12px;
}

.property-features i {
  color: #808000;
}

.property-price {
  color: #808000;
  font-weight: 700;
}

/* VIEW DETAILS BUTTON — Keep same as SALE page */
.property-card .btn-primary {
  width: auto !important;
  padding: 8px 20px !important;
  display: inline-block !important;
}
.property-card .btn-primary:hover {
  background-color: #6b6b00 !important;
  border-color: #6b6b00 !important;
}
