:root {
  --bg: #f7f9fb;
  --nav-start: #2c3e50;
  --nav-end: #34495e;
  --accent: #1abc9c;
  --muted: #333333;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --max-width: 1100px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: #111111; 
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

#mapgl {
  height: 100%;
}

.nav-wrap {
  background: linear-gradient(90deg, var(--nav-start), var(--nav-end));
  box-shadow: 0 6px 20px rgba(15, 23, 36, 0.18);
  border-bottom: 1px solid rgba(26, 188, 156, 0.08);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 18px;
  justify-content: center;
  position: relative;
}
.nav-center { display: flex; gap: 10px; align-items: center; }
.nav a {
  color: #ecf6f8;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all .22s ease;
  position: relative;
}
.nav a:hover { color: var(--accent); transform: translateY(-2px); }
.nav a.active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.02);
}
.nav-login {
  position: absolute;
  right: 20px;
}
.nav-login a {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(26, 188, 156, 0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-login a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 188, 156, 0.20);
}

.page.two-column {
  display: flex;
  height: 90vh;
  overflow: hidden;
}

.map-area {
  flex: 1;
  position: relative;
}

.maxLetters{
  color: rgb(93, 93, 93);
}

.map-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}



.sidebar {
  width: 450px;
  background: linear-gradient(180deg, #ffffff, #f7f9fb);
  border-left: 1px solid rgba(0,0,0,0.06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.4s ease;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.04);
}

.sidebar h2 {
  margin-top: 0;
  text-align: center;
  color: #072029;
  font-size: 1.2rem;
}

.addButton {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--accent), #16a085);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(26,188,156,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.addButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,188,156,0.24);
}

.my-events-list {
  flex: 1;
  overflow-y: auto;
}

#deleteInfoModal {
  display: none;
  position: fixed;
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.5); 
  font-family: 'Arial', sans-serif;
}

#deleteInfoModal .modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

#deleteInfoModal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  border: none;
  background: none;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
}

#deleteInfoModal .close-btn:hover {
  color: red;
}

#deleteInfoModal h2 {
  margin: 20px 0;
  font-size: 20px;
  color: #333;
}

#deleteInfoModal .cancelBtn,
#deleteInfoModal .delteBtn {
  padding: 10px 20px;
  margin: 10px 5px 0 5px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#deleteInfoModal .cancelBtn {
  background-color: #e0e0e0;
  color: #333;
}

#deleteInfoModal .cancelBtn:hover {
  background-color: #d5d5d5;
}

#deleteInfoModal .delteBtn {
  background-color: #ff4d4f;
  color: white;
}

#deleteInfoModal .delteBtn:hover {
  background-color: #e04344;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-btn:hover {
  color: red;
}

.eventCard {
  position: relative;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 20px;
  overflow: hidden;
}

.statusBadge {
  position: absolute;
  top: 10px;
  right: -5px;
  color: rgb(3, 3, 3);
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 0 0 0 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.eventCard {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}
.eventCard.editing {
  background-color: #eef9f7;
  transform: scale(1.02);
}
.eventCard h3 {
  margin: 0 0 0.5rem 0;
  color: #072029;
}

.cardButtons {
  display: flex;
  gap: 0.5rem;
}

.eventButton {
  flex: 1;
  padding: 0.45rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.eventButton.deleteButton {
  background: linear-gradient(180deg, #e74c3c, #c0392b);
  color: white;
}
.eventButton.editButton {
  background: linear-gradient(180deg, #3498db, #217dbb);
  color: white;
}
.eventButton.deleteButton:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}
.eventButton.editButton:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.voteButton {
    display: inline-block;
    padding: 8px 16px;
    font-size: 16px;
    border: 2px solid #2ac21d;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;                
    transition: all 0.2s ease;      
    width: 20%;                     
}

.voteButton:hover {
    background-color: #2ac21d;
}

.vote-container {
    display: inline-flex;      
    align-items: center;       
    gap: 15px;                 
}


.editField {
  display: block;
  width: 100%;
  margin-bottom: 0.4rem;
  padding: 0.35rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.map-marker {
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}

footer.site-footer {
  background: #0b1316;
  color: #e6f6f5;
  padding: 36px 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 18px;
  align-items: start;
}
.footer-logo {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}
.footer-p { color: #b9dcd0; margin: 0 0 12px; font-size: 14px; }
.footer-links a {
  display: block;
  color: #cfeee3;
  margin: 6px 0;
  font-size: 14px;
}
.footer-links a:hover { color: var(--accent); }
.footer-heading { font-weight: 700; margin-bottom: 8px; }
.contact-line { color: #cfeee3; margin: 6px 0; }
.contact-line.small { color: #9bd7c4; margin-top: 12px; font-size: 13px; }

.modal, .overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal[aria-hidden="false"], .overlay[aria-hidden="false"] {
  display: flex;
}
.modal-content, .overlay-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  float: right;
  cursor: pointer;
  color: black;
}
#sidebar {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: "Inter", system-ui, sans-serif;
  color: #333;
  line-height: 1.6;
  max-width: 550px;
}

#sidebar h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 10px 0 15px 0;
  color: #222;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

#sidebar p strong {
  color: #555;
  font-weight: 600;
  display: inline-block;
  width: 80px;
}

#sidebar p {
  margin: 8px 0;
  color: black;
  font-size: 0.95rem;
}
#sidebar p:last-of-type {
  margin-top: 10px;
  color: #444;
  background: #f9f9f9;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.filterBtn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filterBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  background-color: #16a085;
}
.filterModal {
  position: absolute;
  top: 64px;
  left: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.1rem 1.2rem;
  width: 240px;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 15;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: fadeIn 0.25s ease;
  transition: all 0.25s ease;
}

.filterModal.active {
  display: flex;
}

.filterModal h3 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #072029;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 6px;
  text-align: center;
  letter-spacing: 0.3px;
}

.filterModal label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #222;
  font-weight: 500;
}

.filterModal select,
.filterModal input[type="date"] {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
  background: #ffffffcc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.filterModal select:focus,
.filterModal input[type="date"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.25);
}

.filterModal .filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.filterModal button.applyBtn {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.filterModal button.applyBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,188,156,0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .page.two-column { 
    flex-direction: column; 
  }

  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    max-height: 40vh; 
    overflow-y: auto; 
  }

  .map {
    height: 60vh; 
  }

  .footer-inner { 
    grid-template-columns: 1fr 1fr; 
  }
 .nav-login{ right:12px }
   
}

@media (max-width: 640px) {
  .footer-inner { 
    grid-template-columns: 1fr; 
  }
.nav a{ padding:8px 12px; font-size:14px }
  .nav-login{ position:static; margin-left:8px; justify-self:end }
  .nav{ justify-content:flex-start; padding-left:16px; padding-right:16px }
}

.sidebar,
.eventCard,
footer,
.footer-links a,
.contact-line {
  color: white;
}

.map {
  flex: 1;
  min-height: 300px; 
}
