/* Main Styles for Real Estate Portfolio */
body {
  font-family: "Montserrat", sans-serif;
  background-color: #f2f2f2;
  font-size: 16px;
  color: #222;
  font-weight: normal;
  letter-spacing: 0.03em;
  scroll-behavior: smooth;
}

a {
  color: #0053a6; /* Xanh dương đậm */
  transition: all 0.2s;
}

.a-big {
  color: #0053a6;
  font-size: 20px;
}
.a-big-white {
  color: #f2f2f2;
  font-size: 25px;
}
.li-big-white {
  color: #f2f2f2;
  font-size: 25px;
}

a:hover,
a:focus,
a:active {
  text-decoration: none;
  outline: none;
}

ul {
  margin: 0;
  padding: 0;
}

ul li {
  list-style: none;
}

img {
  max-width: 100%;
}

.primary {
  color: #0053a6; /* Xanh dương đậm */
}

.secondary {
  color: #ff6b35; /* Cam */
}

.btn-primary {
  background-color: #ff6b35;
  border-color: #ff6b35;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #003e7e;
  border-color: #003e7e;
}

/* Hero Section */
header.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("images/hero-background.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
  padding-bottom: 80px;
  height: 100vh;
  display: flex;
  align-items: center;
}

header.hero .hero-text {
  margin-top: 0;
  margin-bottom: 0;
}

header.hero .row {
  position: relative;
}

header.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 4.5em;
  font-weight: 600;
  line-height: 1.4em;
}

header.hero h1 span,
header.hero h3 {
  font-weight: 300;
}

header.hero .btn {
  margin: 3em 0;
}

/* Floating Social Buttons */
.floating-social {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  font-size: 30px;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: white;
}

.messenger-btn {
  background-color: #0084ff;
}

.zalo-btn {
  background-color: #0068ff;
}

.zalo-img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

/* Removed .zalo-text class as we're using the image instead */

/* Navbar */
.navbar {
  transition: background-color 0.3s ease;
}

.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  position: relative;
  margin: 0 10px;
}

.navbar-nav .nav-link.active {
  color: #ff6b35 !important; /* Cam thay vì hồng trước đó */
}

.navbar-nav .nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #ff6b35; /* Cam thay vì hồng trước đó */
  left: 0;
  bottom: 0;
  transition: width 0.3s;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 100%;
}

/* Section Styles */
section {
  padding: 80px 0;
}

h4.sub-heading {
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #4e4c58;
  text-align: center;
}

h1.heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #4e4c58;
  font-size: 3em;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

h1.heading span {
  font-weight: 600;
}

h1.heading:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 100px;
}

h1.heading.primary:after {
  background-color: #0053a6; /* Xanh dương đậm */
}

h1.heading.secondary:after {
  background-color: #ff6b35; /* Cam */
}

h1.heading.blue:after {
  background-color: #0053a6; /* Xanh dương đậm thay vì màu xanh dương nhạt trước đó */
}

/* Property Listings */
.property-listings {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.property-card {
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.property-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-info {
  padding: 20px;
}

.property-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #0053a6; /* Xanh dương đậm thay vì màu tối trước đó */
}

.property-address {
  color: #666;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.property-price {
  font-weight: 700;
  color: #ff6b35; /* Cam thay vì hồng trước đó */
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.property-type {
  display: inline-block;
  background-color: #0053a6; /* Xanh dương đậm thay vì tím trước đó */
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 10px;
}

/* About Section */
.icon-box img {
  max-width: 60px;
  margin: 0 auto;
}

/* Contact Section */
#contact {
  background-color: #f9f9f9;
}

.contact-info {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.contact-form {
  height: 100%;
}

/* Newsletter */
.contact-banner {
  background: url("images/contact-banner-bg.jpg") #0053a6; /* Xanh dương đậm thay vì tím trước đó */
  color: #fff;
  padding: 6em;
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
}

.contact-banner h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 3em;
  margin-top: 0;
  margin-bottom: 1em;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  padding: 15px;
  border-radius: 5px 0 0 5px;
  border: none;
  width: 70%;
  float: left;
}

.newsletter-btn {
  background: #ff6b35; /* Cam thay vì hồng trước đó */
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 0 5px 5px 0;
  width: 30%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #e55c2a; /* Cam đậm hơn */
}

/* Social Links */
ul.social-links li {
  display: inline-block;
}

ul.social-links li a {
  padding: 5px;
  opacity: 0.6;
}

ul.social-links li.label {
  font-size: 20px;
  opacity: 0.6;
  font-weight: 400;
}

ul.social-links li a:hover {
  opacity: 1;
}

ul.social-links li a img {
  max-height: 30px;
}

/* Footer */
.footer {
  background-color: #0053a6; /* Xanh dương đậm thay vì màu tối trước đó */
  padding: 5em;
  color: #fff;
}

.footer h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 3em;
  color: #a3a1ac;
  margin-bottom: 2em;
  position: relative;
}

