/* ==========================================================================
   Plant Species Database - Responsive Stylesheet
   Mobile-first approach
   ========================================================================== */

/* Reset en basis styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --accent-color: #ff6b35;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-title em {
    font-style: italic;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-link {
    padding: 6px 10px !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.lang-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Main content */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h2 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Search section */
.search-section {
    margin: 25px 0;
    background-color: var(--bg-light);
    padding: 10px 0;
    position: sticky;
    top: 70px;
    z-index: 50;
}

.search-form {
    display: block;
    position: sticky;
    top: 80px; /* 10px extra naar beneden */
    z-index: 100;
    padding: 15px 0;
    margin: -15px 0 0 0;
}

/* Oude search-form styling alleen voor fallback zoekbalk */
.search-section .search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--bg-color);
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: background-color 0.3s;
}

.search-input:focus {
    outline: none;
    background-color: white;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.search-button {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.search-button:hover {
    background-color: #1f4520;
    transform: translateY(-1px);
}
}

.clear-search {
    padding: 12px 20px;
    background-color: var(--text-light);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.clear-search:hover {
    background-color: #555;
}

/* Filter section - oude versie (niet meer gebruikt) */
/*
.filter-section {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
*/

/* ==========================================================================
   Geïntegreerde zoekbalk met filter (Airbnb-stijl)
   ========================================================================== */

.search-filter-bar {
    display: flex;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin: 0 auto 15px auto;
}

.filter-section-wrapper {
    display: flex;
    flex-direction: column;
    padding: 8px 16px;
    border-right: 1px solid var(--border-color);
    background: #fafafa;
    min-width: 180px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-section-wrapper:hover {
    background: #f0f0f0;
}

.filter-section-wrapper select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.filter-section-wrapper .filter-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: 600;
}

.filter-value {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-value::after {
    content: '▾';
    font-size: 10px;
    color: var(--text-light);
}

.search-input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 16px;
    justify-content: center;
}

.search-input-section .filter-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: 600;
}

.search-input-section input {
    border: none;
    outline: none;
    font-size: 14px;
    padding: 0;
    background: transparent;
    color: var(--text-color);
    width: 100%;
}

.search-input-section input::placeholder {
    color: #999;
}

.search-filter-bar .search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin: 6px;
    border-radius: 24px;
}

.search-filter-bar .search-button:hover {
    background: #1f4520;
}

/* Zoekacties (wis zoekopdracht) */
.search-actions {
    text-align: center;
    margin-top: 10px;
}

.clear-search-btn {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.clear-search-btn:hover {
    background: #f0f0f0;
    color: var(--text-color);
}

/* Actieve filters tags */
.active-filters {
    margin: 0 auto 20px auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    background: #e8f5e9;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c8e6c9;
}

.filter-tag button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
}

.filter-tag button:hover {
    color: #1f4520;
}

.filter-tag .filter-remove {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
}

.filter-tag .filter-remove:hover {
    color: #1f4520;
}

/* Responsive zoekbalk */
@media (max-width: 600px) {
    .search-filter-bar {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .filter-section-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-width: auto;
    }
    
    .search-filter-bar .search-button {
        margin: 10px;
        border-radius: 20px;
    }
}

/* ==========================================================================
   Filter Tabs (voor type selectie)
   ========================================================================== */

