/* ============================================
   MADx Hub Field Notes Styles
   v5.0 - Unified theme update
   ============================================ */

/* Flag marker on map */
.field-note-flag {
    background: none !important;
    border: none !important;
}

.note-flag-marker {
    position: relative;
    width: 28px;
    height: 36px;
    animation: note-flag-pulse 3s ease-in-out infinite;
}

.note-flag-pole {
    position: absolute;
    left: 3px;
    top: 0;
    width: 3px;
    height: 36px;
    background: linear-gradient(to bottom, #e67e22, #d35400);
    border-radius: 1px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.note-flag-body {
    position: absolute;
    left: 6px;
    top: 2px;
    width: 18px;
    height: 12px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Gentle pulse to draw OD attention to new notes */
@keyframes note-flag-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Note text in flag popup */
.field-note-text {
    background: rgba(230, 126, 34, 0.1);
    border-left: 3px solid #e67e22;
    padding: 8px 10px;
    margin: 4px 0;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    line-height: 1.4;
    word-wrap: break-word;
    color: #e0e0e0;
}

/* Field notes section inside source popups */
.field-notes-section {
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid #222;
}

.field-note-item {
    margin: 6px 0;
    padding: 6px 8px;
    background: rgba(230, 126, 34, 0.08);
    border-left: 3px solid #e67e22;
    border-radius: 0 4px 4px 0;
}

.field-note-item .field-note-text {
    background: none;
    border-left: none;
    padding: 0;
    margin: 0 0 4px 0;
}

.field-note-meta {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-note-delete {
    margin-left: auto;
    cursor: pointer;
    color: #e63946;
    font-size: 14px;
    padding: 0 4px;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.field-note-delete:hover {
    opacity: 1;
}