*{
    box-sizing:border-box;
}

:root{
    --green:#153b22;
    --green-light:#e8f1e8;
    --green-soft:#f4f7f4;
    --red:#b71c1c;
    --cream:#f5f7f4;
    --text:#1f2a1f;
    --muted:#5f6d5f;
    --border:#dde5dd;
    --white:#ffffff;
    --shadow:0 4px 12px rgba(0,0,0,0.06);
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:var(--cream);
    color:var(--text);
    line-height:1.5;
}

a{
    color:var(--green);
}

.wrap{
    max-width:1200px;
    margin:0 auto;
}

/* HEADER */

.topbar{
    background:var(--green);
    border-bottom:4px solid var(--red);
    padding:18px 20px;
}

.brand{
    color:#fff;
    font-size:32px;
    font-weight:900;
    line-height:1.1;
}

.brand a{
    color:#fff;
    text-decoration:none;
}

.tagline{
    color:#fff;
    font-size:15px;
    font-weight:600;
    opacity:.95;
    margin-top:4px;
}

/* LAYOUT */

.content{
    padding:35px 20px;
}

.card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:22px;
    box-shadow:var(--shadow);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:18px;
}

.meta,
.small{
    color:var(--muted);
    font-size:15px;
}

.small{
    font-size:13px;
}

.notice{
    background:#fff8dc;
    border-left:5px solid #d6a400;
    padding:16px;
    border-radius:8px;
    margin:20px 0;
}

/* BUTTONS */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:13px 22px;
    border-radius:10px;
    background:var(--green);
    color:#fff;
    border:0;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
}

.btn:hover{
    background:#1d512f;
    text-decoration:none;
}

.btn-light{
    background:#eef3ee;
    color:var(--green);
}

.btn-light:hover{
    background:#dfe8df;
}

.btn-danger{
    background:#c62828;
    color:#fff;
    border:1px solid #c62828;
}

.btn-danger:hover{
    background:#a91f1f;
    border-color:#a91f1f;
}

/* FORMS */

.form-row{
    margin-bottom:16px;
}

.form-row label{
    display:block;
    font-weight:800;
    color:var(--green);
    margin-bottom:6px;
}

.form-row input,
.form-row textarea,
.form-row select{
    width:100%;
    padding:12px;
    border:1px solid #ccd5cc;
    border-radius:8px;
    font-size:16px;
    background:#fff;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus{
    outline:none;
    border-color:var(--green);
}

/* HERO / FRONT PAGE */

.hero,
.search-hero{
    background:#fff;
    padding:45px 20px;
    border-bottom:1px solid var(--border);
}

.hero h1,
.search-hero h1{
    margin:0 0 10px;
    font-size:54px;
    line-height:1.1;
    color:var(--green);
    font-weight:900;
}

.hero p,
.search-hero p{
    margin:0 0 25px;
    font-size:20px;
    color:#4d5a4d;
}

.finder-form{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:24px;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.main-search{
    display:flex;
    gap:14px;
    margin-bottom:22px;
}

.main-search input{
    flex:1;
    padding:18px 22px;
    font-size:21px;
    border:2px solid #d6dfd6;
    border-radius:14px;
}

.main-search input:focus{
    outline:none;
    border-color:var(--green);
}

.quick-filters{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:20px;
}

.quick-filters label{
    display:flex;
    align-items:center;
    gap:8px;
    padding:11px 18px;
    border-radius:999px;
    background:var(--green-soft);
    border:1px solid #dbe3db;
    cursor:pointer;
    font-weight:700;
}

.quick-filters label:hover{
    background:var(--green-light);
}

.quick-filters input{
    transform:scale(1.12);
}

.advanced-filters{
    margin-top:18px;
    border-top:1px solid #e4ebe4;
    padding-top:20px;
}

.advanced-filters summary{
    cursor:pointer;
    font-size:19px;
    font-weight:900;
    color:var(--green);
    margin-bottom:18px;
}

.filter-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:20px;
}

