/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #0d0d0d;
  color: #f0ece4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== NAVBAR ===== */
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background-color: #111111;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
  z-index: 100;
}

#navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

#navbar .logo-icon {
  font-size: 22px;
}

#navbar .logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f0ece4;
}

#navbar .logo-text span {
  color: #c9a84c;
}

#navbar .tagline {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.submit-link {
  background: #c9a84c;
  color: #0d0d0d;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}

.submit-link:hover {
  background: #ddbb5e;
}

.nav-username {
  font-size: 13px;
  color: #aaa;
}

.nav-login-link {
  font-size: 13px;
  color: #c9a84c;
  text-decoration: none;
  font-weight: 600;
}

.nav-login-link:hover {
  text-decoration: underline;
}

.logout-btn {
  background: none;
  border: 1px solid #444;
  color: #888;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  border-color: #c9a84c;
  color: #c9a84c;
}

/* ===== MAIN LAYOUT ===== */
#app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ===== EVENT PANEL (LEFT) ===== */
#event-panel {
  width: 360px;
  min-width: 300px;
  background-color: #141414;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

#panel-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
}

#panel-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ===== FILTER BAR ===== */
#filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: #1e1e1e;
  border: 1px solid #333;
  color: #aaa;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #c9a84c;
  color: #c9a84c;
}

.filter-btn.active {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #0d0d0d;
  font-weight: 600;
}

/* ===== EVENT LIST ===== */
#event-list {
  overflow-y: auto;
  flex: 1;
  padding: 12px 16px;
}

#event-list::-webkit-scrollbar {
  width: 5px;
}

#event-list::-webkit-scrollbar-track {
  background: #141414;
}

#event-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

/* ===== EVENT CARDS ===== */
.event-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #c9a84c;
  opacity: 0;
  transition: opacity 0.2s;
}

.event-card:hover {
  border-color: #c9a84c44;
  background: #1f1f1f;
  transform: translateY(-1px);
}

.event-card:hover::before {
  opacity: 1;
}

.event-card.active {
  border-color: #c9a84c;
  background: #1f1c14;
}

.event-card.active::before {
  opacity: 1;
}

.event-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9a84c;
  margin-bottom: 6px;
  font-weight: 600;
}

.event-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #f0ece4;
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-card-meta span {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card-meta .icon {
  font-size: 13px;
}

/* ===== MAP (RIGHT) ===== */
#map {
  flex: 1;
  height: 100%;
}

/* ===== GOOGLE MAPS INFO WINDOW OVERRIDES ===== */
.gm-style .gm-style-iw-c {
  background-color: #1a1a1a !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
  padding: 0 !important;
  border: none !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}

.gm-style .gm-style-iw-t::after {
  background: #1a1a1a !important;
}

.gm-style .gm-style-iw-tc::after {
  background: #1a1a1a !important;
}

/* Hide the default close button */
.gm-style .gm-style-iw-c button.gm-ui-hover-effect {
  display: none !important;
}

/* Newer Maps versions add a white header row to info windows — remove it */
.gm-style .gm-style-iw-chr {
  display: none !important;
}

.gm-style .gm-style-iw-ch {
  display: none !important;
}

.gm-style .gm-style-iw {
  background-color: #1a1a1a !important;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  #app-body {
    flex-direction: column;
    overflow: auto;
  }

  #event-panel {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
    max-height: 50vh;
  }

  #map {
    height: 50vh;
    flex: none;
  }

  #navbar .tagline {
    display: none;
  }
}
