/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6B4226;
    --primary-dark: #4A2E1A;
    --secondary: #D4A574;
    --accent: #C17A5B;
    --bg: #FDFCFA;
    --bg-alt: #F8F6F3;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --border: #E8E4DE;
    --shadow: rgba(107, 66, 38, 0.08);
    --shadow-lg: rgba(107, 66, 38, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.view-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Filters */
.filters {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 66, 38, 0.1);
}

.filter-groups {
    display: grid;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.filter-pill:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.clear-filters {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

/* Map View */
.map-view {
    height: calc(100vh - 200px);
    width: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.shop-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.shop-card.featured {
    border: 2px solid var(--secondary);
    position: relative;
}

.shop-card.featured::before {
    content: '⭐ Featured';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.shop-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.shop-content {
    padding: 1.5rem;
}

.shop-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.shop-address {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shop-description {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-alt);
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.shop-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 500;
}

.shop-links {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.shop-link {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    background: var(--bg-alt);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.shop-link:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-col a {
    color: var(--secondary);
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.featured-badge-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.small-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    .filters {
        top: 160px;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .view-toggle {
        flex-direction: column;
    }
    
    .view-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 2rem 0 1.5rem;
    }
    
    .logo {
        font-size: 1.75rem;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

.popup-content {
    padding: 1rem;
}

.popup-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.popup-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.popup-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.popup-link:hover {
    text-decoration: underline;
}
