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

/* === Base Styles === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* === Header === */
header {
  background-color: #e8dd0d; /* Vibrant yellow */
  padding: 15px 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  flex-grow: 1;
}

/* === Navbar === */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.navbar ul li a {
  color: #3d47b4; /* A deep blue */
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background-color: #000;
  color: #fff;
}

/* === Hero Section === */
.hero {
  background: url('images/images1.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero h2,
.hero p {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;
}

.hero-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
  background-color: #e8dd0d;
  color: #000;
  box-shadow: 0 4px 12px rgba(232, 221, 13, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(232, 221, 13, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-3px);
}

/* === Homepage Main Content === */
.page-content {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-heading {
  font-size: 2.8rem;
  font-weight: 700;
  color: #004d99;
  margin-bottom: 30px;
  text-align: center;
}

.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.about-section .about-text {
  flex: 1;
  min-width: 300px;
}

.about-section .about-text p {
  margin-bottom: 16px;
}

.about-section .about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-section .about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* === Homepage Service Cards === */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 35px 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f8ff;
  color: #004d99;
  font-size: 1.8rem;
}

.card-title {
  font-size: 1.25rem;
  color: #004d99;
  margin-bottom: 12px;
}

.card-desc {
  color: #555;
  font-size: 0.95rem;
}

/* === About Page === */
.about-hero {
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.35), rgba(12, 14, 18, 0.74)), url('images/commercial-construction-service.jpg') no-repeat center center/cover;
  color: rgb(255, 238, 0); /* Yellow from your header */
  text-align: center;
  padding: 110px 20px 100px;
  position: relative;
}

.about-hero h2 {
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.about-hero p {
  color: rgba(255, 255, 255, 0.92);
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 238, 0, 0.65);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  margin-top: 20px;
  color: #004d99; /* Primary blue */
}

.about-text ul {
  list-style: none;
  padding-left: 0;
}

.about-text ul li {
  font-size: 1.1rem;
  margin: 10px 0;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Classic drop-cap treatment on the opening paragraph */
.about-text p.lead::first-letter {
  font-size: 3rem;
  font-weight: 700;
  color: #004d99;
  float: left;
  line-height: 1;
  margin: 4px 10px 0 0;
}

/* Pull-quote styling for the mission statement */
.mission-quote {
  border-left: 4px solid #e8dd0d;
  padding-left: 18px;
  font-style: italic;
  color: #444;
}

/* Our Values as a clean check-list instead of emoji bullets */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

.values-list li i {
  color: #004d99;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Office address presented as a standalone highlight card */
.office-highlight {
  max-width: 480px;
  margin: 10px auto 60px;
  padding: 0 20px;
}

.office-highlight .card {
  text-align: center;
}

.office-directions {
  display: inline-block;
  margin-top: 14px;
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.office-directions:hover {
  text-decoration: underline;
}

/* === Services === */
#services {
  text-align: center;
  padding: 60px 20px;
  background-color: #f5f5f5;
}

#services h2 {
  font-size: 2.5rem;
  color: #004d99;
  margin-bottom: 40px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-10px);
}

.service-box h3 {
  color: #333;
  margin-bottom: 15px;
}

.service-box p {
  color: #555;
  font-size: 1rem;
}

/* === Projects Gallery === */
#projects {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

#projects h2 {
  font-size: 2.5rem;
  color: #004d99;
  margin-bottom: 40px;
}

/* === Team Section (About / Contact) === */
#team {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

#team h2 {
  font-size: 2.5rem;
  color: #004d99;
  margin-bottom: 40px;
}

.card-desc a {
  color: #004d99;
  text-decoration: none;
  font-weight: 600;
}

.card-desc a:hover {
  text-decoration: underline;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.gallery-item {
  position: relative;
  flex: 1 1 300px;
  max-width: 300px;
  height: 260px; /* Fixed height keeps portrait & landscape photos consistent */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px; /* Apply border-radius here as well */
}

.overlay-text {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 14px;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  box-sizing: border-box;
}

.overlay-text .overlay-title {
  font-size: 1.05rem;
  margin: 0 0 3px;
}

.overlay-text .overlay-location {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
  margin: 0;
}

/* === Lightbox === */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* Slightly darker overlay */
  display: none; /* Hidden by default, toggled by JS */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px); /* Optional: adds a blur effect */
}

#lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border: 5px solid white;
  border-radius: 8px; /* Rounded corners for the image */
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease-out; /* Simple fade-in animation */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
  position: absolute;
  top: 25px; /* Adjust as needed */
  right: 40px; /* Adjust as needed */
  color: white;
  font-size: 45px; /* Larger close button */
  font-weight: lighter; /* Thinner 'X' */
  cursor: pointer;
  transition: color 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Subtle shadow for visibility */
}

.close-btn:hover,
.close-btn:focus {
    color: #ff4d4d; /* Reddish hue on hover */
    text-decoration: none;
}


/* === Contact Form === */
.container { /* This .container is specific to the contact form in the original code, ensure it's not overriding the general one */
  max-width: 600px;
  margin: 60px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.container h1 { /* This h1 also applies to the contact form section */
  font-size: 2.8rem;
  font-weight: 700;
  color: #004d99;
  margin-bottom: 30px;
}

.about-text address {
  font-style: normal;
  margin-bottom: 20px;
  line-height: 1.6;
}

form#contactForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form#contactForm input,
form#contactForm textarea {
  padding: 14px 18px;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.3s ease;
}

form#contactForm input:focus,
form#contactForm textarea:focus {
  outline: none;
  border-color: #004d99;
}

form#contactForm button {
  padding: 16px;
  background-color: #004d99;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form#contactForm button:hover {
  background-color: #003366;
}

#formStatus {
  margin-top: 15px;
  font-weight: 600;
  min-height: 24px;
  color: green;
}

/* === Footer === */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* === Map Section === */
#map-section {
    padding: 60px 0;
    background-color: #f0f0f0;
    text-align: center;
}

#map-section h2 {
    font-size: 2.5rem;
    color: #004d99;
    margin-bottom: 40px;
}

.map-container {
    max-width: 1100px; /* Match #map's width so the map isn't squeezed by the generic .container rule */
    margin: 0 auto;
    padding: 0 20px;
}

#map {
    height: 450px; /* Set a fixed height for the map container */
    width: 100%;
    max-width: 1100px; /* Match your container width */
    margin: 0 auto; /* Center the map within its section */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* === Search Filter Section - Made Bigger and More Attractive === */
#search-filter {
  max-width: 1000px;
  margin: 50px auto;
  padding: 35px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e0e0e0;
}

#searchForm {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  justify-content: center;
}

#searchForm select,
#searchForm button {
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 1.15rem;
  flex-grow: 1;
  min-width: 180px;
  transition: all 0.3s ease;
}

#searchForm select {
  border: 2px solid #a0a0a0;
  background-color: #f0f0f0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%23444%22%20d%3D%22M287%20197.8%20146.2%2057%205.4%20197.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 15px;
  color: #333;
}

#searchForm select:hover {
  border-color: #007bff;
  background-color: #e8e8e8;
}

#searchForm button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

#searchForm button:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
}

/* === Search Results Container === */
/* --- CREATIVE LISTING CARD STYLES --- */

#searchResults {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Slightly wider cards */
    gap: 30px; /* More space between cards */
    padding: 30px;
    max-width: 1200px;
    margin: 30px auto;
}

.listing-card {
    background-color: #ffffff;
    border-radius: 15px; /* More pronounced rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Deeper, softer shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease; /* Smoother transitions */
    max-height: 380px; /* Adjust initial height for the new summary view */
    cursor: pointer;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-8px); /* More significant lift on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

/* Expanded state for the card */
.listing-card.expanded {
    max-height: 1000px; /* Generous height for expanded content */
    cursor: default;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25); /* Even stronger shadow when expanded */
    z-index: 10; /* Bring expanded card prominently forward */
}

