/* 
   Homepage Styles 
   Contains styles for the map modal and other homepage-specific elements.
*/

.map-modal-post {
    position: absolute;
    bottom: 12px;
    left: -150px;
    /* Half of 300px */
    width: 300px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
    padding: 12px;
    box-sizing: border-box;
    display: none;
    /* Hidden by default */
}

.map-modal-image {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
}

.map-modal-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.map-modal-location p {
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
    color: #0a0f65;
    margin: 0;
    font-weight: 600;
}

.map-modal-location p:last-child {
    font-size: 11px;
    color: #258dc2;
    font-weight: 400;
}

.map-modal-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 8px;
    border-top: 1px solid #d63f04;
    padding-top: 8px;
}

.map-modal-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-modal-detail svg {
    width: 16px;
    height: 16px;
}

.map-modal-detail p {
    font-family: 'Afacad', sans-serif;
    font-size: 13px;
    color: #0a0f65;
    margin: 0;
    font-weight: 500;
}

.map-modal-description {
    font-family: 'Afacad';
    font-size: 14px;
    color: #0a0f65;
    margin-top: 8px;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    word-wrap: break-word;
}

.map-modal-location #popup-coordinates {
    text-align: end;
}

/* Close button style */
.map-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    color: #0a0f65;
    z-index: 2;
}