:root {
  /* Brand Colors */
  --renew-primary: #007bff;       /* Main brand green */
  --renew-primary-dark: #1B5E20;  /* Dark green */
  --renew-primary-light: #8BC34A; /* Light green */
  
  /* Supporting Colors */
  --renew-secondary: #009688;     /* Teal */
  --renew-accent: #FFC107;        /* Amber */
  
  /* Neutrals */
  --renew-dark: #263238;          /* Dark blue-gray */
  --renew-light: #F8F9FA;         /* Light background */
  --renew-text-dark: #212121;     /* Primary text */
  --renew-text-light: #757575;    /* Secondary text */
  
  /* Utility Colors */
  --renew-success: #4CAF50;
  --renew-warning: #FFC107;
  --renew-error: #F44336;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {

  padding-top: 70px;
  background: var(--light-bg);
  color: var(--text-dark);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--renew-primary);
  color: var(--text-white);
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--text-white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 0;
}

.nav-item i {
  margin-left: 5px;
}

/* Dropdown with full-width transition */
.dropdown {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--card-bg);
  display: none;
  padding: 30px;
  color: var(--text-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
  margin: 0 auto;
}

.dropdown.active {
  display: block;
  max-height: 600px;
  opacity: 1;
  overflow-y: auto;
}

.dropdown-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dropdown-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.dropdown-column {
  min-width: 200px;
}

.dropdown-column h4 {
  margin-bottom: 10px;
}

.dropdown-column ul {
  list-style: none;
}

.dropdown-column li {
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
}

.dropdown-column li i {
  float: right;
}

.sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--light-bg);
  padding: 15px;
  white-space: nowrap;
  border: 1px solid var(--border-color);
  z-index: 20;
}

.dropdown-column li:hover .sub-dropdown {
  display: block;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-input {
  display: none;
  padding: 5px;
  margin-left: 10px;
}

.location-select,
.contact-icon {
  cursor: pointer;
}

/* Active nav item */
.nav-item.active > a {
  color: var(--primary-green-light);
  font-weight: bold;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--dark-bg);
    display: none;
    padding: 20px;
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .nav-menu.show {
    display: flex;
    max-height: 1000px;
  }

  .nav-item > a {
    padding: 10px 0;
  }

  .dropdown {
    position: static;
    width: 100%;
    padding: 20px;
    max-height: 0;
    box-shadow: none;
  }

  .dropdown.active {
    max-height: 1000px;
  }

  .dropdown-columns {
    flex-direction: column;
  }

  .hamburger {
    display: flex;
  }

  .dropdown-column li:hover .sub-dropdown {
    position: static;
    border: none;
    background: var(--card-bg);
  
  }
}





