.hem-viewings-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

.hem-viewings-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border-radius: 28px;
    background: linear-gradient(135deg, #f7fbff, #eef7f1);
    border: 1px solid rgba(24, 82, 64, .12);
    margin-bottom: 1.25rem;
}

.hem-viewings-hero.compact {
    align-items: center;
}

.hem-kicker {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    font-size: .78rem;
    color: #24715b;
    margin: 0 0 .4rem;
}

.hem-viewings-hero h1 {
    margin: 0 0 .6rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
}

.hem-viewings-hero p,
.hem-muted {
    color: #5f6c72;
}

.hem-viewings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
    gap: 1rem;
    align-items: start;
}

.hem-viewings-grid.narrow {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr);
}

.hem-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 24px;
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

.hem-viewing-form {
    display: grid;
    gap: .85rem;
}

.hem-viewing-form label {
    display: grid;
    gap: .35rem;
    font-weight: 700;
    color: #22313a;
}

.hem-viewing-form input,
.hem-viewing-form textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, .18);
    border-radius: 14px;
    padding: .8rem .9rem;
    font: inherit;
}

.hem-two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.hem-primary-button,
.hem-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: .75rem 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.hem-primary-button {
    border: 0;
    background: #145a47;
    color: #fff;
    cursor: pointer;
}

.hem-secondary-link {
    border: 1px solid rgba(20, 90, 71, .25);
    color: #145a47;
    background: #fff;
    white-space: nowrap;
}

.hem-status-card {
    border-radius: 18px;
    background: #e8fff4;
    border: 1px solid rgba(20, 90, 71, .2);
    color: #145a47;
    padding: 1rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hem-viewing-items {
    display: grid;
    gap: .8rem;
}

.hem-viewing-item {
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 18px;
    padding: 1rem;
    background: #fbfcfd;
}

.hem-viewing-item > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
}

.hem-viewing-actions {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-top: .75rem;
}

.hem-viewing-actions a {
    font-weight: 800;
    color: #145a47;
}

.hem-empty-state {
    background: #f8fafc;
    border-radius: 18px;
    padding: 1rem;
}

.hem-viewings-table {
    width: 100%;
    border-collapse: collapse;
}

.hem-viewings-table th,
.hem-viewings-table td {
    text-align: left;
    padding: .75rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.hem-trust-card ul,
.hem-card ul {
    padding-left: 1.1rem;
}

@media (max-width: 760px) {
    .hem-viewings-hero,
    .hem-viewings-grid,
    .hem-viewings-grid.narrow,
    .hem-two-fields {
        grid-template-columns: 1fr;
    }

    .hem-viewings-hero {
        display: grid;
        border-radius: 22px;
    }

    .hem-secondary-link,
    .hem-primary-button {
        width: 100%;
    }

    .hem-viewings-table,
    .hem-viewings-table thead,
    .hem-viewings-table tbody,
    .hem-viewings-table tr,
    .hem-viewings-table th,
    .hem-viewings-table td {
        display: block;
    }

    .hem-viewings-table thead {
        display: none;
    }

    .hem-viewings-table tr {
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 16px;
        margin-bottom: .75rem;
        padding: .5rem;
    }
}

/* hem-viewings-v215: visningsbokning marker for automated tests */
.hem-viewings-v215-marker { display: none; }