.secondary-filters{
    margin-top:20px;
}

.filter-actions{
    display:flex;
    gap:12px;
    margin-top:24px;
}

/* RESULTS */

.results-header{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:18px;
    margin-bottom:25px;
    flex-wrap:wrap;
}

.results-header h2{
    margin:0;
    font-size:36px;
    color:var(--green);
}

.result{
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:18px;
}

.result:hover{
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.result h3{
    margin:0 0 10px;
    font-size:24px;
    line-height:1.2;
}

.result h3 a{
    color:var(--green);
    text-decoration:none;
}

/* PLANT CARDS */

.plant-results-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(290px,1fr));
    gap:24px;
}

.plant-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    transition:.2s;
}

.plant-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.plant-card-image{
    display:block;
    background:#f3f6f3;
}

.plant-card-image img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    display:block;
}

.plant-card-body{
    padding:18px;
}

.plant-card h3{
    margin:0 0 8px;
    font-size:23px;
    line-height:1.25;
}

.plant-card h3 a{
    color:var(--green);
    text-decoration:none;
}

.plant-card-detail{
    margin:10px 0;
    color:#546154;
    font-size:15px;
}

.plant-icons{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    font-size:22px;
    margin:16px 0;
}

.plant-icons span{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#eef5ee;
}

/* BADGES */

.badge{
    display:inline-block;
    margin-top:12px;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
}

.status-green{
    background:#dff3df;
    color:#155724;
}

.status-amber{
    background:#fff3cd;
    color:#856404;
}

/* PAGINATION */

.pagination{
    margin:45px 0;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
}

.pagination a,
.pagination span{
    min-width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#fff;
    border:1px solid #d7dfd7;
    font-weight:800;
    color:var(--green);
    text-decoration:none;
    padding:0 12px;
}

.pagination a:hover{
    background:#eef5ee;
}

.pagination .current{
    background:var(--green);
    color:#fff;
}

/* PLANT PAGE */

.plant-title{
    font-size:44px;
    margin:0 0 20px;
    color:var(--green);
}

.plant-main-image{
    width:100%;
    max-width:520px;
    max-height:420px;
    object-fit:cover;
    display:block;
    border-radius:16px;
    margin:0 0 22px;
    box-shadow:var(--shadow);
}

.info-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

.info-table th{
    width:220px;
    background:#eef4ee;
    text-align:left;
    padding:14px;
}

.info-table td{
    padding:14px;
}

.info-table th,
.info-table td{
    border-bottom:1px solid var(--border);
}

/* CATEGORIES */

.category-grid{
    margin-bottom:25px;
}

.category-card{
    display:block;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:18px;
    font-size:20px;
    font-weight:800;
    color:var(--green);
    text-decoration:none;
    box-shadow:0 2px 4px rgba(0,0,0,.04);
}

.category-card:hover{
    background:var(--green-light);
    text-decoration:none;
}

.category-pill{
    display:inline-block;
    margin:3px 5px 3px 0;
    padding:6px 11px;
    border-radius:999px;
    background:var(--green-light);
    color:var(--green);
    font-size:13px;
    font-weight:800;
    text-decoration:none;
}

/* SUGGEST EDIT */

.suggestion-intro{
    background:#eef5ee;
    border:1px solid #d5e3d5;
    border-radius:16px;
    padding:22px;
    margin-bottom:24px;
}

.suggestion-card{
    background:#fff;
    border:2px solid #d9e3d9;
    border-radius:18px;
    padding:24px;
    margin:0 0 24px;
    box-shadow:var(--shadow);
}

.suggestion-card:hover{
    border-color:var(--green);
}

.suggestion-card h3{
    margin:0 0 16px;
    padding-bottom:10px;
    border-bottom:1px solid #e3ebe3;
    color:var(--green);
    font-size:24px;
}

