/* style.css – HB Kaupunki Postit */
.hb-kaupunki-search-wrap {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

#hb-kaupunki-search {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.hb-kaupunki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.hb-kaupunki-box {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #d6111e;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.hb-kaupunki-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.hb-kaupunki-box h3 {
    color: #d6111e;
    margin-top: 0;
}

.kaupunki-excerpt {
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.kaupunki-button a {
    display: inline-block;
    background-color: #d6111e;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.kaupunki-button a:hover {
    background-color: #a30d16;
}

#hb-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.75);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hb-modal-content {
    background: #fff;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
    max-height: 80vh;
}

#hb-modal-close {
    margin-top: 20px;
    background-color: #ddc76d;
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