.footer h1 span {
  color: #fff;
  font-weight: 300;
}

.footer h1:after {
  content: "";
  width: 80px;
  height: 4px;
  background-color: #ff6b35; /* Cam thay vì xanh nhạt trước đó */
  display: block;
  position: absolute;
  left: 50%;
  transform: translate(-40px, 10px);
}

.sub-footer {
  background-color: #003e7e; /* Xanh dương đậm hơn thay vì màu tối hơn trước đó */
  padding: 2em;
  color: #a3a1ac;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
}

.sub-footer p {
  margin: 0;
  font-size: 1.2em;
}

.sub-footer p a {
  color: #fff;
}

.sub-footer p a:hover {
  opacity: 0.8;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff6b35; /* Cam thay vì hồng trước đó */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
  text-decoration: none;
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  header.hero h1 {
    font-size: 3.5em;
  }
}

@media (max-width: 992px) {
  header.hero h1 {
    font-size: 3em;
  }

  .property-card {
    margin-bottom: 20px;
  }

  .contact-info,
  .contact-form {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  header.hero {
    text-align: center;
  }

  header.hero h1 {
    font-size: 2.5em;
    margin-top: 30px;
  }

  header.hero h3 {
    font-size: 1.2em;
  }

  header.hero .btn {
    margin: 2em 0;
  }

  h1.heading {
    font-size: 2.2em;
  }

  .contact-banner {
    padding: 3em 1em;
  }

  .contact-banner h1 {
    font-size: 2em;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .footer {
    padding: 3em 1em;
  }

  .footer h1 {
    font-size: 2.5em;
  }

  .sub-footer p {
    font-size: 1em;
  }

  /* Responsive floating buttons */
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .zalo-img {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  header.hero h1 {
    font-size: 2em;
  }

  section {
    padding: 50px 0;
  }

  .contact-banner h1 {
    font-size: 1.5em;
  }

  .property-name {
    font-size: 1.2rem;
  }

  /* Smaller floating buttons for mobile */
  .floating-social {
    right: 15px;
    bottom: 70px;
  }

  .floating-btn {
    width: 45px;
    height: 45px;
    font-size: 22px;
    margin-bottom: 10px;
  }

  .zalo-img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  header.hero {
    height: auto;
    min-height: 100vh;
    padding-top: 70px;
  }

  /* Even smaller floating buttons for small screens */
  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .zalo-img {
    width: 35px;
    height: 35px;
  }
}

.qr-popup {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.qr-popup-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 30px;
  padding-top: 40px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.qr-close:hover {
  color: #555;
}

.qr-image {
  margin: 20px 0;
}

.qr-image img {
  max-width: 200px;
  height: auto;
}

.qr-phone {
  margin-top: 15px;
  font-size: 16px;
  color: #0053a6;
}

/* Responsive styles for QR popup */
@media (max-width: 576px) {
  .qr-popup-content {
    margin: 25% auto;
    padding: 20px;
    max-width: 300px;
  }

  .qr-image img {
    max-width: 150px;
  }
}