.current-value{
    background:#eef5ee;
    border-left:6px solid var(--green);
    border-radius:12px;
    padding:14px 16px;
    margin:0 0 16px;
    font-size:16px;
}

.current-label{
    display:block;
    font-weight:900;
    color:var(--green);
    margin-bottom:5px;
    text-transform:uppercase;
    font-size:13px;
}

.suggestion-submit{
    width:100%;
    font-size:18px;
    padding:16px 22px;
}

/* FOOTER */

.site-footer{
    background:#153b22;
    color:#ffffff;
    margin-top:50px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:30px;
    padding:38px 20px;
}

.footer-section h3{
    margin:0 0 12px;
    color:#ffffff;
    font-size:20px;
}

.footer-section p{
    margin:0;
    color:#dce8dc;
}

.footer-section a{
    display:block;
    color:#dce8dc;
    text-decoration:none;
    margin:7px 0;
    font-weight:600;
}

.footer-section a:hover{
    color:#ffffff;
    text-decoration:underline;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.18);
    padding:15px 20px;
    color:#dce8dc;
    font-size:14px;
}

/* PWA INSTALL FLOATING CARD */

.pwa-install-card{
    position:fixed;
    left:14px;
    right:14px;
    bottom:18px;
    z-index:9999;
    background:linear-gradient(135deg,#7a1738,#a3264d);
    color:#fff;
    border-radius:20px;
    padding:16px;
    box-shadow:0 10px 35px rgba(0,0,0,.28);
    animation:pwaSlideUp .28s ease;
}

@keyframes pwaSlideUp{
    from{
        transform:translateY(25px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

.pwa-card-main{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding-right:30px;
}

.pwa-logo{
    width:54px;
    height:54px;
    border-radius:14px;
    background:#fff;
    padding:4px;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
    flex-shrink:0;
}

.pwa-card-text strong{
    display:block;
    font-size:17px;
    line-height:1.25;
    margin-bottom:4px;
}

.pwa-card-text span{
    display:block;
    font-size:13px;
    line-height:1.35;
    opacity:.95;
}

.pwa-ios-help{
    margin-top:10px;
    background:rgba(255,255,255,.15);
    border:1px solid rgba(255,255,255,.22);
    border-radius:12px;
    padding:10px;
    font-size:13px;
    line-height:1.35;
}

.pwa-install-button{
    width:100%;
    margin-top:14px;
    border:0;
    border-radius:999px;
    background:#fff;
    color:#8b1e3f;
    padding:12px 16px;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
}

.pwa-close-button{
    position:absolute;
    top:10px;
    right:12px;
    width:30px;
    height:30px;
    border-radius:50%;
    border:0;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:24px;
    line-height:26px;
    cursor:pointer;
}

@media(min-width:769px){
    .pwa-install-card{
        display:none !important;
    }
}

/* MOBILE */

@media(max-width:900px){
    .main-search{
        flex-direction:column;
    }

    .main-search .btn,
    .filter-actions .btn{
        width:100%;
    }

    .filter-actions{
        flex-direction:column;
    }

    .results-header{
        display:block;
    }

    .hero h1,
    .search-hero h1{
        font-size:38px;
    }

    .hero p,
    .search-hero p{
        font-size:17px;
    }
}

@media(max-width:768px){
    .topbar{
        padding:16px 14px;
    }

    .brand{
        font-size:23px;
    }

    .tagline{
        font-size:13px;
    }

    .hero,
    .search-hero{
        padding:28px 15px;
    }

    .grid,
    .plant-results-grid{
        grid-template-columns:1fr;
    }

    .plant-title{
        font-size:32px;
    }

    .quick-filters{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .quick-filters label{
        justify-content:center;
        font-size:14px;
        padding:10px;
    }

    .filter-grid{
        grid-template-columns:1fr;
    }

    .suggestion-card{
        padding:16px;
    }

    .suggestion-card h3{
        font-size:20px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        padding:30px 20px;
    }
}