.gf-osm-map .leaflet-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gf-osm-map .leaflet-control button,
.gf-osm-map .leaflet-control input {
    font-family: inherit; /* Inherit font from parent (template's default) */
    font-size: inherit; /* Inherit font size from template */
    border: none;
    background: transparent;
    box-shadow: none;
}

.gf-osm-map .gf-locate-btn {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}

/* Toolbar */
.gf-osm-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 8px;
    border-radius: 4px;
    z-index: 1000;
}

.gf-osm-toolbar input {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit; /* Inherit font from template */
    font-size: inherit; /* Inherit font size from template */
}

.gf-osm-toolbar button {
    background: #3880ff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: inherit; /* Inherit font from template */
    font-size: inherit; /* Inherit font size from template */
    cursor: pointer;
}

/* Address display */
.gf-osm-address {
    margin-top: 5px;
    font-family: inherit; /* Inherit font from template */
    font-size: 14px;
    color: #333;
    direction: rtl;
    text-align: right;
}

/* Layer Control Styling */
.gf-osm-map .leaflet-control-layers {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gf-osm-map .leaflet-control-layers-toggle {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26"><rect x="3" y="3" width="20" height="6" rx="1" fill="%234A90E2" opacity="0.9"/><rect x="3" y="10" width="20" height="6" rx="1" fill="%234A90E2" opacity="0.6"/><rect x="3" y="17" width="20" height="6" rx="1" fill="%234A90E2" opacity="0.3"/></svg>');
    background-size: 22px 22px;
    background-position: center;
    background-repeat: no-repeat;
    width: 34px;
    height: 34px;
    background-color: white;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0.2);
}

.gf-osm-map .leaflet-control-layers-list {
    padding: 8px 12px;
    font-family: inherit;
}

.gf-osm-map .leaflet-control-layers label {
    display: flex;
    align-items: center;
    margin: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-family: inherit;
}

.gf-osm-map .leaflet-control-layers label:hover {
    color: #0066cc;
}

.gf-osm-map .leaflet-control-layers input[type="radio"] {
    margin: 0 8px 0 0;
    cursor: pointer;
}

.gf-osm-map .leaflet-control-layers-expanded {
    min-width: 150px;
}

/* Ensure layer control is above toolbar */
.gf-osm-map .leaflet-control-layers {
    z-index: 1001;
}

/* Attribution styling */
.gf-osm-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    padding: 2px 5px;
}