/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Custom Leaflet Map Styles - Inline to fix Propshaft @import issues */

/* Custom styles for Leaflet OS Map */

.property-marker {
  background: transparent !important;
  border: none !important;
}

.property-marker .fa-home {
  font-size: 12px;
}

/* Custom popup styling */
.leaflet-popup-content {
  margin: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.leaflet-popup-content strong {
  color: #1e40af;
}

/* Ensure map container has proper dimensions */
.os-leaflet-map-container,
[data-os-leaflet-map-target="map"] {
  position: relative;
  width: 100%;
  height: 20rem;
  min-height: 20rem;
}

/* Attribution styling */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8) !important;
  font-size: 11px !important;
}

/* Zoom control styling */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
  font-size: 16px !important;
  font-weight: bold !important;
}

.leaflet-control-zoom a:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

/* Building overlay styles */
.building-outline {
  cursor: pointer;
}

.building-part {
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .os-leaflet-map-container {
    height: 16rem;
  }
  
  .property-marker {
    transform: scale(0.8);
  }
}

/* Kanban placeholder appear animation */
@keyframes kanban-placeholder-appear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.kanban-placeholder-appear {
  animation: kanban-placeholder-appear 0.3s ease-out forwards;
}
