.asunto-details {
    display: none; /* Oletusarvoisesti piilotettu */
}
.asunto-details.open {
    display: table-row; /* Näytetään kun .open-luokka lisätään */
}

/* Välilehtien tyyli */
.tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 30px;
}


.tab-links {
    list-style: none;
    padding: 0;
    display: flex;
    border-bottom: 0px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 0px;
}
.tab-links li {
    margin-right: 10px;
    width: 50%;
 
}
.tab-links li a {
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;

    border-bottom: none;
    transition: background-color 0.3s ease;
    word-spacing:0px;
    width: 100%;
    display: inline-block;
}
.tab-links li.active a {
    background-color: #A58147;
    color: white;
    border-bottom: 2px solid white; /* Korostus aktiiviselle välilehdelle */
}
.tab-links li a:hover {
    background-color: #A58147;
    color: white;
}


.toggle-details {
    background-color: #fff !important;
    padding: 8px !important;
    font-size: 25px!important;
    font-weight: 500!important;
    color: #A58147 !important;
    border-radius: 0px !important;
    width: 100%;
}

.toggle-details:hover {
    background-color: #fff!important;
    font-weight: 700!important;
    color: #000 !important;
}


/* Painikkeet ja tila */
.myyty {
    background-color: #000 !important;
    color: white;
    width: 100%;
    padding: 8px 12px !important;
    border-radius: 5px;
    font-weight: bold;
    cursor: not-allowed; 
    display: inline-block;
}

.join-queue {
    background-color: #d7dfbd;
    color: #333;
    width: 100%;
    padding: 8px 12px !important;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    display: inline-block;
}

.reserve-apartment {
    background-color: #DEE4C1 !important;
    color: #2E2F3E !important;
    width: 100%;
    padding: 8px 12px !important;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    display: inline-block;
}

/* Hover-efektit painikkeille */
.varaa-asunto:hover {
    background-color: #c7d0a8;
}

.myyty:hover {
    background-color: #444;
}		

/* Sisältöalueiden tyyli */
table th, table td {
    padding: 0px;
    margin: 0px;
    border-spacing: 0px;
    border: 0px solid #ddd !important;
    text-align: left;
    background-color: #fff !important;
    font-size: 14px;
}

tbody tr td {
    border-bottom: 1px solid #000 !important;
    padding-top: 20px;
    padding-bottom: 20px;
}

table thead tr th {
    border-bottom: 2px solid #000 !important;
    font-size: 14px;
    text-transform:uppercase;
    text-align: center;
}

table .custom-cell {
    padding-left: 10px; 
}

table td {
    vertical-align: middle !important;            
}

/* Sisältöalueiden tyyli */
tbody > tr {
background-color:#fff !important;
}

.tab-content > .tab {
    display: none;
    padding: 0px;
    background-color: #fff !important;
    border: 0px solid #ddd;
    border-radius: 5px;
}

.tab-content {
    background-color: #fff !important;
  
}

.tab-content > .tab.active {
    display: block;			
}

/* Taulukon tyyli */
table {
    width: 100%;
    border-spacing: 0px; 
    border-collapse: separate; /* Varmista, että border-spacing toimii */
    justify-content: center;  
    align-items: center !important;
    margin-top: 0px;
}

/* Lisätietojen tyyli */
.asunto-details img {
    width: 100%;
    height: auto;
    margin-right: 10px;
    display: inline-block;
}
.asunto-details p {
    margin: 5px 0;
}
.asunto-details {
    display: none;
}

/* Napit */
.tabs button {

    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tabs button:hover {
    background-color: #000;
}

/* Lomakkeen tyyli */
form {
    margin-top: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #005177;
}

.inner_table
.inner_table tr {
    width: 100%;
    border: none !important;
}

.inner_table td.spacer-holder {
    padding: 0 !important;
    margin: 0 !important;
}

.inner_table .spacer {
    width: 100%;
    height: 10px;
}

/*
.image_table tr td,
.inner_table tr td {
    display: block !important;
}
*/

.inner_table tr td {
    border: none !important;
    padding: 5px 0 !important;

    font-size: 18px !important;
}

.inner_table tr td.bold {
    font-weight: bold;
    padding-left: 15px !important;
}

.inner_table tr.beige,
.inner_table tr.beige td {
    background-color: #F2EEE8 !important;
}

.inner_table tr.beige td {
    padding: 20px 15px !important;
    font-weight: bold !important;
}

.inner_table tr.beige td.name {
    font-size: 28px !important;
}

.inner_table span {
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 20px 0 10px 0 !important;
    padding: 0 !important;
    display: block;
    font-weight: bold !important;
}

.inner_table .description {
    padding: 0 15px !important;
    font-size: 15px !important;
}

.image_table td {
    padding: 0 !important;
    border: none !important;
}

.image_table td.left {
    padding-right: 15px !important;
}

.image_table td.right {
    padding-left: 15px !important;
}

/*
.toggle-details.open {
    background-color: #ff0000 !important;
}
*/

.toggle-details {
    font-size: 28px !important;
}

.toggle-details.open span.minus {
    display: block;
}

.toggle-details.open span.plus {
    display: none;
}

.toggle-details span.minus {
    display: none;
}

.show-on-mobile {
    display: none;
}

#asunto-table tr.open td {
    border-bottom: none !important;
}

.asunto-details.open td[colspan="9"] {
    padding-top: 0 !important;
}

/* Asunto modal aka popup */

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99999;
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 600px !important;
object-fit: contain !important;
}



/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from { transform:scale(0) }
    to { transform:scale(1) }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

@media screen and (max-width: 1175px) {
    .show-on-mobile {
        display: inline-block;
        padding-right: 10px;
        font-weight: bold;
    }

    #asunto-table thead {
        display: none !important;
    }

    #asunto-table .side-by-side-on-mobile td {
        display: table-cell !important;
        max-width: 25% !important;
    }

    #asunto-table .as-table-cell {
        display: table-cell !important;
    }

    #asunto-table td {
        display: block !important;
    }

    .image_table td.left {
        padding-right: 0 !important;
    }
    
    .image_table td.right {
        padding-left: 0 !important;
    }

    .toggle-details {
        font-size: 25px!important;
    }
    
    /* FONTS */
    table th, table td {
        font-size: 12px;
    }
    
    table thead tr th {
        font-size: 14px;
    }
    
    .inner_table tr td {
        font-size: 16px !important;
        padding-left: 15px !important;
    }
    
    .inner_table tr.beige td.name {
        font-size: 24px !important;
    }

    .inner_table tr.beige td {
        padding: 15px 15px !important;
    }
    
    .inner_table span {
        font-size: 16px !important;
    }
    
    .inner_table .description {
        font-size: 16px !important;
    }

    .inner_table .join-queue, .inner_table .myyty, .inner_table .reserve-apartment {
        font-size: 14px !important;
    }

    #asunto-table .inner_table tbody,
    #asunto-table .inner_table tbody td {
        display: block !important;
    }
}

span {
word-spacing: 5px;}

.elementor-kit-6 a {

word-spacing: 5px;
}