html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #0b1020;
    color: #f4f4f4;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #222;
    object-fit: cover;
}

header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.info-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 12px 20px;
  margin: 10px auto;
  width: 95%;
  justify-items: stretch;
  align-items: start;
}

.info-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 10000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #12162a;
  margin: 6% auto;
  padding: 20px 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  width: 80%;
  max-width: 700px;
  color: #f4f4f4;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  max-height: 80vh;
}

.modal-content h2 {
  margin-top: 0;
  color: #4cd964;
}

.modal-content h3 {
  margin-top: 16px;
  color: #9ad5ff;
}

.modal-content ul {
  margin-left: 20px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

#btnHelp {
  background: linear-gradient(180deg, #4cd964, #2ecc71);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  color: #0b1020;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(76, 217, 100, 0.3);
  transition: transform 0.1s ease-in-out, background 0.2s;
}

#btnHelp:hover {
  transform: scale(1.05);
}

#btnClear {
  background: linear-gradient(180deg, #ff6b6b, #d94a4a);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
  transition: transform 0.1s ease-in-out, background 0.2s;
}

#btnClear:hover {
  transform: scale(1.05);
}

.toggle-follow-onmap {
  position: absolute;
  top: 20px;
  left: 40%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-follow-onmap .toggle-title {
  color: #0b1020;
  font-weight: 600;
  font-size: 0.9rem;
}

.toggle-follow-onmap input[type="checkbox"] {
  display: none;
}

.toggle-follow-onmap .toggle-label {
  position: relative;
  width: 60px;
  height: 28px;
  background: linear-gradient(180deg, #555, #333);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f4f4;
  font-weight: 600;
  font-size: 0.75rem;
}

.toggle-follow-onmap input:checked + .toggle-label {
    background: linear-gradient(180deg, #4cd964, #2ecc71);
    color: #0b1020;
}

.toggle-destination {
  position: absolute;
  top: 20px;
  left: 60%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-destination .toggle-destination-title {
  color: #0b1020;
  font-weight: 600;
  font-size: 0.9rem;
}

.toggle-destination input[type="checkbox"] {
  display: none;
}

.toggle-destination .toggle-destination-label {
  position: relative;
  width: 60px;
  height: 28px;
  background: linear-gradient(180deg, #555, #333);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f4f4;
  font-weight: 600;
  font-size: 0.75rem;
}

.toggle-destination.yes input:checked + .toggle-destination-label {
  background: linear-gradient(180deg, #4cd964, #2ecc71);
  color: #0b1020;
}

.map-wrapper {
    position: relative;
    width: 95%;
    margin: 16px auto;
}

#map {
    height: 75vh;
    margin: 16px auto;
    width: 95%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.leaflet-routing-container {
    background-color: #ffffff; 
    color: #0b1020;          
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

footer {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

footer .footer-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

footer .footer-logo {
    width: 160px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

footer .footer-text {
    font-size: 0.9rem;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: 20px;
    width: 220px;
    background: #0b1020;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(-260px);
    transition: transform 0.3s ease-in-out, opacity 0.3s;
    opacity: 0;
    z-index: 9999;
    pointer-events: auto;
}

.sidebar.open { 
    transform: translateX(0); 
    opacity: 1; 
}

.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 0.85rem;
}

.toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4cd964;
}

.menu-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: none;
  color: #f4f4f4;
  font-size: 1.3rem;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-btn:hover { 
    background: rgba(255, 255, 255, 0.2); 
}
