/* Custom styles for Baltimore Directory */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Hero gradient backgrounds */
.hero-gradient {
    background: linear-gradient(135deg, #0C2340 0%, #17A2B8 100%);
}

.baltimore-gradient {
    background: linear-gradient(135deg, #0C2340 0%, #FF6B35 50%, #9B59B6 100%);
}

/* Category hover effects */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(12, 35, 64, 0.2);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(12, 35, 64, 0.1);
    border-top-color: #0C2340;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Baltimore themed elements */
.charm-city-badge {
    background: linear-gradient(135deg, #9B59B6 0%, #FF6B35 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0C2340;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF6B35;
}

/* Map markers */
.map-marker {
    background: #FF6B35;
    border: 3px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.map-marker:hover {
    transform: scale(1.2);
}

/* Neighborhood badge colors */
.neighborhood-inner-harbor { background: #17A2B8; }
.neighborhood-fells-point { background: #FF6B35; }
.neighborhood-canton { background: #9B59B6; }
.neighborhood-federal-hill { background: #0C2340; }
.neighborhood-hampden { background: #28A745; }

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: 60vh;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Sticky filter sidebar */
.sticky-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Business card animations */
.business-card {
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Filter tags */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0C2340;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-tag:hover {
    background: #FF6B35;
    cursor: pointer;
}

/* Accordion styles */
.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
    cursor: pointer;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f9fafb;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
    padding: 1rem;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0C2340;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Star rating */
.star-rating {
    display: inline-flex;
    gap: 0.25rem;
}

.star-rating i {
    color: #FF6B35;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image lazy loading placeholder */
.lazy-image {
    background: #f3f4f6;
    min-height: 200px;
}

/* Baltimore themed decorations */
.baltimore-pattern {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(12, 35, 64, 0.05) 10px, rgba(12, 35, 64, 0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 107, 53, 0.05) 10px, rgba(255, 107, 53, 0.05) 20px);
}

/* Hover effects for links */
a {
    transition: color 0.2s ease;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* Button animations */
button,
.btn {
    transition: all 0.2s ease;
}

button:active,
.btn:active {
    transform: scale(0.98);
}

/* Grid gap fix for older browsers */
.grid {
    display: grid;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Utility classes */
.text-balance {
    text-wrap: balance;
}

.container {
    max-width: 1280px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
