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

        html, body {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: black;
            font-family: Arial, sans-serif;
            overflow: hidden;
            border: none;
            outline: none;
        }

        /* Hide scrollbar for all browsers */
        ::-webkit-scrollbar {
            display: none;
        }

    /* Container */
    .container {
      display: grid;
      flex-direction: column;
      width: 100vw;
      min-height: 100vh;
      background: black;
    }

    /* Header */
    .header {
      position: fixed;
      top: 15px;
      left:0px;
      width: 100%;
      height: 20%;
      box-sizing: border-box;
      font-size:6px;
      display: grid-template-columns;
      justify-content: center;
      align-items: center;
      background-color: none;
      
    }

    #startStopBtn {
      width: 100%;
      padding: 14px;
      font-size:5em;
      border: none;
      border-radius: 0;
      background-color: green;
      color: #fff;
      transition: width 0.3s;
    }

    .control-row {
      display: flex;
      width: 100vw;
      gap: 5px;
      margin-top: 10px;
      justify-content: space-between;
    }

    .control-row button {
      border: none;
      border-radius: 5px;
      padding: 15px;
      font-size: 2em;
      color: #fff;
      cursor: pointer;
    }

    #startStopBtnRunning {
      width: 80%;
      padding: 14px;
      font-size:5em;
      border: none;
      border-radius: 0;
      background-color: red;
    }

    #pauseBtn {
      width: 20%;
      padding: 14px;
      font-size:5em;
      border: none;
      border-radius: 0;
      background-color: #FBBC05;
    }

/* Body & Metrics */
.body {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    grid-template-rows: repeat(2, 1fr);    /* 2 equal rows */
    gap: 8px; /* Reduced spacing for better fit */
        width: 100vw;
        height: 100vh; /* Full viewport height */
        margin-top: auto; /* Remove margin-top for full screen fit */
        margin-left: auto;
        margin-right: auto;
        padding-top: 90px;
        padding-left: 0px;
        padding-bottom: 450px;
}

/* Individual Metric Item */
.metric-row {
    display: flex;
    flex-direction: column; /* Flexbox: Label above Value */
    justify-content: center;
    align-items: center;
    padding: 15px; /* Adjusted for responsiveness */
    border-radius: 6px;
    background-color: #222;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    height: 100%; /* Ensure it takes up full space in the grid */
}

/* Hover effect */
.metric-row:hover {
    transform: scale(1.03);
    background-color: #444;
}

/* Label Style */
.metric-row .label {
    font-weight: bold;
    padding-top:10px;
    font-size: 2em; /* Responsive size */
    color:red; /* Tomato color */
    margin-bottom: 15px;
    text-align: center;
}

/* Value Style */
.metric-row .value {
    font-weight: bold;
    padding-top:30px;
    font-size: 2em; /* Adjusted for mobile */
    color: #fff;
    text-align: center;
    transition: color 0.3s ease;
}

/* Responsive Scaling for Mobile */
@media (max-width: 768px) {
    .body {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        grid-template-rows: repeat(2, 1fr); /* 2 rows */
        gap: 20px;
        width: 100vw;
        height: 100vh; /* Full viewport height */
        margin-top: auto; /* Remove margin-top for full screen fit */
        margin-left: auto;
        margin-right: auto;
        padding-top: 90px;
        padding-left:  0px;
        padding-bottom: 450px;
    }

    .metric-row {
        padding-top: 1vh; /* More compact padding for tiny screens */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%; /* Ensure the items fill height */
        background-color: #222;
        border-radius: 6px;
        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
    }

    .metric-row .label {
        font-size:6vw; /* Font size scaling to fit the screen */
        color: red;
        text-align: center;
        font-size-adjust: 0.5;
        margin-bottom: 1vw;
        line-height: 1.2em
    }

    .metric-row .value {
        font-size: 6vw; /* Font size scaling to fit the screen */
        color: white;
        text-align: center;
        line-height: 1.2em
    }
}

