/* VeluweLeeft.nl — Custom Styles */

/* Font heading class */
.font-heading {
    font-family: 'DM Serif Display', serif;
}

/* Safe area padding for iOS bottom bar */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Body padding for mobile bottom nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 4.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Base body text */
body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Category chip */
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(201, 185, 138, 0.3);
    background: white;
    color: #2C2825;
    transition: all 0.15s ease;
    min-height: 44px;
    cursor: pointer;
}

.category-chip:hover,
.category-chip.active {
    border-color: currentColor;
    background-color: currentColor;
    color: white;
}

.category-chip.active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Share button styling */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(201, 185, 138, 0.3);
    background: white;
    color: #2C2825;
    transition: all 0.15s ease;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
}

.share-btn:hover {
    border-color: #D4841C;
    color: #D4841C;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2E5339;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Leaflet map container */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(201, 185, 138, 0.3);
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E8F0EA;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2E5339;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2E5339;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Inspireer mij cards */
.inspire-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(201, 185, 138, 0.3);
    background: white;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 120px;
}

.inspire-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Horizontal scroll for mobile event sections */
.events-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.events-scroll > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 280px;
}

@media (min-width: 768px) {
    .events-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        overflow-x: visible;
    }

    .events-scroll > * {
        width: auto;
    }
}

/* Hide scrollbar but keep functionality */
.events-scroll::-webkit-scrollbar {
    display: none;
}

.events-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
