/* ==========================================================================
   RoomMe Core – styles
   Prisbarometeret. Flyttet ordret fra WPCode-snippet "Prisanalyse barometer CSS".
   Kontaktinfo-popup'ens .sp__* ligger stadig i Breakdances globale stylesheet
   og er BEVIDST ikke flyttet med – den er i brug og må ikke dubleres.
   ========================================================================== */

.pris-barometer {
    background: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    font-family: sans-serif;
}

.barometer-value,
.barometer-average,
.barometer-diff {
    font-size: 16px;
    margin-bottom: 8px;
}

.barometer-summary {
    font-size: 15px;
    margin-bottom: 14px;
    color: #333;
}

.barometer-gradient-bar {
    position: relative;
    height: 24px;
    background: linear-gradient(to right, #2ecc71, #f39c12, #e74c3c);
    border-radius: 12px;
    margin: 16px 0 10px;
}

.barometer-pin {
    position: absolute;
    top: -35px;
    transform: translateX(-50%);
    text-align: center;
}

.barometer-pin-label {
    font-size: 13px;
    font-weight: bold;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.barometer-arrow {
    width: 0;
    height: 0;
    margin: 0 auto;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #000;
}

.barometer-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.barometer-error {
    color: red;
    font-weight: bold;
}

.barometer-disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   Kontakt udlejer
   Egne klasser, så visningen ikke arver det gamle .sp__*-stylesheet.
   Farver og mål kommer fra redesignets globale variabler, med fallback så
   plugin'et også står pænt hvis de ikke er indlæst.
   ========================================================================== */

.rmc-kontakt {
    /* Luft ned til prislinjen ovenfor - knappen sad klods op ad den */
    margin-top: 18px;
    font-family: var(--rd-sans, "DM Sans", system-ui, sans-serif);
}

.rmc-kontakt__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 24px;
    border: 0;
    border-radius: var(--rd-r-pill, 99px);
    background: var(--rd-teal, #2C7A7A);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 200ms ease;
}

.rmc-kontakt__btn:hover {
    background: var(--rd-teal-hover, #1F5C5C);
    color: #fff;
}

.rmc-kontakt__notice {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--rd-line, #E7E4DE);
    border-radius: var(--rd-r-field, 8px);
    background: var(--rd-page, #FBFAF8);
    color: var(--rd-muted, #6B7A78);
    font-size: 15px;
    line-height: 1.5;
}

/* Modal */

.rmc-kontakt__overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 33, 31, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.rmc-kontakt__overlay[hidden] {
    display: none;
}

.rmc-kontakt__dialog {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 26px 28px 24px;
    border-radius: var(--rd-r-card, 18px);
    background: #fff;
    box-shadow: 0 24px 60px -24px rgba(18, 33, 31, .45);
}

.rmc-kontakt__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rmc-kontakt__title {
    margin: 0;
    font-family: var(--rd-serif, "Instrument Serif", Georgia, serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.15;
    color: var(--rd-ink, #12211F);
}

.rmc-kontakt__close {
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: transparent;
    color: var(--rd-label, #8A9694);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.rmc-kontakt__close:hover {
    background: var(--rd-page, #FBFAF8);
    color: var(--rd-ink, #12211F);
}

.rmc-kontakt__rows {
    display: flex;
    flex-direction: column;
}

.rmc-kontakt__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rd-line, #E7E4DE);
}

.rmc-kontakt__row:last-child {
    border-bottom: 0;
}

.rmc-kontakt__label {
    flex: none;
    color: var(--rd-label, #8A9694);
    font-size: 14px;
}

.rmc-kontakt__value {
    text-align: right;
    color: var(--rd-ink, #12211F);
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.rmc-kontakt__value a {
    color: var(--rd-teal, #2C7A7A);
    text-decoration: none;
}

.rmc-kontakt__value a:hover {
    text-decoration: underline;
}

.rmc-kontakt__note {
    margin: 18px 0 0;
    color: var(--rd-label, #8A9694);
    font-size: 12.5px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .rmc-kontakt__dialog {
        padding: 22px 20px 20px;
    }

    .rmc-kontakt__row {
        flex-direction: column;
        gap: 2px;
    }

    .rmc-kontakt__value {
        text-align: left;
    }
}

/* ==========================================================================
   Opret bruger
   ========================================================================== */

.rmc-signup {
    font-family: var(--rd-sans, "DM Sans", system-ui, sans-serif);
}

.rmc-signup__title {
    margin: 0 0 10px;
    color: var(--rd-ink, #12211F);
    font-size: 16px;
    font-weight: 700;
}

.rmc-signup__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.rmc-signup__row {
    display: flex;
    gap: 10px;
}

.rmc-signup__row .rmc-signup__input {
    flex: 1;
    min-width: 0;
}

.rmc-signup__input {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid var(--rd-line-soft, #E1DDD6);
    border-radius: var(--rd-r-pill, 99px);
    background: #fff;
    color: var(--rd-ink, #12211F);
    font-family: inherit;
    /* 16px: iOS zoomer ind paa alt derunder og zoomer ikke ud igen */
    font-size: 16px;
}

.rmc-signup__input:focus {
    border-color: var(--rd-teal, #2C7A7A);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(44, 122, 122, .16);
}

.rmc-signup__btn {
    padding: 14px 26px;
    border: 0;
    border-radius: var(--rd-r-pill, 99px);
    background: var(--rd-teal, #2C7A7A);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 200ms ease;
}

.rmc-signup__btn:hover {
    background: var(--rd-teal-hover, #1F5C5C);
}

.rmc-signup__terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--rd-muted, #6B7A78);
    font-size: 13px;
    line-height: 1.5;
}

.rmc-signup__terms input {
    margin-top: 3px;
    flex: none;
}

.rmc-signup__terms-note {
    margin: 0;
    color: var(--rd-muted, #6B7A78);
    font-size: 12.5px;
    line-height: 1.5;
}

.rmc-signup__error {
    margin: 0 0 10px;
    padding: 11px 16px;
    border-radius: var(--rd-r-field, 8px);
    background: #FDECEC;
    color: #A03232;
    font-size: 14px;
}

/* Honeypot og skjulte labels */
.rmc-signup__hp {
    position: absolute;
    left: -9999px;
}

.rmc-signup__vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .rmc-signup__row {
        flex-direction: column;
    }
}
