.omo-ljod-listi {
    max-width: 820px;
    margin: 40px auto;
}

.omo-ljod-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(37, 64, 48, 0.12);
}

.omo-ljod-item:last-child {
    border-bottom: none;
}

.omo-ljod-titill {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    text-align: left;
}

.omo-ljod-titill a {
    color: #406850;
    text-decoration: none;
}

.omo-ljod-titill a:hover {
    color: #254030;
}

.omo-ljod-flokkur {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #668F70;
}

/* Fela like/heart efst á stakri færslu */
.post-header .button-love,
.love-this,
.post-meta .button-love {
    display: none !important;
}

/* Fela author box neðst */
.author-box,
.single-photo-wrapper + .section-post-about,
.section-post-about {
    display: none !important;
}

.single-navigation,
.fixed-nav {
    display: none !important;
}

.single-ljod .post-meta,
.single-ljod .post-footer,
.single-ljod .post-nav,
.single-ljod .section-post-related {
    display: none !important;
}

body.single-ljod .button-love,
body.single-ljod .love-this,
body.single-ljod .post-meta .button-love,
body.single-ljod .author-box,
body.single-ljod .section-post-about,
body.single-ljod .single-navigation,
body.single-ljod .fixed-nav,
body.single-ljod .post-footer,
body.single-ljod .section-post-related {
    display: none !important;
}

body.single-ljod .post-author,
body.single-ljod .author,
body.single-ljod .post-author-box,
body.single-ljod .avatar-wrapper,
body.single-ljod .single-photo-wrapper {
    display: none !important;
}

/* viðbót vegna krakkaleiki */
.leikur {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.leikur-title {
    font-size: 20px;
    cursor: pointer;
    position: relative;
}

.leikur-content {
    display: none;
    margin-top: 10px;
    color: #555;
}

.leikur.active .leikur-content {
    display: block;
}
.leikur-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.leikur.active .leikur-content {
    max-height: 500px;
}

.leikur-title {
    display: inline-block;
    background: #e6efe9;
    padding: 14px 26px;
    font-size: 22px;
    color: #254030;
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.25s ease;
}

.leikur-title:hover {
    background: #254030;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.leikur-modal-content {
    display: none;
}

.leikur-modal {
    display: none;
}

.leikur-modal.active {
    display: block;
}

.leikur-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
}

.leikur-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(900px, 90vw);
    max-height: 85vh;
    transform: translate(-50%, -50%);
    background: #f8f8f3;
    padding: 40px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.leikur-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: 0;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #254030;
}

.leikur-modal-body h2 {
    margin-top: 0;
    margin-bottom: 22px;
    color: #254030;
    font-size: 42px;
    line-height: 1.1;
}

.leikur-modal-body p {
    color: #254030;
    font-size: 22px;
    line-height: 1.7;
}

body.leikur-modal-open {
    overflow: hidden;
}
.leikur {
    margin-bottom: 25px;
}

.leikja-listi {
    margin-top: 20px;
}

/* fyrir fótinn */
.omo-random-leikir-list,
.omo-random-ljod-list,
.omo-random-textar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.omo-random-leikir-list li,
.omo-random-ljod-list li,
.omo-random-textar-list li {
    margin-bottom: 8px;
}

.omo-random-leikir-list a,
.omo-random-ljod-list a,
.omo-random-textar-list a {
    text-decoration: none;
    color: inherit;
}

.omo-random-leikir-list a:hover,
.omo-random-ljod-list a:hover,
.omo-random-textar-list a:hover {
    text-decoration: underline;
}

/* nýtt addon við ljóðaleitavél */ 
.omo-ljod-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.omo-ljod-title {
    margin-bottom: 22px;
    text-align: center;
}

.omo-ljod-search {
    margin-bottom: 30px;
    width: 100%;
}

.omo-ljod-search-row {
    display: flex;
    gap: 18px;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
}

.omo-ljod-search-row input[type="search"] {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 16px 20px;
    border: 1px solid rgba(37, 64, 48, 0.22);
    background: transparent;
    color: #406850;
    font-size: 20px;
    line-height: 1.3;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

.omo-ljod-search-row input[type="search"]::placeholder {
    color: #7d9a86;
    opacity: 1;
}

.omo-ljod-search-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #254030;
    color: #ffffff;
    border: none;
    padding: 0 34px;
    min-width: 132px;
    width: 132px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

.omo-ljod-search-row button:hover {
    background: #1b3024;
    color: #ffffff;
}

.omo-ljod-filters {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.omo-ljod-filters select {
    min-width: 240px;
    padding: 14px 16px;
    border: 1px solid rgba(37, 64, 48, 0.22);
    background: transparent;
    color: #406850;
    font-size: 18px;
    box-shadow: none;
    border-radius: 0;
}

.omo-ljod-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.omo-ljod-item {
    padding: 4px 0;
}

.omo-ljod-item-title {
    margin: 0;
    text-align: center;
    font-size: 22px;
    line-height: 1.5;
}

.omo-ljod-item-title a {
    color: #8aa391;
    text-decoration: none;
    transition: color 0.2s ease;
}

.omo-ljod-item-title a:hover {
    color: #254030;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .omo-ljod-search-row {
        flex-wrap: wrap;
    }

    .omo-ljod-search-row button {
        width: 100%;
        min-height: 54px;
    }

    .omo-ljod-filters {
        flex-direction: column;
    }

    .omo-ljod-filters select {
        width: 100%;
    }
}
/* Wrapper */
.omo-ljod-search {
    width: 100%;
    margin-bottom: 30px;
}

/* Row */
.omo-ljod-search-row {
    display: flex;
    gap: 18px;
    width: 100%;
    align-items: stretch;
}

/* Input */
.omo-ljod-search-row input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;

    padding: 16px 20px;
    border: 1px solid rgba(37, 64, 48, 0.22);
    background: transparent;
    color: #406850;
    font-size: 20px;

    border-radius: 0;
    box-shadow: none;
}

/* Button */
.omo-ljod-search-row button {
    flex: 0 0 auto;

    background: #254030;
    color: #fff;
    border: none;

    padding: 0 32px;
    min-width: 130px;

    font-size: 18px;
    cursor: pointer;
}

/* Filters */
.omo-ljod-filters {
    margin-top: 15px;
}

.omo-ljod-filters select {
    width: 100%;
    max-width: 300px;

    padding: 14px;
    border: 1px solid rgba(37, 64, 48, 0.22);
    background: transparent;
    color: #406850;
}

/* Mobile */
@media (max-width: 768px) {
    .omo-ljod-search-row {
        flex-direction: column;
    }

    .omo-ljod-search-row button {
        width: 100%;
        height: 54px;
    }

    .omo-ljod-filters select {
        max-width: 100%;
    }
}