/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #F4E4BC;
    --light-gold: #FFF8DC;
    --primary-black: #1A1A1A;
    --secondary-black: #2D2D2D;
    --light-black: #404040;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card styling */
.property-card {
  background: var(--gray-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: left;
}

.property-card h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #333;
  border-bottom: 2px solid var(--primary-gold);
  padding-bottom: 8px;
}

.property-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.property-features li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary-black);;
  display: flex;
  align-items: center;
}

.property-features i {
  margin-right: 10px;
  font-style: normal;
  background-color: var(--primary-gold);
  color: white;
  padding: 6px;
  border-radius: 50%;
  font-size: 0.9rem;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image img {
  width: 600px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.thumbnails {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.thumbnails img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnails img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Remove default margins and paddings */
body {
  margin: 0;
  padding: 0;
}

/* Tighten up the gallery container */
.gallery-container {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Reset image spacing */
.main-image img,
.thumbnails img {
  display: block;         /* Removes the little extra space from inline-block elements */
  margin: 0;
}

/* Remove any mysterious bottom gap */
html, body {
  height: auto;
  overflow-x: hidden;     /* Prevent horizontal scroll from ghost elements */
}

/* If using <section> or <footer> below gallery */
section, footer {
  margin-top: 0;
  padding-top: 0;
}



/* Basic link styling */
a {
       /* Default text color */
  text-decoration: none;  /* Removes underline */
  font-weight: bold;      /* Makes link text bold */
}

/* Hover effect */
a:hover {
      /* Change color on hover */
  text-decoration: none;
  cursor: pointer;
}

/* Visited link */
a:visited {
  
}

/* Active link (when clicked) */
a:active {
  
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo{
     display: flex;
    align-items: center;
    gap:10px;
}

.nav-logo h2 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin: 0;
}

.nav-logo-image{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: black;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-black);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 2rem 2rem;
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--white) 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-search {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 5px 20px var(--shadow);
    max-width: 500px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.search-btn {
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-black);
    transform: scale(1.05);
}

.cta-button {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.8s both;
}

.hero-placeholder {
    width: 400px;
    height: 400px;
    background: var(--secondary-gold);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-black);
    font-size: 4rem;
    box-shadow: 0 10px 30px var(--shadow);
    overflow: hidden;
    background: url("assets/6.jpg");
    background-size: cover;
    background-position: center;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    color: var(--primary-black);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Featured Apartments */
.featured-apartments {
    padding: 5rem 0;
    background: var(--gray-light);
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.apartment-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.8s ease;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.apartment-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--secondary-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-black);
    font-size: 3rem;
}

.apartment-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.apartment-info {
    padding: 1.5rem;
}

.apartment-info h3 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.apartment-location {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apartment-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.apartment-details span {
    color: var(--gray-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.apartment-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.view-all-container {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    background: var(--primary-black);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
}


/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-gold);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--primary-black);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    color: var(--primary-black);
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    color: var(--gray-dark);
    font-size: 0.9rem;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 1rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-placeholder {
        width: 300px;
        height: 300px;
        font-size: 3rem;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-btn {
        border-radius: 10px;
        width: 100%;
        height: 50px;
        margin-top: 0.5rem;
    }

    .apartment-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-black);
    color: var(--gray-medium);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    color: var(--white);
    padding: 120px 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray-medium);
}

/* Filters Section */
.filters-section {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-medium);
}

.filters-container {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.filter-select {
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    background: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.clear-filters-btn {
    background: var(--secondary-black);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover {
    background: var(--primary-gold);
}

/* Apartments Listing */
.apartments-listing {
    padding: 3rem 0;
    background: var(--gray-light);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    color: var(--primary-black);
    margin: 0;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: var(--white);
    border: 2px solid var(--gray-medium);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-btn {
    background: var(--white);
    border: 2px solid var(--gray-medium);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    background: var(--white);
    border: 2px solid var(--gray-medium);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-number.active,
.page-number:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--gray-light);
    padding: 1rem 0;
    margin-top: 70px;
}

.breadcrumb a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-gold);
}

.breadcrumb span {
    color: var(--gray-dark);
    margin: 0 0.5rem;
}

/* Apartment Detail */
.apartment-detail {
    padding: 3rem 0;
    background: var(--white);
}

.apartment-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Image Gallery */
.image-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
}