/* Smallest Screens */
@media (max-width: 480px) {
    .body {
        display: flex-direction;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        grid-template-rows: repeat(2, 1fr); /* 2 rows */
        gap: 10px;
        width: 100vw;
        height: 100vh; /* Full viewport height */
        margin-top: auto; /* Remove margin-top for full screen fit */
        margin-left: auto;
        margin-right: auto;
        padding-top: 90px;
        padding-left:  0;
        padding-bottom: 450px;
    }

    .metric-row {
        padding-top: 10px; /* More compact padding for tiny screens */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%; /* Ensure the items fill height */
        background-color: #222;
        border-radius: 6px;
        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
    }

    .metric-row .label {
        font-size:8vw; /* Font size scaling to fit the screen */
        color:red;
        text-align: left;
        margin-bottom: 0px;
        line-height: 0.5em
    }

    .metric-row .value {
        font-size-adjust: 1;
        font-size: 4vw; /* Font size scaling to fit the screen */
        color: white;
        text-align: center;
        line-height: 2.5em
    }
}

/* Apple Watch-like Smallest Screens (e.g., very small screens) */
@media (max-width: 320px) {
    .body {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        grid-template-rows: repeat(2, 1fr); /* 2 rows */
        gap: 10px;
        width: 100vw;
        height: 100vh; /* Full viewport height */
        margin-top: auto; /* Remove margin-top for full screen fit */
        margin-left: auto;
        margin-right: auto;
        padding-top: 50px;
        padding-left:  0px;
        padding-bottom: 450px;
    }

    .metric-row {
        padding-top: -1vw; /* More compact padding for tiny screens */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%; /* Ensure the items fill height */
        background-color: #222;
        border-radius: 6px;
        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
    }

    .metric-row .label {
        font-size:8vw; /* Font size scaling to fit the screen */
        color: red;
        text-align: center;
        margin-bottom: 0px;
        line-height: 0.5em
    }

    .metric-row .value {
        font-size-adjust: 1;
        font-size: 4vw; /* Font size scaling to fit the screen */
        color: white;
        text-align: center;
        line-height: 0.5em
    }
}

/* ========== FOOTER MODAL OVERLAY ========== */
.modalOverlay {
  position: fixed; /* Use fixed positioning to ensure it's positioned relative to the viewport */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Shift by 50% of its width and height */
  width: 100vw; /* Responsive width */
  height: 100vh; /* Adjust height for better fit */
  background: rgba(0, 0, 0, 0.7); /* Dark overlay effect */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 11000;
  box-sizing: border-box;
}

/* Show modal when active */
.modalOverlay.active {
  display: flex; /* Makes it appear when the active class is added */
}

/* Modal Content */
.modalOverlay .modal-content {
  background: #fff;
  color: #000;
  width: 100vw; /* Set width with a max limit */
  height: 100vh; /* Adjust the height for better visibility */
  overflow-y: auto; /* Ensure content can scroll if it overflows */
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  padding: 20px; /* Add padding for better spacing */
}

/* Close Button (Optional) */
.modalOverlay .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #EA4335; /* Red close button */
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modalOverlay .close-btn:hover {
  background: #d93025;
}

/* ========== BOTTOM MENU & TOGGLE ========== */
#bottomMenuContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25vh;
  background-color: black;
  z-index: 10000;
  transition: transform 0.3s ease-out, opacity 0.3s ease; /* Added opacity transition for smooth fade-in */
  transform: translateY(100%); /* Initially hidden */
  opacity: 0; /* Start with 0 opacity */
}

/* Show bottom menu when active */
#bottomMenuContainer.active {
  transform: translateY(0);
  opacity: 1; /* Fade-in effect */
}

/* Footer Styling */
.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 15px 0;
}

/* Footer Item */
.footer-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s ease;
}

.footer-item:hover {
  background-color: #333;
}

/* Footer Icons */
.footer-item span {
  font-size: 1.2em;
  color: #fff;
  display: block;
}

/* Footer Labels */
.footer-item label {
  color: #fff;
  font-size: 1em;
  display: block;
  margin-top: 5px;
  font-weight: normal;
}

/* Responsive Design */
@media (max-width: 500px) {
  .footer {
    padding: 8px 0;
  }

  .footer-item span {
    font-size: 1.8em; /* Larger size for better visibility */
  }

  .footer-item label {
    font-size: 0.9em; /* Smaller text */
  }
}

/* Show footer items with space distribution on larger screens */
@media (min-width: 768px) {
  .footer {
    padding: 20px 0;
  }

  .footer-item {
    font-size: 1.2em; /* Increase size for better readability */
  }
}

/* Fees toggle button inside bottom menu container */
#feesToggleBtn {
  width: 100%;
  padding: 5px;
  font-size: 1.4em;
  background-color: #34A853;
  color: #fff;
  border: none;
  cursor: pointer;
  display: block;
}