/*location live*/
 
        






        
/* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            padding: 20px;
            display: none; /* This is the default state */
        }
        
        .modal.show {
            display: flex; /* This will override the display: none */
        }
        #hand{
           padding-right: 20px;
        }
        .modal-content {
            background-color: white;
            border-radius: 10px;
            width: 100%;
            max-width: 600px;
            max-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: modalFade 0.3s ease-out;
        }
        
        @keyframes modalFade {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
  
        
        .modal-header h2 {
            font-size: 1.5rem;
            margin: 0;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .modal-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
        }
        
        .location-info {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px;
            background-color: #E8F5E9;
            border-radius: 8px;
        }
        
        .location-icon {
            background-color: #2E7D32;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .location-details h3 {
            color: #2E7D32;
            margin-bottom: 5px;
        }
        
        .location-details p {
            color: #666;
        }
        
        /* User Location Box Styling */
        #userLocationBox {
            display: flex;
            align-items: center;
            background-color: #e3f2fd;
            border-left: 5px solid #1e88e5;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            color: #1565c0;
            box-shadow: 0 2px 8px rgba(21, 101, 192, 0.15);
        }
        
        .user-location-icon {
            background-color: #1e88e5;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .user-location-details h3 {
            color: #1565c0;
            margin-bottom: 5px;
            font-weight: 700;
            font-size: 1.1rem;
        }
        
        #userCoordinates {
            font-weight: 500;
            font-style: italic;
            color: #666;
        }
        
        .map-container {
            height: 300px;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 20px;
            background-color: #eaeaea;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-style: italic;
        }
        
        .action-buttons {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }
        
        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-primary {
            background-color: #1B5E20;
            color: white;
            flex: 1;
        }
        
        .btn-primary:hover {
            background-color: #2E7D32;
        }
        
        .btn-secondary {
            background-color: #f0f0f0;
            color: #333;
        }
        
        .btn-secondary:hover {
            background-color: #e0e0e0;
        }
        
        .notification {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #ff4d4d;
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: none;
            z-index: 1001;
            animation: notificationFade 0.5s;
            max-width: 90%;
            text-align: center;
        }
        
        @keyframes notificationFade {
            from {
                opacity: 0;
                transform: translate(-50%, 20px);
            }
            to {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }
        
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #E8F5E9;
            border-top: 5px solid #2E7D32;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        #showModalBtn {
            padding: 10px 30px;
            background: var(--gradient-green);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 6px;
            animation: breathe 2s ease-in-out infinite;
            transition: background-color 0.3s ease;
        }

        #showModalBtn:hover {
            background-color: #2E7D32;
        }
        
       @keyframes breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); /* Red */
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); /* Fades out */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); /* End clean */
    }
}

        
        @media (max-width: 600px) {
            .action-buttons {
                flex-direction: column;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .location-info, #userLocationBox {
                flex-direction: column;
                text-align: center;
            }
            
            .location-icon, .user-location-icon {
                margin-right: 0;
                margin-bottom: 10px;
            }
            
            .modal-content {
                border-radius: 6px;
                margin: 0;
                height: 90vh;
            }

            .action-buttons {
                flex-direction: column;
                gap: 10px;
            }

            .btn {
                width: 100%;
            }

            .location-info,
            #userLocationBox {
                flex-direction: column;
                text-align: center;
            }

            .location-icon,
            .user-location-icon {
                margin-right: 0;
                margin-bottom: 10px;
            }
        }

        /* Search results styling */
        .search-results {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            width: 100%;
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #ccc;
            border-top: none;
            z-index: 999;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            color: #000;
        }

        .search-result-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
        }
        
        .search-result-item:hover {
            background-color: #f7f7f7;
        }
        
        .search-result-title {
            font-weight: bold;
        }
        
        .search-result-excerpt {
            font-size: 0.85rem;
            color: #666;
        }


    









  /* Main Header Styles */
  header {
    background: var(--renew-primary);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  /* Logo */
  .logo img {
    height: 50px;
    transition: transform 0.3s;
  }
  .logo img:hover {
    transform: scale(1.05);
  }

  /* Navigation */
  .nav-menu {
    display: flex;
    gap: 25px;

  }
  .nav-item > a {
    color: white;
    font-weight: 600;
    padding: 10px 0;
    position: relative;

  }
  .nav-item > a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--renew-light);
    transition: width 0.3s;
  }
  .nav-item > a:hover:after {
    width: 100%;
  }

  /* Dropdown Menus */
  .dropdown {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    position: absolute;
    width: 250px;
    z-index: 100;
  }
  .dropdown-column h4 {
    color: var(--renew-dark);
    padding: 10px 15px;
    border-bottom: 1px solid var(--renew-border);
  }
  .dropdown ul li a {
    color: var(--renew-text-dark);
    padding: 8px 15px;
    display: block;
  }
  .dropdown ul li a:hover {
    background: var(--renew-bg-light);
    color: var(--renew-primary);
  }

  /* Icons */
  .nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .location-icon {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Mobile Menu */
  .hamburger {
    display: none;
    cursor: pointer;
  }
  .hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px;
  }

  @media (max-width: 992px) {
    .hamburger {
      display: block;
    }
    .nav-menu {
      display: none;
    }
  }

 @media (max-width: 768px) {
    .dropdown {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    position: relative;
    width: 250px;
    z-index: 100;
  }

    #hand{
           padding:0px;
        }
}
  .search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #000;
}
}
.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.search-result-item:hover {
    background-color: #f7f7f7;
}
.search-result-title {
    font-weight: bold;
}
.search-result-excerpt {
    font-size: 0.85rem;
    color: #ddd;
}