                                                :root {
        --titlebar-height: 50px;
        --searchbar-height: 60px;
        --bg-color: 60px;
        --top-menubar-bgColor: #224466;
        --top-menubar-txtColor: white;
        }
                                           
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      }
        
    .titlebar  { display: none; }
        
    /* CSS for the floating WhatsApp button */
    .whatsapp-btn {
      display: inline-flex;
      align-items: center;
      background-color: #25D366; /* WhatsApp Green */
      color: white;
      padding: 10px 10px;
      border-radius: 50px;
      text-decoration: none;
      font-family: Arial, sans-serif;
      transition: background-color 0.3s ease;
      font-size: 14px;
      font-weight: 600;
      text-align: center;
    }
    
    .whatsapp-btn:hover {
      background-color: #128C7E; /* Darker Green */
    } 
    

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      background-color: #f5f5f5;
      padding-bottom: 80px;
    }
    
    .showDetails-btn {
        background: white;
        color: #333;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    
    .navbar {
      background: var(--top-menubar-bgColor);
      padding: 12px 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 100;
      height:60px;
    }
    
    .navbar-content {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 20px;
      
    }
    
    .navbar-logo {
      display: flex;
      align-items: center;
      flex-shrink: 0;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    
    .navbar-logo:hover {
      transform: scale(1.05);
    }
    
    .nav-img {
        width: 50px;
        height: auto; /* Maintains aspect ratio */
        display: block;
        filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.2));
    }
    
    .logo-image {
      height: 40px;
      width: auto;
      object-fit: contain;
    }
    
    /* Dropdown Styles */
    .dropdown {
      position: relative;
    }
    
    .dropdown-btn {
      background: transparent;
      border: none;
      color: white;
      font-size: 16px;
      font-weight: 600;
      padding: 10px 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      border-radius: 6px;
      transition: background 0.2s;
    }
    
    .dropdown-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-icon {
      transition: transform 0.3s;
    }
    
    .dropdown.active .dropdown-icon {
      transform: rotate(180deg);
    }
    
    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      min-width: 200px;
      margin-top: 8px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s;
      z-index: 1000;
    }
    
    .dropdown.active .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .dropdown-item {
      padding: 12px 16px;
      cursor: pointer;
      color: #333;
      transition: background 0.2s;
    }
    
    .dropdown-item:hover {
      background: #f0f0f0;
    }
    
    .dropdown-item:first-child {
      border-radius: 8px 8px 0 0;
    }
    
    .dropdown-item:last-child {
      border-radius: 0 0 8px 8px;
    }

/* ------------ mobile view title bar start--------*/

    .brand-group { display: flex; align-items: center; }
    .company-name { font-weight: bold;  font-size: 20px; margin-left: 10px; }
    
    .district-select{
      background: transparent;
      border: none;
      color: #226677;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      border-radius: 6px;
    }
    /* Desktop vs Mobile Toggle */
    .mob-search-bar { display: none; }
    
    .navbar { display: block; }

/* WHEN SCROLLING DOWN: Move the whole wrapper up by the titlebar's height */

