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

body {
  font-family: 'Georgia', serif;
  background-color: #fff;
  color: #2d2d2d;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #b22222;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.navbar ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.navbar a:hover {
  opacity: 0.8;
}

/* Hamburger Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav__toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #f0f0f0;
}

.nav__toggle-icon {
  transition: transform 0.3s ease;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-circle {
    width: 70%;
    height: 70%;
    border: 2px solid white;
    border-radius: 50%;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
  background: url('images/Lucid_Origin_A_photorealistic_3D_concept_of_a_modern_luxury_tw_1.webp') no-repeat center center/cover;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(178, 34, 34, 0);  /* Changed from 0.5 to 0 to remove red tint */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem;
    padding-right: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2d2d2d;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-controls {
    display: flex;
    gap: 0.5rem;
}

.search-controls select,
.search-controls button {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2d2d2d;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-controls select {
    cursor: pointer;
}

.search-controls button {
    background-color: #b22222;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.search-controls button:hover {
    background-color: #8b1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(178, 34, 34, 0.3);
}

.search-form input:focus,
.search-form select:focus,
.search-form button:focus {
    border-color: #b22222;
    box-shadow: 0 0 0 2px rgba(178, 34, 34, 0.2);
    outline: none;
}

/* Property Listings */
.property-listings {
  padding: 4rem 2rem;
  background-color: #fafafa;
  text-align: center;
}

.property-listings h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #b22222;
}

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

.property-card {
  background-color: white;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s;
}

.property-card:hover {
  transform: translateY(-5px);
}

.property-card img {
  width: 100%;
  display: block;
}

.property-info {
  padding: 1rem;
}

.property-info h2, 
.calculator h2, 
.social-media h2 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.property-info h3,
.property-card h3 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: #b22222;
}

.price {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #444;
}

.property-info p, 
.calculator label, 
.calculator input,
.calculator button,
.property-detail p,
nav a,
.footer p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Agents Section */
.agents {
  padding: 4rem 2rem;
  text-align: center;
}

.agents h2 {
  font-size: 2rem;
  color: #b22222;
  margin-bottom: 2rem;
}

.agent-list {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.agent-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 280px; /* Slightly wider to accommodate images */
    display: flex;
    flex-direction: column;
}

.agent-card img {
    width: 100%;
    height: 300px; /* Fixed height */
    object-fit: contain; /* Changed from cover to contain */
    background-color: #f5f5f5; /* Light background for images */
    padding: 1rem;
}

