:root {
    --bg-1: #20232c;
    --bg-2: #0f1720;
    --card: #1a1f26;
    --accent: #caa742;
    --muted: #9aa4ae;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(0,0,0,0.5);
    --max: 1200px;
  }

  body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-1);
    color: #e6eef6;
    line-height: 1.5;
  }
  
  a{
      text-decoration:none;
      color:#fff;
  }

  .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px;
  }

  /* Heading */
  .page-title {
    margin-top: 5px;
  }
  .page-title h1 {
    font-size: 36px;
    font-weight: 800;
  }
  .page-title p {
    color: var(--muted);
    margin-top: 6px;
    font-size: 16px;
  }

  /* Search Box */
  .search-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 20px;
    box-shadow: var(--shadow);
  }
  .search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  select, input[type="text"] {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0c1219;
    color: #fff;
  }
  button.search {
    background: var(--accent);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
  }
  button.search:hover {
    background: #e2c65f;
  }
  .head-sort{
    display:flex;
    flex-direction: row;  
    justify-content: space-between;
  }
  .tabs {
      display: flex;
      gap: 10px;
      margin: 20px 0;
    }
    
    .tab-btn {
      padding: 8px 16px;
      border-radius: 20px;
      border: none;
      background:#0c1219; 
      color: #fff;
      cursor: pointer;
      transition: background 0.3s;
    }
    
    .tab-btn.active {
      background: #e2b94b;
      color: #fff;
    }
    
    .tab-content {
      display: none;
    }
    
    .tab-content.active {
      display: block;
    }

  /* Sort */
  .sort {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sort label {
    color: var(--muted);
  }
  .sort select {
    padding: 8px;
    border-radius: 6px;
    background: #0c1219;
    color: #fff;
    border: 1px solid #333;
  }

  /*location*/
  .location-container {
    display: flex;
    align-items: center;
    position: relative;
    margin: 20px 0;
  }

  .scroll-btn, .type-btn {
    background: #1e1e22;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 1;
  }
  .scroll-btn:hover {
    background: #e2b94b;
    color: #000;
  }
  .type-btn:hover {
    background: #e2b94b;
    color: #000;
  }

  .location-row, .type-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 10px;
    scrollbar-width: none; /* Firefox */
  }
  .location-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
 
  .type-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .location-btn, .type-btn {
    flex: 0 0 auto;
    background: #0c1219;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .location-btn:hover {
    background: #333;
    border-color: #e2b94b;
  }
  .type-btn:hover{
    background: #333;
    border-color: #e2b94b;
  }
  .location-btn.active {
    background: #e2b94b;
    color: #fff;
    border-color: #e2b94b;
  }
  .type-btn.active{
    background: #e2b94b;
    color: #fff;
    border-color: #e2b94b;
  }

  /* Properties Grid */
  .properties {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;

  }
  .property-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 20px;
    display: flex;
    flex-direction: column;
  }
  .property-img {
    position: relative;
  }
  .property-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .property-card .info {
    padding: 14px;
  }
  .property-card h3 {
    font-size: 18px;
    margin: 0 0 6px 0;
  }
  .property-card p {
    color: var(--muted);
    margin: 0 0 10px 0;
    font-size: 14px;
  }
  .price {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin:5px;
  }
  .price p{
    font-weight: 700;
    color: #e2b94b;
  }

  .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
  }
  .badge.rent {
    background: #e2b94b;  /* golden yellow */
  }
  .badge.sale {
    background: #ff4d4d;  /* red for sale */
  }
  .badge.short-stay {
    background: #4da6ff;  /* blue for short stay */
  }
  /* Responsive tweaks */
  @media (max-width: 768px) {
    .page-title h1 {
      font-size: 28px;
    }
    nav {
      gap: 14px;
    }
  }
  /* Force 3 columns on large screens (≥ 1024px) */
@media (min-width: 1024px) {
  .properties {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Floating WhatsApp Container */
#whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 30px;
    transition: transform 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Popup Text */
.whatsapp-text {
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    white-space: nowrap;
    opacity: 0; /* start hidden */
    transform: translateX(20px); /* slide-in effect */
    animation: slideIn 0.8s forwards;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