@media (max-width: 768px) 
{
    .mob-search-bar { display: block; }
    .navbar { display: none; }
    .titlebar  { display: flex; }
}
    
    /* Mobile Layout */
    .mobile-nav-wrapper {
        width: 100%;
        z-index: 100;
        background: #224466;
    }
    
    .titlebar {
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #224466;
        height: var(--titlebar-height); 
        color: #ffffff;
        transition: transform 0.3s ease-in-out;
        top: 0;
        width: 100%;
        z-index: 102;
    }
    
    /* Sticky Search Bar */
    .mob-search-bar {
        position: -webkit-sticky; /* For Safari */
        position: sticky;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        background: #224466;
        height: var(--searchbar-height);
        padding: 15px;
        text-align: center;
        top: 0;
        transition: transform 0.3s ease-in-out;
        width: 100%;
        z-index: 102;
    }
    
    .mob-search-container {
        display: flex;
        gap: 10px;
    }
    
    .mob-search-input {
        flex-grow: 1;
        padding: 1px;
        border: 1px solid #ccc;
        border-radius: 4px;
        height: 30px;
    }
    
    .post-btn {
        background: white;
        color: #333;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }


/*-------------------------mobile view title bar end------------------------------*/
    
    /* Search Container */
    .search-container {
      flex: 1;
      background: white;
      border-radius: 8px;
      display: flex;
      align-items: center;
      padding: 4px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      position: relative;
    }
    
    .property-dropdown {
      border-right: 2px solid #e0e0e0;
      padding-right: 8px;
    }
    
    .property-btn {
      color: #333;
      font-weight: 600;
      font-size: 15px;
    }
    
    .property-btn:hover {
      background: #f5f5f5;
    }
    
    .search-input {
      flex: 1;
      border: none;
      outline: none;
      padding: 14px 16px;
      font-size: 15px;
      color: #333;
    }
    
    .search-input::placeholder {
      color: #999;
    }
    
    /* Suggestions */
    .suggestions-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      margin-top: 8px;
      max-height: 400px;
      overflow-y: auto;
      display: none;
      z-index: 999;
    }
    
    .suggestions-dropdown.show {
      display: block;
    }
    
    .suggestion-item {
      padding: 12px 16px;
      cursor: pointer;
      transition: background 0.2s;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .suggestion-item:hover {
      background: #f5f5f5;
    }
    
    .suggestion-icon {
      width: 32px;
      height: 32px;
      background: #f0f0f0;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
    }
    
    .suggestion-text {
      flex: 1;
    }
    
    .suggestion-title {
      font-weight: 600;
      color: #333;
      margin-bottom: 2px;
    }
    
    .suggestion-subtitle {
      font-size: 13px;
      color: #666;
    }
    
    /* Search Actions */
    .search-actions {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    
    .icon-btn {
      background: transparent;
      border: none;
      padding: 8px;
      cursor: pointer;
      color: #666;
      border-radius: 6px;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .icon-btn:hover {
      background: #f5f5f5;
      color: #0066cc;
    }
    
    .icon-btn.listening {
      color: #ff4444;
      animation: pulse 1.5s infinite;
    }

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
    
    .search-btn {
      background: #0066cc;
      border: none;
      padding: 10px 16px;
      cursor: pointer;
      color: white;
      border-radius: 6px;
      transition: background 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .search-btn:hover {
      background: #0051a8;
    }
    
    /* Post Property Button */
    .post-property-btn {
      background: white;
      border: none;
      padding: 10px 20px;
      cursor: pointer;
      color: #333;
      font-weight: 600;
      border-radius: 6px;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .post-property-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .free-badge {
      background: #00cc66;
      color: white;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 700;
    }
    
    /* Results Container */
    .container {
      max-width: 1400px;
      margin: 40px auto;
      padding: 0 20px;
    }
    
    .results-container {
      background: white;
      border-radius: 8px;
      padding: 24px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      min-height: 200px;
    }
    
    .result-item {
      padding: 16px;
      border-bottom: 1px solid #e0e0e0;
    }
    
    .result-item:last-child {
      border-bottom: none;
    }
    
    .result-title {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-bottom: 8px;
    }
    
    .result-description {
      color: #666;
      line-height: 1.5;
    }

/* Added loading spinner animation and no-results styles */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
    
    .loading-spinner {
      text-align: center;
      padding: 60px 20px;
    }
    
    .loading-spinner > div {
      display: inline-block;
      width: 50px;
      height: 50px;
      border: 3px solid #f3f3f3;
      border-top: 3px solid #0066cc;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    
    .loading-spinner p {
      margin-top: 15px;
      color: #666;
      font-size: 14px;
    }
    
    .no-results {
      text-align: center;
      padding: 60px 20px;
      color: #666;
    }
    
    .no-results p {
      font-size: 16px;
      margin-bottom: 15px;
    }
    
    .no-results a {
      color: #0066cc;
      text-decoration: none;
      font-weight: 600;
    }
    
    .no-results a:hover {
      text-decoration: underline;
    }
    
    /* Secondary Navigation Bar */
    .secondary-navbar {
      background: var(--top-menubar-bgColor);
      border-bottom: 3px solid #2668eb;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
      position: sticky;
      top: 60px;
      z-index: 99;
    }
    
    .secondary-navbar-content {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      align-items: center;
      gap: 32px;
    }
    
    /* Secondary Dropdown Styles */
    .secondary-dropdown {
      position: relative;
    }
    
    .secondary-dropdown-btn {
      background: transparent;
      border: none;
      color: var(--top-menubar-txtColor);
      font-size: 15px;
      font-weight: 500;
      padding: 16px 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: color 0.2s;
      position: relative;
    }
    
    .secondary-dropdown-btn-a {
      color: var(--top-menubar-txtColor);
      text-decoration: none;
      font-size: 14px;
    }
    
    .secondary-dropdown-btn:hover {
      color: #006600;
    }
    
    
    .secondary-dropdown.active .secondary-dropdown-btn {
      color: #006600;
    }
    
    .secondary-dropdown-icon {
      transition: transform 0.3s;
      color: #666;
    }
    
    .secondary-dropdown.active .secondary-dropdown-icon {
      transform: rotate(180deg);
    }
    
    /* NEW Badge */
    .new-badge {
      background: #ff9800;
      color: white;
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    
    /* Secondary Dropdown Menu */
    .secondary-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      border-radius: 6px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
      min-width: 220px;
      margin-top: 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 1000;
    
    }
    
    .secondary-dropdown.active .secondary-dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .secondary-dropdown-item {
      display: block;
      padding: 12px 18px;
      color: #333;
      text-decoration: none;
      transition: all 0.2s;
      font-size: 14px;
      border-left: 3px solid transparent;
      white-space: nowrap;
      width: 100%;
      text-align: left;
    }
    
    .secondary-dropdown-item:hover {
      background: #f8f9fa;
      border-left-color: #0066cc;
      color: #0066cc;
      padding-left: 22px;
    }
    
    .secondary-dropdown-item:first-child {
      border-radius: 6px 6px 0 0;
    }
    
    .secondary-dropdown-item:last-child {
      border-radius: 0 0 6px 6px;
    }
    
    /* Help Dropdown - Right Aligned */
    .help-dropdown {
      margin-left: auto;
    }
    
    .help-btn {
      color: #e74c3c;
      font-weight: 600;
    }
    
    .help-btn:hover {
      color: #c0392b;
    }
    
    .help-icon {
      color: #e74c3c;
    }
    
    .help-menu {
      right: 0;
      left: auto;
    }
    
    /* Bottom Navigation Bar */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: white;
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 8px 0 max(8px, env(safe-area-inset-bottom));
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      border-radius: 20px 20px 0 0;
    }
    
    .bottom-nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      background: transparent;
      border: none;
      padding: 8px 4px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      max-width: 100px;
    }
    
    .bottom-nav-item:hover {
      background: #f5f5f5;
      border-radius: 12px;
    }
    
    .bottom-nav-item:hover .bottom-nav-icon {
      color: #0066cc;
      transform: scale(1.1);
    }
    
    .bottom-nav-item:hover .bottom-nav-label {
      color: #0066cc;
      text-decoration: none;
    }
    
    .bottom-nav-item:active {
      transform: scale(0.95);
    }
    
    .bottom-nav-item a {
      text-decoration: none;
      color: #1100ff;
    }
    
    .bottom-nav-icon-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .bottom-nav-icon {
      color: #666;
      transition: all 0.3s ease;
    }
    
    .bottom-nav-label {
      font-size: 12px;
      color: #666;
      font-weight: 500;
      transition: color 0.3s ease;
      text-align: center;
    }
    
    .notification-dot {
      position: absolute;
      top: -2px;
      right: -2px;
      width: 8px;
      height: 8px;
      background: #e74c3c;
      border-radius: 50%;
      border: 2px solid white;
      animation: pulse-dot 2s infinite;
    }

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}
    
    /* Property Listings Section */
    .property-listings {
      background: white;
      border-radius: 8px;
      overflow: hidden;
    }
    
    /* Tabs Container */
    .tabs-container {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 20px;
      border-bottom: 2px solid #e0e0e0;
      background: white;
      position: relative;
    }
    
    .tab-btn {
      background: transparent;
      border: none;
      padding: 18px 0;
      font-size: 15px;
      font-weight: 600;
      color: #666;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      transition: all 0.3s;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .tab-btn:hover {
      color: #333;
    }
    
    .tab-btn.active {
      color: #e74c3c;
      border-bottom-color: #e74c3c;
    }
    
    .magic-homes-badge {
      background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
      color: white;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 700;
      font-style: italic;
    }
    
    /* Sort Container */
    .sort-container {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px;
      color: #666;
    }
    
    .sort-select {
      border: none;
      background: transparent;
      font-size: 14px;
      color: #666;
      font-weight: 500;
      cursor: pointer;
      outline: none;
      padding: 4px 0;
    }
    
    .sort-select:focus {
      color: #333;
    }
    
    /* Results Header */
    .results-header {
      padding: 24px 20px 16px;
    }
    
    .results-title {
      font-size: 24px;
      font-weight: 600;
      color: #333;
      margin: 0;
    }
    
    /* Add Localities Banner */
    .add-localities-banner {
      margin: 0 20px 20px;
      padding: 16px 20px;
      background: linear-gradient(90deg, #e8f5e9 0%, #f1f8f4 100%);
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: all 0.3s;
      color: #2e7d32;
      font-weight: 500;
    }
    
    .add-localities-banner:hover {
      background: linear-gradient(90deg, #c8e6c9 0%, #e1f0e6 100%);
      transform: translateX(4px);
    }
    
    .add-localities-banner svg {
      flex-shrink: 0;
    }
    
    .add-localities-banner .arrow-icon {
      margin-left: auto;
      color: #e74c3c;
    }
    
    /* Property Cards Container */
    .property-cards {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 0 20px 20px;
    }
    
    .expand-btn {
        display:none;
    }
    
/* Add 2 column layout for tablets and small screens */
@media (min-width: 641px) and (max-width: 1024px) {
      .property-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }
}
    
    /* Property Card */
    .property-card {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s;
      display: flex;
      gap: 20px;
      padding: 16px;
      position: relative;
    }
    
    .property-card:hover {
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      border-color: #d0d0d0;
    }
    
    /* Property Badges */
    .property-badges {
      position: absolute;
      top: 16px;
      left: 16px;
      display: flex;
      gap: 8px;
      z-index: 2;
    }
    
    .badge {
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.3px;
    }
    
    .badge-success {
      background: #00c853;
      color: white;
    }
    
    .badge-info {
      background: #00b0ff;
      color: white;
    }
    
    /* Property Image Container */
    .property-image-container {
      position: relative;
      flex-shrink: 0;
      width: 320px;
      height: 240px;
      border-radius: 8px;
      overflow: hidden;
    }
    
    .property-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s;
      cursor: pointer; /* <--- ADDED THIS LINE */
    }
    
    .property-card:hover .property-image {
      transform: scale(1.05);
    }
    
    .photos-badge {
      position: absolute;
      bottom: 12px;
      left: 12px;
      background: rgba(0, 0, 0, 0.75);
      color: white;
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 600;
    }
    
    .posted-badge {
      position: absolute;
      bottom: 12px;
      right: 12px;
      background: rgba(255, 255, 255, 0.95);
      color: #666;
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
    }
    
    /* Property Details */
    .property-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    
    /* Property Header */
    .property-header {
      display: grid;
      grid-template-columns: 1fr auto auto;
      gap: 16px;
      align-items: start;
    }
    
    .property-title-section {
      min-width: 0;
      text-align: center;
    }
    
    .property-title {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin: 0 0 5px 0;
      
    }
    
    .property-location {
      font-size: 18px;
      color: #0066cc;
      margin: 0;
    }
    
    .property-location:hover {
      color: #0051a8;
    }
    
    /* Property Actions */
    .property-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    
    .icon-action-btn {
      background: transparent;
      border: 1px solid #e0e0e0;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      color: #666;
    }
    
    .icon-action-btn:hover {
      background: #f5f5f5;
      border-color: #d0d0d0;
      color: #333;
    }
    
    .icon-action-btn:active {
      transform: scale(0.95);
    }
    
    /* Property Price Section */
    .property-price-section {
      text-align: right;
    }
    
    .property-price {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      margin: 0 0 5px 0;
      background: #127C7E;
      padding: 4px;
      border-radius: 10px;
      opacity: 1;
      text-align: right;
    }
    
    .property-price-per-sqft {
      font-size: 18px;
      color: #666;
      font-weight: 500;
    }
    
    /* Property Features */
    .property-features {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      padding: 16px 0 10px 0;
      border-top: 1px solid #f0f0f0;
      border-bottom: 1px solid #f0f0f0;
      transition: max-height 0.4s ease-out, opacity 0.3s ease;
      margin-bottom: 4px;
    }

    .feature-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    
    .feature-label {
      font-size: 11px;
      color: #999;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    
    .feature-value {
      font-size: 14px;
      color: #333;
      font-weight: 600;
    }
    
    /* Property Description */
    .property-description {
      display: flex;
      align-items: start;
      color: #666;
      font-size: 14px;
      line-height: 1.5;
    }
    
    .property-description p {
      margin: 0;
      flex: 1;
    }

    /* Property Footer */
    .property-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-top: 5px;
    }
    
    .property-contact-actions {
      display: flex;
      gap: 12px;
    }                

    /* FLOATING CALL BUTTON */
    .floating-call {
      /* Positioning */
      position: fixed;
      bottom: 100px;
      right: 30px;
      z-index: 1000;
    
      /* Look & Feel */
      background-color: #007bff;
      color: white;
      text-decoration: none;
      padding: 12px 20px;
      border-radius: 50px; /* Pill shape */
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: sans-serif;
      font-weight: bold;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      transition: transform 0.3s ease;
    }
    
    .floating-call:hover {
      transform: scale(1.1); /* Grows slightly on hover */
      background-color: #0056b3;
    }

/* Responsive: Shrink to just a circle on small screens */
@media (max-width: 720px) 
{
  .floating-call {
    /* Set specific width/height to ensure it doesn't disappear */
    width: 40px;
    height: 40px;
    padding: 0; 
    border-radius: 50%; /* Makes it a circle */
    bottom: 100px;
    right: 15px;
  }
  
  .floating-call .text {
    display: none; /* Hide text on mobile, show only icon */
  }
  .tab-btn {
  padding: 10px 0;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  }
  .sort-select {
  font-size: 12px;
  font-weight: 300;
  padding: 4px 0;
  }
  
  .property-price-section {
    text-align: center;
    order: -1;
    max-width: 180px;
    
  }

    .btn-contact-agent {
      background: #25D366;
      border: none;
      color: white;
      padding: 10px 24px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      width:50%;
    }
    
    .btn-contact-agent:hover {
      background: #128C7E;
      transform: translateY(-1px);
    }
    
    .btn-enquire {
      background: white;
      border: 2px solid #e74c3c;
      color: #e74c3c;
      padding: 10px 24px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    
    
    .btn-enquire:hover {
      background: #e74c3c;
      color: white;
    }
    
    /* Agent Info */
    .agent-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: right;
      margin-top: 5px;
    }
    
    .agent-label {
      font-size: 16px;
      color: #333;
      font-weight: 600;
    }
    
    .agent-buyers {
      font-size: 14px;
      color: #666;
    }

}

/* Responsive Design */
@media (max-width: 1024px) 
{
  .secondary-navbar-content {
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .secondary-navbar-content::-webkit-scrollbar {
    display: none;
  }

  .property-card {
    flex-direction: column;
  }

  /* Responsive image sizes for tablets and small screens */
  .property-image-container {
    width: 100%;
    height: 200px;
  }

  .property-header {
    grid-template-columns: 1fr;
  }

  .property-price-section {
    text-align: center;
    order: -1;
  }

  .property-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border-radius: 20px;
    padding: 4px;
  }

}

/* Add specific styles for 2-column layout on small screens */
@media (min-width: 641px) and (max-width: 1024px) 
{
  .property-cards {
    padding: 0 16px 16px;
  }

  .property-card {
    padding: 12px;
  }

  .property-image-container {
    height: 180px;
  }

  .property-title {
    font-size: 16px;
  }

  .property-price {
    font-size: 22px;
    text-align: center;
  }



  .feature-label {
    font-size: 10px;
  }

  .feature-value {
    font-size: 13px;
  }

  .property-description {
    font-size: 13px;
  }

  .btn-phone,
  .btn-contact-agent,
  .btn-enquire {
    padding: 8px 16px;
    font-size: 13px;
  }

  .agent-info {
    font-size: 14px;
  }
  .secondary-dropdown-menu {
      position: fixed;
      top: 100px;
      left: auto;
      background: white;
      border-radius: 12px 12px 0 0;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
      min-width: 170px;
      z-index: 100001;
    }

}
/*--------------------------------- media 768 start-------------------------*/
@media (max-width: 768px) 
{
    .navbar {
    display: none;
    }    
    
    /* Content Spacer: Prevents page content from hiding behind the bars */
    .content-spacer {
        height: calc(var(--titlebar-height) + var(--searchbar-height));
    }

  .navbar-content {
    flex-wrap: wrap;
  }

  .navbar-logo svg {
    width: 40px;
    height: 40px;
  }

  .search-container {
    width: 100%;
    order: 3;
  }

  .post-property-container {
    margin-left: auto;
  }

  .secondary-navbar {
    display: flex;
    gap: 10px;
    background: var(--top-menubar-bgColor);
    
    overflow-x: auto; /* Allows horizontal scroll on small screens */
  }

  .secondary-navbar-content {
    gap: 16px;
    padding: 0 12px;
  }

  .secondary-dropdown-btn {
    padding: 14px 0;
    font-size: 14px;
    white-space: nowrap;
    color: var(--top-menubar-txtColor);
  }
    .secondary-dropdown-menu {
      position: fixed;
      top: 150px;
      left: auto;
      background: white;
      border-radius: 12px 12px 0 0;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
      min-width: 170px;
      z-index: 100001;
    }
    
    .expand-btn {
      background: transparent;
      display: inline-flex;
      align-items: center;
      color: #111111;
      padding: 5px 15px;
      border-radius: 5px;
      border: 2px solid #ccc;
      text-decoration: none;
      font-family: Arial, sans-serif;
      transition: background-color 0.3s ease;
      font-size: 12px;
      font-weight: 400;
      text-align: center;
      cursor: pointer;
    }
    
    .expand-btn:hover {
      color: #0051a8;
    }

}

/*--------------------------------- media 768 end -------------------------*/
/* Smaller mobile screens - single column layout */
@media (max-width: 640px) 
{
  .property-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px 12px;
  }

  .property-card {
    padding: 10px;
  }

  .property-image-container {
    height: 140px;
  }

  .property-title {
    font-size: 18px;
  }

  .property-price {
    font-size: 18px;
    width: 100%;
    text-align: center;
  }

  .property-features {
      display: none;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      padding: 10px 0;
      margin-bottom: 2px;
    }

  .feature-label {
    font-size: 9px;
  }

  .feature-value {
    font-size: 12px;
  }

  .property-description {
    font-size: 12px;
  }

  .property-footer {
      display: flex;
      justify-content: space-between; /* Pushes one to the left, one to the right */
      align-items: center;           /* Vertically centers them */
      gap: 15px;
      }


  .property-contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-phone,
  .btn-contact-agent,
  .btn-enquire {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
  }

  .agent-info {
    text-align: left;
    width: 100%;
  }
}

/* Added modal styles for post property popup */
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

/* Modal Container */
.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Close Button */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f5f5f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
  z-index: 1;
}

.modal-close-btn:hover {
  background: #e0e0e0;
  color: #333;
  transform: rotate(90deg);
}

/* Modal Content */
.modal-content {
  padding: 40px 32px 32px;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 32px 0;
  text-align: left;
}

/* Form Sections */
.form-section {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.option-btn {
  flex: 1;
  min-width: 100px;
  padding: 14px 24px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.option-btn:hover {
  border-color: #0066cc;
  color: #0066cc;
  background: #f0f7ff;
}

.option-btn.selected {
  border-color: #0066cc;
  background: #0066cc;
  color: white;
  font-weight: 600;
}

/* Phone Input Group */
.phone-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.country-code-select {
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: white;
  cursor: pointer;
  outline: none;
  min-width: 120px;
  transition: border-color 0.2s;
}

.country-code-select:focus {
  border-color: #0066cc;
}

.phone-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.phone-input:focus {
  border-color: #0066cc;
}

.phone-input::placeholder {
  color: #999;
}

/* Info Message */
.info-message {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 12px 16px;
  background: #fffbf0;
  border: 1px solid #ffe7a0;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.info-message svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: #e74c3c;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Form Messages */
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Modal */
@media (max-width: 640px) {
  .modal-container {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 95vh;
  }

  .modal-content {
    padding: 32px 20px 20px;
  }

  .modal-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .button-group {
    flex-direction: column;
  }

  .option-btn {
    min-width: 100%;
  }

  .phone-input-group {
    flex-direction: column;
  }

  .country-code-select {
    min-width: 100%;
  }
}

/* Image Gallery Modal */
.image-gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10002;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.image-gallery-modal.active {
  display: flex;
  opacity: 1;
}

.image-gallery-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.gallery-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.gallery-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.gallery-main-image {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  padding: 10px;
  overflow-x: auto;
  max-width: 900px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.gallery-thumbnail {
  width: 100px;
  height: 75px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}

.gallery-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  border-color: #0066cc;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-property-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.gallery-property-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.gallery-property-location {
  color: #0066cc;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.gallery-property-price {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .image-gallery-content {
    width: 100%;
    height: 100%;
    gap: 10px;
  }
  .gallery-main-image {
    height: 60%; /* Adjusted for mobile */
    max-height: 400px;
    width: 95%;
  }

  .gallery-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2em;
  }

  .gallery-prev {
    left: 5px;
  }

  .gallery-next {
    right: 5px;
  }

  .gallery-close-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.1em;
  }

  .gallery-thumbnails {
    padding: 5px;
    gap: 8px;
    max-width: 95%;
  }

  .gallery-thumbnail {
    width: 70px; /* Smaller thumbnails */
    height: 50px;
  }

  .gallery-property-info {
    padding: 15px;
    max-width: 95%;
  }

  .gallery-property-title {
    font-size: 16px;
  }

  .gallery-property-price {
    font-size: 20px;
  }
}

/* Added pagination styles */
/* Pagination Container */
.pagination-container {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #e0e0e0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-btn {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #0066cc;
  color: #0066cc;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pagination-page {
  background: white;
  border: 1px solid #e0e0e0;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pagination-page:hover {
  background: #f5f5f5;
  border-color: #0066cc;
  color: #0066cc;
}

.pagination-page.active {
  background: #0066cc;
  border-color: #0066cc;
  color: white;
  font-weight: 600;
}

.pagination-ellipsis {
  color: #999;
  padding: 0 4px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .pagination {
    gap: 8px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .pagination-page {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .pagination-pages {
    gap: 4px;
  }
}
                                                                                                                      