/* =================================================================
   INFORMASJON SECTION
   ================================================================= */

/* Main layout: Image left (40%), fields right (60%) */
.info-layout {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 28px;
    align-items: start;
}

/* When no image, fields take full width */
.info-layout:not(:has(.info-image-wrapper[style*="display: block"])) {
    grid-template-columns: 1fr;
}

/* Image wrapper */
.info-image-wrapper {
    width: 100%;
    min-height: 400px;
    max-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.bolig-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* Fields wrapper */
.info-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.info-fields-wrapper .uk-field {
    min-width: 0;
}

.info-fields-wrapper .uk-input {
    width: 100%;
    box-sizing: border-box;
}

/* FINN input row - input and button side by side under same label */
.info-finn-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.info-finn-input-row .uk-input {
    flex: 1;
    min-width: 0;
}

.info-finn-input-row .uk-btn {
    white-space: nowrap;
    padding: 0 24px;
    height: 46px;
    flex-shrink: 0;
}

/* 2x2 grid for info details */
.info-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-details-grid .uk-field {
    min-width: 0;
}

.info-details-grid .uk-input {
    width: 100%;
    box-sizing: border-box;
}

/* Read-only style inputs */
.info-readonly {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
}

.info-readonly:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.info-readonly:focus {
    background: #fff;
    border-color: var(--uk-primary, #09B87D);
    cursor: text;
}

/* Mobile responsive */
@media screen and (max-width: 900px) {
    .info-layout {
        grid-template-columns: 1fr;
    }

    .info-finn-input-row {
        flex-direction: column;
    }

    .info-finn-input-row .uk-btn {
        width: 100%;
    }

    .info-details-grid {
        grid-template-columns: 1fr;
    }

    .info-image-wrapper {
        min-height: 250px;
    }
}
