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

/* Update body background */
body {
    margin: 0;
    padding: 100;
    min-height: 50vh;
    background-image: url('../images/prefloc.jpg'); /* Adjust path according to your structure */
    background-size: cover;
    background-position: center 5%;
    background-attachment: scroll;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    position: relative;
    opacity: 0.9; /* Set opacity for the entire body */
}

/* Add an overlay to make content more readable */
body::before {
    content: '';
    position: absolute;
    top: 20;
    left: 0;
    width: 100%;
    height: 10%;
    background-color: rgba(255, 255, 255, 0.8); /* White overlay with 80% opacity */
    z-index: -1;
}

.header {
    background-color: rgba(0, 4, 255, 0.9);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 a {
    color: #ffffff;
    text-decoration: none;
}


.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.location-card {
    background-color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
}
/* Sidebar styles */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #0023e9;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    z-index: 1000;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 25px;
    color: #ffffff;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #000000;
    background-color: #c8c8c8;
}

.sidebar h1 {
    color: #ffffff;
    padding: 10px 15px;
    font-size: 24px;
}

.closebtn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Profile Icon styles */
.profile-icon-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.profile-icon {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 10px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Map Container styles */
#map {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
}

/* Chatbot styles */
.chatbot-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
}

.chatbot-popup.show {
    display: block;
}

.chatbot-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    padding: 15px;
    background: #007bff;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h2 {
    margin: 0;
    font-size: 18px;
    color: #f8f9fa;
}

.close-chatbot {
    cursor: pointer;
    font-size: 24px;
}

.chatbot-body {
    flex: 1;
    overflow: hidden;
}

.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.05);
}

.chat-button i {
    font-size: 20px;
}

/* Hide chat button when popup is shown */
.chatbot-popup.show + .chat-button {
    display: none;
}
/* Header Styles */
.header {
    background-color: #002cf1;
    color: white;
    text-align: center;
    padding: 20px 0;
    
}

.header a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.header a:hover {
    color: #fff82e;
    transform: scale(1.05);
}

/* Main Content Styles */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 20px;
    color: #0056b3;
}

/* Location List Styles */
.location-list {
    list-style: none;
    padding: 0;
}

.location-list li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.location-list h3 {
    margin-bottom: 10px;
    color: #333;
}

.location-list p {
    color: #555;
}

/* Footer Styles */
/* Footer Styles */
/* Ensure the html and body fill the viewport */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Make the body a flex container in column direction */
  body {
    display: flex;
    flex-direction: column;
    background-color: #fff;
  }
  
  /* Main content will take up available space */
  main {
    flex: 1;
  }
  
  /* Existing footer styling */
  .footer {
      text-align: center;
      padding: 10px 0;
      background-color: #525252;
      color: #ffffff;
      position: relative;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      margin-top: auto; /* This pushes footer to bottom */
  }