@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

body:has(.terragen-projects-container){
    .page-header{
        display: none;
    }
}

.gm-bundled-control {
    display: none !important;
}

.gm-style-cc {
    display: none !important;
}

.gm-style-iw-ch{
    display: none !important;
}

.gm-ui-hover-effect{
    position: absolute !important;
    right: 0 !important;
}

.project-bubble {
    width: 266px;
    padding: 10px;
}

.project-bubble-tech {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tech-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.project-bubble-title {
    margin: 0;
    color: #000;
    font-family: Manrope, sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.project-bubble-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.project-bubble-meta span {
    font-weight: 600;
}

.project-bubble-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #009846 !important;
    text-decoration: none !important;
    outline: none !important;
    font-family: Manrope, sans-serif !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.project-bubble-link:hover {
    text-decoration: underline;
}

.terragen-projects-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 110px);
    background: #f9f9f9;
    overflow: hidden;
}

.terragen-projects-container *{
    font-family: "Manrope", sans-serif;
}

/* MAP - FULL WIDTH */
.terragen-map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
}

#projects-map {
    width: 100%;
    height: 100%;
}

/* LEFT SIDEBAR - SEARCH & PROJECTS LIST */
.terragen-sidebar {
    position: absolute;
    top: 70px;
    left: 20px;
    width: 340px;
    max-height: calc(100% - 140px);
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
    overflow-y: auto;

    border-radius: 28px;
    background: #FFF;
    box-shadow: 0 -1px 4px 1px rgba(0, 0, 0, 0.15);
}

.search-container {
    margin-bottom: 5px;
}

.projects-search {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.projects-search::placeholder {
    color: #999;
}

.projects-count {
    font-size: 12px;
    color: #888;
    padding: 0 5px;
    font-weight: 500;
}

.projects-list-section {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

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

.project-item {
    /*cursor: pointer;*/
    transition: all 0.2s;
    border-left: 4px solid transparent;
    padding: 25px 0;
    border-bottom: 1px solid #E1E1E1;


}

.project-item:first-of-type{
    padding-top: 0;
}

.project-item:last-of-type{
    border-bottom: 0;
    padding-bottom: 0;
}

.project-item:hover {
    /*border-left-color: #27ae60;*/
}

.project-item-tech{
    display: flex;
    align-items: center;
    gap: 2px;

    font-family: "Manrope", sans-serif;
    color: #000;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    .tech-dot{
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }
}

.project-item-title {
    color: #000;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 4px;
}

.project-item-meta > div{
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-label{
    color: #565656;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.project-item-meta > div span:not(.project-label){
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.project-item-meta {
    font-size: 11px;
    color: #999;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* RIGHT SIDEBAR - FILTERS */
.terragen-filters-sidebar {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 280px;
    max-height: calc(100% - 40px);
    padding: 32px 52px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 2;
    overflow-y: auto;

    border-radius: 28px;
    background: #FFF;
    box-shadow: 0 -1px 4px 1px rgba(0, 0, 0, 0.15);
}

.filters-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filters-title {
    color: #3D3936;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    display: none;
}

/* TOGGLE SWITCH */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 26px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
    margin: 0;
}

.slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

/* UNCHECKED STATE - GRAY */
input:not(:checked) + .slider {
    background-color: #ccc;
}

input:not(:checked) + .slider::before {
    transform: translateX(0);
}

/* CHECKED STATE - COLORED */
input:checked + .slider {
    background-color: #27ae60;
}

input:checked + .slider::before {
    transform: translateX(34px);
}

/* TECHNOLOGY COLORS - CHECKED */
input[value="Solar"]:checked + .slider.solar {
    background-color: #f39c12;
}

input[value="Wind"]:checked + .slider.wind {
    background-color: #1abc9c;
}

input[value="Battery"]:checked + .slider.battery {
    background-color: #2c3e50;
}

/* STATUS COLORS - CHECKED */
input[value="Operational"]:checked + .slider.operational {
    background-color: #27ae60;
}

input[value="Construction"]:checked + .slider.construction {
    background-color: #27ae60;
}

input[value="Development"]:checked + .slider.development {
    background-color: #27ae60;
}

.filter-label {
    display: none;
}

.filter-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

.clear-filters-btn {
    /*display: none;*/
    padding: 10px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: auto;
    width: 100%;
}

.clear-filters-btn:hover {
    background: #c0392b;
}

/* SCROLLBAR */
.terragen-sidebar::-webkit-scrollbar,
.terragen-filters-sidebar::-webkit-scrollbar,
.projects-list-section::-webkit-scrollbar {
    width: 6px;
}

.terragen-sidebar::-webkit-scrollbar-track,
.terragen-filters-sidebar::-webkit-scrollbar-track,
.projects-list-section::-webkit-scrollbar-track {
    background: transparent;
}

.terragen-sidebar::-webkit-scrollbar-thumb,
.terragen-filters-sidebar::-webkit-scrollbar-thumb,
.projects-list-section::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.terragen-sidebar::-webkit-scrollbar-thumb:hover,
.terragen-filters-sidebar::-webkit-scrollbar-thumb:hover,
.projects-list-section::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .terragen-sidebar {
        width: 250px;
    }
    
    .terragen-filters-sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .terragen-projects-container {
        height: auto;
    }
    
    .terragen-sidebar {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-height: none;
        border-radius: 0;
        margin-bottom: 20px;
    }
    
    .terragen-map-wrapper {
        position: relative;
        height: 400px;
        margin-bottom: 20px;
    }
    
    .terragen-filters-sidebar {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-height: none;
        border-radius: 0;
    }
}