.vm {
    color: var(--vm-ink, inherit);
    font-family: var(--vm-font, inherit);
    background: var(--vm-paper, transparent);
}

.vm-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 16px;
    align-items: start;
}

.vm-form {
    display: grid;
    gap: 16px;
}

.vm-form label {
    display: grid;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vm-muted, inherit);
}

.vm-rating {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.vm-rating legend {
    padding: 0;
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vm-muted, inherit);
}

.vm-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.vm-stars input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.vm-stars label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    font-size: 1.45rem;
    line-height: 1;
    color: #d6d3d1;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}

.vm-stars label:hover,
.vm-stars label:hover ~ label,
.vm-stars input:checked ~ label,
.vm-stars input:focus-visible + label {
    color: #f59e0b;
}

.vm-stars label:hover {
    transform: scale(1.08);
}

.vm-popup-stars {
    margin: 2px 0 0;
    color: #f59e0b;
    letter-spacing: 0.06em;
    font-size: 1rem;
    line-height: 1.2;
}

.vm-form input,
.vm-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    border: 1px solid var(--vm-line, #e7e5e4);
    border-radius: 8px;
    background: transparent;
    color: var(--vm-ink, inherit);
    font: inherit;
    padding: 12px 16px;
}

.vm-form button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--vm-accent, #1c1917);
    color: var(--vm-on-accent, #fff);
    font: inherit;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
}

.vm-note,
.vm-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--vm-muted, #78716c);
}

.vm-map {
    height: 520px;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #d6d3d1;
}

.vm-pin,
.vm-pin-home {
    display: block;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--vm-accent, #9a3412);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.vm-pin-home {
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border-radius: 4px;
}

.vm .leaflet-popup-content-wrapper,
.vm .leaflet-popup-tip {
    background: var(--vm-paper, #fff);
    color: var(--vm-ink, #1c1917);
    font-family: var(--vm-font, inherit);
}

.vm-popup-label {
    margin: 10px 0 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vm-muted, #78716c);
}

.vm-popup-label:first-child {
    margin-top: 0;
}

.vm-popup strong {
    display: block;
    margin-top: 2px;
    font-family: var(--vm-display, inherit);
    font-size: 1.15rem;
    line-height: 1.2;
}

.vm-popup-text {
    margin: 2px 0 0;
    white-space: pre-wrap;
}

.vm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(18, 16, 18, 0.72);
}

.vm-modal-card {
    width: min(440px, 100%);
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    background: var(--vm-paper, #fff);
    color: var(--vm-ink, #1c1917);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.vm-modal-card h2 {
    margin: 0 0 10px;
    font-family: var(--vm-display, inherit);
    font-size: 2rem;
    line-height: 1.1;
}

.vm-modal-card p {
    margin: 0 0 18px;
    line-height: 1.45;
}

.vm-google,
.vm-copy,
.vm-close {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.vm-google {
    min-height: 48px;
    background: var(--vm-accent, #e97fa5);
    color: var(--vm-on-accent, #121012);
    font-size: 1.05rem;
    padding: 14px 16px;
}

.vm-copy,
.vm-close {
    min-height: 44px;
    margin-top: 8px;
    padding: 12px 16px;
    background: transparent;
    color: var(--vm-ink, inherit);
    border: 1px solid var(--vm-line, #e7e5e4);
    font-weight: 600;
}

@media (max-width: 720px) {
    .vm-layout {
        grid-template-columns: 1fr;
    }

    .vm-map {
        height: 420px;
    }
}
