/* Main Stylesheet */
@import url('colors.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

.menu {
  display: flex;
  gap: 20px;
}

/* Toggle button */
.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Desktop menu */
.desktop-menu {
  display: flex;
  gap: 30px;
}

.desktop-menu li a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

/* Mobile hidden by default */
.mobile-menu {
  display: none;
}

/* Media query for mobile */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 220px;
    z-index: 1000;
  }

  .mobile-menu:not(.active) {
    display: none;
  }

  .mobile-menu li {
    padding: 10px 0;
  }

  .mobile-menu li:not(:last-child) {
    border-bottom: 1px solid #eee;
  }

  .mobile-menu li a {
    color: #222;
    text-decoration: none;
  }
}


.menu a {
  text-decoration: none;
  padding: 10px;
  color: #333;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    border: 1px solid #ddd;
    z-index: 1000;
  }
  .menu.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--vista-blue);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #7281c9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--vista-blue);
    border: 2px solid var(--vista-blue);
}

.btn-outline:hover {
    background-color: var(--vista-blue);
    color: var(--white);
}
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  background: white;
  color: #0e56d0;
  border: 2px solid #0e56d0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#backToTop:hover {
  background-color: #0e56d0;
  color: white;
}
#currency {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}


#backToTop i {
  line-height: 44px;
}
#backToTop {
  opacity: 0;
  pointer-events: none;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}




/* Header */
header {
    background-color: var(--cetacean-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo i {
    color: var(--vista-blue);
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--vista-blue);
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Page Title Section */
.page-title {
    background: var(--blue-gradient), url('../img/banner.jpg') no-repeat center center;
    background-size: cover;
    padding: 4rem 0;
    color: var(--white);
    text-align: center;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--vista-blue);
}

.breadcrumb-item i {
    margin: 0 0.75rem;
    font-size: 0.8rem;
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--imperial-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: var(--blue-gradient), url('../img/hero.jpg') no-repeat center center;
    background-size: cover;
    height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Search Container */
.search-container {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-box {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-group {
    flex: 1;
    min-width: 150px;
}

.search-group label {
    display: block;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-group select, 
.search-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-btn {
    background-color: var(--imperial-blue);
    color: var(--white);
    border: none;
    padding: 0 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-end;
    height: 45px;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    background-color: var(--oxford-blue);
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.property-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--vista-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-details {
    padding: 1.5rem;
}

.property-price {
    color: var(--imperial-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--cetacean-blue);
}

.property-address {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.property-address i {
    color: var(--vista-blue);
    margin-right: 0.5rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.feature {
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.feature i {
    color: var(--vista-blue);
    margin-right: 0.5rem;
}

/* Property Types */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.type-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.type-card:hover {
    background-color: var(--imperial-blue);
    transform: translateY(-5px);
}

.type-card:hover .type-icon,
.type-card:hover .type-name {
    color: var(--white);
}

.type-icon {
    font-size: 2.5rem;
    color: var(--imperial-blue);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.type-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cetacean-blue);
    transition: color 0.3s ease;
}

/* CTA Section */
.cta {
    background: linear-gradient(to right, var(--imperial-blue), var(--cetacean-blue));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--imperial-blue);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--vista-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--imperial-blue);
}

.blog-excerpt {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--vista-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--rich-black);
    color: #aaa;
    padding: 4rem 0 1rem;
    
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--vista-blue);
    margin-right: 0.5rem;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--vista-blue);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--vista-blue);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--vista-blue);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Property Details Page Specific Styles */
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.property-title-block h1 {
    font-size: 2.5rem;
    color: var(--imperial-blue);
    margin-bottom: 0.5rem;
}

.property-price-block {
    text-align: right;
}

.property-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--imperial-blue);
    margin-bottom: 0.5rem;
}

.property-main-image {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.property-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-details-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.details-title {
    font-size: 1.5rem;
    color: var(--imperial-blue);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.details-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--vista-blue);
}

/* Contact Page Specific Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem 0;
}

.contact-info {
    background-color: var(--imperial-blue);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.contact-text {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--vista-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--vista-blue);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 1px solid #ddd;
    margin: 0 0.25rem;
    border-radius: 5px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-item:hover,
.pagination-item.active {
    background-color: var(--vista-blue);
    color: var(--white);
    border-color: var(--vista-blue);
}

.property-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.property-link:hover .property-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.thumb-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumb-image:hover {
    opacity: 0.8;
}
.property-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}
.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#currency-form {
  display: inline-block;
  margin: 10px 0 20px auto;
  text-align: right;
}

#currency-form select {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 30px;
  background-color: #fff;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='gray' d='M2 0L0 2h4L2 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65em auto;
  padding-right: 2rem;
  transition: all 0.3s ease;
}

#currency-form select:hover,
#currency-form select:focus {
  border-color: #0e56d0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 86, 208, 0.15);
}

