/* ===== JOURNAL MAP STYLES ===== */

.map-container {
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.02);
}

.paper-fold {
    position: relative;
}

.paper-fold::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.03);
    pointer-events: none;
}

/* House Marker */
.marker-charcoal {
    width: 28px;
    height: 28px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.marker-charcoal::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--ink);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.map-marker:hover .marker-charcoal {
    transform: scale(1.3);
}

.map-marker:hover .marker-charcoal::before {
    background-color: var(--accent);
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.marker-label {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: 0.5rem;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(253, 252, 248, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    transform: translateY(5px);
}

.map-marker:hover .marker-label {
    opacity: 1;
    transform: translateY(0);
}

/* Map Note Box (Quick View) */
.map-note-box {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border: 1px solid var(--ink);
    padding: 1.5rem;
    max-width: 320px;
    box-shadow: 10px 10px 0px rgba(26, 26, 26, 0.05);
    z-index: 30;
    animation: noteFadeIn 0.3s ease;
}

@keyframes noteFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.map-note-box.hidden {
    display: none;
}

.note-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.note-body {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink);
}

.note-btn {
    margin-top: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    cursor: pointer;
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
}

.note-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Form Map Placement Styles (Retained for functionality) */
.placement-step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.placement-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.placement-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--gray-100);
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.placement-status.placed {
    color: white;
    background: var(--accent);
}

.form-map-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 2.5px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(194, 94, 52, 0.35), 0 2px 6px rgba(0,0,0,0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    animation: markerDrop 0.25s ease;
}

@keyframes markerDrop {
    from { transform: translate(-50%, -150%); opacity: 0.5; }
    to   { transform: translate(-50%, -50%); opacity: 1; }
}