/* 6th Menu Icon (hamburger) */
#toggleMenuContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: black;
  z-index: 10000;
  display: flex; /* Use flex to center the icon */
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Hamburger Icon (Visible when the menu is hidden) */
#hamburgerIcon {
  font-size: 2em;
  color: white;
}

/* Helper class for hiding elements */
.hidden {
  display: none !important;
}


/* Fees section modal */
#feesSection {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(0, 0); /* Remove any translation to ensure it's in the top-left corner */
  width: 100vw;
  height: 100vh; /* Full height */
  background-color: #333;
  color: #fff;
  padding: 15px;
  border: 2px solid #0f0;
  border-radius: 10px;
  display: none;
  z-index: 10000;
  font-size: 1em;
  line-height: 1.4;
  box-sizing: border-box; /* Ensures padding doesn't affect the size */
}


/* Extra Fees Modal */
#extraFeesModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 1em;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  z-index: 10001;
}

/* Modal Content */
#extraFeesModal .modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 100vw;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Title */
#extraFeesModal .modal-content h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

/* Fee Row */
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* Fee Label */
.fee-label {
  font-size: 14px;
  line-height: 1.0;
  max-width: 180px;
}

/* Number Input Row */
.number-input {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Decrease (-) Button: Red Background, White Text */
.number-input button:first-of-type {
  background: red;
  color: white;
  width: 35px;
  height: 35px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.number-input button:first-of-type:hover {
  background: darkred;
}

/* Increase (+) Button: Green Background, White Text */
.number-input button:last-of-type {
  background: green;
  color: white;
  width: 35px;
  height: 35px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.number-input button:last-of-type:hover {
  background: darkgreen;
}

/* Number Input Field */
.number-input input {
  width: 50px;
  height: 35px;
  text-align: center;
  border: 1px solid #ccc;
  font-size: 18px;
  border-radius: 4px;
  margin: 0 5px;
}


/* Numeric Input */
.number-input input {
  color: black;
  width: 50px;
  height: 35px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 18px;
}

/* Toggle Switch (Checkbox Alternative) */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle-switch input:checked + .slider {
  background: #4CAF50;
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(24px);
}


/* Modal Buttons */
.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.modal-buttons button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

#feesConfirmBtn {
  background-color: green;
}

#feesCancelBtn {
  background-color: red;
}

/* Mobile Optimization */
@media only screen and (max-width: 480px) {
  #extraFeesModal .modal-content {
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    max-width: 100vw; /* Prevent overflow */
    max-height: 100vh; /* Prevent overflow */
    position: fixed; /* Positioning for centering */
    top: 0; /* Aligns to the top of the viewport */
    left: 0; /* Centers horizontally */
    padding: 0; /* Remove any padding */
    border-radius: 0; /* Remove border radius for a more rectangular shape */
    overflow-y: none; /* Allows scrolling if the content exceeds the screen height */
  }
}


  #extraFeesModal .modal-content h2 {
    font-size: 6vw;
    margin-bottom: 4vw;
  }

  .fee-label {
    font-size: 5vw;
    max-width: 100%;
  }

  .number-input button {
    width: 12vw;
    height: 12vw;
    font-size: 6vw;
  }

  .number-input input {
    width: 18vw;
    height: 12vw;
    font-size: 6vw;
  }

  .modal-buttons button {
    padding: 4vw 6vw;
    font-size: 6vw;
  }
}


    /* New style for modal close icon with red color */
    .modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      cursor: pointer;
      font-size: 24px;
      color: red;
      z-index: 20000;
    }

    /* Toast */
    #toast {
      visibility: hidden;
      min-width: 200px;
      margin-left: -100px;
      background-color: green;
      color: #fff;
      text-align: center;
      border-radius: 5px;
      padding: 10px;
      position: fixed;
      z-index: 1;
      left: 50%;
      bottom: 30px;
      font-size: 1em;
    }

    #toast.show {
      visibility: visible;
      animation: fadein 1s, fadeout 1s 4s;
    }

    @keyframes fadein {
      from { bottom: 0; opacity: 0; }
      to { bottom: 150px; opacity: 1; }
    }

    @keyframes fadeout {
      from { bottom: 150px; opacity: 1; }
      to { bottom: 0; opacity: 0; }
    }

