@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;300;400;500;600;700&display=swap');

/* MAP DISPLAY STYLES FOR PROPERTIES PAGE*/
#map-display-container::before {
    content: "";
    background: url('../new/static/powell/img/tiles/background_powell_logo.png') no-repeat center center;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(0%) brightness(0.25);
    /* Apply the filter only to the background image */
    opacity: 0.5;
    z-index: 1;
}

#map-display-container {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    /* font-weight: <weight>; */
    font-style: normal;
    position: relative;
    /* max-height: 95vh;
    height: 1650px; */
    background: linear-gradient(0deg, #636363 0%, #080808 100%);
    overflow: hidden;
    /* Ensure content doesn't overflow */
    position: relative;
    /*keep the absolutely positioned background from the ::before bound*/
}

#map-display-grid {
    position: relative;
    /* max-height: 100%;
    height: 1650px; */
    display: grid;
    overflow-y: hidden;
    overflow-x: hidden;
    grid-template-columns: 25%;
    grid-template-rows: 10% 90%;
    grid-template-areas:
        'instruction name    name    name'
        'list        display display display';
    /* border: 5px solid hotpink; */
    color: white;
    z-index: 2;
    /* Ensure content is above the background */
}

.map-display-grid-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px;
    border: 5px solid rgba(0, 0, 0, 0);
}

.map-display-grid-item p {
    padding: 1%;
    /* border: 5px solid purple; */
}

#map-display-instructions {
    grid-area: instruction;
    text-align: center;
}

#map-display-instructions p {
    margin-top: 1rem;
}

#plot-list-container {
    grid-area: list;
}

#plot-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    font-size: 30px;
    /* height: 95%; */
    /* padding: 1%; */
    /* border: 5px solid purple; */
    /* background-color: darkgray; */
}


.plot-item {
    font-family: "Inter", sans-serif !important;
    font-optical-sizing: auto;
    /* font-weight: <weight>; */
    font-style: normal;
    background-color: #0E9047;
    border-radius: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

    color: #FFF;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    text-shadow: 0 0px 2px rgba(0, 0, 0, 0.4);
    line-height: 100%;
}

.plot-item:hover,
.current-button {
    background-color: gray;
    transition: transform 0.1s ease-in-out;
    transform: scale(1.05);
}

#plot-list-dropdown {
    color: white;
    background-color: gray;
}

#map-name {
    grid-area: name;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    /* font-weight: <weight>; */
    font-style: normal;
    padding: 0px;
}

#map-display {
    grid-area: display;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    overflow-y: hidden;
    height: 100%;
    color: #FFF;
    text-align: center;
    font-size: 20px;
    margin: 1px !important;
    padding: 10px;
}

#map-display p {
    font-family: "Inter", sans-serif !important;
    font-optical-sizing: auto;
    /* font-weight: <weight>; */
    font-style: normal;
    font-size: 15px;
    width: 100%;
    max-width: 900px;
}

#map-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

#map-image .row {
    justify-content: space-evenly;
}

#firstCol,
#secondCol,
#thirdCol {
    align-self: center;
}

#thirdCol {
    display: grid;
}

#immersiveToggle {
    align-self: center;
}

#interactive-map-container {
    overflow-y: hidden;
    flex-direction: column;
    max-height: 90%;
}

/* #pdfToggle {
} */

#mapCanvas {
    /* max-height: 35vh; */
    width: auto;
}

#static-map-container img {
    max-height: 500px;
}

#immersive-map-container {
    border: 5px solid #E3E3E3;
    border-radius: 1%;
    width: 100%;
}

#lot-info {
    margin: 2px;
    padding-top: 5px;
}

#lot-info-table {
    background-color: gray;
    margin: 2px;
}

#lot-info-table th {
    color: white;
    width: 25%;
    padding: 5px;
}

#lot-info-table td {
    color: white;
    width: 25%;
    padding: 5px;
}

