.leaflet-control-custom {
    width: 34px; height: 34px; border: thin solid grey;
    background-color: white; cursor: pointer;
    border-radius: 0px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* All Leaflet controls (zoom, custom, etc.) */
.leaflet-control {
    border: none !important;        
    box-shadow: none !important;    
    background-color: #fffff8 !important; 
    border-radius: 0px  !important;
}

/* Optional: remove hover styling */
.leaflet-control:hover {
    background-color: #fffff8 !important;    /* bright yellow background */
    background: #fffff8 !important;
    box-shadow: none !important;
    border-radius: 0px  !important;
}

/* Optional: make buttons flush without extra padding */
.leaflet-bar a,
.leaflet-bar button {
    border: none !important;
    box-shadow: none !important;
    background-color: #fffff8 !important;    /* bright yellow background */
    border-radius: 0px  !important;
}

/* Base popup container */
.leaflet-popup {
    border: none !important;
    box-shadow: none !important;
}

/* Popup content wrapper */
/* .leaflet-popup-content-wrapper { */
/*   border-radius: 0;       /\* optional: square corners *\/ */
/*   border: none !important; */
/*   box-shadow: none !important; */
/*   padding: 0.25em;        /\* adjust spacing *\/ */
/*   background: #fffff8;       /\* or transparent if you prefer *\/ */
/* } */


/* Wrapper: add room for the X */
.leaflet-popup-content-wrapper {
    position: relative;        /* ensure close button is anchored */
    padding: 0.25em;
    padding-right: 1.5em;      /* space so text doesn’t overlap X */
    background: #fffff8;
    border: none !important;
    box-shadow: none !important;
}

/* Close button adjustments */
.leaflet-popup-close-button {
    top: 4px;                  /* adjust to taste */
    right: 4px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: transparent;   /* keep it clean */
    border: none;
    font-size: 18px;           /* make the X clearer */
    z-index: 2;                /* make sure it's above content */
}



/* Popup tip (little triangle) */
.leaflet-popup-tip {
    display: none;          /* remove the arrow if you don’t want it */
}

/* Popup content */
.leaflet-popup-content {
    margin: 0 !important;
    width: calc(120px + 2 * 12px);  /* 120px image + 2×12px margins */
    max-width: calc(120px + 2 * 12px);
    
    word-wrap: break-word;  /* allow wrapping */
    white-space: normal;    /* force breaking onto new lines */
    text-align: center;     /* optional, centers image/title */
}

/* Ensure images fit nicely */
.leaflet-popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px;
}


.leaflet-popup-content .title {
    width: calc(120px - 9px);
    max-width: calc(120px - 9px);
    margin-left: 12px;
    margin-top: 6px;
    margin-bottom: 6px;
    text-align: left;
}

/* --------------------------------------------- */