/* Stop Modal */
#stopModal {
  display: none; /* Corrected from 'true' */
  position: fixed;
  top: 1vh; /* 25% below the top */
  background: white;
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 10000;
  width: 100vw; /* Adjust width for responsiveness */
  height: 90vh; /* 50% height of the viewport */
  max-width: 100vw;
  max-height:100vh; /* Prevents exceeding 50% height */
  box-sizing: border-box;
  text-align: left;
  font-size-adjust: 0.7;
  overflow-y: auto; /* Allows scrolling if content overflows */
}

/* Heading */
#stopModal h2 {
  font-size-adjust: 0.7;
  margin-top: 0;
  text-align: center;
  font-size: 1.6em;
  color: #4285F4; /* Google Blue */
}

/* Close Button */
#stopModal .close-btn {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1.6em;
  border: none;
  border-radius: 5px;
  background-color: #EA4335; /* Google Red */
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#stopModal .close-btn:hover {
  background-color: #d93025;
}

/* Detail Lines (Key-Value Pairs) */
.detail-line {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 1.6em;
  align-items: center;
}

.detail-label {
  color: #34A853; /* Google Green */
  font-weight: bold;
  flex: 0 0 auto; /* Fixed size */
}

.detail-value {
  color: #FBBC05; /* Google Yellow */
  text-align: right;
  font-weight: normal;
  flex: 1; /* Takes remaining space */
  min-width: 150px;
}

.subdetail {
  margin-left: 20px;
  color: #bbb;
  font-size: 1.6em;
  flex: 1;
  text-align: right;
}


/* Responsive Design */
@media (max-width: 768px) {
  .detail-line {
    font-size-adjust: 0.7em;
  }
  
  .detail-label, .detail-value {
    font-size-adjust: 0.7em;
  }
}


/* Payment Section */
.payment-section {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #222;
  border-radius: 6px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center all content */
}

/* Button Container */
.button-container {
  width: 100%;
  display: flex;
  justify-content: center; /* Center buttons horizontally */
  gap: 15px;
  margin-top: 20px;
}

.button-container button {
  font-size: 1.2rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  width: 100%; /* Make buttons take full width in the container */
  max-width: 200px; /* Optional: restrict max-width for a uniform look */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Save Ride Button */
.save-ride-btn {
  background-color: #34A853; /* Google Green for Save button */
  color: white;
  font-weight: bold;
  text-transform: uppercase; /* Makes the text look more button-like */
}

.save-ride-btn:hover {
  background-color: #2c8c3b; /* Darker green on hover */
  transform: scale(1.05); /* Slight hover effect */
}

/* Cancel Ride Button */
.cancel-ride-btn {
  background-color: #EA4335; /* Google Red for Cancel button */
  color: white;
  font-weight: bold;
  text-transform: uppercase; /* Makes the text look more button-like */
}

.cancel-ride-btn:hover {
  background-color: #d32f2f; /* Darker red on hover */
  transform: scale(1.05); /* Slight hover effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .payment-section {
    padding: 15px; /* Less padding on smaller screens */
  }

  .button-container {
    gap: 10px; /* Less gap for small screens */
  }

  .button-container button {
    font-size: 1rem; /* Slightly smaller font size */
    padding: 0.8rem 1.5rem; /* Adjust button padding */
    max-width: 100%; /* Let buttons take full width on small screens */
  }
}


@media (max-width: 768px) {
  /* For smaller screens */
  #stopModal {
    max-width: 100%; /* Reduce max width */
    padding: 15px; /* Reduce padding */
  }

  .detail-line {
    font-size: 1em; /* Slightly smaller font size */
  }

  .save-ride-btn,
  .cancel-ride-btn {
    font-size: 1rem; /* Adjust button font size */
    padding: 0.8rem; /* Smaller padding */
  }

@media (max-width: 500px) {
  #stopModal {
    max-width: 100%; /* Ensure modal takes up more space on very small screens */
  }

  .footer-item span {
    font-size: 2em; /* Further adjust icons for smaller screens */
  }

  .button-container button {
    font-size: 1rem;
    padding: 0.8rem; /* Adjust button padding */
  }
}

.ride-card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Changed to flex-start to align items at the top */
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  max-height: 200px; /* Set a maximum height for scrolling */
  overflow-y: auto;   /* Enable vertical scrolling */
  overflow-x: hidden; /* Hide horizontal scrollbar */
}

