/* Desktop tabela */
table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}
.room-table {
    width: 100%;
    border-collapse: collapse;
}
.room-table th, .room-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.room-table th {
    background: #EDEDED;
    color: #241C15;
    position: sticky;
    top: 0;
}
.plan-btn, .price-btn {
    border: 1px solid #c09b80;
    color: #c09b80;
    background: #fff;
    padding: 6px 12px;
    line-height: 1.4em;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.price-btn {
    background: #c09b80;
    color: #fff;
    border: none;
}
.price-btn a {
    color: #fff !important;
    line-height: 1.4em;
}
.price-btn a:hover, .price-btn a:focus {
    text-decoration: none;
}
.plan-btn:hover { background: #f4ece2; }
.price-btn:hover { background: #b08f73; }

.tw-border {
    border-width: 1px;
}
.tw-rounded-lg {
    border-radius: .5rem;
}

.tw-overflow-x-scroll {
    overflow-x: scroll;
}
.tw-max-h-\[344px\] {
    max-height: 396px;
}
.tw-top-0 {
    top: 0;
}

.tw-sticky {
    position: sticky;
    border: 1px solid #ddd;
    z-index: 100;
}
/* Popup forma */
.wpcf7-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px;
    margin-top: -12px;
    background-color: #fff;
}

.ryi-overlay-price {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1004;
    background-color: rgba(0, 0, 0, .85);
}

.ryi-popup-price {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 500px;
    background-color: rgba(0, 0, 0, .85);
    color: #fff;
    padding: 20px;
    z-index: 1005;
}

.ryi-popup-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, .85);
}

.ryi-popup-price .wpcf7 {
    width: 100%;
}

.ryi-popup-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    text-align: center;
    font-size: 2rem;
    line-height: 1;
    font-weight: 500;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    display: flex!important;
}

.ryi-popup-price input[type=text] {
    border: 1px solid rgba(255, 255, 255, .5);
    background-color: transparent !important;
    color: #fff;
}

.ryi-popup-price input[type=email] {
    border: 1px solid rgba(255, 255, 255, .5);
    background-color: transparent !important;
    color: #fff;
}

.ryi-popup-price input[type=tel] {
    border: 1px solid rgba(255, 255, 255, .5);
    background-color: transparent !important;
    color: #fff;
}

.ryi-popup-price select {
    border: 1px solid rgba(255, 255, 255, .5);
    background-color: transparent !important;
    color: #fff;
    width: 100%;
    border-radius: 0;
}

.ryi-popup-price select option {
    color: #222222;
}

.ryi-popup-price input[type=checkbox] {
    background: transparent;
    color: #fff;
    border: 1px solid #CCC;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 0;
}

.ryi-popup-price input[type=checkbox]:before {
    content: unset !important;
    position: absolute;
    width: 24px !important;
    height: 24px !important;
    border: 1px solid #f0f0f1;
    border-radius: 13px;
    top: 0;
    left: 0;
    background: #282827;
    color: #fff;
    transform: scale(1.1);
    transition: .5s;
    margin: 0 !important;
    box-shadow: unset;
}

.ryi-popup-price input[type=checkbox]:checked[type=checkbox]:before {
    left: 30px;
}

.ryi-popup-price input[type=checkbox]:checked {
    background-image: url("../images/check.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
}

.ryi-popup-price label {
    font-size: 1.4rem;
    color: #c09b80;
    display: block
}

.ryi-popup-price label a {
    text-decoration: underline;
}

.ryi-popup-price label a:hover {
    color: #fff;
    text-decoration: underline;
}

.ryi-popup-price h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    align-self: flex-start;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.ryi-popup-price p {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #fff;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.ryi-popup-price .wpcf7-submit {
    background-color: unset;
    color: #ccc;
    font-weight: bold;
    margin: 0;
    font-size: 1.2rem;
    display: block;
    width: 100%;
}

.ryi-popup-price .wpcf7-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px;
    margin-top: -12px;
    background-color: #fff;
}

.ryi-popup-price .wpcf7-spinner::before {
    background-color: #000;
}
/* Mobilni prikaz */
.mobile-only { display: none; }
.mobile-unit-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    margin-bottom: 21px;
}
.mobile-unit-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}
.mobile-unit-card ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
        margin-left: 6px;
}
.mobile-btns button {
    width: 48%;
    margin-right: 2%;
}
.tw-p-4 {
    padding: 1rem;
}

.tw-overflow-y-auto {
    overflow-y: auto;
}
.tw-max-h-\[500px\] {
    max-height: 500px;
}
.mobile-btns button:last-child { margin-right: 0; }
.tw-shadow-lenders {
    --tw-shadow: rgba(134, 134, 134, .1) 4px 4px 16px 0px;
    --tw-shadow-colored: 4px 4px 16px 0px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.tw-bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.tw-border {
    border-width: 1px;
}
.tw-rounded-lg {
    border-radius: .5rem;
}
.tw-overflow-hidden {
    overflow: hidden;
}
.tw-font-semibold {
    font-weight: 600;
}
.tw-bg-silver {
    --tw-bg-opacity: 1;
    background-color: rgb(248 248 248 / var(--tw-bg-opacity));
}
.plan-modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    text-align: center;
    overflow: hidden; /* Sprečava da slika izlazi van okvira */
}

.plan-modal-content img {
    max-width: 80%;
    max-height: 80vh;
    cursor: grab;
    transition: transform 0.2s ease;
    user-select: none;
}
.plan-modal-content img:active {
    cursor: grabbing;
}

/* Responsive */

@media not all and (min-width: 640px) {
    .max-sm\:-tw-mx-4 {
        margin-left: -1rem;
        margin-right: -1rem;
    }
}
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
}

/* Dugmići filtera */
.filter-clear, .filter-apply {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #c09b80;
    cursor: pointer;
    font-weight: 600;
}
.filter-apply { background: #c09b80; color: #fff; border: none; }
.filter-clear { background: #fff; color: #c09b80; }

/* MODAL plan stana */
.plan-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.plan-modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    text-align: center;
}

.plan-modal-content img {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    transition: transform 0.3s ease;
}

.plan-modal-content .close-planel {
    position: absolute;
    color: #000;
    top: 0px;
    right: 30px;
    font-size: 36px;
    z-index: 101;
    cursor: pointer;
}

.close-planel {
    display: block !important;
}

.zoom-controls {
    position: absolute;
    top: 15px;
    right: 80px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 100;
}

.zoom-btn {
   background: #c09b80;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    padding: 9px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    line-height: 27px;
}
