/* 
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: "redaction-35", sans-serif;
  font-weight: 400;
  font-style: normal;
  background: #eeeeee;
}

header {
  padding: 1rem;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-style: italic;
  padding: 1rem 1rem;  
  font-size: 1.2rem;

}

.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 300px;
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-filters {
  padding: 0.75rem;
  border-bottom: 1px solid #ccc;
  font-weight: 700;
}

.sidebar-filters button {
  margin: 0.2rem;
  cursor: pointer;
}

.listings {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.listing-card {
  border: 1px solid #ccc;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

#map {
  flex: 1;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.overlay.open {
  display: flex;
}

.panel {
  background: #eeeeee;
  padding: 1.5rem;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.panel h2 {
  margin-bottom: 1rem;
  font-weight: 700;
  font-style: italic;

}

.close-btn {
  float: right;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.radio-row {
  display: flex;
  gap: 1rem;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.submit-btn {
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.auth-note {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

#landing {
  position: fixed;
  inset: 0;
  background: #eeeeee;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#landing.hidden {
  display: none;
}

#landing-logo {
  font-weight: 700;
  font-style: italic;
}
#open-post-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

#landing-logo-img {
  width: 180px;
  margin-bottom: 1rem;
} */

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

/* ─── BODY ───────────────────────────────────────────────────────────────────── */
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: "redaction-35", sans-serif;
  font-weight: 400;
  background: #4a3050;
  color: #e8dff0;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────────── */
header {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid #6a4a7a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: #3a2040;
}

#logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #e8dff0;
}

#logo img {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 4px;
}

#open-post-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-family: "redaction-35", sans-serif;
  font-style: italic;
  background: #ac8e22;
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
}

#open-post-btn:hover {
  background: #b8961f;
}

/* ─── MAIN LAYOUT ────────────────────────────────────────────────────────────── */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─── SIDEBAR ────────────────────────────────────────────────────────────────── */
.sidebar {
  width: 280px;
  border-right: 1px solid #6a4a7a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  background: #3a2040;
}

.sidebar-filters {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #6a4a7a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #c9b8d4;
}

.sidebar-filters button {
  margin: 0.2rem 0.15rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-family: "redaction-35", sans-serif;
  background: transparent;
  border: 1px solid #7a5a8a;
  cursor: pointer;
  letter-spacing: 0.03em;
  color: #c9b8d4;
}

.sidebar-filters button:hover {
  background: #ac8e22;
  color: #1a1a1a;
  border-color: #ac8e22;
}

.listings {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.listings::-webkit-scrollbar {
  width: 3px;
}

.listings::-webkit-scrollbar-thumb {
  background: #6a4a7a;
}

/* ─── LISTING CARDS ──────────────────────────────────────────────────────────── */
.listing-card {
  border: 1px solid #6a4a7a;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  background: #4a3050;
  transition: background 0.15s;
}

.listing-card:hover {
  background: #5c3d6b;
}

.listing-card strong {
  font-size: 0.95rem;
  font-style: italic;
  color: #e8dff0;
}

.listing-card small {
  font-size: 0.72rem;
  color: #c9b8d4;
  letter-spacing: 0.02em;
}

/* ─── MAP ────────────────────────────────────────────────────────────────────── */
#map {
  flex: 1;
}

/* ─── OVERLAYS ───────────────────────────────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 25, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.overlay.open {
  display: flex;
}

/* ─── PANEL ──────────────────────────────────────────────────────────────────── */
.panel {
  background:  #4a3050;
  padding: 2rem;
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #3a2040;
}

.panel h2 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-style: italic;
  font-size: 1.4rem;
  color: #e8dff0;
}

.close-btn {
  float: right;
  cursor: pointer;
  font-size: 0.8rem;
  background: none;
  border: none;
  font-family: "redaction-35", sans-serif;
  color: #9a7aaa;
}

.close-btn:hover {
  color: #e8dff0;
}

