/* ===== FÄRGPALETT ===== */
:root {
    --color-sand:       #fefbec;
    --color-lime:       #e1efdf;
    --color-sage:       #8a9a5b;
    --color-earth:      #7a5c3a;
    --color-cream:      #fff9f0;
    --color-text:       #2e2e2e;
    --color-muted:      #6c757d;
    --color-accent:     #26b4a2;
}

/* ===== TYPOGRAFI ===== */
html, body {
    font-family: 'Georgia', 'Palatino Linotype', serif;
    color: var(--color-text);
    background-color: var(--color-cream);
    font-size: 1rem;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    font-weight: normal;
    letter-spacing: 0.03em;
    color: var(--color-earth);
}

/* ===== BAKGRUNDSSEKTIONER ===== */
.limesection,
.lime-bg,
.bg_lime {
    background-color: var(--color-lime);
}

.sandsection {
    background-color: var(--color-sand);
}

/* ===== KORT ===== */
.card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.card-img-top {
    padding: 0; /* Ta bort den gamla pass-foto-ramen */
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.card-footer {
    background-color: transparent;
    border-top: none;
}

/* ===== KNAPPAR ===== */
.btn-theme,
.btn.theme {
    background-color: var(--color-sage);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.4rem;
    font-family: 'Georgia', serif;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-theme:hover,
.btn.theme:hover {
    background-color: var(--color-earth);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== WHITEFRAME (används i ObjectGroupedWidget) ===== */
.whiteframe {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-align: center;
}

/* ===== SEKTIONSRUBRIK ===== */
.section-heading {
    text-align: center;
    margin-bottom: 1rem;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.6rem;
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-sage);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* ===== WIDGET-KORT (PageWidget) ===== */
.widget-card,
.accommodation-card {
    border-radius: 0.5rem;
}

/* ===== LÄNKAR ===== */
a {
    color: var(--color-earth);
}

a:hover {
    color: var(--color-sage);
    text-decoration: none;
}

/* Rubrik på boendetyp-sida */
.section-type-title {
    font-family: 'Georgia', serif;
    color: var(--color-earth);
    font-weight: normal;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

/* Gamla itemcard – ren kort-stil utan gult band */
.itemcard {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.itemcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.itemcard .itemimage {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
}

/* Gult namnband på bild – mildra färgen till ölandston */
.itemheader {
    position: absolute;
    top: 12px;
    left: 0;
    background-color: var(--color-earth);
    color: #fff;
    padding: 4px 36px 4px 16px;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    letter-spacing: 0.03em;
    border-radius: 0 4px 4px 0;
}

.itemcard-body {
    padding: 12px 16px;
    text-align: center;
}

.itemdescription {
    min-height: 48px;
    color: var(--color-muted);
    font-size: 0.95rem;
}