.agent-info {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.agent-info p {
    color: #666;
    margin: 0;
}

.agent-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.show-contact, 
.whatsapp-btn {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.show-contact {
    background-color: #f5f5f5;
    color: #333;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.show-contact:hover {
    background-color: #e5e5e5;
}

.whatsapp-btn:hover {
    background-color: #1ea952;
}

/* About Section */
.about {
  padding: 4rem 2rem;
  background-color: #fff5f5;
  text-align: center;
}

.about h2 {
  color: #b22222;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Contact Section */
.contact {
  padding: 4rem 2rem;
  background-color: #fafafa;
  text-align: center;
}

.contact h2 {
  color: #b22222;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.contact-form button {
  background-color: #b22222;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #8b1a1a;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #b22222;
  color: white;
  font-size: 0.9rem;
}
/* Animation classes */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Social Media Section */
.social-media {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #fafafa;
}

.social-media h2 {
  color: #b22222;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icons a {
  color: #b22222;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  border: 2px solid #b22222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  color: #fff;
  background-color: #b22222;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(178, 34, 34, 0.3);
}

/* Commercial Property Search Styles */
.commercial-search {
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.filter-group label {
    color: #444;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #b22222;
}

.advanced-filters {
    display: none;
    background: #f9f9f9;
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.advanced-filters.show {
    display: block;
}

.toggle-advanced {
    color: #b22222;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-advanced:hover {
    color: #8b1a1a;
}

.search-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.search-btn {
    padding: 0.75rem 2rem;
    background-color: #b22222;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #8b1a1a;
}

.clear-btn {
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: #b22222;
    border: 1px solid #b22222;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.clear-btn:hover {
    background-color: #b22222;
    color: white;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    padding-right: 45px; /* Make room for the icon */
}

.map-link {
    position: absolute;
    right: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-icon {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.map-icon i {
    font-size: 1.1rem;
    color: #b22222;
    transition: all 0.3s ease;
}

.map-icon:hover {
    transform: translateY(-2px);
}

/* Typography System */
h1, h2, h3,
.property-card h3,
.property-info h3,
.calculator h2,
.social-media h2 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: #b22222;
}

/* Main heading sizes */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }

/* Body Text */
body,
p,
.property-info p,
.property-info ul li,
.calculator label,
.calculator input,
.calculator button,
.property-detail p,
nav a,
.footer p,
.contact-form input,
.contact-form textarea,
.filter-group label,
.filter-group input,
.filter-group select,
.price {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: 1rem;
}

/* Remove any conflicting font declarations */
.property-info h2 {
    margin-bottom: 1rem;
}

.price {
    font-weight: 600;
    font-size: 1.5rem;
    color: #444;
}

/* ===================
   RESPONSIVE DESIGN - MOBILE-FIRST
   =================== */

/* Mobile-first base styles (320px and up) */
html {
    font-size: 14px; /* Smaller base font for mobile */
}

body {
    font-size: 1rem;
}

/* Mobile navigation - hamburger visible by default */
.navbar {
    padding: 1rem;
}

.navbar ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #b22222;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 0 0 8px 8px;
}

.navbar ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar ul li:last-child {
    border-bottom: none;
}

.navbar ul a {
    display: block;
    padding: 0.75rem 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.navbar ul a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.navbar ul.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__toggle {
    display: block;
}

/* Mobile logo adjustments */
.logo-circle {
    width: 30px;
    height: 30px;
}

.inner-circle {
    width: 60%;
    height: 60%;
}

.logo-text {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* Mobile hero adjustments */
.hero {
    padding: 4rem 1rem;
}

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

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

.search-container {
    flex-direction: column;
    gap: 0.5rem;
}

.search-input-wrapper input {
    padding: 1rem;
    padding-right: 50px;
    font-size: 1rem;
}

.search-controls {
    gap: 0.5rem;
}

.search-controls select,
.search-controls button {
    padding: 1rem;
    font-size: 1rem;
}

/* Mobile property grid */
.properties {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Mobile agent list */
.agent-list {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.agent-card {
    width: 100%;
    max-width: 350px;
}

/* Mobile commercial search */
.commercial-search {
    padding: 1rem;
}

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

.search-actions {
    flex-direction: column;
}

.search-btn,
.clear-btn {
    width: 100%;
}

.search-container {
    flex-direction: column;
    width: 100%;
}

.map-link {
    margin: 0.5rem 0;
}

.map-icon {
    width: 35px;
    height: 35px;
}

.search-input-wrapper {
    width: 100%;
}

.map-link {
    right: 10px;
}

/* Mobile social icons */
.social-icons {
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

/* Mobile sections */
.property-listings,
.agents,
.about,
.contact,
.social-media {
    padding: 2rem 1rem;
}

/* Mobile typography */
h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

/* Tablet styles (768px and up) */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        font-size: 1rem;
    }

    /* Show desktop navigation */
    .navbar {
        padding: 1rem 2rem;
    }

    .navbar ul {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        padding: 0;
        box-shadow: none;
        gap: 1.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .navbar ul.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__toggle {
        display: none;
    }

    /* Tablet hero */
    .hero {
        padding: 6rem 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

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

    .search-container {
        flex-direction: row;
        gap: 1rem;
    }

    .search-input-wrapper {
        flex: 1;
    }

    .search-controls {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .search-controls select {
        width: auto;
        min-width: 120px;
    }

    .search-controls button {
        width: auto;
        padding: 0.75rem 1.5rem;
    }

    /* Tablet property grid */
    .properties {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    /* Tablet agent list */
    .agent-list {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
        align-items: stretch;
    }

    .agent-card {
        width: 280px;
    }

    /* Tablet commercial search */
    .commercial-search {
        padding: 2rem;
    }

    .search-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .search-actions {
        flex-direction: row;
        gap: 1rem;
    }

    .search-btn,
    .clear-btn {
        width: auto;
    }

    .search-container {
        flex-direction: row;
        gap: 0.5rem;
        max-width: 800px;
    }

    .map-link {
        margin: 0;
    }

    .map-icon {
        width: 30px;
        height: 30px;
    }

    .search-input-wrapper {
        flex: 1;
    }

    .map-link {
        right: 8px;
    }

    /* Tablet social icons */
    .social-icons {
        gap: 2rem;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    /* Tablet sections */
    .property-listings,
    .agents,
    .about,
    .contact,
    .social-media {
        padding: 4rem 2rem;
    }

    /* Tablet typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }
}

/* Desktop styles (1024px and up) */
@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }

    /* Desktop navigation fully visible */
    .navbar ul {
        gap: 1.5rem;
    }
}

/* Large desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}
