/* Base styles */
:root {
    --primary-color: #1e7e95;
    --accent-color: #f8b400;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --white: #ffffff;
    --max-width: 1200px;
    --spacing: 2rem;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
  }
  
  /* Layout */
  header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem var(--spacing);
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
  }
  
  /* .nav-links a {
    margin-left: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: var(--primary-color);
  } */
  
  main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
  }
  
  footer {
    background-color: var(--light-gray);
    padding: var(--spacing);
    text-align: center;
    margin-top: 3rem;
  }
  
  /* Property Showcase */
  .hero {
    position: relative;
    margin-bottom: var(--spacing);
  }
  
  .hero-image img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .hero-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 5px;
    max-width: 60%;
  }
  
  .hero-text h1 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
  }
  
  .tagline {
    margin: 0;
    font-size: 1.2rem;
  }
  
  .property-details {
    margin-bottom: var(--spacing);
  }
  
  .cta {
    margin: 2rem 0;
  }
  
  .button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .button:hover {
    background-color: #e0a300;
  }
  
  /* Features/Amenities */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
  }
  
  .feature {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s;
  }
  
  .feature:hover {
    transform: translateY(-5px);
  }
  
  .feature h3 {
    margin-top: 0;
    color: var(--primary-color);
  }
  
  /* Gallery */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
  }
  
  .gallery-grid img:hover {
    transform: scale(1.05);
  }
  
  /* Blog styles */
  .blog-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
  }
  
  .blog-card {
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .date {
    color: #666;
    font-size: 0.9rem;
  }
  
  .read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
  }
  
  /* Blog Post */
  .blog-post {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .post-header {
    margin-bottom: 2rem;
  }
  
  .featured-image {
    margin: 1.5rem 0;
  }
  
  .featured-image img {
    width: 100%;
    border-radius: 5px;
  }
  
  .post-content {
    line-height: 1.8;
  }
  
  .post-content h2 {
    margin-top: 2rem;
  }
  
  .post-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
  }
  
  .back-to-blog {
    color: var(--primary-color);
    text-decoration: none;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
  }
  
  .pagination a {
    background-color: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
  }
  
  .pagination a:hover {
    background-color: var(--medium-gray);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .hero-text {
      position: relative;
      left: 0;
      bottom: 0;
      max-width: 100%;
      margin-top: 1rem;
    }
    
    .features-grid,
    .gallery-grid {
      grid-template-columns: 1fr;
    }
  }

  .language-selector {
    margin-left: 20px;
}

.language-selector select {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.language-selector select:hover {
    border-color: #007cba;
}

.language-selector select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* @media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .language-selector select {
        width: 100%;
        padding: 10px;
    }
} */



/* .main-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
} */

.main-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

/* .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
} */

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* .nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    transform: translateY(-2px);
} */

.nav-icon {
    font-size: 1.2rem;
}

/* Language Flags */
.language-flags {
    display: flex;
    gap: 0.8rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--light-gray);
}

.flag-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flag-btn.active {
    border-color: var(--primary-color);
}

.flag-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.flag-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}



/* Update/Add these styles */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: rgba(30, 126, 149, 0.1); /* semi-transparent primary color */
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Add subtle animation on hover */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 80%;
}

/* Responsive adjustments
@media (max-width: 768px) {
    .nav-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .nav-item {
        padding: 0.6rem 1rem;
    }
} */


@media (max-width: 768px) {
    .main-nav {
        padding: 0.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
        max-width: 40%;
    }
    
    .nav-item {
        padding: 0.5rem;
    }
    
    .nav-item span:not(.nav-icon) {
        display: none;
    }
    
    .language-flags {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .flag-btn {
        width: 32px;
        height: 32px;
    }
    
    .flag-icon {
        width: 20px;
        height: 20px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* Add this new style for ultra-small screens */
@media (max-width: 360px) {
    .main-nav {
        padding: 0.25rem;
    }
    
    .nav-links {
        gap: 0.25rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .flag-btn {
        width: 28px;
        height: 28px;
    }
    
    .flag-icon {
        width: 18px;
        height: 18px;
    }
}