body {
    background-image: none;
    background-color: var(---text_containers);
}

.mapContainer {
    background: var(--container_color);
    color: var(--text_for_sections);
    padding: 5px 16px 5px;
    margin: 12px;
    border: 1px solid var(--highlights_color);
    border-radius: 10px;
    overflow: hidden;
}

.mapHeader {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 8px;
}

.returnToHome {
    position: absolute;
    left: 0;
    top: 0;
    text-decoration: none;
    color: var(--text_header_color);
    font-size: 1.15em;
}

.mapHeader .returnToHome:hover {
    color: var(--text_for_sections);
    text-decoration: underline;
}

.mapHeader h2 {
    color: var(--text_header_color);
    font-size: 2em;
    margin: 0;
}


.mapInfoPanel {
    position: absolute;
    width: 600px;
    height: 932px;
    overflow-y: auto;
    z-index: 10;
    background: var(--text_containers);
    box-shadow: 1px 0 4px var(--highlights_color);
}


.svgmap {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svgBgImg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

#kantomap-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

#kantomap-svg svg {
    transform: scale(1.1);
    width: 100%;
    height: 100%;
    display: block;
}

#locationName {
    display: flex;
    justify-content: center;
    align-items: center;
    margin:5px;
}

#locationImage:not([src]), #locationImage[src=""] {
    visibility: hidden;
}

#locationViewer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; 
    margin-bottom: 1rem;
}

#locationViewer button {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-color:var(--highlights_color);
    background-color: var(--container_color);
    color:var(--text_for_sections);
    margin: 0 20px 0 20px;
}

#locationViewer button:hover{
    background-color: var(--text_for_sections);
    color:var(--container_color);
}

#locationViewer button span{
    display:inline-block;
    transform: translateY(-1px);
}

#locationViewer img {
    display: block;
    margin: 0 auto;
    width: 320px;
    height: 160px;
    object-fit: contain;
}

#tablesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.redBlock, .blueBlock, .yellowBlock {
    border-radius: 10px 10px 0 0;
    width: 280px;
}

.redBlock h3, .blueBlock h3, .yellowBlock h3 {
    border-radius: 10px 10px 0 0;
}

.redMethodHeader, .blueMethodHeader {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.yellowMethodHeader {
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.redBlock {
    background-color: #e1817a;
}

.redBlock h3 {
    margin: 0;
    background-color: #962a22;
    color: white;
    text-align: center;
}

.redBlock .redMethodHeader {
    background-color: #BC564E;
}

.blueBlock {
    background-color: #7b9fcb;
}

.blueBlock h3 {
    margin: 0;
    background-color: #264f96;
    color: white;
    text-align: center;
}

.blueBlock .blueMethodHeader {
    background-color: #5177B1;
}

.yellowBlock {
    background-color: #fbcb0a;
}

.yellowBlock h3 {
    margin: 0;
    background-color: #ce8c05;
    color: white;
    text-align: center;
}

.yellowBlock .yellowMethodHeader {
    background-color: #E5AC08;
}

.redBlock table th, .blueBlock table th {
    color: white;
}

.yellowBlock table th {
    color: black;
}

.redBlock .redMethodHeader img, .blueBlock .blueMethodHeader img, .yellowBlock .yellowMethodHeader img {
    width: 24px;
    height: auto;
}

.redBlock table, .blueBlock table, .yellowBlock table {
    border-collapse: separate;
    border-spacing: 3px;
}

.redBlock td, .blueBlock td, .yellowBlock td {
    width: 100%;
    text-align: center;
    background-color: var(--container_color);
    color: var(--td_data);
}

.cellContent {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.redBlock td img, .blueBlock td img, .yellowBlock td img {
    width: 40px;
    height: auto;
}

.seaRoute {
    fill: #00a8ff;
}

.route {
    transition: fill 0.3s ease;
    fill: white;
}

.landmark {
    transition: fill 0.3s ease;
    fill: #008000
}

.hovered {
    fill: yellow;
    cursor: pointer;
}

.focused {
    fill: grey;
}

.bestLocation{
    font-weight: bold;
    color: var(--main_color);
}