/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Open Sans', sans-serif;
  background: url('/static/images/background.jpg') center center/cover no-repeat;
  background-attachment: fixed;
  color: #333;
  width: 100%;
  height: 100%;
}

/* Navbar */
.navbar {
  width: 100%;
  background-color: rgba(255, 255, 255, 0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar .logo img {
  height: 50px;
  border-radius: 12px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a,
.nav-links .dropdown span {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: black;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links .dropdown span:hover {
  color: #ccc;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
  .nav-links {
    gap: 15px;
  }
  .nav-links a,
  .nav-links .dropdown span {
    font-size: 14px;
  }
  .navbar {
    padding: 10px 20px;
  }
  .navbar .logo img {
    height: 40px;
  }
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 120px;
  padding: 5px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1001;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: black;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f2f2f2;
}

/* Carousel */
.carousel-container {
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  z-index: 1;
}

/* Slides wrapper (flex + transition) */
.carousel-container .slides {
  display: flex;
  transition: transform 0.7s ease;
  height: 100%;
  width: 100%;
}

/* Each slide is full-width and full-height */
.carousel-container .slide {
  flex: 0 0 100%;
  height: 100%;
  width: 100%;
}

/* Img covers the box, cropping as necessary */
.carousel-container .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nav buttons */
.carousel-container .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  outline: none;
}
.carousel-container .nav.prev { left: 10px; }
.carousel-container .nav.next { right: 10px; }

/* Caption overlaid at bottom */
.carousel-container .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  z-index: 2;
}
.carousel-container .caption .info p {
  margin: 2px 0;
  font-size: 18px;
  line-height: 1.5;
  color: #000000;
}
.carousel-container .caption .print-btn {
  background: #d60000;
  border: none;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 38px;
}
.carousel-container .caption .print-btn:hover {
  background: #b50000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.carousel-container .caption .print-btn::before {
  content: '\f02f';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

/* Property Info Section */
.property-info-section {
  display: flex;
  flex-wrap: wrap;
  padding: 40px;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.801);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin: 0 40px;
}

.property-info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.property-details {
  background: transparent;
  padding: 20px;
  border: 7px solid #d60000;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex: 2.33; /* 70% */
  min-width: 0;
  overflow-wrap: break-word;
}

.property-details h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 10px;
}

.property-details h3.status {
  font-size: 20px;
  margin-bottom: 10px;
}

.property-details .price {
  font-size: 24px;
  margin-bottom: 15px;
}

.property-details .description {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555;
  overflow-wrap: break-word;
}

.property-details h3 {
  margin-top: 20px;
  font-size: 20px;
  margin-bottom: 10px;
}

.property-details ul {
  list-style: disc inside;
  margin-bottom: 20px;
}

.property-details ul li {
  margin-bottom: 5px;
  overflow-wrap: break-word;
}

.map-button {
  display: inline-block;
  background: #d60000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 32px;
}

.map-button:hover {
  background: #b50000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.map-button::before {
  content: '\f3c5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.map-container {
  margin-top: 15px;
}

/* Expert Card (Get More Info Section) */
.expert-card {
  flex: 1; /* 30% */
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.801);
  backdrop-filter: blur(10px);
  color: #333;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  border: 7px solid #d60000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  background-image: linear-gradient(to bottom, rgba(214, 0, 0, 0.1), rgba(255, 255, 255, 0.801));
  min-width: 0;
  overflow-wrap: break-word;
}

.expert-card h3 {
  font-size: 35px;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.expert-card .agent-profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 10px auto;
  display: block;
}

.expert-card p.description {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.expert-info h4 {
  font-size: 26px;
  margin-bottom: 5px;
}

.expert-info .title {
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
}

.expert-info .location {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
}

.expert-contact {
  margin: 0;
  padding: 0;
}

.expert-contact p {
  margin-bottom: 10px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-contact p:last-child {
  margin-bottom: 0;
}

.expert-contact a {
  color: #555;
  margin-left: 8px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.expert-contact a:hover {
  color: #d60000;
}

/* Print Media */
@media print {
  body { background: #fff; }
  .navbar, .carousel-btn, .print-flyout-btn, .expert-card { display: none !important; }
  .carousel-slide.active img { max-width: 100%; }
}

/* Adjust carousel positioning */
.carousel-container {
  margin-top: 100px;
  position: relative;
  z-index: 0;
}

/* Ensure buttons float above the carousel */
.carousel-container .nav {
  z-index: 10;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .property-info-container {
    flex-direction: column;
  }
  .property-details, .expert-card {
    flex: 100%;
  }
}