/* 
  ==============================================
  Conservancy Website Redesign - MASTER STYLESHEET (COMPLETE)
  ==============================================
*/

/* 
  ==============================================
  1. BASE & GLOBAL STYLES
  ==============================================
*/
:root {
  --primary-darkest: #68724d;
  --primary-medium-dark: #629044;
  --primary-medium-light: #8fd16a;
  --primary-light: #b4c366;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --sidebar-width: 250px;
  --sidebar-bg-rgb: 240, 242, 230;
  --content-bg-rgb: 255, 255, 255; 
}
body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fdfdfd;
  color: var(--text-dark);
  line-height: 1.6;
}
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* 
  ==============================================
  2. HEADER & MAIN LAYOUT
  ==============================================
*/
.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: stretch; 
    background-color: var(--primary-darkest); 
    padding: 0; 
    min-height: 90px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo-container { width: var(--sidebar-width); background-color: #ffffff; padding: 10px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-container img { max-width: 100%; height: auto; display: block; }
.main-nav { display: flex; align-items: center; padding-right: 40px; }
.main-nav ul { list-style-type: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.main-nav ul li a { color: var(--text-light); text-decoration: none; font-size: 1.2rem; font-weight: 500; padding: 10px 18px; border-radius: 5px; transition: background-color 0.3s, color 0.3s; display: flex; align-items: center; justify-content: center; }
.main-nav ul li a.active, .main-nav ul li a:hover { background-color: var(--primary-medium-light); color: var(--text-light); }

.main-body-container { display: flex; }
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background-color: #f0f2e6;
  padding: 25px;
  border-right: 1px solid #ddd; 
  min-height: calc(100vh - 90px);
  box-sizing: border-box;
  position: relative;
}
.sidebar h3 { color: var(--primary-darkest); border-bottom: 2px solid var(--primary-darkest); padding-bottom: 10px; margin-top: 0; font-size: 1.1rem; }
.sidebar ul { list-style-type: none; padding: 0; margin: 0; }
.sidebar ul li a { display: block; color: var(--primary-darkest); padding: 10px 15px; text-decoration: none; border-radius: 5px; margin-bottom: 5px; transition: background-color 0.3s; font-weight: 500; }
.sidebar ul li a.active, .sidebar ul li a:hover { background-color: var(--primary-light); }
.content-area { flex-grow: 1; padding: 0; background-color: #ffffff; position: relative; }

/* 
  ==============================================
  3. STANDARD SECTION & CONTENT STYLES
  ==============================================
*/
.section-padding { padding: 60px 40px; }
.section-accent { background-color: #f9f9f9; }
.section-dark { background-color: var(--primary-darkest); color: var(--text-light); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-darkest); }
.section-dark .section-title { color: var(--text-light); }
.section-title .highlight { color: var(--primary-medium-light); }
.section-title .highlight-dark { color: var(--primary-light); }
.story-grid, .visit-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.story-text, .visit-info { flex: 1 1 500px; }
.story-image, .visit-map-embed { flex: 1 1 400px; }
.story-image img, .visit-map-embed iframe { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.caption { font-style: italic; color: #888; text-align: center; margin-top: 10px; }
.section-dark .caption { color: #ccc; }
.highlights-grid { display: flex; flex-wrap: wrap; gap: 50px; justify-content: center; text-align: center; }
.highlight-item { flex: 1 1 280px; max-width: 320px; }
.highlight-item h3 { font-size: 1.4rem; color: var(--primary-darkest); margin-top: 15px; margin-bottom: 10px; }
.feature-icon { font-size: 3rem; color: var(--primary-medium-light); margin-bottom: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.visit-info ul { list-style-type: none; padding: 0; }
.visit-info ul li { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; font-size: 1.1rem; }
.visit-info ul li i { font-size: 1.2rem; color: var(--primary-medium-dark); }
.section-dark .visit-info ul li i { color: var(--primary-light); }

/* 
  ==============================================
  4. PAGE-SPECIFIC TEMPLATE STYLES
  ==============================================
*/

/* --- HOMEPAGE HERO --- */
.hero-section { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50vh; color: #fff; background-size: cover; background-position: center center; background-repeat: no-repeat; }
.hero-overlay { display: none; }
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero-content h1 { font-size: 3.5rem; font-weight: bold; margin-bottom: 10px; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero-content p { font-size: 1.4rem; font-weight: 300; max-width: 800px; margin-left: auto; margin-right: auto; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }

/* --- ANIMAL PROFILE --- */
.animal-hero-section { position: relative; display: flex; align-items: flex-end; justify-content: flex-start; min-height: 40vh; color: #fff; background-size: cover; background-position: center 65%; border-radius: 0; }
.animal-hero-section h1 { font-size: 3.5rem; font-weight: bold; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); margin: 0; padding: 30px 40px; }
.animal-info-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.quick-facts-card { flex: 1 1 300px; background-color: #f9f9f9; border-left: 5px solid var(--primary-light); border-radius: 8px; padding: 25px; }
.quick-facts-card h3 { margin-top: 0; font-size: 1.5rem; color: var(--primary-darkest); border-bottom: 2px solid var(--primary-light); padding-bottom: 10px; margin-bottom: 15px; }
.quick-facts-card ul { list-style-type: none; padding: 0; margin: 0; }
.quick-facts-card ul li { margin-bottom: 10px; font-size: 1rem; }
.quick-facts-card ul li strong { color: var(--primary-darkest); }
.animal-description { flex: 2 1 500px; }
.animal-description p { font-size: 1.1rem; line-height: 1.7; }

/* --- MULTI-ITEM (e.g., Birds Page) --- */
.multi-item-page-layout { display: grid; grid-template-columns: 1fr 60px; gap: 40px; align-items: start; }
.multi-item-jumpto-sticky { position: -webkit-sticky; position: sticky; top: 110px; text-align: center; }
.multi-item-jumpto-sticky a { display: block; text-decoration: none; font-weight: bold; font-size: 1.1rem; color: var(--primary-medium-dark); padding: 5px; border-radius: 4px; transition: background-color 0.3s ease, color 0.3s ease; }
.multi-item-jumpto-sticky a:hover { background-color: var(--primary-darkest); color: var(--text-light); }
.multi-item-accordion-item { margin-bottom: 20px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.multi-item-accordion-header { display: flex; align-items: center; gap: 20px; padding: 15px; cursor: pointer; background-color: #f9f9f9; transition: background-color 0.3s ease; }
.multi-item-accordion-header:hover { background-color: #f0f2e6; }
.multi-item-accordion-image { width: 100px; height: 100px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.multi-item-accordion-title h3 { margin: 0; font-size: 1.8rem; color: var(--primary-darkest); }
.multi-item-accordion-title p { margin: 5px 0 0 0; font-style: italic; color: #555; font-size: 0.9rem; }
.multi-item-accordion-icon { margin-left: auto; font-size: 1.5rem; color: var(--primary-medium-dark); transition: transform 0.4s ease; }
.multi-item-accordion-header.active .multi-item-accordion-icon { transform: rotate(180deg); }
.multi-item-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; padding: 0 30px; background-color: #fff; border-top: 1px solid #eee; }
.multi-item-accordion-content.show { padding: 30px; max-height: 1000px; }
.multi-item-accordion-content .animal-info-grid { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.multi-item-accordion-content .quick-facts-card { flex: 1 1 250px; background-color: #f9f9f9; border-left: 5px solid var(--primary-light); border-radius: 8px; padding: 20px; }
.multi-item-accordion-content .quick-facts-card h3 { margin-top: 0; font-size: 1.3rem; color: var(--primary-darkest); border-bottom: 1px solid var(--primary-light); padding-bottom: 10px; margin-bottom: 15px; }
.multi-item-accordion-content .quick-facts-card ul { list-style-type: none; padding: 0; margin: 0; }
.multi-item-accordion-content .quick-facts-card ul li { margin-bottom: 8px; font-size: 0.9rem; }
.multi-item-accordion-content .quick-facts-card ul li strong { color: var(--primary-darkest); }
.multi-item-accordion-content .animal-description { flex: 2 1 400px; }
.multi-item-accordion-content .animal-description p { margin-top: 0; }
.multi-item-accordion-content .animal-description a { font-weight: bold; color: var(--primary-medium-dark); text-decoration: none; }
.multi-item-accordion-content .animal-description a:hover { text-decoration: underline; }
@media (max-width: 992px) { .multi-item-page-layout { display: flex; flex-direction: column-reverse; } .multi-item-jumpto-sticky { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; order: -1; margin-bottom: 40px; background-color: #f9f9f9; border-radius: 8px; padding: 10px; } }

/* --- BOOKLET (e.g., Duty of Care) --- */
.booklet-container { max-width: 850px; margin: 0 auto; }
.booklet-heading { background-color: var(--primary-light); color: var(--primary-darkest); padding: 20px 30px; border-radius: 40px 40px 0 0; margin-top: 50px; margin-bottom: 0; font-size: 1.8rem; text-align: center; }
.booklet-heading:first-child { margin-top: 0; }
.disclaimer-box { border: 2px solid var(--primary-darkest); border-radius: 12px; padding: 30px; margin: 40px 0; text-align: center; font-size: 1.1rem; }
.toc-section { padding: 30px; background-color: #f9f9f9; border-radius: 0 0 40px 40px; margin-bottom: 50px; }
.toc-section h3 { color: var(--primary-darkest); font-size: 1.5rem; margin-top: 0; margin-bottom: 20px; }
.toc-list { list-style-type: none; padding: 0; margin: 0; line-height: 2.2; }
.toc-list a { text-decoration: none; font-weight: bold; color: var(--primary-medium-dark); }
.toc-list a:hover { text-decoration: underline; color: var(--primary-medium-light); }
.booklet-content-section { padding-top: 40px; margin-top: -40px; margin-bottom: 30px; }
.booklet-content-section h3 { font-size: 1.5rem; color: var(--primary-darkest); margin-bottom: 15px; }
.booklet-content-section ul { list-style-type: disc; padding-left: 20px; line-height: 1.8; }
.booklet-note { background-color: #f0f2e6; padding: 15px 20px; border-left: 4px solid var(--primary-light); border-radius: 5px; margin: 20px 0; }

/* --- SPIDER POSTERS --- */
.poster-container { text-align: center; margin-bottom: 60px; }
.poster-image { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-bottom: 15px; }
.poster-container h3 { font-size: 1.8rem; color: var(--primary-darkest); margin-bottom: 30px; }
.intro-text-container { max-width: 850px; margin: 0 auto; text-align: left; font-size: 1.1rem; line-height: 1.8; margin-bottom: 60px; }

/* --- RESOURCES PAGE --- */
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.resource-card { background-color: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 30px; text-align: center; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.resource-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.resource-icon { font-size: 3rem; color: var(--primary-medium-light); margin-bottom: 20px; }
.resource-card h3 { font-size: 1.5rem; color: var(--primary-darkest); margin-top: 0; margin-bottom: 15px; }
.resource-card p { font-size: 1rem; color: #555; line-height: 1.6; flex-grow: 1; margin-bottom: 25px; }
.resource-btn { display: inline-block; background-color: var(--primary-darkest); color: var(--text-light); padding: 12px 25px; font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: 5px; transition: background-color 0.2s ease; }
.resource-btn:hover { background-color: var(--primary-medium-light); color: var(--text-light); }
@media (max-width: 992px) { .resource-grid { grid-template-columns: 1fr; } }

/* --- TREES PAGE CARD LAYOUT --- */
.tree-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.tree-card { background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tree-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.tree-card-image { height: 200px; display: block; background-color: #f0f0f0; }
.tree-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.tree-card:hover .tree-card-image img { transform: scale(1.05); }
.tree-card-details { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.tree-card-details h3 { margin-top: 0; margin-bottom: 5px; font-size: 1.25rem; }
.tree-card-details h3 a { text-decoration: none; color: var(--primary-darkest); }
.tree-card-details h3 a:hover { text-decoration: underline; }
.tree-card-details p { margin: 4px 0; line-height: 1.5; }
.common-name { font-style: italic; color: #555; margin-bottom: 15px !important; }

/* --- VIDEO GALLERY --- */
.featured-video-container { margin-bottom: 60px; }
.video-responsive-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.video-responsive-wrapper iframe, .video-responsive-wrapper video { position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; border: none; }
.video-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.video-card { background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.video-thumbnail { display: block; position: relative; }
.video-thumbnail video { width: 100%; height: 180px; object-fit: cover; display: block; }
.video-thumbnail::after { content: '\f144'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 4rem; color: rgba(255, 255, 255, 0.9); text-shadow: 0 0 15px rgba(0,0,0,0.5); transition: transform 0.2s ease; }
.video-card:hover .video-thumbnail::after { transform: translate(-50%, -50%) scale(1.1); }
.video-info { padding: 15px; }
.video-info h3 { margin: 0 0 5px 0; font-size: 1.2rem; color: var(--primary-darkest); }
.video-info p { margin: 0; font-size: 0.9rem; color: #555; }

/* 
  ==============================================
  5. INTERACTIVE COMPONENTS (MAPS, CHARTS)
  ==============================================
*/

/* --- WEATHER PAGE DATA CARDS --- */
.content-block { margin-bottom: 60px; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-top: 30px; }
.data-card { background-color: #f9f9f9; border: 1px solid #eee; border-left: 5px solid var(--primary-light); border-radius: 8px; padding: 25px; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.data-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.data-label { font-size: 0.9rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.data-value { font-size: 2.8rem; font-weight: 700; color: var(--primary-darkest); line-height: 1.1; }
.data-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .data-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .data-grid-4 { grid-template-columns: repeat(2, 1fr); } .data-value { font-size: 2.2rem; } }

/* --- BEACH WEBCAM & TIDE CHART --- */
.webcam-container { margin-bottom: 80px; }
.webcam-placeholder { width: 100%; background-color: #000; border: 1px solid #333; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #888; aspect-ratio: 16 / 9; }
.webcam-placeholder i { font-size: 5rem; margin-bottom: 20px; }
.webcam-placeholder p { font-size: 1.2rem; font-weight: bold; }
.chart-wrapper { position: relative; height: 450px; width: 100%; padding: 20px; background-color: #ffffff; border: 1px solid #eee; border-radius: 8px; }

.google-calendar-embed-container {
    position: relative;
    padding-bottom: 60%; /* 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px; /* Matches your other "soft" elements */
}

.google-calendar-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- INTERACTIVE MAPS (GENERAL & BEACHES) --- */
.interactive-map-canvas { width: 100%; height: 450px; border-radius: 8px; border: 1px solid #ddd; }
.location-switcher { list-style-type: none; padding: 0; margin: 20px 0 0 0; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.location-switcher li { border-bottom: 1px solid #ddd; }
.location-switcher li:last-child { border-bottom: none; }
.location-switcher .map-location-link { display: flex; align-items: center; gap: 15px; padding: 15px; text-decoration: none; font-weight: bold; color: var(--primary-darkest); background-color: #fff; transition: background-color 0.3s ease; }
.location-switcher .map-location-link:hover { background-color: #f7f7f7; }
.location-switcher .map-location-link.active { background-color: var(--primary-light); color: var(--primary-darkest); }
.location-switcher .map-location-link i { width: 20px; text-align: center; color: var(--primary-medium-dark); }
.location-switcher .map-location-link.active i { color: var(--primary-darkest); }

/* 
  ==============================================
  BIODIVERSITY MAP PAGE STYLES (DEFINITIVE FIX)
  ==============================================
*/
.map-page-container {
    display: flex;
    height: calc(100vh - 90px); 
    width: 100%;
}

/* These styles for the map's internal layout are now correct */
.map-sidebar {
    width: 320px;
    flex-shrink: 0;
    height: 100%;
    background-color: #f0f2e6; /* Match your main sidebar color */
    border-right: 1px solid #ddd;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.map-sidebar-content { padding: 20px; }
.map-sidebar h3 {
    margin-top: 0;
    color: var(--primary-darkest);
    border-bottom: 2px solid var(--primary-darkest);
    padding-bottom: 10px;
}
.map-main-content {
    flex-grow: 1;
    height: 100%;
    position: relative;
}
#sightings-map-canvas {
    width: 100%;
    height: 100%;
}


.map-sidebar { width: 320px; flex-shrink: 0; height: 100%; background-color: #f0f2e6; border-right: 1px solid #ddd; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.map-sidebar-content { padding: 20px; }
.map-sidebar h3 { margin-top: 0; color: var(--primary-darkest); border-bottom: 2px solid var(--primary-darkest); padding-bottom: 10px; }


.map-loading-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10; }
.spinner { border: 5px solid #f3f3f3; border-top: 5px solid var(--primary-medium-light); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.infowindow-content { max-width: 250px; }
.infowindow-content h4 { margin: 0 0 10px 0; }
.infowindow-content img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 10px; }
.infowindow-content p { margin: 5px 0; }
.toggle-switch { position: relative; display: flex; align-items: center; width: 100%; margin-bottom: 8px; cursor: pointer; }
.toggle-switch input { display: none; }
.slider { position: relative; display: inline-block; width: 44px; height: 24px; background-color: #ccc; border-radius: 34px; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; border-radius: 50%; transition: .4s; }
input:checked + .slider { background-color: var(--primary-medium-light); }
input:checked + .slider:before { transform: translateX(20px); }
.toggle-label-text { margin-left: 12px; }
.filter-buttons { margin-top: 15px; display: flex; gap: 10px; }
.filter-buttons button { padding: 5px 10px; border: 1px solid #ccc; background-color: #f0f0f0; cursor: pointer; }



/* 
  ==============================================
  6. SITE-WIDE EFFECTS
  ==============================================
*/
.softness-soft .sidebar { border-right: 1px solid #ddd; }
.softness-soft .main-nav ul li a, .softness-soft .sidebar ul li a { border-radius: 5px; }
.softness-soft .gallery-item img, .softness-soft .data-card, .softness-soft .chart-wrapper, .softness-soft .webcam-placeholder { border-radius: 8px; }

.softness-softer .sidebar { border-right: none; }
.softness-softer .sidebar::after { content: ''; position: absolute; top: 0; left: 100%; width: 20px; height: 100%; background: linear-gradient(to right, rgba(var(--sidebar-bg-rgb), 1), rgba(var(--sidebar-bg-rgb), 0)); pointer-events: none; z-index: 10; }
.softness-softer .top-bar::after { content: ''; position: absolute; left: 0; bottom: -20px; width: 100%; height: 20px; background: linear-gradient(to top, rgba(var(--content-bg-rgb), 1), rgba(var(--content-bg-rgb), 0)); pointer-events: none; z-index: 10; }
.softness-softer .main-nav ul li a, .softness-softer .sidebar ul li a { border-radius: 8px; }
.softness-softer .gallery-item img, .softness-softer .data-card, .softness-softer .chart-wrapper, .softness-softer .webcam-placeholder { border-radius: 12px; }

.softness-softest .sidebar { border-right: none; }
.softness-softest .sidebar::after { content: ''; position: absolute; top: 0; left: 100%; width: 30px; height: 100%; background: linear-gradient(to right, rgba(var(--sidebar-bg-rgb), 1), rgba(var(--sidebar-bg-rgb), 0)); pointer-events: none; z-index: 10; }
.softness-softest .top-bar::after { content: ''; position: absolute; left: 0; bottom: -30px; width: 100%; height: 30px; background: linear-gradient(to top, rgba(var(--content-bg-rgb), 1), rgba(var(--content-bg-rgb), 0)); pointer-events: none; z-index: 10; }
.softness-softest .main-nav ul li a, .softness-softest .sidebar ul li a { border-radius: 20px; }
.softness-softest .gallery-item img, .softness-softest .data-card, .softness-softest .chart-wrapper, .softness-softest .webcam-placeholder { border-radius: 20px; }
.softness-softest .data-card, .softness-softest .gallery-item img { border-color: transparent; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }





/* 
  ==============================================
  7. PLACEHOLDER / UNDER CONSTRUCTION STYLES
  ==============================================
*/
.placeholder-content {
    text-align: center;
    max-width: 700px;
    margin: 40px auto;
    padding: 50px 40px;
    background-color: #f9f9f9; /* A very light, soft grey */
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--primary-light); /* The lightest green from your theme */
    margin-bottom: 30px;
}

.placeholder-content h2 {
    font-size: 2.2rem;
    color: var(--primary-darkest);
    margin-top: 0;
    margin-bottom: 20px;
}

.placeholder-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}



/* 
  ==============================================
  8. FILTERABLE CARD GALLERY STYLES (for AIPs)
  ==============================================
*/

/* --- The filter button bar --- */
.filter-buttons-bar {
    text-align: center;
    margin-bottom: 40px;
}
.filter-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.filter-button:hover {
    background-color: #ddd;
}
.filter-button.active {
    background-color: var(--primary-darkest);
    color: var(--text-light);
    border-color: var(--primary-darkest);
}

/* --- The grid for the cards --- */
.card-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* --- Individual Card Styling --- */
.gallery-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.gallery-card img {
    width: 100%;
    display: block; /* Removes any space below the image */
}

/* --- Styles for the introductory legislation text --- */
.legislation-text {
    max-width: 850px;
    margin: -20px auto 50px auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-light);
}
.legislation-text h3 {
    margin-top: 0;
    color: var(--primary-darkest);
}
.legislation-text strong {
    color: var(--primary-darkest);
}