.smjrgoma-meta-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: -6px -12px -12px;
}

/* Notices */
.smjrgoma-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 0 0 16px;
    font-size: 13px;
    border-left: 4px solid;
}

.smjrgoma-notice-warning {
    background: #fff8e1;
    border-color: #f9a825;
    color: #5d4037;
}

.smjrgoma-notice a {
    color: #1565c0;
}

/* Tabs */
.smjrgoma-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
    padding: 0 16px;
}

.smjrgoma-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}

.smjrgoma-tab:hover {
    color: #0073aa;
}

.smjrgoma-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* Tab Panels */
.smjrgoma-tab-panel {
    display: none;
    padding: 20px;
}

.smjrgoma-tab-panel.active {
    display: block;
}

/* Map Editor Layout */
.smjrgoma-map-editor-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

/* Search bar */
.smjrgoma-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.smjrgoma-search-bar .dashicons {
    color: #888;
    flex-shrink: 0;
}

.smjrgoma-search-bar input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    font-size: 13px;
    padding: 0 !important;
}

.smjrgoma-search-bar .button {
    flex-shrink: 0;
}

.smjrgoma-map-hint {
    font-size: 12px;
    color: #777;
    margin: 8px 0 12px;
}

.smjrgoma-map-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.smjrgoma-feedback {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
}

.smjrgoma-feedback.error {
    color: #c62828;
}

/* Pin Editor */
.smjrgoma-pin-editor {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.smjrgoma-pin-editor h3 {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0073aa;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

/* Fields */
.smjrgoma-field {
    margin-bottom: 12px;
}

.smjrgoma-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #444;
    margin-bottom: 4px;
}

.smjrgoma-field input[type="text"],
.smjrgoma-field input[type="url"],
.smjrgoma-field input[type="number"],
.smjrgoma-field textarea,
.smjrgoma-field select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 12px;
    box-sizing: border-box;
}

.smjrgoma-field input[readonly] {
    background: #f9f9f9;
    color: #777;
}

.smjrgoma-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.smjrgoma-field-checkbox label {
    font-size: 13px;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    cursor: pointer;
}

.smjrgoma-field-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

/* Image Picker */
.smjrgoma-image-picker {
    display: flex;
    gap: 6px;
    align-items: center;
}

.smjrgoma-image-picker input {
    flex: 1;
}

.smjrgoma-image-picker .button {
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 8px;
}

.smjrgoma-pin-editor-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

/* Pins List Panel */
.smjrgoma-pins-list-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    max-height: 400px;
    overflow-y: auto;
}

.smjrgoma-pins-list-panel h3 {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.smjrgoma-badge {
    background: #0073aa;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}

/* Pin list item */
.smjrgoma-pin-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.smjrgoma-pin-item:hover {
    background: #f0f7ff;
    border-color: #c5dcf7;
}

.smjrgoma-pin-item.active {
    background: #e3f2fd;
    border-color: #90caf9;
}

.smjrgoma-pin-item-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.smjrgoma-pin-item-info {
    flex: 1;
    min-width: 0;
}

.smjrgoma-pin-item-title {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smjrgoma-pin-item-addr {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smjrgoma-pin-item-delete {
    font-size: 16px;
    color: #ccc;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

.smjrgoma-pin-item-delete:hover {
    color: #c62828;
}

.smjrgoma-no-pins {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 20px;
}

/* Settings Grid */
.smjrgoma-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

/* Snazzy Style */
.smjrgoma-style-section h4 {
    margin: 0 0 8px;
    color: #333;
}

.smjrgoma-snazzy-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.smjrgoma-snazzy-preset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    transition: all .15s;
}

.smjrgoma-snazzy-preset:hover {
    border-color: #0073aa;
    color: #0073aa;
}

.smjrgoma-snazzy-preset.active {
    border-color: #0073aa;
    background: #e3f2fd;
    color: #0073aa;
}

.smjrgoma-snazzy-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
    flex-shrink: 0;
}

.smjrgoma-style-section textarea.large-text {
    font-family: monospace;
    font-size: 11px;
}

.smjrgoma-style-section button {
    margin-right: 8px;
    margin-top: 8px;
}

/* wp-color-picker tweaks */
.wp-picker-container {
    display: inline-block !important;
}

/* Autocomplete Dropdown */
.smjrgoma-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.smjrgoma-autocomplete-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.4;
    color: #444;
}

.smjrgoma-autocomplete-list li:last-child {
    border-bottom: none;
}

.smjrgoma-autocomplete-list li:hover,
.smjrgoma-autocomplete-list li.active {
    background: #f5f5f5;
    color: #0073aa;
}