/**
 * Jouw Vakantiehuisje - Custom Theme Styles
 *
 * Complements Tailwind CSS with custom utilities and overrides.
 *
 * @package JouwVakantiehuisje
 * @version 1.0.0
 */

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

::selection {
    background-color: rgba(188, 226, 40, 0.4);
    color: #ffffff;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

/* Header shadow on scroll */
#site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Dropdown animation */
[data-dropdown-panel] {
    transform: translateY(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

[data-dropdown]:hover [data-dropdown-panel] {
    transform: translateY(0);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 80vh;
    overflow-y: auto;
}

/* Mobile accordion arrow rotation */
[data-mobile-accordion] button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.jvh-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.jvh-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.jvh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.jvh-btn-primary {
    background-color: #ffffff;
    color: #FFFFFF;
}

.jvh-btn-primary:hover {
    background-color: #006D32;
}

.jvh-btn-secondary {
    background-color: #FFFFFF;
    color: #ffffff;
    border: 1px solid #E8E5DD;
}

.jvh-btn-secondary:hover {
    background-color: #FAFAF5;
    border-color: #ffffff;
}

.jvh-btn-accent {
    background-color: #D4A843;
    color: #FFFFFF;
}

.jvh-btn-accent:hover {
    background-color: #C49A38;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.jvh-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: #FFFFFF;
    border: 1px solid #E8E5DD;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #1A1A1A;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jvh-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 75, 35, 0.12);
}

.jvh-input::placeholder {
    color: #6B7280;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */

#search-bar {
    transition: all 0.3s ease;
}

#search-bar.open {
    display: block;
}

/* ==========================================================================
   Leaflet Map Overrides
   ========================================================================== */

.leaflet-container {
    border-radius: 12px;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1A1A1A;
}

/* ==========================================================================
   WordPress Core Overrides
   ========================================================================== */

/* Pagination */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a {
    color: #1A1A1A;
    background: #FFFFFF;
    border: 1px solid #E8E5DD;
}

.nav-links a:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: #FAFAF5;
}

.nav-links .current {
    color: #FFFFFF;
    background: #004B23;
    border: 1px solid #004B23;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aspect ratio fallback */
.aspect-3\/2 {
    aspect-ratio: 3 / 2;
}

/* Custom scrollbar for dropdowns */
[data-dropdown-panel] > div::-webkit-scrollbar {
    width: 6px;
}

[data-dropdown-panel] > div::-webkit-scrollbar-track {
    background: transparent;
}

[data-dropdown-panel] > div::-webkit-scrollbar-thumb {
    background: #E8E5DD;
    border-radius: 3px;
}

[data-dropdown-panel] > div::-webkit-scrollbar-thumb:hover {
    background: #D4A843;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    #site-header,
    footer,
    .no-print {
        display: none;
    }

    body {
        background: #FFFFFF;
        color: #000000;
    }

    .jvh-card {
        box-shadow: none;
        border: 1px solid #E8E5DD;
        break-inside: avoid;
    }
}

/* ==========================================================================
   Nature-Themed Decorative Patterns
   ========================================================================== */

/* Subtle leaf pattern background */
.jvh-pattern-leaves {
    background-color: #faf9f7;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(20, 72, 52, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 72, 52, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(20, 72, 52, 0.03) 0%, transparent 50%);
}

/* Tree silhouette pattern */
.jvh-pattern-forest {
    background-color: #f7f5f1;
    background-image:
        linear-gradient(to right, transparent 0%, transparent 8%, rgba(20, 72, 52, 0.02) 8%, rgba(20, 72, 52, 0.02) 9%, transparent 9%, transparent 100%),
        linear-gradient(to right, transparent 0%, transparent 25%, rgba(20, 72, 52, 0.015) 25%, rgba(20, 72, 52, 0.015) 26%, transparent 26%, transparent 100%),
        linear-gradient(to right, transparent 0%, transparent 55%, rgba(20, 72, 52, 0.02) 55%, rgba(20, 72, 52, 0.02) 56%, transparent 56%, transparent 100%),
        linear-gradient(to right, transparent 0%, transparent 78%, rgba(20, 72, 52, 0.015) 78%, rgba(20, 72, 52, 0.015) 79%, transparent 79%, transparent 100%);
}

/* Forest-themed gradient overlay for hero sections */
.jvh-gradient-hero {
    background: linear-gradient(
        135deg,
        rgba(20, 72, 52, 0.92) 0%,
        rgba(20, 72, 52, 0.78) 40%,
        rgba(26, 107, 58, 0.82) 70%,
        rgba(20, 72, 52, 0.88) 100%
    );
}

/* Warm sand gradient for sections */
.jvh-gradient-sand {
    background: linear-gradient(
        180deg,
        #f7f5f1 0%,
        #f0ebe3 50%,
        #f7f5f1 100%
    );
}

/* Green accent border animation */
.jvh-border-accent {
    position: relative;
    overflow: hidden;
}

.jvh-border-accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #144834, #1a6b3a, #bce228);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jvh-border-accent:hover::before {
    opacity: 1;
}

/* ==========================================================================
   FAQ Accordion Enhanced
   ========================================================================== */

.jvh-faq-item {
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.jvh-faq-item:hover,
.jvh-faq-item[open] {
    border-left-color: #144834;
}

.jvh-faq-item[open] {
    background-color: #faf9f7;
}

/* ==========================================================================
   Climate Chart Enhanced
   ========================================================================== */

.jvh-climate-bar {
    transition: height 0.5s ease, opacity 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.jvh-climate-bar:hover {
    opacity: 0.85;
    transform: scaleY(1.05);
    transform-origin: bottom;
}

/* ==========================================================================
   Combination Hero Banner
   ========================================================================== */

.jvh-combo-hero {
    background: linear-gradient(
        135deg,
        rgba(20, 72, 52, 0.06) 0%,
        rgba(20, 72, 52, 0.02) 40%,
        rgba(188, 226, 40, 0.04) 70%,
        rgba(20, 72, 52, 0.06) 100%
    );
    border-bottom: 1px solid rgba(20, 72, 52, 0.08);
}