/* Card Hero Image (Summary Top Part) */
.card-hero-image {
    position: relative;
    width: 100%;
    height: 220px; /* Fixed height for the hero image */
    overflow: hidden; /* Contains the image */
    background-color: #f0f0f0; /* Fallback background */
}

.card-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    display: block;
    transition: transform 0.3s ease;
}

.listing-card:hover .card-hero-image img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

/* Overlay for Title and Location on Hero Image */
.card-summary-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); /* Gradient for readability */
    color: white;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.listing-card.expanded .card-summary-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); /* Keep gradient when expanded */
}

.overlay-title {
    margin: 0 0 5px;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.overlay-location {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.overlay-location i {
    margin-right: 8px;
    color: #e8dd0d; /* Accent color from header */
}

/* Featured Badge */
.creative-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e8dd0d; /* Accent yellow */
    color: #333;
    padding: 8px 15px;
    border-radius: 25px; /* Pill shape */
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    animation: bounceIn 0.8s ease-out; /* Little animation on load */
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Main Content Area (Below Hero Image) */
.card-main-content {
    padding: 20px 25px;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Price & Type Row */
.price-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.price-pill, .type-pill {
    background-color: #f0f8ff; /* Light accent blue */
    color: #007bff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #cceeff;
}

.price-pill strong, .type-pill strong {
    color: #333;
    margin-right: 5px;
}

/* Expanded Details Area */
.expanded-details-area {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, padding 0.6s ease-out; /* Smoother expansion */
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.listing-card.expanded .expanded-details-area {
    max-height: 1000px; /* Enough to show content */
    padding-bottom: 20px; /* Restore padding */
}

.full-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Key Features Grid */
.key-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 15px;
    margin-bottom: 25px;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #444;
}

.feature-item i {
    color: #3d47b4; /* Accent color */
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section h4 {
    font-size: 1.2rem;
    color: #004d99; /* Primary blue heading */
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #004d99;
    display: inline-block;
}

.listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Responsive grid for gallery */
    gap: 10px;
    margin-bottom: 30px;
}

.listing-gallery img {
    width: 100%;
    height: 80px; /* Fixed height for consistent look */
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-gallery img:hover {
    transform: scale(1.1); /* More distinct zoom */
    border-color: #e8dd0d; /* Highlight with yellow */
    box-shadow: 0 0 10px rgba(232, 221, 13, 0.7);
}

/* Creative Tags */
.card-tags-creative {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.card-tags-creative span {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    background-color: #e6f7ff; /* Default light blue for generic tags */
    border: 1px solid #b3e0ff;
}

/* Specific Tag Styles */
.tag-price { background-color: #ffeccf; border-color: #ffd790; color: #a36f00; } /* Orange/Gold for price tag */
.tag-status { font-weight: 700; color: white; }
.sale-tag { background-color: #dc3545; border-color: #c82333; } /* Red */
.new-tag { background-color: #28a745; border-color: #218838; } /* Green */
.uc-tag { background-color: #007bff; border-color: #0069d9; } /* Blue */
.no-brokerage-tag { background-color: #6f42c1; border-color: #563d7c; } /* Purple */
.ready-tag { background-color: #17a2b8; border-color: #138496; } /* Teal */


/* Creative Action Buttons */
.creative-actions {
    display: flex;
    justify-content: center; /* Center buttons */
    gap: 15px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0; /* Clean separator */
}

.action-btn {
    padding: 12px 25px; /* More padding for a bolder button */
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn { background-color: #6c757d; color: white; }
.share-btn:hover { background-color: #5a6268; }

.view-btn { background-color: #28a745; color: white; }
.view-btn:hover { background-color: #218838; }

.contact-btn { background-color: #3d47b4; color: white; } /* Using the Navbar blue */
.contact-btn:hover { background-color: #2a338d; }

/* Lightbox (Ensure these are the latest) */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* Slightly darker overlay */
  display: none; /* Hidden by default, toggled by JS */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px); /* Optional: adds a blur effect */
}

#lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border: 5px solid white;
  border-radius: 8px; /* Rounded corners for the image */
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease-out; /* Simple fade-in animation */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 40px;
  color: white;
  font-size: 45px;
  font-weight: lighter;
  cursor: pointer;
  transition: color 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.close-btn:hover,
.close-btn:focus {
    color: #ff4d4d;
    text-decoration: none;
}

/* --- Responsive Adjustments for Creative Cards --- */
@media (max-width: 768px) {
    #searchResults {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        padding: 15px;
    }

    .listing-card {
        max-height: 450px; /* Adjust initial height for mobile view */
        /* Will naturally expand more based on content */
    }
    .listing-card.expanded {
        max-height: 1200px; /* Generous height for expanded content on mobile */
    }


    .card-hero-image {
        height: 180px; /* Slightly smaller hero image on mobile */
    }
    .card-summary-overlay {
        padding: 15px 20px;
    }
    .overlay-title {
        font-size: 1.4rem;
    }
    .overlay-location {
        font-size: 0.85rem;
    }
    .creative-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        top: 10px;
        right: 10px;
    }

    .card-main-content {
        padding: 15px 20px;
    }
    .price-type-row {
        flex-direction: column; /* Stack price and type pills */
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .full-description {
        font-size: 0.85rem;
    }

    .key-features-grid {
        grid-template-columns: 1fr; /* Stack features on mobile */
        padding: 10px;
        gap: 10px;
    }
    .feature-item {
        font-size: 0.85rem;
    }
    .feature-item i {
        font-size: 1rem;
    }

    .gallery-section h4 {
        font-size: 1.1rem;
    }
    .listing-gallery {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); /* Smaller gallery images for mobile */
        gap: 8px;
    }
    .listing-gallery img {
        height: 60px;
    }

    .card-tags-creative {
        gap: 8px;
        margin-bottom: 20px;
    }
    .card-tags-creative span {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .creative-actions {
        flex-direction: column; /* Stack buttons */
        gap: 10px;
        padding-top: 15px;
    }
    .action-btn {
        width: 90%; /* Make buttons wider */
        max-width: 280px;
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Add this to your 'osm-map-styles.css' file */

.map-page-body-osm {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;   /* Center vertically */
    min-height: 100vh;     /* Full viewport height */
    background-color: #e6f7ff; /* Lighter, cooler background */
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

/* All other .map-wrapper, h1, p, iframe, .creative-note styles would follow here */

/* === Specifications Page === */
.specs-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.specs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px 25px;
  margin-bottom: 30px;
}

.specs-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 0.95rem;
}

.specs-meta-item i {
  color: #004d99;
  font-size: 1.1rem;
}

.specs-intro {
  text-align: center;
  color: #444;
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.spec-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #eee;
}

.spec-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #004d99;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.spec-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-icon {
  color: #3d47b4;
  width: 22px;
  text-align: center;
}

.chevron {
  color: #999;
  transition: transform 0.3s ease;
}

.spec-section.open .chevron {
  transform: rotate(180deg);
}

.spec-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.spec-section.open .spec-body {
  max-height: 1200px;
}

.spec-body ul {
  list-style: none;
  padding: 0 22px 20px;
  margin: 0;
}

.spec-body li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px dashed #eee;
}

.spec-body li:first-child {
  border-top: none;
}

.spec-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8dd0d;
}

.spec-rate {
  color: #a36f00;
  font-weight: 600;
  font-size: 0.9rem;
}

.specs-disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 40px 0;
}

.specs-disclaimer i {
  color: #a36f00;
  font-size: 1.3rem;
  margin-top: 2px;
}

.specs-disclaimer p {
  margin: 0;
  color: #6b5100;
  font-size: 0.9rem;
  line-height: 1.6;
}

.specs-cta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-secondary-light {
  background: #fff;
  color: #004d99;
  border: 2px solid #004d99;
}

.btn-secondary-light:hover {
  background: #004d99;
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .specs-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .spec-toggle {
    font-size: 0.95rem;
    padding: 15px 16px;
  }

  .spec-body ul {
    padding: 0 16px 16px;
  }
}