/* MyTown App Styles - Bootstrap Enhanced */

/* Icon squares for feature sections */
.icon-square {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

/* Custom button states for score/tag selection */
.score-btn.selected {
    background-color: var(--bs-success) !important;
    color: white !important;
    border-color: var(--bs-success) !important;
}

.tag-btn.selected {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}

/* Bootstrap button check states */
.btn-check:checked + .btn-outline-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-check:checked + .btn-outline-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-check:checked + .btn-outline-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-check:checked + .btn-outline-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

.btn-check:checked + .btn-outline-success {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Map specific styles */
#map {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.leaflet-popup-tip {
    background: white;
}

/* Custom styles for recent observations list */
.recent-observation {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-observation:last-child {
    border-bottom: none;
}

.recent-observation-info {
    flex-grow: 1;
}

.recent-observation-meta {
    font-size: 0.875rem;
    color: var(--bs-text-muted);
    margin-top: 0.25rem;
}

.delete-btn {
    opacity: 0.6;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 1;
}

/* Map container responsive height */
@media (max-width: 768px) {
    #map {
        height: 300px !important;
        min-height: 300px !important;
    }
}

/* Criteria entry specific styles */
.criteria-selected {
    background-color: #e8f5e8 !important;
    border-color: #4CAF50 !important;
}

/* Vibe color coding for map legends */
.vibe-1 { background: #dc3545; }
.vibe-2 { background: #fd7e14; }
.vibe-3 { background: #ffc107; }
.vibe-4 { background: #17a2b8; }
.vibe-5 { background: #28a745; }

/* Responsive design improvements */
@media (max-width: 768px) {
    .icon-square {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Card hover effects */
.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.15s ease-in-out;
}

/* Navigation active state */
.nav-link.text-primary {
    font-weight: 600;
}

/* Header logo styling */
header .fs-4 {
    color: var(--bs-primary);
}
