.wp-block-post-title {
    display: none;
}

.wp-block-spacer {
    display: none;
}

#resetbutton {
    background-color: #f1f1f1;
}

#viewDiv {
    padding: 0;
    margin: 0;
    height: 80vh;
    width: 100%;
}

.form-control {
    display: block;
    padding: 0.3rem 0.4rem;
    border-radius: 0.25rem;
}

.btn {
    display: flex;
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: 0.25rem;
    text-align: center;
    border: 1px solid transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Default button styles */
.search-actions-buttons {
    transition: background-color 0.3s, border-color 0.3s;
}

/* When the button is checked */
.btn-checked {
    background-color: var(--checked-color, #e64626); /* Default red if not defined */
    border-color: var(--checked-color, #e64626);
}

.btn-unchecked {
    background-color: #f1f1f1;
    border-color: #f1f1f1;
}

/* Apply the color defined in the data attribute */
.search-actions-buttons {
    --checked-color: #e64626; /* Default to a red color */
}

.search-actions-buttons[data-checked-color] {
    --checked-color: attr(data-checked-color);
}

.esri-component.esri-attribution.esri-widget {
    display: none;
}

/* Network graph */
#networkView {
    height: 70vh;
}

#network-container {
    width: 98.6%;
    height: 100%;
    border: 2px solid black;
    background-color: white;
    position: relative;
}

#network-tooltip {
    position: absolute;
    background-color: #fff;
    max-width: 200px;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

#network-tooltip p {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 15px;
}

#network-controls {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 100;
}

#legendDiv {
    position: absolute;
    padding: 10px;
    right: 10px;
    bottom: 10px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    background-color: white;
    z-index: 100;
}

.network-button {
    display: block;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    cursor: pointer;
}

/* Style for #mapView */
/* #mapView {
    position: relative;
    width: 100vw; 
    margin-left: -50vw; 
    left: 50%; 
} */

#mapView {
    display: flex;
    margin: 0;
    flex-wrap: nowrap;
    height: 70vh;
}

#viewDiv,
#mapSidebar {
    height: 100%;
    overflow: auto;
    padding: 0;
}

#mapSidebarContainer {
    overflow-y: auto;
    height: 100%;
    background-color: #f1f1f1;
}

.mapSidebarItem {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 2px solid white;
    justify-content: space-between;
    padding-left: 5%;
    background-color: #f0f0f0; /* Default background color */
    cursor: pointer;
}

.mapSidebarIcon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.mapSidebarName {
    flex-grow: 1;
    font-size: 14px;
}

.mapSidebarImage {
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
}

#tileView {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 20px 20px;
}

.tileItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f0f0f0; /* Default background color */
}

.tileIcon {
    width: 20px;
    height: 20px;
}

.tileImage {
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
}

.tileName {
    font-size: 16px;
    flex-grow: 1;
    margin-left: 10px;
}

.esri-view {
    --esri-view-outline-color: none !important;
}

.views {
    position: relative;
}

.desktop-header {
    z-index: 250;
}

.info-bar {
    position: absolute;
    background-color: antiquewhite;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.5s ease;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
    z-index: 210;
}

.info-bar.show {
    transform: translateX(0);
}

.info-bar-content {
    display: flex;
    justify-content: center;
    text-align: justify;
}

.info-bar-content img {
    width: 80%;
    height: auto;
}

#mapSidebarContainer a {
    text-decoration: none;
    color: inherit;
}

#tileView a {
    text-decoration: none;
    color: inherit;
}

.image-container {
    display: flex;
    justify-content: space-between;
}

.image-container img {
    object-fit: cover;
    height: auto; 
    max-height: 120px; 
}