.ride-data {
  flex: 1;
}

.qr-code-container {
  margin-left: 20px; /* Adjust as needed */
}

.ride-card-body {
  display: none; /* Hide the body initially */
}

.ride-card-body.active {
  display: block; /* Show the body when active */
}



/* CSS for the fixed bottom totals card */
.totals-card {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ddd;
  padding: 15px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
}

.totals-card .ride-card-header {
  cursor: default;
}

.totals-card .ride-card-body {
  display: block;
}

.totals-card .ride-card-footer {
  text-align: right;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 600px) {
  .ride-card {
    margin: 10px 5px;
    padding: 10px;
  }

  .ride-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ride-card-header .toggle-icon {
    margin-top: 5px;
  }

  .totals-card {
    width: 95%;
    padding: 10px;
  }

  .ride-card-footer {
    text-align: center;
    margin-top: 10px;
  }

  /* Ensure ride cards do not overlap with the totals card */
  .ride-card-container {
    padding-bottom: 80px; /* Adjust based on the height of the totals card */
  }
}

    /* Modal close button style */
    .close-btn {
      background: #ccc;
      border: none;
      padding: 6px 10px;
      border-radius: 4px;
      cursor: pointer;
    }
/* Assuming both buttons are within the same container */
#buttonContainer {
  position: fixed;  /* Fix position at the bottom */
  display: flex;
  justify-content: space-between;
  width: 100%;
  bottom: 10px;
  left: 10px;
  z-index: 11000; /* Ensure it's on top of other elements */
}

/* Style for the refresh button */
#refreshButton {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 11000; /* Ensure it's on top of other elements */
  background-color: green;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s;
  width: 150px; /* Set a fixed width */
  height: 50px; /* Set a fixed height */
  box-sizing: border-box; /* Ensure padding is included in the width and height */
}

/* Style for tarif toggle button */
#tarifToggleBtn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 11000; /* Ensure it's on top of other elements */
  background-color: green;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s;
  width: 150px; /* Set the same fixed width */
  height: 50px; /* Set the same fixed height */
  box-sizing: border-box; /* Ensure padding is included in the width and height */
}


/* Hover effect for refresh button */
#refreshButton:hover {
  background-color: #1d4ed8;
  transform: scale(1.1);
}

#mapToggleBtn {
  position: relative; /* For positioning context */
  background-color: #4CAF50; /* Green background */
  color: white; /* White text */
  border: none; /* Remove borders */
  padding: 10px 20px; /* Top/Bottom and Left/Right padding */
  text-align: center; /* Center text */
  text-decoration: none; /* Remove underline */
  display: block; /* Make the button block-level to center it horizontally */
  font-size: 16px; /* Font size */
  margin: 10px auto; /* Automatic margin for center alignment */
  cursor: pointer; /* Pointer cursor on hover */
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
  width: 100%; /* Make the button take full width of its parent container */
  /* max-width: 300px; Remove this if you want it to be truly full-width */
}


#mapToggleBtn:hover {
  background-color: #45a049; /* Slightly darker green on hover */
  transform: scale(1.05); /* Slight scaling effect on hover */
}

#mapToggleBtn:active {
  background-color: #3e8e41; /* Even darker green when clicked */
  transform: scale(0.98); /* Slight shrinking effect when clicked */
}
#mapContainer {
  position: fixed;
  bottom: 6vh;
  left: 0;
  width: 100%;
  height: 39%;
  background-color: #f0f0f0;
  z-index: 1000;
  transition: bottom 0.3s ease-in-out;
  display: none;
}

#mapContainer.show {
  display: block;
}

.overlay-buttons {
  position: absolute;
  bottom: 25px;
  left: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-button {
  width: 80px;
  height: 80px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.marker-icon {
  position: relative;
  width: 60px; /* Adjust size as needed */
  height: 60px; /* Adjust size as needed */
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0050ff;
  transition: transform 0.5s ease-out; /* Smooth transition for rotation */
}

.heading-triangle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 20px solid #0050ff; /* The triangle points downwards */
  background: linear-gradient(135deg, #4d94ff, #0050ff); /* Gradient background */
  position: absolute;
  top: 10px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%) rotate(0deg); /* Initial rotation set to 0 degrees */
  transform-origin: center top; /* Adjust origin for proper rotation */
  transition: transform 0.5s ease-out; /* Smooth transition for rotation */
}


    
  