.filter-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.filter-tab {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.filter-tab:hover {
    color: var(--primary-color);
    background: #f5f5f5;
}

.filter-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.filter-tab .count {
    background: #e0e0e0;
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 6px;
}

.filter-tab.active .count {
    background: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Plant Card Enhancements
   ========================================================================== */

/* Niet in collectie styling */
.plant-card.not-in-collection {
    opacity: 0.7;
    position: relative;
}

.plant-card.not-in-collection:hover {
    opacity: 0.9;
}

.collection-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(100, 100, 100, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
}

/* Region badges op plant cards */
.region-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.region-badge {
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.filter-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background-color: white;
}

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

/* Plants grid */
.plants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.plant-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.plant-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
    transition: opacity 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.plant-card:hover .plant-photo {
    opacity: 0.9;
}

.plant-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Placeholder voor cards zonder foto */
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #81c784;
}

.photo-placeholder svg {
    opacity: 0.5;
}

.plant-info {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plant-name {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
}

.plant-name em {
    font-style: italic;
}

.photo-count-badge {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}


.plant-type {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.plant-description {
    color: var(--text-light);
    margin: 15px 0;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    color: var(--secondary-color);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Plant detail page */
.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.plant-detail {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.plant-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.plant-header h1 {
    margin-bottom: 10px;
}

.common-name {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.plant-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.plant-type-badge {
    padding: 6px 15px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    font-weight: 500;
}

.plant-author {
    color: var(--text-light);
    font-style: italic;
}

/* External links */
.external-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.external-link svg {
    flex-shrink: 0;
}

.external-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.purchase-link {
    background-color: #28a745;
    color: white;
}

.purchase-link:hover {
    background-color: #218838;
}

.wikipedia-link {
    background-color: #f8f9fa;
    color: #212529;
    border: 2px solid #dee2e6;
}

.wikipedia-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.powo-link {
    background-color: #007bff;
    color: white;
}

.powo-link:hover {
    background-color: #0056b3;
}

/* Photo gallery */
.photo-gallery {
    margin: 30px 0;
}

.photo-total {
    font-size: 0.8em;
    color: var(--text-light);
    font-weight: normal;
}

/* Thumbnail grid */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.thumb-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Prevent dragging */
    -webkit-user-drag: none;
    user-select: none;
}

.thumb-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.7rem;
    padding: 15px 8px 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-thumb:hover .thumb-credit {
    opacity: 1;
}

/* Lightbox overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    width: 80vw;
    height: 70vh;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #000;
    /* Prevent downloading */
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.lightbox-watermark {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 10;
    text-align: right;
    line-height: 1.4;
}

.lightbox-info {
    color: white;
    margin-top: 15px;
}

.lightbox-caption {
    font-size: 1rem;
    margin-bottom: 5px;
}

.lightbox-credit {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.lightbox-counter {
    font-size: 0.8rem;
    opacity: 0.6;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 15px 20px;
    opacity: 0.8;
    transition: opacity 0.3s, background 0.3s;
    z-index: 10001;
    border-radius: 8px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 2rem;
    padding: 10px 15px;
}

.lightbox-prev {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.photo-caption {
    margin-top: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.photo-credit {
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* Plant sections */
.plant-section {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.plant-section p {
    color: var(--text-color);
    line-height: 1.8;
}

.taxonomy-list, .synonym-list {
    list-style: none;
    padding: 0;
}

.taxonomy-list li, .synonym-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.taxonomy-list li:last-child, .synonym-list li:last-child {
    border-bottom: none;
}

.section-description, .synonym-notes {
    color: var(--text-light);
    font-size: 0.9rem;
}

.back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.site-footer p {
    margin: 10px 0;
}

.footer-info {
    color: rgba(255, 255, 255, 0.8);
}

/* Tablet screens (768px en hoger) */
@media (min-width: 768px) {
    .plants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

/* Desktop screens (1024px en hoger) */
@media (min-width: 1024px) {
    .plants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .plant-photo {
        height: 280px;
    }
}

/* Mobile menu (onder 768px) */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-section {
        top: 89px;
        margin: 10px 0;
    }
    
    .search-form {
        padding: 10px 15px;
        border-radius: 30px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        width: 200px;
        padding: 10px;
        gap: 0;
        box-shadow: var(--shadow);
        border-radius: 0 0 8px 8px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 12px;
    }
    
    .language-switcher {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        margin-left: 0;
        padding-left: 0;
        padding-top: 10px;
        margin-top: 10px;
        justify-content: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .plant-detail {
        padding: 20px;
    }
    
    /* Mobile card optimalisaties */
    .plants-grid {
        gap: 12px;
        margin-top: 15px;
    }
    
    .search-form {
        padding: 8px 12px;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .search-button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .plant-photo {
        height: 180px;
    }
    
    .plant-info {
        padding: 12px 15px;
    }
    
    .plant-name {
        font-size: 1.1rem;
    }
    
    /* Horizontale compact card voor planten zonder foto */
    .plant-card.no-photo {
        display: flex;
        flex-direction: column;
    }
    
    .plant-card.no-photo .plant-photo {
        display: flex;
        height: 50px;
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
        align-items: center;
        justify-content: center;
    }
    
    .plant-card.no-photo .photo-placeholder {
        opacity: 0.3;
    }
    
    .plant-card.no-photo .photo-placeholder svg {
        width: 24px;
        height: 24px;
    }
    
    .plant-card.no-photo .plant-info {
        width: 100%;
        padding: 12px 15px;
    }
    
    .plant-card.no-photo .plant-name {
        font-size: 1rem;
    }
}

/* Mobile lightbox adjustments */
@media (max-width: 767px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .lightbox-image {
        width: 95vw;
        height: 60vh;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .lightbox-close {
        top: 5px;
        right: 10px;
        font-size: 2.5rem;
    }
    
    .lightbox-watermark {
        font-size: 0.75rem;
    }
}

/* Desktop: 4 columns for thumbnails */
@media (min-width: 1024px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Articles/Blog Styles
   ========================================================================== */

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
}

.article-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}

.article-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-summary {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article detail page */
.article-detail {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.article-header h1 {
    margin-bottom: 10px;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-body p {
    margin-bottom: 1.2em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-light);
    font-style: italic;
}

.article-body code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.article-body pre {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

.article-photos {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-photo {
    margin: 0;
}

.article-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.article-photo a:hover img {
    opacity: 0.9;
}

.article-photo figcaption {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.photo-credit {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* About page */
.about-page {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-section {
    margin-bottom: 30px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-color);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-section p {
    line-height: 1.7;
}

/* Tablet: 2 column article grid */
@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: larger article cards */
@media (min-width: 1024px) {
    .article-thumbnail {
        height: 250px;
    }
    
    .article-detail {
        padding: 40px;
    }
    
    .about-page {
        padding: 40px;
    }
}

/* Floristic Provinces */
.floristic-provinces {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.floristic-provinces h4 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.province-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.province-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.province-region {
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.province-name {
    background: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
    .province-region {
        min-width: 150px;
    }
}
