/* ==========================================================================
   PAGE-SPECIFIC STYLES
   These styles override or extend style.css for specific pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   MAP CONTAINER - Page-specific heights
   -------------------------------------------------------------------------- */

/* Index page - full screen map */
.index-page #map {
  height: 100vh;
}

/* Topics page - half height map */
.topics-page #map {
  height: 50vh;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Submit page - fixed height map */
.submit-page #map {
  height: 400px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   FORM SECTIONS - Submit page specific
   -------------------------------------------------------------------------- */

.submit-page .form-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--cream-border);
  box-shadow: var(--shadow-sm);
}

body.dark-mode .submit-page .form-section {
  background: #252540;
  border-color: #3A3A5A;
}



.submit-page .form-section h3 {
  color: var(--cream-accent);
  margin-bottom: 1rem;
  font-family: 'Raleway', sans-serif;
}

.submit-page .form-section .form-label {
  font-weight: 500;
  color: var(--cream-text-primary);
}

body.dark-mode .submit-page .form-section h3 {
  color: #e0e0e0;
}

/* Form labels in dark mode */
body.dark-mode .submit-page .form-label {
  color: #e0e0e0;
}

body.dark-mode .submit-page .text-muted {
  color: #adb5bd !important;
}

/* Month picker dark mode */
body.dark-mode .month-picker-input {
  background-color: #252540;
  border-color: #3A3A5A;
  color: #e0e0e0;
}

/* --------------------------------------------------------------------------
   ITEM DETAILS PANEL - Topics page specific
   -------------------------------------------------------------------------- */

#item-details {
  background: var(--cream-bg-secondary);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--cream-border);
}

body.dark-mode #item-details {
  background: #1A1A2E;
  border-color: #3A3A5A;
}

#item-details img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

#item-details h5 {
  color: var(--cream-accent);
  margin-bottom: 0.5rem;
}

#item-details p {
  font-size: 0.9rem;
  color: var(--cream-text-secondary);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   SUBCATEGORY DROPDOWNS
   -------------------------------------------------------------------------- */

#subcategory,
#subcategory-filter {
  opacity: 1;
  transition: opacity 0.2s;
}

#subcategory.disabled,
#subcategory-filter.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   LAYOUT UTILITIES
   -------------------------------------------------------------------------- */

/* Ensure full height for submit page */
html, body {
  margin: 0;
  padding: 0;
}

/* Main content needs padding at bottom to avoid being hidden behind fixed footer */
main {
  padding-bottom: 80px;
}

/* Location info box */
.location-info {
  background: var(--cream-bg-secondary);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.location-info i {
  margin-right: 0.5rem;
  color: var(--cream-accent);
}