.main-image .image-placeholder {
    height: 400px;
    background: var(--secondary-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-black);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.main-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image .image-placeholder img:hover {
    transform: scale(1.05);
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary-gold);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: var(--primary-gold);
}

.thumbnail .image-placeholder {
    height: 80px;
    background: var(--secondary-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-black);
    font-size: 1.5rem;
    overflow: hidden;
}

.thumbnail .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail:hover .image-placeholder img {
    transform: scale(1.1);
}

.thumbnail:hover {
    border-color: var(--primary-gold);
}

/* Apartment Info Detail */
.apartment-info-detail {
    padding-left: 1rem;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.info-header h1 {
    color: var(--primary-black);
    margin: 0;
    flex: 1;
}

.price-badge {
    background: var(--primary-gold);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.apartment-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-black);
    font-weight: 600;
}

.stat i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

/* Description Section */
.description-section {
    margin-bottom: 2rem;
}

.description-section h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.description-section p {
    color: var(--gray-dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Amenities Section */
.amenities-section {
    margin-bottom: 3rem;
}

.amenities-section h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.amenity:hover {
    background: var(--secondary-gold);
}

.amenity i {
    color: var(--primary-gold);
    font-size: 1.3rem;
    width: 20px;
}

.amenity span {
    color: var(--primary-black);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
}

.contact-section h3 {
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.submit-btn {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--primary-black);
    transform: translateY(-2px);
}

/* Similar Apartments */
.similar-apartments {
    padding: 3rem 0;
    background: var(--gray-light);
}

.similar-apartments h2 {
    text-align: center;
    color: var(--primary-black);
    margin-bottom: 2rem;
}




/* Add to your styles.css */

/* Ensure images don’t overflow their container */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive layout for thumbnails */
.thumbnails {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .main-image img {
    width: 100%;
  }

  .thumbnails img {
    width: 80px;
  }

  .listing-info h1 {
    font-size: 1.5rem;
  }

  .listing-info p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .thumbnails img {
    width: 60px;
  }
}

/* Additional Responsive Styles */
@media (max-width: 1024px) {
    .apartment-detail .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-gallery {
        position: static;
    }

    .apartment-info-detail {
        padding-left: 0;
    }

    .filters-container {
        justify-content: center;
    }

    .filter-group {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .apartment-stats {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .info-header {
        flex-direction: column;
        gap: 1rem;
    }

    .price-badge {
        align-self: flex-start;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-image .image-placeholder {
        height: 250px;
        font-size: 3rem;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .thumbnail .image-placeholder {
        height: 60px;
        font-size: 1.2rem;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .apartment-stats {
        padding: 1rem;
    }

    .stat {
        font-size: 0.9rem;
    }

    .page-numbers {
        display: none;
    }
}


/* FLOATING ACTION BUTTON */
.floating-message-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-gold);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(9, 88, 89, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    user-select: none;
}

.floating-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(9, 88, 89, 0.4);
    background:black;
}

.floating-message-btn i {
    font-size: 18px;
}

.floating-message-btn span {
    white-space: nowrap;
}

/* Message Popup Modal */
.message-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.message-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.message-popup {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}
.message-popup::-webkit-scrollbar{
    display: none;
}

.message-popup-overlay.active .message-popup {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background:  var(--primary-gold);
    color: white;
    border-radius: 15px 15px 0 0;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.1);
}

.popup-content {
    padding: 25px;
}

.agent-info-popup {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: wheat;
    border-radius: 10px;
}

/*.agent-avatar-popup {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}*/

.agent-details-popup h4 {
    margin: 0 0 5px 0;
    color: black;
    font-size: 16px;
}

.agent-details-popup p {
    margin: 2px 0;
    font-size: 14px;
    color: #666;
}

.popup-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.popup-contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.popup-contact-form label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.popup-contact-form input,
.popup-contact-form textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.popup-contact-form input:focus,
.popup-contact-form textarea:focus {
    outline: none;
    border-color:  var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(9, 88, 89, 0.1);
}

.popup-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.popup-submit-btn {
    background:  var(--primary-gold);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}




.popup-submit-btn:hover {
    background:black;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(9, 88, 89, 0.3);
}

.popup-submit-btn:active {
    transform: translateY(0);
}

.popup-submit-btn2{
    border:1px solid var(--primary-gold);
    color: var(--primary-gold);
    background-color: transparent;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}
