.plotInfo {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none !important;
}

.plot-content {
    background: white;
    padding: 35px;
    border-radius: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 90%;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    pointer-events: all !important;
}

/* Base styles for plot-status */
.plot-status {
    margin-top: 10px;
    width: 70%;
    min-width: 160px;
    height: 55px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

/* Status-specific styles */
.status-sold {
    background-color: #ff0000;
    /* Red for Sold */
}

.status-booked {
    background-color: #ff8000;
}

.status-available {
    background-color: #70a043;
    user-select: none;
}

.status-default {
    background-color: #666666;
}

.plot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plot-header h3 {
    color: #333;
    margin: 0;
    font-weight: 900;
    font-size: 30px;
}

.facing {
    color: #70a043;
    font-weight: 900;
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between text and compass icon */
}

.facing-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.plot-body {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.plot-column {
    flex: 1 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    /* For positioning borders */
}

.plot-number {
    border-right: 2px dotted gray;
    /* Dotted gray line on the right */
}

.plot-trees {
    border-left: 2px dotted gray;
    /* Dotted gray line on the left */
}

.plot-number .plot-number-box {
    width: 70%;
    min-width: 160px;
    height: 150px;
    margin-top: 19px;
    background: #70a043;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    /* Stack premium label and plot name vertically */
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.premium-label {
    display: block;
    font-size: 20px;
    color: #fff45f;
    /* White to match plot number box */
    font-weight: bold;
    margin-bottom: 5px;
}

.plot-details {
    display: flex;
    justify-content: center;
    align-items: center;
}

.plot-details .detail-row {
    background: #70a043;
    color: white;
    padding: 10px 15px;
    border-radius: 18px;
    width: 80%;
    text-align: center;
    font-weight: 500;
    margin: 4px 0;
    min-width: 200px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plot-details .detail-row span:first-child {
    user-select: none;
}

.detail-value {
    background-color: white;
    color: black;
    padding: 6px 8px;
    width: 70px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
}

.detail-row:has(.detail-value.hidden){
    display: none;
}

.status-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.plot-trees h4 {
    color: #70a043;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.1rem;
}

.tree-icons-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 3px;
}

.tree-icon {
    width: 70px;
    height: 70px;
    /* cursor: pointer; */
    transition: transform 0.2s;
    -webkit-user-drag: none;
    user-select: none;
}

/* .tree-icon:hover {
    transform: scale(1.1);
} */

.tree-type-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    color: #70a043;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

.dynamic-tree-box {
    width: 70%;
    background: #f3f3f3;
    border-radius: 12px;
    padding: 8px;
    position: relative;
}

.tree-details {
    margin-bottom: 8px;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #92b23f;
    font-weight: 500;
    margin: 4px 0;
    font-size: 14px;
}

.small-icon {
    width: 20px;
    height: 20px;
    -webkit-user-drag: none;
    user-select: none;
}

.plot-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    cursor: pointer;
    align-self: center;
    border-radius: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.close-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.close-button img {
    width: 74px;
    height: 74px;
}

.plot-trees h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.tree-icons-row {
    gap: 10px;
}

.tree-icon {
    width: 50px;
    height: 50px;
}

.tree-type-row {
    font-size: 12px;
    margin-bottom: 8px;
}

.dynamic-tree-box {
    width: 90%;
    padding: 6px;
}

.tree-item {
    font-size: 12px;
    gap: 5px;
}

.small-icon {
    width: 16px;
    height: 16px;
}

.plot-footer {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.close-button {
    margin-top: 0;
}

.close-button img {
    width: 60px;
    height: 60px;
}

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .project-details-container {
        padding: 10px;
    }

    .plot-content {
        border-radius: 40px;
        max-height: 95vh;
    }

    .plot-header h3 {
        font-size: 26px;
    }

    .facing {
        font-size: 22px;
        gap: 7px;
    }

    .facing-icon {
        width: 20px;
        height: 20px;
    }

    .plot-body {
        gap: 12px;
    }

    .plot-number .plot-number-box {
        width: 70%;
        height: 120px;
        font-size: 1.8rem;
        margin-top: 30px;
        padding: 10px;
        text-align: center;
    }

    .premium-label {
        font-size: 1.2rem;
    }

    .plot-details .detail-row {
        padding: 8px 12px;
        width: 85%;
        font-size: 15px;
    }

    .plot-trees h4 {
        font-size: 1rem;
    }

    .tree-icon {
        width: 60px;
        height: 60px;
    }

    .tree-type-row {
        font-size: 13px;
    }

    .dynamic-tree-box {
        width: 80%;
        padding: 7px;
    }

    .tree-item {
        font-size: 13px;
    }

    .small-icon {
        width: 18px;
        height: 18px;
    }

    .plot-footer {
        margin-top: 15px;
    }

    .close-button img {
        width: 70px;
        height: 70px;
    }
}

/* Mobile Devices (481px - 767px) */
@media (max-width: 767px) {
    .project-details-container {
        padding: 10px;
    }

    .plot-content {
        padding: 15px 30px;
        border-radius: 20px;
        gap: 10px;
        width: 80%;
        max-height: 95vh;
    }

    .plot-header {
        /* flex-direction: column; */
        text-align: center;
        gap: 10px;
    }

    .plot-header h3 {
        font-size: 24px;
    }

    .facing {
        font-size: 18px;
        gap: 6px;
    }

    .facing-icon {
        width: 18px;
        height: 18px;
    }

    .plot-body {
        flex-direction: column;
        gap: 10px;
    }

    .plot-column {
        min-width: 0;
        width: 100%;
    }

    .plot-details {
        background-color: #f3f3f3;
        padding: 20px 0;
        border-radius: 10px;
    }

    .plot-number {
        border-right: none;
        flex-direction: row;
    }

    .plot-trees {
        border-left: none;
    }

    .plot-number .plot-number-box {
        width: 100%;
        height: 75px;
        font-size: 1.5rem;
        margin-top: 20px;
    }

    .plot-status {
        margin-top: 20px;
        width: 100%;
        height: 75px;
    }

    .premium-label {
        display: none;
        font-size: 0.8em;
    }

    .premium-label.premium {
        display: block;
    }

    .plot-details .detail-row {
        padding: 8px 12px;
        border-radius: 15px;
        width: 90%;
        font-size: 14px;
    }

    .detail-value {
        padding: 5px 7px;
        font-size: 12px;
        border-radius: 10px;
    }

    .plot-trees h4 {
        margin: 0;
    }

    .dynamic-tree-box {
        width: 100%;
        padding: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dynamic-tree-box .tree-details {
        width: 90%;
        margin-bottom: 0;
    }

    .tree-item {
        margin: 5px 0;
    }
}

/* Small Mobile Devices and iPhones (320px - 480px) */
@media (max-width: 480px) {
    .project-details-container {
        width: 80%;
    }

    .plot-content {
        border-radius: 36px;
        gap: 6px;
        width: 80%;
        max-height: 80vh;
    }

    .plot-header h3 {
        font-size: 20px;
        margin-bottom: 0;
        padding: 0;
    }

    .facing {
        font-size: 16px;
    }

    .plot-number .plot-number-box {
        height: 45px;
        font-size: 1rem;
        margin-top: 0px;
    }

    .premium-label {
        font-size: 0.75em;
        margin-bottom: 0;
    }

    .plot-status {
        height: 45px;
        min-width: auto;
        margin-top: 0px;
        font-size: 14px;
        text-align: center;
    }

    .plot-details {
        padding: 6px 0;
    }

    .plot-details .detail-row {
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
    }

    .plot-number .plot-number-box {
        min-width: auto;
    }

    .detail-value {
        width: 60px;
        padding: 3px 6px;
        font-size: 15px;
        border-radius: 12px;
    }

    .plot-trees h4 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .tree-icon {
        width: 35px;
        height: 35px;
    }

    .tree-type-row {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .dynamic-tree-box {
        padding: 6px;
    }

    .tree-item {
        font-size: 15px;
        gap: 6px;
    }

    .small-icon {
        width: 30px;
        height: 30px;
    }

    .plot-footer {
        margin-top: 8px;
    }

    .close-button {
        margin-top: 0;
        box-shadow: none;
    }

    .close-button:hover {
        box-shadow: none;
    }

    .close-button img {
        width: 35px;
        height: 35px;
        margin-bottom: 0;
    }
}

/* Extra Small Screens (e.g., iPhone SE, < 375px) */
@media (max-width: 375px) {
    .project-details-container {
        padding: 5px;
    }

    .plot-content {
        padding: 8px;
        border-radius: 10px;
        gap: 6px;
        width: 95%;
    }

    .plot-header h3 {
        font-size: 18px;
    }

    .facing {
        font-size: 18px;
        gap: 4px;
    }

    .facing-icon {
        width: 14px;
        height: 14px;
    }

    .premium-label {
        font-size: 0.7em;
    }

    .plot-details {
        padding: 6px;
    }

    .plot-details .detail-row {
        padding: 5px 8px;
        border-radius: 10px;
        width: 100%;
        font-size: 11px;
    }

    .detail-value {
        width: 50px;
        padding: 3px 5px;
        font-size: 9px;
        border-radius: 10px;
    }

    .plot-trees h4 {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .tree-icon {
        width: 35px;
        height: 35px;
    }

    .tree-type-row {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .dynamic-tree-box {
        width: 100%;
        padding: 4px;
    }

    .tree-item {
        font-size: 14px;
        gap: 3px;
    }

    .small-icon {
        width: 12px;
        height: 12px;
    }

    .plot-footer {
        margin-top: 6px;
    }

    .close-button {
        margin-top: 6px;
    }

    .close-button img {
        width: 45px;
        height: 45px;
    }
}