.esriLegendService {
    padding-bottom: 10px;
}

.esriPopup .sizer {
    width: 400px !important;
}

.esriPopup .contentPane {
    max-height: 300px !important;
}

.esriPopup .titlePane .title {  
    font-size: 15px;
    max-width: 335px;
}

/* Ensure ArcGIS JS 4.x popup links look like hyperlinks */
.esri-popup__content a {
    color: #0073e6 !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.esri-popup__content a:visited {
    color: #5a3ec8 !important;
}

.esri-popup__content a:hover {
    text-decoration: underline !important;
}

/* Add a small external-link indicator for links opening in a new tab */
.esri-popup__content a[target="_blank"]::after {
    content: " \2197"; /* ↗ */
    font-size: 0.9em;
}

/* Some ArcGIS popups render content inside .esri-feature-content */
.esri-feature-content a {
    color: #0073e6 !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.esri-feature-content a:visited {
    color: #5a3ec8 !important;
}

.esri-feature-content a:hover {
    text-decoration: underline !important;
}

/* When link text is wrapped in <b>, ensure the color/decoration apply */
.esri-feature-content a b {
    color: #0073e6 !important;
    text-decoration: inherit;
}

.esri-feature-content a[target="_blank"]::after {
    content: " \2197"; /* ↗ */
    font-size: 0.9em;
}

/* Attribution removal */
.esri-attribution__sources, 
.esri-attribution__powered-by {
    display: none;
}