/* ─── FORM ───────────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #c9b8d4;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #7a5a8a;
  font-size: 0.88rem;
  font-family: "redaction-35", sans-serif;
  background: #5c3d6b;
  color: #e8dff0;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9a7aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ac8e22;
  background: #6a4a7a;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.radio-row {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #c9b8d4;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #c9b8d4;
}

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-family: "redaction-35", sans-serif;
  font-style: italic;
  background: #ac8e22;
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

.submit-btn:hover {
  background: #b8961f;
}

/* ─── LANDING ────────────────────────────────────────────────────────────────── */
#landing {
  position: fixed;
  inset: 0;
  background: #4a3050;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#landing.hidden {
  display: none;
}

#landing-inner {
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#landing-logo-img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  filter: drop-shadow(0px 4px 16px rgba(0,0,0,0.4));
  margin-bottom: 0.75rem;
}

#landing-desc {
  font-size: 1rem;
  color: #c9b8d4;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  white-space: nowrap;
}

#landing .form-group {
  width: 100%;
  text-align: left;
}

#landing .form-group label {
  color: #c9b8d4;
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

#landing .form-group input {
  background: #5c3d6b;
  border-color: #7a5a8a;
  color: #eeeeee;
}

#landing .form-group input::placeholder {
  color: #9a7aaa;
}

#landing-btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.9rem;
  font-family: "redaction-35", sans-serif;
  font-style: italic;
  background: #ac8e22;
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

#landing-btn:hover {
  background: #b8961f;
}

/* ─── DETAIL PANEL ───────────────────────────────────────────────────────────── */
#detail-body h3 {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #e8dff0;
}

#detail-body p {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
  color: #c9b8d4;
}

#detail-body img {
  border: 1px solid #6a4a7a;
}

#contact-btn {
  padding: 0.6rem 1.2rem;
  font-family: "redaction-35", sans-serif;
  font-style: italic;
  background: #ac8e22;
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 0.85rem;
}

#contact-btn:hover {
  background: #b8961f;
}

/* ─── LOCATION PREVIEW ───────────────────────────────────────────────────────── */
#location-preview {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #9a7aaa;
  font-style: italic;
}

#map {
  flex: 1;
  position: relative;
}

#map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(74, 48, 80, 0.35);
  pointer-events: none;
  z-index: 400;
}

#open-post-btn {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-family: "redaction-35", sans-serif;
  font-style: italic;
  background: #ac8e22;
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.listing-card {
  border: 1px solid #7a5a8a;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  background:#5c3d6b;
  transition: background 0.15s;
}

.listing-card:hover {
  background: #7a5a8a;
}

#logo {
    color:#b8961f;
}

#map-legend {
  position: absolute;
  bottom: 2rem;
  right: 1rem;
  z-index: 500;
  background: rgba(58, 32, 64, 0.85);
  border: 1px solid #6a4a7a;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  color: #c9b8d4;
  letter-spacing: 0.03em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background: #5c3d6b;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: #ac8e22;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 0.72rem;
  color: #9a7aaa;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.filter-divider {
  border-top: 1px solid #6a4a7a;
  margin: 0.5rem 0;
}

.type-btn {
  margin: 0.2rem 0.15rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-family: "redaction-35", sans-serif;
  background: transparent;
  border: 1px solid #7a5a8a;
  cursor: pointer;
  letter-spacing: 0.03em;
  color: #c9b8d4;
}

.type-btn:hover {
  background: #ac8e22;
  color: #1a1a1a;
  border-color: #ac8e22;
}

.active-type {
  background: #ac8e22;
  color: #1a1a1a;
  border-color: #ac8e22;
}

.active-type {
  background: #ac8e22 !important;
  color: #1a1a1a !important;
  border-color: #ac8e22 !important;
}

.active-type {
  background: #ac8e22 !important;
  color: #1a1a1a !important;
  border-color: #ac8e22 !important;
}