:root {
  --primary: #FF9800;
  --bg-sheet: #ffffff;
  --text-main: #333;
  --text-sub: #666;
  --shadow: 0 -2px 10px rgba(0,0,0,0.1);
  --naver-green: #03C75A;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden; /* Prevent body scroll, map handles it */
}

/* Map fills screen */
#map-container {
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* Top Bar */
.top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.search-box {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
}

.auth-btn {
  background: white;
  border: none;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* Filter Bar */
.filter-bar {
  position: absolute;
  top: 60px;
  left: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px; /* for scrollbar */
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-chip {
  background: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Bottom Sheet */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh; /* Default height */
  background: var(--bg-sheet);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow);
  z-index: 1001;
  transition: height 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bottom-sheet.expanded {
  height: 80vh; /* Increased for date picker */
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background: #ddd;
  border-radius: 3px;
  margin: 10px auto;
  flex-shrink: 0;
}

.sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
}

/* Place List Grid */
.place-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.place-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.card-header h3 { margin: 0; font-size: 18px; }

.card-info {
  display: flex;
  gap: 10px;
  color: var(--text-sub);
  font-size: 14px;
}

/* Status Badges */
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: white;
  font-weight: bold;
}
.status-relaxed { background-color: #4CAF50; }
.status-moderate { background-color: #FFC107; color: black; }
.status-crowded { background-color: #F44336; }
.status-closed { background-color: #9E9E9E; }
.status-available { background-color: #2196F3; }

/* Detail View */
.naver-btn {
    display: block;
    width: 100%;
    background-color: var(--naver-green);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin: 15px 0;
}

.date-selector {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.date-selector input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.guide-text { color: #888; margin-top: 0; }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for better button size */
  gap: 10px;
  margin-top: 10px;
}

.slot-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.slot-card:hover { background-color: #f0f0f0; border-color: #bbb; }
.slot-card .slot-time { font-weight: bold; font-size: 16px; margin-bottom: 4px; }
.slot-card .slot-info { font-size: 12px; color: #555; }
.slot-card .slot-label { display: block; margin-top: 2px; font-weight: bold; color: var(--primary); }

.slot-card.crowded { background-color: #ffebee; border-color: #ef9a9a; }
.slot-card.available { background-color: #e8f5e9; border-color: #a5d6a7; }

.secondary-btn {
  background: none;
  border: none;
  color: #007bff;
  padding: 0;
  margin-bottom: 15px;
  cursor: pointer;
  font-size: 16px;
}

.report-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.report-section select, .report-section input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  box-sizing: border-box;
}
.report-section button {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
}
