/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.header .container {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 20px;
}

.logo img {
    height: 48px;
    width: auto;
}

.search-bar {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.search-bar form {
  display: flex;
  align-items: center;
}

.search-bar input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  border-color: #2563eb;
}

.search-btn {
  padding: 10px 15px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #1d4ed8;
}

.mobile-search-bar {
  display: none;
  width: 100%;
  margin-bottom: 20px;
}

.mobile-search-bar form {
  display: flex;
  align-items: center;
}

.mobile-search-bar input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.mobile-search-bar input:focus {
  border-color: #2563eb;
}

.mobile-search-btn {
  padding: 10px 15px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.mobile-search-btn:hover {
  background: #1d4ed8;
}

.nav {
  position: relative;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    color: #374151;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    color: white;
    height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.02"/><circle cx="10" cy="50" r="0.5" fill="white" opacity="0.02"/><circle cx="90" cy="30" r="0.5" fill="white" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/*.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
} */

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    display: flex;
    transition: transform 1s ease;
    z-index: 1;
}

.slide {
    width: 25%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.bg1-slide {
    background-image: url('assets/bg1.jpg');
}

.bg2-slide {
    background-image: url('assets/bg2.jpg');
}

.bg3-slide {
    background-image: url('assets/bg3.jpg');
}

.bg4-slide {
    background-image: url('assets/bg4.jpg');
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.slide.active .slide-content {
    opacity: 1;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    letter-spacing: -0.02em;
}

.slide-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Hero Pagination */
.hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.pagination-dot.active {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}



.cta-button {
    background: #ffffff;
    color: #1e3a8a;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: #f8fafc;
}

/* Filters Section */
.filters-section {
  padding: 120px 0 60px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.filters-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #1a1a1a;
  font-weight: 700;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.filter-group input,
.filter-group select {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: #2563eb;
}

.cta-button.secondary {
  background: #6b7280;
  color: white;
}

.cta-button.secondary:hover {
  background: #4b5563;
}

/* Properties Section */
.properties-section {
  padding: 60px 0;
  background: #f8fafc;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 1.1rem;
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background: #f8fafc;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a1a1a;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.property-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.1);
}

.property-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.03);
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30,58,138,0.8) 0%, rgba(59,130,246,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.tour-button {
    background: #ffffff;
    color: #1e3a8a;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.tour-button:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.property-info {
    padding: 28px;
}

.property-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 600;
}

.property-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 4px;
}

.property-location {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 12px;
  font-weight: 500;
}

.property-info p {
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
}

.property-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.property-details span {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.about-features {
    display: grid;
    gap: 20px;
}

.feature {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.feature h3 {
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    color: #666;
}

/* Feature Image Section */
.feature-image-section {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.feature-image {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: translateY(-4px);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #fff;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 40px;
    border-top: 1px solid #374151;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-social p {
    color: #6b7280;
    font-size: 14px;
    margin-top: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    z-index: 10001;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 0%);
}

/* Desktop close button - keeping your original position */
.close-modal {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0,0,0,0.8);
    color: #e5e7eb;
    transform: scale(1.05);
}

#tourFrame {
    width: 96%;
    height: 96%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    margin-top: 0px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
  /* Header mobile styles */
  .header .container {
    padding: 12px 20px;
    justify-content: space-between;
  }

  .search-bar {
    display: none; /* Hide search bar on mobile for simplicity */
  }

  .properties-page .search-bar {
    display: none;
  }

  .properties-page .mobile-search-bar {
    display: block;
  }

  /* Hamburger positioning */
  .hamburger {
    display: flex;
    position: absolute; /* Position it absolutely within the header */
    top: 50%; /* Center vertically */
    right: 20px; /* 20px from right edge */
    transform: translateY(-50%); /* Perfect vertical centering */
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: transparent;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
    .logo img {
        height: 36px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-menu a {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
        padding: 10px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: #f3f4f6;
        color: #2563eb;
    }

    /* Mobile modal close button - styled like mobile header design */
   .close-modal {
    position: absolute;
    bottom: 20px;       /* push it 20px from the bottom */
    left: 50%;          /* move to horizontal center */
    transform: translateX(-50%); /* perfectly center it */
    width: 44px;
    height: 44px;
    font-size: 28px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.6);
}

    .close-modal:hover {
        background: rgba(0,0,0,0.8);
        border-color: rgba(255,255,255,0.4);
    }

    /* Other mobile styles */
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
    }

    .bg1-slide {
        background-image: url('assets/bg1_m.jpg');
    }

    .bg2-slide {
        background-image: url('assets/bg2_m.jpg');
    }

    .bg3-slide {
        background-image: url('assets/bg3_m.jpg');
    }

    .bg4-slide {
        background-image: url('assets/bg4_m.jpg');
    }

    .gallery {
        padding: 80px 0;
    }

    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .property-card {
        max-width: 100%;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    /* Modal mobile styles */
    .modal-content {
        padding: 10px;
    }

    .modal-header {
        height: 80px;
        padding: 0 15px;
        background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    }

    #tourFrame {
        width: 100%;
        height: calc(100% - 80px);
        margin-top: 80px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header .container {
        padding: 12px 16px;
    }

    .logo img {
        height: 32px;
    }

    .nav-menu {
        width: 100vw;
        right: -100vw;
    }

    .nav-menu.active {
        right: 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-pagination {
        bottom: 30px;
        gap: 10px;
    }

    .pagination-dot {
        width: 10px;
        height: 10px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 15px;
    }

    .gallery h2 {
        font-size: 1.75rem;
    }

    .property-info {
        padding: 24px;
    }

    .property-info h3 {
        font-size: 1.25rem;
    }

    .property-details {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* Very small mobile screens */
    .close-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        border-width: 1px;
    }

    .modal-content {
        padding: 5px;
    }

    .modal-header {
        height: 70px;
        padding: 0 10px;
    }

    #tourFrame {
        width: 100%;
        height: calc(100% - 70px);
        margin-top: 70px;
        border-radius: 6px;
    }
}

/* Mobile menu overlay */
@media (max-width: 768px) {
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 280px;
        height: 100vh;
        background: rgba(0,0,0,0);
        z-index: -1;
    }
}

@media (max-width: 480px) {
    .nav-menu.active::before {
        right: 0;
    }
}