#plot-buttons-container {
    display: flex;
}

#schedule-visit-button,
#pdfToggle {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    /* font-weight: <weight>; */
    font-style: normal;
    background-color: #0E9047;
    border-radius: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#schedule-visit-button:hover,
#pdfToggle:hover {
    background-color: #13a552;
    transition: transform 0.1s ease-in-out;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(78, 78, 35, 0.4);
}

#schedule-visit-button p,
#pdfToggle p {
    color: #FFF;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    border: none;
    margin: 0;
}

@media (max-width: 1355px) {
    #schedule-visit-button {
        padding: 10px;
    }

    #schedule-visit-button p {
        margin: 0px;
    }
}

@media (max-width: 1300px) {
    #map-display-container {
        height: 1700px;
    }
}

@media (max-width: 950px) {
    #plot-list {
        font-size: 25px;
    }
}

@media (max-width: 900px) {
    #map-display-grid {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #plot-list {
        flex-direction: row;
    }

    #map-display {
        padding: 0;
    }

    #interactive-map-container {
        max-height: 400px;
    }

    #schedule-visit-button {
        margin: 10px;
        padding: 10px;
    }

    #schedule-visit-button p {
        margin: 0px;
    }
}

@media (max-width: 880px) {
    #plot-list {
        font-size: 20px;
    }
}

@media (max-width: 780px) {
    #mp-display-container {
        height: 2300px;
    }

    #interactive-map-container,
    #pdfToggle {
        display: none !important;
    }

    .backup-pdf {
        display: block !important;
    }
}

/* DYNAMIC MAP STYLES */

#map-container {
    position: relative;
    overflow: auto;
    width: 100%;
    height: 100%;
    /* height: 50vh; */
    background-color: rgba(0,0,0,0);
}

#map-container textPath{
    stroke: white;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Ensure the map is behind the overlay */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    z-index: 10;
    /* Ensure the overlay is above the map */
    pointer-events: none;
    /* scale: 110%; */
}

.plots {
    /* scale: 90% 90%;
    rotate: 42deg;
    translate: 730px -400px; */
    pointer-events: all;
    /* fill: rgba(0, 0, 0, 0); */
    fill: pink;
    stroke: #FFF;
    stroke-width: 5px;
    cursor: pointer;
}

.plot-group .plot-circle {
    stroke-width: 1px;
}

.plot-group {
    scale: 100%;
}

.plot-group:hover .plots {
    /* stroke: black; */
    stroke-width: 9px;
}

.plot-group:hover .plot-circle {
    stroke-width: 1px;
}

.streets {
    /* scale: 90% 90%;
    rotate: 42deg;
    translate: 730px -400px; */
    pointer-events: all;
    fill: rgba(0,0,0,0);
    stroke: #FFF;
    stroke-width: 2px;
}

.plot-circle {
    fill: rgb(255, 0, 212);
    stroke: black;
}

.plot-circle.plot-available {
    fill: rgb(13, 255, 0);
    stroke: black;
    color: black;
}

.plot-circle.plot-spec-home-available {
    fill: rgb(0, 110, 255);
    stroke: black;
    color: black;
}

#plot-0 {
    fill: #b33c3c;
    stroke: #260136;
}

svg {
    width: 100%;
    height: 100%;
    pointer-events: all;
    /* Ensure SVG parcels are clickable */
}

.parcel {
    fill: #3CB371;
    stroke: #ffffff;
    stroke-width: 2px;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.parcel:hover {
    fill: #2E8B57;
}

/* magnifying glass */
.img-magnifier-glass {
    position: relative;
    border: 3px solid #000;
    border-radius: 50%;
    cursor: none;
    width: 100px;
    height: 100px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    display: none; /* Hide initially */
    pointer-events: none; /* Ensures the magnifier doesn't interfere with mouse events */
    z-index: 100;
}

.magnified-svg {
    transform-origin: top left;
}