html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Blur the page behind the login overlay */
.blurred-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* Full-screen overlay */
.lock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.lock-card {
    max-width: 520px;
    width: 100%;
    border-radius: 16px;
    background: #111;
    color: #fff;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.lock-card h3 {
    margin: 0 0 8px 0;
}

.lock-card p {
    margin: 0 0 16px 0;
    opacity: .85;
}

/* Global dark look (Bootstrap already helps via data-bs-theme="dark") */
body {
    background: #0b0f14;
    color: rgba(255,255,255,.9);
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

.navbar {
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* List rows */
.farm-row {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    transition: transform .08s ease, border-color .08s ease, background .08s ease;
}

    .farm-row:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.05);
        border-color: rgba(255,255,255,.14);
    }

.farm-thumb {
    width: 84px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.10);
}

.badge-soft {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
}

/* Preview blur/overlay (om du redan har dessa, behåll en uppsättning) */
.preview-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.60);
    display: grid;
    place-items: center;
    z-index: 2000;
    padding: 1.5rem;
}

.preview-card {
    max-width: 560px;
    width: 100%;
    border-radius: 16px;
}

/* --- Farm images: consistent frames --- */

/* List thumbnail: 16:9 men liten */
.farm-thumb {
    width: 112px;
    aspect-ratio: 16 / 9;
    height: auto; /* viktiga: låt aspect-ratio styra */
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient( 180deg, rgba(255,255,255,.03), rgba(255,255,255,.01) );
    border: 1px solid rgba(255,255,255,.10);
    flex: 0 0 auto;
    display: block;
}

/* Details hero: alltid 16:9, ingen stretch */
.farm-hero {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    aspect-ratio: 16 / 9; /* <-- nyckeln */
    width: 100%;
}

    /* Bilden fyller ramen snyggt */
    .farm-hero img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }