/* --- BASE STYLES --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

body { 
    overflow-x: hidden; 
    color: #1a1a1a; 
    background: #fff; 
    line-height: 1.6; 
    padding-top: 100px; /* Matches navbar height */
}

/* --- HERO & FILTERS --- */
.network-hero { 
    padding: 120px 8% 50px; 
    text-align: center; 
    background: white; 
    border-bottom: 1px solid #f0f0f0; 
}

.network-hero h1 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 30px; 
}

.highlight { color: #82b436; }

.advanced-filter-bar { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.search-group { 
    display: flex; 
    width: 70%; 
    max-width: 400px; 
    border: 2px solid #82b436; 
    border-radius: 50px; 
    background: white; 
    position: relative; /* Added for dropdown positioning */
}

#siteSearch { 
    flex: 1; 
    padding: 15px 25px; 
    border: none; 
    outline: none; 
    font-size: 1rem; 
    background: transparent;
}

/* --- DROPDOWN FIXES --- */
.filter-dropdown { 
    border-left: 1px solid #eee; 
    position: relative; 
}

.filter-trigger { 
    padding: 0 25px; 
    height: 100%; 
    background: #f9f9f9; 
    border: none; 
    cursor: pointer; 
    font-weight: 800; 
    color: #1a1a1a; 
    border-radius: 0 50px 50px 0;
}

.filter-menu { 
    display: none; /* Hidden by default */
    position: absolute; 
    top: 115%; 
    right: 0; 
    background: white; 
    border-radius: 15px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.12); 
    padding: 25px; 
    z-index: 1000; 
    width: 260px; 
    text-align: left; 
    border: 1px solid #eee;
}

/* This class is toggled by JavaScript */
.filter-menu.show { 
    display: block !important; 
}

.filter-group-title { 
    font-size: 0.7rem; 
    color: #82b436; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 12px; 
    display: block;
}

.filter-menu label { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 10px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    cursor: pointer; 
    color: #333;
}

.filter-menu input[type="checkbox"], 
.filter-menu input[type="radio"] {
    accent-color: #82b436;
    width: 16px;
    height: 16px;
}

.filter-menu hr { 
    border: none; 
    border-top: 1px solid #eee; 
    margin: 15px 0; 
}

.btn-reset { 
    background: #eee; 
    border: none; 
    padding: 0 25px; 
    border-radius: 50px; 
    font-weight: 700; 
    cursor: pointer; 
    color: #666; 
    transition: 0.3s; 
}

.btn-reset:hover { 
    background: #1a1a1a; 
    color: white; 
}

/* --- GRID & CARDS --- */
.network-section { padding: 40px 8% 100px; }

.results-info { 
    text-align: center; 
    font-weight: 800; 
    color: #bbb; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.75rem; 
    margin-bottom: 30px; 
}

.network-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px; 
}

.site-card { 
    background: white; 
    border: 1px solid #eee; 
    border-radius: 24px; 
    overflow: hidden; 
    transition: 0.4s; 
    display: flex; 
    flex-direction: column; 
}

.site-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.06); 
}

.site-thumb { 
    height: 190px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    background-color: #f0f0f0; 
}

.da-badge { 
    position: absolute; 
    bottom: 15px; 
    left: 15px; 
    background: #82b436; 
    color: white; 
    padding: 6px 14px; 
    border-radius: 8px; 
    font-size: 0.75rem; 
    font-weight: 800; 
}

.site-info { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.type-tag { 
    font-size: 0.65rem; 
    color: #82b436; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin-bottom: 8px; 
}

.site-info h3 { 
    font-size: 1.25rem; 
    margin-bottom: 15px; 
    color: #1a1a1a; 
}

.metrics-row { 
    display: flex; 
    justify-content: space-between; 
    background: #f8f9fa; 
    padding: 12px; 
    border-radius: 12px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #555; 
}

.card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto; 
    padding-top: 20px; 
    border-top: 1px solid #f5f5f5; 
}

.btn-quote { 
    background: #82b436; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 50px; 
    font-weight: 800; 
    cursor: pointer; 
    transition: 0.3s; 
}

.btn-quote:hover { background: #1a1a1a; }

.visit-link { 
    font-size: 0.8rem; 
    color: #ccc; 
    text-decoration: none; 
    font-weight: 600; 
}


/* MODERN REQUEST QUOTE MODAL */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px); /* Modern blur effect */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover { color: #333; }

.modal-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #111;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}

#quoteForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#quoteForm input, 
#quoteForm textarea {
    padding: 15px 20px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: #fcfcfc;
}

#quoteForm input:focus, 
#quoteForm textarea:focus {
    border-color: #82b436;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(130, 180, 54, 0.1);
}

#quoteForm textarea {
    height: 120px;
    resize: none;
}

#submitBtn {
    background: #82b436;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

#submitBtn:hover {
    background: #6c962b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(130, 180, 54, 0.3);
}

#formResponse {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- CSV Download Section Styling --- */
.terms-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.terms-area label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-area a {
    color: #82b436;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 360px) {
    .network-grid {
        grid-template-columns: 1fr;
    }
    .search-group {
        width: 100%;
        max-width: none;
    }
}

.btn-download {
    background: #82b436;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(130, 180, 54, 0.2);
}

.btn-download:hover {
    background: #6c962b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 180, 54, 0.3);
}

/* State when disabled (Checkbox not ticked) */
.btn-download:disabled {
    background: #ccc;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-download i {
    font-size: 1.1rem;
}
