/* ================================================================
   vRent Custom Branding — Vojkan Maksić / vRent v4.3.3
   ================================================================
   Originalna primarna boja:  #1dbf73  →  #2D5A27 (tamno zelena)
   Originalni dark hover:     #19A463  →  #24481F
   Akcentna narandžasta:      #ec9d5f  →  #E67E22
   ================================================================
   NAPOMENA: Ovaj fajl se učitava POSLE style.min.css i override-uje
   originalne boje bez izmene originalnih fajlova.
   ================================================================ */

/* ----------------------------------------------------------------
   1. GLOBALNI LINKOVI
   ---------------------------------------------------------------- */
   a:hover {
    color: #2D5A27 !important;
}

/* ----------------------------------------------------------------
   2. HEADER I NAVIGACIJA
   ---------------------------------------------------------------- */
.header_area .navbar-social li a:hover i,
.header_area .navbar-social li span {
    color: #2D5A27;
}

.header_area .navbar .nav .nav-item:hover .nav-link,
.header_area .navbar .nav .nav-item.active .nav-link {
    color: #2D5A27;
}

/* Sticky header background */
.secondary-bg {
    background: #2D5A27;
    color: #fff;
}

/* ----------------------------------------------------------------
   3. TOP MENU BAR — akcentna narandžasta
   ---------------------------------------------------------------- */
.top_menu {
    background: #E67E22;
}

/* ----------------------------------------------------------------
   4. FOOTER — zelena pozadina sidebar/aktivan element
   ---------------------------------------------------------------- */
.footer-bg {
    background: #F7F7F7 !important;
}

.footer-top-nav {
    line-height: 1.8;
}

.footer-top-link {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.footer-top-link:hover {
    color: #2D5A27;
    text-decoration: underline;
}

#footer ul.list-unstyled li a {
    font-size: 14px;
    color: #555;
}

#footer ul.list-unstyled li a:hover {
    color: #2D5A27;
    text-decoration: underline;
}

#footer h6 {
    font-size: 14px;
    color: #222;
}

/* ----------------------------------------------------------------
   5. DUGMAD — primarna zelena
   ---------------------------------------------------------------- */
button.vbtn-default {
    background: #2D5A27;
    color: #fff;
}

button.vbtn-default:hover {
    background: #24481F;
    color: #fff;
}

button.vbtn-success {
    background: #2D5A27;
    color: #fff;
}

button.vbtn-success:hover {
    background: #24481F;
}

.btn-photo {
    background: #2D5A27;
    color: #fff;
}

.btn-photo:hover {
    background: #24481F;
    color: #fff;
}

/* Outline dugmad — zeleni okvir */
.vbtn-outline-success {
    color: #2D5A27;
    border-color: #2D5A27;
}

.vbtn-outline-success:hover {
    color: #ffffff;
    border-color: #2D5A27;
    background: #2D5A27;
}

a.vbtn-outline-success:hover {
    color: #ffffff !important;
    border-color: #2D5A27;
    background: #2D5A27;
}

/* Generičko .button */
.button {
    background-color: #2D5A27;
}

.button:hover {
    background-color: #24481F;
    color: #fff;
}

/* Dugmad u galерiji/photo */
.buttonbg button {
    background: #2D5A27;
}

.buttonbg button:hover {
    background: #24481F;
}

/* Bootstrap .btn-success */
.btn-success {
    background-color: #2D5A27;
    border-color: #2D5A27;
}

.btn-success:hover,
.btn-success:active,
.btn-success:focus {
    background-color: #24481F !important;
    border-color: #24481F !important;
}

/* ----------------------------------------------------------------
   6. BOOKING "Rezerviši" DUGME — akcentna narandžasta
   ---------------------------------------------------------------- */
#payment-form-submit {
    background: #E67E22 !important;
    border-color: #E67E22 !important;
    color: #fff !important;
}

#payment-form-submit:hover {
    background: #CA6F1E !important;
    border-color: #CA6F1E !important;
    color: #fff !important;
}

/* ----------------------------------------------------------------
   7. STATUSNE BOJE
   ---------------------------------------------------------------- */
.vbadge-success {
    background: #2D5A27;
    color: #fff;
}

.Accepted {
    background: #2D5A27;
    color: #fff;
}

/* ----------------------------------------------------------------
   8. TEKSTUALNE BOJE
   ---------------------------------------------------------------- */
.secondary-text-color {
    color: #2D5A27;
}

.text-color-hover:hover {
    color: #2D5A27;
}

.success-text {
    color: #2D5A27;
}

.icon-beach {
    color: #2D5A27;
}

.rating_active {
    color: #2D5A27;
}

.right_point h2 strong {
    color: #2D5A27;
}

.left_point ul li i:hover {
    color: #2D5A27;
}

figure.effect-ming p a:hover {
    color: #2D5A27;
}

/* Početna — popularne destinacije: fiksni odnos stranica (358×202) bez obzira na sliku */
section.bg-gray.mt-70 figure.effect-ming {
    position: relative;
    aspect-ratio: 358 / 202;
    height: auto;
    overflow: hidden;
}

section.bg-gray.mt-70 figure.effect-ming img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ----------------------------------------------------------------
   9. SIDEBAR AKTIVAN ELEMENT
   ---------------------------------------------------------------- */
.active-sidebar {
    border-left: 4px solid #2D5A27 !important;
    color: #2D5A27;
}

.active-sidebar:hover {
    color: #2D5A27;
}

.active-nav {
    border-bottom: .3rem solid #2D5A27;
}

.active-side {
    background: #2D5A27;
    color: #fff;
}

.nav-item > .active {
    color: #2D5A27;
}

/* ----------------------------------------------------------------
   10. MOBILNI MENI
   ---------------------------------------------------------------- */
.mobile-side a {
    color: #2D5A27;
}

/* ----------------------------------------------------------------
   11. FORME — focus stanje
   ---------------------------------------------------------------- */
input:focus,
select:focus,
textarea:focus {
    outline: 1px solid #2D5A27;
}

.form-control:focus {
    outline: 1px solid #2D5A27;
    border: 1px solid #2D5A27;
    box-shadow: none;
}

.form-control:focus,
textarea:focus,
select.form-control:focus,
textarea.form-control:focus,
input.form-control:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
[type=text].form-control:focus,
[type=password].form-control:focus,
[type=email].form-control:focus,
[type=tel].form-control:focus,
[contenteditable].form-control:focus {
    outline: 1px solid #2D5A27;
}

.dropdown-toggle::after {
    color: #2D5A27 !important;
}

/* ----------------------------------------------------------------
   12. TOGGLE SWITCH
   ---------------------------------------------------------------- */
.toggleSwitch input:checked ~ span:before {
    border-color: #2D5A27;
    box-shadow: inset 0 0 0 30px #2D5A27;
}

/* ----------------------------------------------------------------
   13. PAGINACIJA
   ---------------------------------------------------------------- */
.page-item.active .page-link {
    background-color: #2D5A27;
    border-color: #2D5A27;
}

.page-link {
    color: #2D5A27;
}

.page-link:hover {
    color: #fff !important;
    background-color: #2D5A27;
    border-color: #2D5A27;
}

/* DataTables paginacija */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #2D5A27 !important;
    color: #fff !important;
    background-color: #2D5A27 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #2D5A27 !important;
}

.current {
    background: #2D5A27 !important;
    color: #fff !important;
}

/* ----------------------------------------------------------------
   14. DATE RANGE PICKER
   ---------------------------------------------------------------- */
.ranges-time li:hover,
.ranges li:hover {
    background: #2D5A27 !important;
    color: #fff !important;
}

.ranges li.active,
.ranges-time li.active {
    background: #2D5A27 !important;
    border: 1px solid #2D5A27 !important;
    color: #fff !important;
}

/* ----------------------------------------------------------------
   15. JQUERY UI KALENDAR (booking kalendar)
   ---------------------------------------------------------------- */
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: 1px solid #2D5A27 !important;
    background: #2D5A27 !important;
    color: #fff;
}

/* ----------------------------------------------------------------
   16. BOOTSTRAP UTILITY OVERRIDES
   ---------------------------------------------------------------- */
.bg-success {
    background-color: #2D5A27 !important;
}

.text-success {
    color: #2D5A27 !important;
}

.border-success {
    border-color: #2D5A27 !important;
}

/* ----------------------------------------------------------------
   17. 404 STRANICA
   ---------------------------------------------------------------- */
.notfound .notfound-404 h1 {
    color: #2D5A27;
}

/* ----------------------------------------------------------------
   18. GALERIJA APARTMANA — Booking.com stil
   ---------------------------------------------------------------- */
.property-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 5px;
    height: 440px;
    margin-top: 6.5rem;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}

.property-gallery.gallery-single {
    grid-template-columns: 1fr;
}

.gallery-main {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
}

.gallery-thumb {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-main:hover .gallery-bg,
.gallery-thumb:hover .gallery-bg {
    transform: scale(1.05);
    filter: brightness(0.88);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.gallery-btn-all {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #fff;
    color: #222;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.gallery-btn-all:hover {
    background: #f5f5f5;
    border-color: #2D5A27;
    color: #2D5A27;
}

/* Responsive — tablet */
@media (max-width: 991px) {
    .property-gallery {
        height: 340px;
    }
}

/* Responsive — mobile: samo glavna slika, dugme ostaje */
@media (max-width: 767px) {
    .property-gallery {
        grid-template-columns: 1fr;
        height: 260px;
        border-radius: 0;
        margin-top: 5rem;
        margin-left: -5%;
        margin-right: -5%;
        width: 110%;
    }
    .gallery-grid {
        display: none;
    }
    .gallery-btn-all {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 1.2rem;
    }
}

/* ================================================================
   18. SINGLE PROPERTY PAGE — Booking.com stil (sp-* klase)
   ================================================================ */

/* ----- Naslov ---- */
.sp-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.sp-title-rating-text {
    font-size: 1.3rem;
    font-weight: 500;
}
.sp-property-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}
.sp-location {
    font-size: 1.4rem;
    color: #555;
}
.sp-show-map {
    color: #2D5A27;
    text-decoration: underline;
    font-weight: 600;
}
.sp-show-map:hover {
    color: #24481F !important;
}
.sp-stars .fa-star.secondary-text-color {
    font-size: 1.4rem;
}
.sp-stars .fa-star.text-muted {
    font-size: 1.4rem;
    color: #ccc !important;
}
.sp-title-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.sp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    color: #555;
    font-size: 1.5rem;
    background: #fff;
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.sp-action-btn:hover {
    border-color: #2D5A27;
    color: #2D5A27 !important;
}
.sp-reserve-btn {
    background: #2D5A27;
    color: #fff !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1.4rem;
    transition: background 0.2s;
    text-decoration: none;
}
.sp-reserve-btn:hover {
    background: #24481F;
    color: #fff !important;
}

/* ----- Galerija ----- */
.sp-gallery {
    position: relative;
}

/*
 * Gallery grid: 2fr 1fr — matematička osnova za minimalno kropovanje
 *
 * Sa grid-template-columns: 2fr 1fr i aspect-ratio na .sp-gallery-main,
 * sporedne ćelije automatski dobijaju isti aspect ratio (±1% zbog gap-a):
 *
 *   16:9 → main: W×2/3 × 9/16 = H; bočno: (W×1/3) / (H/2) ≈ 16/9 ✓
 *   4:3  → main: W×2/3 × 3/4  = H; bočno: (W×1/3) / (H/2) ≈ 4/3  ✓
 *   1:1  → main: W×2/3 × 1    = H; bočno: (W×1/3) / (H/2) ≈ 1:1  ✓
 *
 * JS dodaje klasu sp-fmt-* na .sp-gallery-top nakon što se slika učita.
 * Fallback (bez klase) = 16:9.
 */
.sp-gallery-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
    align-items: stretch;
}
.sp-gallery-single {
    grid-template-columns: 1fr;
}

/* -- Glavna (velika) slika: aspect-ratio određuje visinu reda (bez height:100% — inače prelazi u gap) -- */
.sp-gallery-main {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9; /* fallback dok JS ne doda klasu */
}
/* Format varijante: JS dodaje klasu na .sp-gallery-top */
.sp-gallery-top.sp-fmt-wide .sp-gallery-main   { aspect-ratio: 16 / 9; }
.sp-gallery-top.sp-fmt-landscape .sp-gallery-main { aspect-ratio: 4 / 3;  }
.sp-gallery-top.sp-fmt-square .sp-gallery-main    { aspect-ratio: 1 / 1;  }
/* Portrait (9:16): 3 kolone naporedo, manje bočno-stopovanje */
.sp-gallery-top.sp-fmt-portrait {
    grid-template-columns: 1fr 1fr 1fr;
}
.sp-gallery-top.sp-fmt-portrait .sp-gallery-side {
    grid-template-rows: unset;
    grid-template-columns: 1fr;
}
.sp-gallery-top.sp-fmt-portrait .sp-gallery-main {
    aspect-ratio: 9 / 16;
}

.sp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.sp-gallery-main:hover img {
    transform: scale(1.04);
}

/* -- Bočna kolona: 2 ćelije koje se rasteže na visinu glavne slike -- */
.sp-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
}
.sp-gallery-side-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    min-height: 0;
}
.sp-gallery-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
/* Donja bočna: blagi krop za poravnanje sa glavnom (gap / zaokruživanje) */
.sp-gallery-side-item:last-child img {
    object-position: center 42%;
}
.sp-gallery-side-item:hover img {
    transform: scale(1.04);
}
.sp-gallery-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    position: relative;
    height: 100px;
}
.sp-gallery-thumb-item {
    flex: 1;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}
.sp-gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sp-gallery-thumb-item:hover img {
    transform: scale(1.06);
}
.sp-thumb-overlay img {
    filter: brightness(0.55);
}
.sp-thumb-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    pointer-events: none;
}
.sp-all-photos-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: #fff;
    border: 1.5px solid #bbb;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
    z-index: 5;
}
.sp-all-photos-btn:hover {
    border-color: #2D5A27;
    color: #2D5A27;
    background: #f9f9f9;
}
.sp-gallery-mobile-thumbs {
    display: none;
}

/* ----- Pilule pogodnosti (top) ----- */
.sp-amenity-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}
.sp-amenity-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    font-size: 1.3rem;
    color: #333;
    white-space: nowrap;
}
.sp-amenity-pill .icon,
.sp-amenity-pill i {
    font-size: 1.6rem;
    color: #2D5A27;
}
.sp-amenity-unavailable {
    opacity: 0.5;
}

/* ----- Layout sadržaj + sidebar ----- */
.sp-content-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.sp-content-main {
    min-width: 0;
}

/* ----- Sekcije u levoj koloni ----- */
.sp-section {
    padding: 28px 0;
}
.sp-section-divider {
    border-top: 1px solid #e8e8e8;
}
.sp-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}
.sp-subsection-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}
.sp-about-text {
    font-size: 1.5rem;
    color: #333;
    line-height: 1.7;
}

/* ----- Prostor (grid detalji) ----- */
.sp-space-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}
.sp-space-item {
    font-size: 1.4rem;
    color: #333;
}
.sp-space-label {
    font-weight: 600;
    margin-right: 4px;
}

/* ----- Grid pogodnosti ----- */
.sp-facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
}
.sp-facility-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    color: #333;
}
.sp-facility-icon {
    font-size: 1.8rem;
    color: #2D5A27;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.sp-facility-unavailable {
    opacity: 0.45;
    text-decoration: line-through;
}
.sp-more-btn {
    border: 1px solid #2D5A27;
    color: #2D5A27;
    font-size: 1.3rem;
    padding: 6px 14px;
    border-radius: 6px;
    background: transparent;
}
.sp-more-btn:hover {
    background: #2D5A27;
    color: #fff;
}

/* ----- Cene ----- */
.sp-prices-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sp-price-item {
    font-size: 1.4rem;
    color: #333;
}
.sp-price-icon {
    color: #2D5A27;
}

/* ----- Sidebar kartica ----- */
.sp-content-sidebar {
    position: sticky;
    top: 24px;
}
.sp-sidebar-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
}
.sp-sidebar-score {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sp-score-badge {
    background: #24481F;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 8px;
    line-height: 1;
    min-width: 60px;
    text-align: center;
}
.sp-score-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}
.sp-highlights-title {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    color: #1a1a1a;
}
.sp-highlight-item {
    font-size: 1.4rem;
    color: #444;
    padding: 3px 0;
}
.sp-sidebar-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.sp-price-value {
    font-size: 2.4rem;
    font-weight: 700;
}
.sp-price-per {
    font-size: 1.3rem;
}

/* ----- Datum polja u sidebaru ----- */
.sp-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 2px solid #E67E22;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}
.sp-date-field {
    padding: 10px 12px;
}
.sp-date-field:first-child {
    border-right: 1px solid #e8e8e8;
}
.sp-date-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #555;
    display: block;
    margin-bottom: 2px;
}
.sp-date-field .form-control {
    border: none;
    padding: 0;
    height: auto;
    font-size: 1.3rem;
    background: transparent;
    box-shadow: none;
}
.sp-price-table td {
    font-size: 1.3rem;
    padding: 4px 8px;
}

/* ----- Deljenje ----- */
.sp-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sp-twitter-btn,
.sp-linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.2rem;
    color: #555;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.sp-twitter-btn:hover,
.sp-linkedin-btn:hover {
    border-color: #2D5A27;
    color: #2D5A27 !important;
}

.sp-gallery-side-placeholder {
    border: 1px dashed #cfcfcf;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.sp-gallery-side-placeholder-text {
    font-size: 12px;
    line-height: 1.35;
    color: #666;
}

/* ----- Dostupnost sekcija ----- */
.sp-availability-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 32px;
}
.sp-avail-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 2px solid #E67E22;
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
}
.sp-avail-field {
    flex: 1;
    padding: 14px 20px;
    border-right: 1px solid #e8e8e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #fff;
}
.sp-avail-label {
    font-size: 1.4rem;
    color: #555;
}
.sp-avail-search-btn {
    background: #2D5A27;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0 28px;
    border-radius: 0;
    border: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.sp-avail-search-btn:hover {
    background: #24481F;
    color: #fff !important;
}
.sp-price-match-link {
    font-size: 1.3rem;
    color: #2D5A27;
    text-decoration: none;
}
.sp-price-match-link:hover {
    text-decoration: underline;
    color: #24481F !important;
}

/* ----- Recenzije ----- */
.sp-reviews-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 32px;
}
.sp-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.sp-review-score-badge {
    background: #24481F;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 8px;
    line-height: 1;
    min-width: 66px;
    text-align: center;
}
.sp-read-all-link {
    color: #2D5A27;
    font-size: 1.3rem;
    text-decoration: underline;
}
.sp-read-all-link:hover {
    color: #24481F !important;
}
.sp-rating-cat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}
.sp-rating-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 32px;
}
.sp-rating-cat-item {
    font-size: 1.4rem;
    color: #333;
}
.sp-rating-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.sp-rating-fill {
    height: 100%;
    background: #24481F;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.sp-review-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.sp-review-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.sp-review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.sp-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sp-review-text {
    font-size: 1.4rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
}
.sp-review-reply {
    border-left: 3px solid var(--color-primary, #2D5A27);
    padding: 12px 14px;
    background: #f8faf7;
    border-radius: 0 8px 8px 0;
}
.sp-review-reply-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary, #2D5A27);
}
.sp-review-reply-text {
    font-size: 1.35rem;
    color: #444;
    line-height: 1.5;
}
.sp-read-more {
    font-size: 1.3rem;
    color: #2D5A27;
    font-weight: 600;
    text-decoration: underline;
}
.sp-read-more:hover {
    color: #24481F !important;
}
.sp-all-reviews-btn {
    border: 2px solid #2D5A27;
    color: #2D5A27;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 10px 32px;
    border-radius: 6px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}
.sp-all-reviews-btn:hover {
    background: #2D5A27;
    color: #fff !important;
}

/* ----- O domaćinu ----- */
.sp-host-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 32px;
    padding-bottom: 32px;
}
.sp-host-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
    .sp-content-row {
        grid-template-columns: 1fr 300px;
        gap: 24px;
    }
    .sp-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sp-rating-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sp-review-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 991px) {
    .sp-content-row {
        grid-template-columns: 1fr;
    }
    .sp-content-sidebar {
        position: static;
        order: -1;
    }
    .sp-rating-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sp-review-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .sp-property-name {
        font-size: 1.8rem;
    }
    .sp-gallery-top {
        grid-template-columns: 1fr;
    }
    .sp-gallery-side {
        display: none;
    }
    .sp-gallery-thumbs {
        display: none;
    }
    .sp-gallery-mobile-thumbs {
        display: flex;
        gap: 8px;
        margin-top: 8px;
        padding: 2px 2px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .sp-gallery-mobile-thumb,
    .sp-gallery-mobile-all {
        flex: 0 0 72px;
        width: 72px;
        height: 64px;
        border: 0;
        border-radius: 8px;
        padding: 0;
        overflow: hidden;
        background: #f5f5f5;
        cursor: pointer;
        position: relative;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    }
    .sp-gallery-mobile-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .sp-gallery-mobile-all {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        padding: 6px;
        color: #2D5A27;
        background: #f2f6f2;
        font-size: 1.2rem;
        font-weight: 700;
        white-space: nowrap;
    }
    .sp-gallery-mobile-all:hover,
    .sp-gallery-mobile-thumb:hover {
        box-shadow: inset 0 0 0 2px #2D5A27;
    }
    .sp-gallery-mobile-thumb .sp-thumb-more {
        font-size: 1.4rem;
        background: rgba(0, 0, 0, 0.45);
    }
    .sp-amenity-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .sp-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sp-space-grid {
        grid-template-columns: 1fr;
    }
    .sp-rating-cats-grid {
        grid-template-columns: 1fr;
    }
    .sp-avail-form {
        flex-direction: column;
    }
    .sp-avail-field {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    .sp-avail-search-btn {
        padding: 14px;
        text-align: center;
        border-radius: 0 0 6px 6px;
    }
    .sp-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ----- sp-page levi/desni margini ----- */
.container-fluid-90.sp-page {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px !important;
    padding-right: 32px !important;
    margin-bottom: 15px;
}
.container-fluid-90.sp-page--top {
    padding-top: 24px;
}
@media (max-width: 1200px) {
    .container-fluid-90.sp-page {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}
@media (max-width: 991px) {
    .container-fluid-90.sp-page--top {
        padding-top: 16px;
    }
}
@media (max-width: 768px) {
    .container-fluid-90.sp-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .container-fluid-90.sp-page--top {
        padding-top: 16px;
    }
}
@media (max-width: 480px) {
    .container-fluid-90.sp-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ----- Galerija + mapa grid ----- */
.sp-gallery-map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 8px;
}
.sp-gallery-col {
    min-width: 0;
}
.sp-map-col {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.sp-map-embed {
    width: 100%;
    flex: 1 1 auto;
    min-height: 200px; /* dinamički se rasteže na visinu galerije */
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}
@media (max-width: 991px) {
    .sp-gallery-map-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sp-map-col {
        position: static;
    }
    .sp-map-embed {
        flex: none;
        height: 240px;
        min-height: 240px;
    }
    .sp-content-sidebar {
        order: -1;
    }
    .sp-content-row {
        gap: 20px;
        margin-top: 12px !important;
    }
    .sp-sidebar-card {
        padding: 16px 18px;
    }
}

@media (max-width: 767px) {
    .sp-title-bar {
        margin-bottom: 12px;
    }
    .sp-title-right {
        width: 100%;
        justify-content: flex-end;
    }
    .sp-sidebar-card {
        padding: 14px 16px;
        border-radius: 10px;
    }
    .sp-date-field {
        padding: 12px;
    }
    .sp-date-field .form-control {
        font-size: 1.4rem;
    }
    #number_of_guests.form-control {
        min-height: 44px;
        font-size: 1.4rem;
    }
}

/* Rezervacija — narandžasti CTA */
.sp-book-cta,
button.sp-book-cta,
#save_btn.sp-book-cta {
    background: #E67E22 !important;
    border: 2px solid #E67E22 !important;
    color: #fff !important;
}
.sp-book-cta:hover,
button.sp-book-cta:hover,
#save_btn.sp-book-cta:hover,
.sp-book-cta:focus,
#save_btn.sp-book-cta:focus {
    background: #CA6F1E !important;
    border-color: #CA6F1E !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.35);
}
.sp-book-reserve-btn {
    background: #E67E22 !important;
    border: 2px solid #E67E22 !important;
    color: #fff !important;
}
.sp-book-reserve-btn:hover,
.sp-book-reserve-btn:focus {
    background: #CA6F1E !important;
    border-color: #CA6F1E !important;
    color: #fff !important;
}

/* ===== 19. Search Autocomplete Dropdown ===== */
.search-autocomplete-wrap {
    position: relative;
}
.search-autocomplete-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.06);
    max-height: 340px;
    overflow-y: auto;
}
.search-autocomplete-list .sug-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: none;
}
.search-autocomplete-list .sug-item:hover,
.search-autocomplete-list .sug-item.sug-active {
    background: #f2f6f2;
}
/* Icon wrapper */
.sug-icon-wrap {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.sug-icon-property {
    background: #e4ede3;
    color: #2D5A27;
}
.sug-icon-city {
    background: #e4ede3;
    color: #2D5A27;
}
.sug-icon-type {
    background: #fdebd0;
    color: #E67E22;
}
/* Text content */
.sug-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sug-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sug-sub {
    font-size: 1.15rem;
    color: #888;
    display: block;
    font-weight: 400;
}
/* Arrow */
.sug-arrow {
    flex-shrink: 0;
    color: #d0d0d0;
    font-size: 1.1rem;
    transition: color 0.12s, transform 0.12s;
}
.sug-item:hover .sug-arrow {
    color: #2D5A27;
    transform: translateX(2px);
}


/* ===== SP HOST CARD (expanded) ===== */
.sp-host-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.sp-host-card-left {
    flex-shrink: 0;
    text-align: center;
    width: 120px;
}
.sp-host-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8e8e8;
}
.sp-host-card-right {
    flex: 1;
}
.sp-host-meta p {
    line-height: 1.6;
}
.sp-host-about {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #333;
    max-width: 680px;
}
.sp-host-profile-btn {
    background: transparent;
    border: 2px solid #2D5A27;
    color: #2D5A27;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
}
a.sp-host-profile-btn:hover,
a.sp-host-profile-btn:focus {
    background: #2D5A27;
    color: #fff !important;
    border-color: #2D5A27;
}

/* ===== SP SURROUNDINGS ===== */
.sp-surroundings-section {
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}
.sp-map-link {
    font-size: 1.4rem;
    color: #2D5A27;
    text-decoration: underline;
}
.sp-map-link:hover {
    color: #24481F;
}

@media (max-width: 576px) {
    .sp-host-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .sp-host-card-right {
        width: 100%;
    }
}

/* ===== 20. SINGLE PROPERTY — Booking tabela i dostupnost ===== */
.sp-avail-calendars { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.sp-avail-m { min-width: 265px; }
.sp-cal-month-title { text-align: center; font-weight: 700; padding-bottom: .75rem; font-size: .95rem; color: #333; }
.sp-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.sp-cal-dname { text-align: center; font-size: .75rem; font-weight: 600; color: #888; padding: 5px 0 4px; }
.sp-cal-d { text-align: center; padding: 7px 2px; border-radius: 4px; font-size: .85rem; line-height: 1; }
.spc-free { background: #edf7ed; color: #2D5A27; font-weight: 500; }
.spc-blocked { background: #f2f2f2; color: #bbb; text-decoration: line-through; }
.spc-past { color: #d8d8d8; }
.sp-avail-legend { display: flex; gap: 1.5rem; font-size: .84rem; color: #555; align-items: center; flex-wrap: wrap; }
.sp-avail-legend span { display: flex; align-items: center; gap: .45rem; }
.sp-avail-swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

/* Booking tabela */
.sp-book-table { border-collapse: collapse; width: 100%; border: 1px solid #c8dfc5; }
.sp-book-table thead tr { background: #2D5A27; color: #fff; }
.sp-book-table thead th { padding: 12px 15px; font-size: .875rem; font-weight: 600; border: none; white-space: nowrap; }
.sp-book-table tbody td { padding: 15px; vertical-align: top; border: 1px solid #d4e6d1; font-size: .875rem; background: #fff; }
.sp-book-table tbody tr:hover td { background: #f7fbf6; }
.sp-book-td-type { min-width: 250px; }
.sp-book-td-guests { min-width: 90px; vertical-align: middle !important; text-align: center; }
.sp-book-td-price { min-width: 160px; vertical-align: middle !important; text-align: center; }
.sp-book-td-options { min-width: 210px; }
.sp-book-td-btn { min-width: 140px; vertical-align: middle !important; text-align: center; }
.sp-book-room-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .4rem; }
.sp-book-room-meta span { font-size: .875rem; color: #555; }
.sp-book-amenity { font-size: .875rem; color: #444; margin-top: 3px; display: flex; align-items: center; gap: .3rem; }
.sp-book-guest-icon { font-size: 1.6rem; color: #2D5A27; display: block; }
.sp-book-guest-count { font-size: .95rem; font-weight: 700; color: #2D5A27; margin-top: .2rem; }
.sp-book-price-val { font-size: 1.15rem; font-weight: 700; color: #2D5A27; }
.sp-book-price-sub { font-size: .875rem; color: #888; margin-top: .2rem; }
.sp-book-option { font-size: .875rem; color: #333; display: flex; align-items: flex-start; gap: .35rem; line-height: 1.4; }
.sp-book-option + .sp-book-option { margin-top: .5rem; }
.sp-book-opt-ok i { color: #2D5A27; flex-shrink: 0; margin-top: 2px; }
.sp-book-opt-warn i { color: #c0392b; flex-shrink: 0; margin-top: 2px; }
.sp-book-opt-warn { color: #c0392b; }
.sp-book-reserve-btn { background: #E67E22; color: #fff; border: none; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: .88rem; white-space: nowrap; width: 100%; transition: background 0.2s; }
.sp-book-reserve-btn:hover { background: #CA6F1E; color: #fff; }
.sp-book-pay-note { font-size: .875rem; color: #666; margin-top: .5rem; line-height: 1.3; }
.sp-book-table .text-12 { font-size: .875rem; }
.sp-book-table, .sp-book-table * { font-size: 1.4rem !important; }

/* Kućni red */
.sp-house-rules-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.sp-rules-table { border: 1px solid #d4e6d1; border-radius: 8px; overflow: hidden; background: #fff; }
.sp-rule-row { display: flex; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid #e8f0e7; }
.sp-rule-row:last-child { border-bottom: none; }
.sp-rule-icon-label { display: flex; align-items: center; gap: .6rem; min-width: 260px; flex-shrink: 0; }
.sp-rule-icon { color: #2D5A27; font-size: 1.4rem; width: 18px; text-align: center; }
.sp-rule-label { font-weight: 600; font-size: 1.4rem; color: #333; }
.sp-rule-value { font-size: 1.4rem; color: #444; flex: 1; }
.sp-placeholder { color: #aaa !important; font-style: italic; font-size: 1.4rem; }
@media (max-width: 600px) {
    .sp-rule-row { flex-direction: column; gap: .4rem; }
    .sp-rule-icon-label { min-width: unset; }
}

/* ===== 21. SINGLE PROPERTY — "Napisano sitnim slovima" ===== */
.sp-fine-print-section { border-top: 1px solid #e8e8e8; padding-top: 32px; padding-bottom: 8px; }
.sp-fine-print-subtitle { font-size: 1.4rem; color: #666; margin-top: 4px; margin-bottom: 16px; }
.sp-fine-print-box {
    border: 1px solid #e8d5b0;
    border-radius: 8px;
    background: #fffaf3;
    padding: 16px 20px;
    font-size: 1.4rem;
    color: #444;
    line-height: 1.7;
}
.sp-fine-print-box p { margin-bottom: 8px; }
.sp-fine-print-box p:last-child { margin-bottom: 0; }
.sp-fine-print-placeholder { color: #aaa; font-style: italic; }

/* ================================================================
   22. SEARCH PAGE — Booking.com stil
   ================================================================ */

/* Zajednički layout grid — header na svim javnim stranicama + telo /search */
body:has(.search-page-header),
body:has(.search-page-body) {
    --layout-max: 1360px;
    --layout-pad-x: max(40px, calc((100vw - var(--layout-max)) / 2));
    --search-logo-slot: 76px;
    --search-logo-form-gap: 28px;
    --layout-content-inset: calc(var(--search-logo-slot) + var(--search-logo-form-gap));
}

/* ---------- Global Header (normal document flow — scrolls with the page) ---------- */
.search-page-header {
    position: relative;
    z-index: 1050;
    background: #2D5A27;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    --header-inner-max: var(--layout-max, 1360px);
    --header-pad-x: var(--layout-pad-x, max(40px, calc((100vw - var(--header-inner-max)) / 2)));
    --search-logo-slot: 76px;
    --search-logo-form-gap: 28px;
}

.search-header-top {
    padding: 22px var(--header-pad-x);
    box-sizing: border-box;
    width: 100%;
}

.search-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--header-inner-max, 1360px);
    margin: 0 auto;
    width: 100%;
    min-height: 132px;
    box-sizing: border-box;
}

.search-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.search-header-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

/* Kad postoji search bar: leva ivica brenda = leva ivica #front-search-form (logo kolona + gap kao u .search-bar-inner) */
@media (min-width: 992px) {
    .search-page-header:has(.search-bar-inner) .search-header-brand-text {
        margin-left: calc(var(--search-logo-slot) + var(--search-logo-form-gap));
    }
}

.search-header-site-title {
    color: #fff !important;
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 2.15;
}

.search-header-site-title:hover {
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none;
}

.search-header-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

.search-header-subnav a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-header-subnav a::before {
    content: "";
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.search-header-subnav a:nth-child(1)::before {
    -webkit-mask-image: url("images/icon/icons8-taxi-100.png");
    mask-image: url("images/icon/icons8-taxi-100.png");
}

.search-header-subnav a:nth-child(2)::before {
    -webkit-mask-image: url("images/icon/icons8-restaurant-100.png");
    mask-image: url("images/icon/icons8-restaurant-100.png");
}

.search-header-subnav a:nth-child(3)::before {
    -webkit-mask-image: url("images/icon/icons8-clinic-100.png");
    mask-image: url("images/icon/icons8-clinic-100.png");
}

.search-header-subnav a:nth-child(4)::before {
    -webkit-mask-image: url("images/icon/icons8-attractions-100.png");
    mask-image: url("images/icon/icons8-attractions-100.png");
}

.search-header-subnav a:nth-child(5)::before {
    -webkit-mask-image: url("images/icon/icons8-user-groups-100.png");
    mask-image: url("images/icon/icons8-user-groups-100.png");
}

.search-header-subnav a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.receipt-header-logo {
    height: 44px;
    width: auto;
    display: block;
}

@media print {
  body.receipt-printing {
    visibility: hidden;
  }

  body.receipt-printing #receipt-print-area,
  body.receipt-printing #receipt-print-area * {
    visibility: visible;
  }

  body.receipt-printing .receipt-no-print,
  body.receipt-printing .receipt-no-print * {
    display: none !important;
    visibility: hidden !important;
  }

  body.receipt-printing #receipt-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.receipt-printing .receipt-page.container {
    margin: 0 !important;
    padding: 0 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  body.receipt-printing .receipt-print-title {
    padding: 0 0 8px;
    margin: 0;
  }

  body.receipt-printing .receipt-print-card {
    border: 1px solid #dee2e6;
    box-shadow: none;
    page-break-inside: avoid;
  }

  body.receipt-printing .receipt-print-card .card-header,
  body.receipt-printing .receipt-print-card .card-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.receipt-printing .receipt-print-card .table {
    font-size: 12px;
  }

  body.receipt-printing .daterangepicker,
  body.receipt-printing .nominatim-dropdown,
  body.receipt-printing .modal,
  body.receipt-printing .modal-backdrop,
  body.receipt-printing .swal2-container,
  body.receipt-printing .phpdebugbar,
  body.receipt-printing #phpdebugbar {
    display: none !important;
    visibility: hidden !important;
  }
}

.search-header-logo--compact img {
    height: 44px;
    width: auto;
    display: block;
}

.search-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-currency {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-flag {
    font-size: 22px;
    line-height: 1;
    margin: 0 4px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 4px;
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    transition: background 0.18s;
    cursor: pointer;
}

.header-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff !important;
    text-decoration: none;
}

.header-btn-solid {
    background: #fff !important;
    color: #2D5A27 !important;
    border-color: #fff !important;
}

.header-btn-solid:hover {
    background: #f0f0f0 !important;
    color: #2D5A27 !important;
}

.header-user-link {
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header-user-link .head_avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

/* ---------- Inline Search Bar ---------- */
.search-bar-container {
    background: #2D5A27;
    padding: 22px var(--header-pad-x);
    min-height: 132px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.search-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px var(--search-logo-form-gap);
    max-width: var(--header-inner-max, 1360px);
    width: 100%;
    margin: 0 auto;
}

.search-bar-logo {
    flex: 0 0 var(--search-logo-slot);
    width: var(--search-logo-slot);
    min-width: var(--search-logo-slot);
    max-width: var(--search-logo-slot);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    overflow: visible;
}

.search-bar-logo img {
    /* Osnova; ispod 1563px skaliranje za stranice sa search bar-om — posebni media upiti */
    --logo-visual: clamp(72px, 14vw, 175px);
    height: calc(var(--logo-visual) * 76 / 175);
    width: auto;
    display: block;
    transform: scale(calc(175 / 76));
    transform-origin: center center;
}

/* Logo u search redu: punih ~175px dok je viewport ≥1563px; ispod toga linearno do min ~72px */
@media (min-width: 1563px) {
    .search-page-header:has(.search-bar-inner) .search-bar-logo img {
        --logo-visual: 175px;
    }
}

/* Ispod 1563px: standardno smanjenje; između 1548px i 1440px uključeno — duplo brže (veći nagib) */
@media (max-width: 1562px) and (min-width: 1548px) {
    .search-page-header:has(.search-bar-inner) .search-bar-logo img {
        --logo-visual: clamp(72px, calc(175 * 100vw / 1563), 175px);
    }
}

@media (max-width: 1547px) and (min-width: 1440px) {
    .search-page-header:has(.search-bar-inner) .search-bar-logo img {
        --logo-visual: clamp(
            72px,
            calc((350 * 100vw - 270725px) / 1563),
            175px
        );
    }
}

/* Desktop: logo u zelenom traku + vertikalno centar <header> */
@media (min-width: 992px) {
    .search-page-header:has(.search-bar-inner) {
        --header-content-start-x: calc(
            var(--header-pad-x) + var(--search-logo-slot) + var(--search-logo-form-gap)
        );
    }

    .search-page-header:has(.search-bar-inner) .search-bar-logo {
        position: absolute;
        left: calc(var(--header-content-start-x) / 2);
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        flex: none;
        width: auto;
        min-width: 0;
        max-width: none;
        align-self: auto;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-inner {
        gap: 0;
        padding-left: calc(var(--search-logo-slot) + var(--search-logo-form-gap));
    }
}

/* Ispod 1440px: brend → auth → logo → forma, centrirano, bez apsolutnog loga (nema preklapanja) */
@media (max-width: 1439px) {
    .search-page-header:has(.search-bar-inner) .search-header-top-inner {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        min-height: 0;
        row-gap: 14px;
    }

    .search-page-header:has(.search-bar-inner) .search-header-brand {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        flex: 0 1 auto;
    }

    .search-page-header:has(.search-bar-inner) .search-header-brand-text {
        margin-left: 0 !important;
        align-items: center;
        width: 100%;
    }

    .search-page-header:has(.search-bar-inner) .search-header-subnav {
        justify-content: center;
        row-gap: 8px;
    }

    .search-page-header:has(.search-bar-inner) .search-header-subnav a {
        white-space: normal;
    }

    .search-page-header:has(.search-bar-inner) .search-header-right {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        row-gap: 8px;
    }

    .search-page-header:has(.search-bar-inner) .search-header-top {
        padding-bottom: 0;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-container {
        margin-top: 5px;
        padding-top: 0;
        padding-bottom: 22px;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-logo {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: auto;
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        align-self: center;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-inner {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-left: 0 !important;
        gap: 5px;
        width: 100%;
        margin-top: 7px;
    }

    /* Bez transform:scale — layout mora da odgovara crtanju (nema preklapanja auth/forme) */
    .search-page-header:has(.search-bar-inner) .search-bar-logo img {
        --logo-visual: clamp(72px, calc(175 * 100vw / 1563), 175px);
        width: auto;
        height: var(--logo-visual);
        max-width: min(92vw, 280px);
        transform: none !important;
        object-fit: contain;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-form-slot {
        width: 100%;
        max-width: 100%;
    }

    .search-page-header:has(.search-bar-inner) #front-search-form.search-inline-form {
        margin-top: 7px;
    }
}

.search-bar-form-slot {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.search-bar-form-slot .search-inline-form {
    margin: 0;
    max-width: none;
}

.search-inline-form {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-inline-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5px 14px;
    flex: 1;
    min-width: 0;
    border-right: 1px solid #e0e0e0;
    cursor: text;
    position: relative;
}

.search-inline-field:hover {
    background: #f9f9f9;
}

.search-inline-label {
    font-size: 9px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0;
    display: block;
}

.search-inline-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    color: #1a1a1a;
    padding: 0 !important;
    background: transparent !important;
    width: 100%;
    height: auto;
    line-height: 1.4;
    -webkit-appearance: none;
}

.search-inline-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.search-inline-sep {
    width: 1px;
    background: #e0e0e0;
    margin: 8px 0;
    flex-shrink: 0;
}

.search-submit-btn {
    background: #E67E22;
    color: #fff !important;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: #CA6F1E;
    color: #fff !important;
}

/* Date flex pills inside daterangepicker (header search) */
.daterangepicker.show-calendar {
    min-width: 668px;
}

.daterangepicker .drp-date-flex {
    border-top: 1px solid #e8e8e8;
    padding: 12px 16px 14px;
    background: #fff;
    clear: both;
}

.daterangepicker .drp-date-flex__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.daterangepicker .drp-date-flex-btn {
    appearance: none;
    border: 1px solid #222;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}

.daterangepicker .drp-date-flex-btn:hover {
    border-color: #2D5A27;
    color: #2D5A27;
}

.daterangepicker .drp-date-flex-btn.is-active {
    border-color: #2D5A27;
    color: #2D5A27;
    box-shadow: inset 0 0 0 1px #2D5A27;
}

@media (max-width: 767px) {
    .daterangepicker.show-calendar {
        min-width: 0;
        width: calc(100vw - 24px);
        max-width: 360px;
    }

    .daterangepicker .drp-date-flex {
        padding: 10px 12px 12px;
    }

    .daterangepicker .drp-date-flex-btn {
        font-size: 12px;
        padding: 7px 12px;
    }
}

/* Autocomplete list positioned relative to field */
.search-inline-field .search-autocomplete-list,
.search-inline-field .search-autocomplete-list--inline {
    top: 100%;
    left: -2px;
    right: auto;
    width: 320px;
    z-index: 2000;
}

/* ---------- Page Body ---------- */
.std-page-body {
    padding-top: 0;
}

/* When header includes the search bar (e.g. home page) */
body:has(.search-bar-container) .std-page-body {
    padding-top: 0;
}

.home-hero-banner {
    height: 280px;
    background-size: cover;
    background-position: center;
}

section.hero-banner.magic-ball {
    padding-top: 0;
}

.search-page-body {
    padding: 12px var(--layout-pad-x, 40px) 32px;
    min-height: 100vh;
    background: #f5f5f5;
    box-sizing: border-box;
}

.search-content-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--layout-max, 1360px);
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 1440px) {
    body:has(.search-page-body) .search-content-wrapper {
        padding-left: var(--layout-content-inset);
    }
}

/* Keep search page on a single page-scroll context */
.search-content-wrapper,
.search-content-wrapper > .row.no-gutters,
#listCol {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    overflow: visible;
}

/* Desktop: flex row sa gap umesto margin-left hack */
@media (min-width: 992px) {
    body:has(.search-page-body) .search-content-wrapper > .row.no-gutters {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        margin-left: 0;
        margin-right: 0;
    }

    #sidebarCol.col-md-3.search-sidebar {
        flex: 0 0 25%;
        max-width: 25%;
        position: sticky;
        top: 12px;
        align-self: flex-start;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        overflow-x: hidden;
        visibility: visible;
        pointer-events: auto;
        inset: auto;
        z-index: auto;
        padding: 8px 0 20px;
        background: #f5f5f5;
    }

    #sidebarCol .sidebar-map-box {
        display: block;
    }

    .search-sidebar-drawer-panel {
        position: static;
        transform: none;
        max-height: none;
        display: block;
        flex-direction: column;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        transition: none;
    }

    .search-filters-backdrop {
        display: none !important;
    }

    #sidebarCol .sidebar-filters {
        overflow: visible;
        padding: 0;
    }

    #listCol.col-md-9.search-results-col {
        margin-left: 0;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    /* Map panel otvoren: lista + mapa pored (sidebar sakriven) */
    #sidebarCol.d-none + #listCol.col-md-7.search-results-col {
        flex: 0 0 calc(58.333% - 8px);
        max-width: calc(58.333% - 8px);
    }

    /* Booking.com: sticky mapa; top/height iz map-search.js (header/footer) */
    #mapCol:not(.d-none) {
        flex: 0 0 calc(41.667% - 8px);
        max-width: calc(41.667% - 8px);
        align-self: flex-start;
        position: sticky;
        top: var(--search-map-top, 0);
        height: var(--search-map-height, 100vh);
        overflow: hidden;
        z-index: 25;
    }

    #mapCol:not(.d-none) #map_view {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 100%;
    }

    #mapCol:not(.d-none) .map-close {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 26;
    }
}

/* Search results pagination — padding / alignment */
.search-page-body #pagination .pagination {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.search-page-body #pagination .page-item {
    margin: 0;
}

.search-page-body #pagination .page-link {
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    border-radius: 6px;
}

/* ---------- Sidebar ---------- */
.search-sidebar {
    background: #f5f5f5;
    border-right: none;
    min-height: unset;
    padding: 8px 0 20px;
    overflow: visible;
    position: relative;
    top: auto;
    height: auto;
}

/* Map preview box */
.sidebar-map-box {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.sidebar-map-placeholder {
    background: linear-gradient(135deg, #2D5A27 0%, #4a8540 60%, #6aaf5a 100%);
    background-size: cover;
    background-position: center;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    position: relative;
}

.sidebar-map-placeholder.has-map-tile {
    background-image: var(--sidebar-map-bg);
}

.sidebar-map-placeholder.has-map-tile i {
    display: none;
}

.sidebar-map-placeholder.has-map-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45, 90, 39, 0.15) 0%, rgba(45, 90, 39, 0.55) 100%);
    pointer-events: none;
}

.sidebar-map-placeholder.has-map-tile span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.sidebar-map-placeholder i {
    font-size: 36px;
    opacity: 0.85;
}

.sidebar-map-placeholder span {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    text-align: center;
    padding: 0 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-show-map-btn {
    display: block;
    width: 100%;
    background: #2D5A27;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.18s;
}

.sidebar-show-map-btn:hover {
    background: #24481F;
    color: #fff;
}

/* Filter sections */
.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2D5A27;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section h6 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-section-last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
}

.filter-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #2D5A27;
    flex-shrink: 0;
}

.filter-checkbox label {
    margin: 0 0 0 9px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    line-height: 1.3;
}

.filter-price-labels {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.search-sidebar .slider.slider-horizontal {
    width: 100%;
    max-width: 100%;
}

.filter-apply-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid #2D5A27;
    color: #2D5A27;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    text-align: center;
}

.filter-apply-btn:hover {
    background: #2D5A27;
    color: #fff;
}

.filter-more-btn {
    display: block;
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    color: #333;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    text-align: center;
}

.filter-more-btn:hover {
    background: #e8e8e8;
    color: #222;
}

/* ---------- Results Column ---------- */
.search-results-col {
    padding: 8px 0 20px;
    min-height: calc(100vh - 120px);
}

.results-header {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.results-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-left: auto;
}

.results-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-sort-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    margin: 0;
}

.results-sort-select {
    font-size: 13px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 6px 28px 6px 10px;
    color: #333;
    background: #fff;
    min-width: 168px;
    cursor: pointer;
}

.results-sort-select:focus {
    border-color: #2D5A27;
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.15);
}

.search-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 0;
}

.search-active-filters:empty {
    display: none;
}

.search-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2D5A27;
    background: #fff;
    border: 1px solid #c8dcc6;
    border-radius: 999px;
}

.search-filter-chip button {
    appearance: none;
    border: none;
    background: transparent;
    color: #888;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    font-size: 14px;
}

.search-filter-chip button:hover {
    color: #c0392b;
}

/* Skeleton loader cards */
.search-skeleton-card {
    display: flex;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    min-height: 160px;
}

.search-skeleton-img {
    flex: 0 0 220px;
    background: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%);
    background-size: 200% 100%;
    animation: search-skeleton-shimmer 1.2s ease-in-out infinite;
}

.search-skeleton-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%);
    background-size: 200% 100%;
    animation: search-skeleton-shimmer 1.2s ease-in-out infinite;
}

.search-skeleton-line.w-40 { width: 40%; }
.search-skeleton-line.w-60 { width: 60%; }
.search-skeleton-line.w-80 { width: 80%; }

@keyframes search-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.results-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.results-meta {
    font-size: 13px;
    color: #777;
}

/* ---------- Map Panel ---------- */
#mapCol {
    overflow: hidden;
}

#mapCol #map_view {
    height: 100%;
    width: 100%;
}

.map-close {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 500;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 18px;
    color: #333;
    padding: 0;
}

.map-close:hover {
    background: #f0f0f0;
}

/* ---------- Booking.com Property Cards ---------- */
.bk-prop-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
    min-height: 160px;
}

.bk-prop-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.bk-prop-img-link {
    flex: 0 0 220px;
    width: 220px;
    height: 160px;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: hidden;
}

.bk-prop-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.25s;
}

.bk-prop-card:hover .bk-prop-img {
    transform: scale(1.03);
}

.bk-prop-body {
    display: flex;
    flex: 1;
    padding: 14px 18px;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.bk-prop-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bk-prop-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.bk-prop-name {
    font-size: 17px;
    font-weight: 700;
    color: #2D5A27 !important;
    text-decoration: none;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.bk-prop-name:hover {
    color: #24481F !important;
    text-decoration: underline;
}

.bk-bookmark {
    color: #ccc;
    font-size: 18px;
    flex-shrink: 0;
    padding: 0 !important;
    line-height: 1;
}

.bk-bookmark:hover {
    color: #E67E22 !important;
}

.bk-prop-location {
    font-size: 13px;
    color: #666;
}

.bk-prop-location i {
    color: #E67E22;
    margin-right: 3px;
}

.bk-prop-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.bk-prop-features span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.bk-prop-features i {
    color: #2D5A27;
    font-size: 11px;
}

/* Right side: score + price + CTA */
.bk-prop-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 160px;
    flex-shrink: 0;
}

.bk-score-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bk-score-label {
    font-size: 13px;
    font-weight: 700;
    color: #222;
}

.bk-score-num {
    background: #2D5A27;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px 4px 4px 0;
    min-width: 36px;
    text-align: center;
}

.bk-review-count {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    text-align: right;
}

.bk-prop-price {
    margin-top: auto;
    text-align: right;
    font-size: 15px;
}

.bk-prop-price strong {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.bk-per-night {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.bk-select-btn {
    background: #E67E22 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.18s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.bk-select-btn:hover {
    background: #CA6F1E !important;
    color: #fff !important;
    text-decoration: none;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 991px) {
    body:has(.search-page-header),
    body:has(.search-page-body) {
        --layout-pad-x: max(20px, calc((100vw - var(--layout-max)) / 2));
    }

    .search-page-header {
        --header-pad-x: max(20px, calc((100vw - var(--header-inner-max)) / 2));
    }

    body:has(.search-page-body) {
        --search-mobile-bar-top: 8px;
    }

    body:has(.search-page-body) .search-content-wrapper > .row.no-gutters {
        display: block;
    }

    .search-filters-mobile-bar {
        display: flex !important;
        gap: 10px;
        margin-bottom: 12px;
        position: sticky;
        top: var(--search-mobile-bar-top, 8px);
        z-index: 1035;
        padding: 4px 0 8px;
        background: #f5f5f5;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    #listCol.search-results-col,
    #properties_show {
        max-width: 100%;
        overflow-x: hidden;
    }

    .search-filters-toggle-btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 600;
        color: #2D5A27;
        background: #fff;
        border: 1px solid #c8dcc6;
        border-radius: 6px;
        cursor: pointer;
        position: relative;
        transition: background 0.18s, border-color 0.18s, color 0.18s;
    }

    .search-filters-toggle-btn i {
        font-size: 15px;
    }

    body.search-filters-open .search-filters-toggle-btn#searchFiltersToggle {
        background: #2D5A27;
        border-color: #2D5A27;
        color: #fff;
    }

    .search-filters-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        color: #fff;
        background: #E67E22;
        border-radius: 999px;
    }

    .search-filters-badge[hidden] {
        display: none !important;
    }

    /* Mobile filter drawer — fixed overlay, no flex column space */
    #sidebarCol.search-sidebar {
        display: block !important;
        flex: none;
        max-width: none;
        width: auto;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        position: fixed;
        inset: 0;
        z-index: 1055;
        pointer-events: none;
        visibility: hidden;
        min-height: 0;
    }

    body.search-filters-open #sidebarCol.search-sidebar {
        visibility: visible;
        pointer-events: auto;
    }

    #sidebarCol .sidebar-map-box {
        display: none;
    }

    .search-sidebar-drawer-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1056;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
        transform: translateY(100%);
        transition: transform 0.25s ease;
        pointer-events: auto;
    }

    body.search-filters-open .search-sidebar-drawer-panel {
        transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
        .search-sidebar-drawer-panel {
            transition: none;
        }
    }

    .search-filters-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-shrink: 0;
        padding: 14px 16px;
        border-bottom: 1px solid #eee;
        background: #fff;
        border-radius: 16px 16px 0 0;
    }

    .search-filters-drawer-title {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        color: #222;
    }

    .search-filters-drawer-close {
        appearance: none;
        border: none;
        background: #f0f0f0;
        color: #444;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
        transition: background 0.18s;
    }

    .search-filters-drawer-close:hover {
        background: #e0e0e0;
    }

    #sidebarCol .sidebar-filters {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px 8px;
        margin: 0;
    }

    #sidebarCol .filter-section {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .search-filters-drawer-footer {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #eee;
        background: #fff;
    }

    .search-filters-reset-btn,
    .search-filters-apply-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 6px;
        cursor: pointer;
        border: 1px solid transparent;
        transition: background 0.18s, color 0.18s;
    }

    .search-filters-reset-btn {
        background: #fff;
        border-color: #c8dcc6;
        color: #2D5A27;
    }

    .search-filters-reset-btn:hover {
        background: #f5faf4;
    }

    .search-filters-apply-btn {
        background: #E67E22;
        border-color: #E67E22;
        color: #fff;
    }

    .search-filters-apply-btn:hover {
        background: #CA6F1E;
        border-color: #CA6F1E;
        color: #fff;
    }

    .search-filters-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.search-filters-open .search-filters-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.search-filters-open {
        overflow: hidden;
    }

    .std-page-body {
        padding-top: 0;
    }
    body:has(.search-bar-container) .std-page-body {
        padding-top: 0;
    }
    .search-page-body {
        padding: 10px var(--layout-pad-x) 24px;
    }
    .search-header-top {
        padding: 22px var(--header-pad-x);
    }

    .search-header-top-inner {
        min-height: 100px;
    }

    .search-bar-inner {
        gap: 14px var(--search-logo-form-gap);
    }

    .search-page-header:has(.search-bar-inner) .search-bar-inner {
        gap: 5px;
    }

    .search-bar-container {
        min-height: 100px;
        padding: 22px var(--header-pad-x);
    }

    .search-page-header:has(.search-bar-inner) .search-header-top {
        padding-bottom: 0;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-container {
        margin-top: 5px;
        padding-top: 0;
        padding-left: var(--header-pad-x);
        padding-right: var(--header-pad-x);
        padding-bottom: 22px;
    }
    .search-sidebar {
        position: relative;
        top: auto;
        height: auto;
        min-height: unset;
    }
    #listCol.col-md-9.search-results-col {
        margin-left: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }
    #mapCol {
        position: relative;
        top: auto;
        height: 50vh;
        width: 100%;
        max-width: 100%;
        margin: 0 0 12px;
        border-radius: 8px;
        overflow: hidden;
        z-index: 1;
    }
    body.search-map-open #mapCol {
        display: block;
    }
    .bk-prop-card {
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .bk-prop-img-link {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .bk-prop-img {
        width: 100%;
        height: 100%;
    }

    .bk-prop-body {
        flex-direction: column;
        padding: 12px 14px 14px;
        gap: 0;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .bk-prop-side {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "score score"
            "price action";
        align-items: center;
        gap: 10px 12px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eee;
        box-sizing: border-box;
    }

    .bk-score-wrap {
        grid-area: score;
        justify-content: flex-start;
    }

    .bk-review-count {
        text-align: left;
        width: 100%;
    }

    .bk-prop-price {
        grid-area: price;
        margin-top: 0;
        text-align: left;
        min-width: 0;
    }

    .bk-select-btn {
        grid-area: action;
        justify-self: end;
        white-space: normal;
        max-width: 100%;
    }
}

/* Mobile filter bar: hidden on desktop only (do not place after max-width:991 rules) */
@media (min-width: 992px) {
    .search-filters-mobile-bar {
        display: none !important;
    }

    .search-filters-backdrop {
        display: none !important;
    }
}

.search-pagination-meta-secondary {
    display: block;
}

@media (max-width: 767px) {
    body:has(.search-page-header),
    body:has(.search-page-body) {
        --layout-pad-x: max(16px, calc((100vw - var(--layout-max)) / 2));
    }

    .search-page-header {
        --header-pad-x: max(16px, calc((100vw - var(--header-inner-max)) / 2));
    }

    .results-header .results-meta {
        display: none;
    }

    .search-pagination-meta-secondary {
        display: none;
    }

    .std-page-body {
        padding-top: 0;
    }
    body:has(.search-bar-container) .std-page-body {
        padding-top: 0;
    }
    .search-page-body {
        padding: 8px var(--layout-pad-x) 20px;
    }
    .search-header-top {
        padding: 18px var(--header-pad-x);
    }

    .search-header-top-inner {
        flex-wrap: wrap;
        row-gap: 12px;
        min-height: 0;
    }

    .search-header-brand {
        flex-basis: 100%;
        order: 1;
        justify-content: center;
    }

    .search-header-brand-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .search-header-subnav {
        justify-content: center;
        gap: 6px 12px;
    }

    .search-header-right {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* .search-header-site-title {
        font-size: clamp(1.5rem, 5vw, 2.7rem);
    } */

    .search-header-subnav a {
        font-size: clamp(16px, 3.8vw, 26px);
        white-space: normal;
    }

    .search-bar-container {
        padding: 14px var(--header-pad-x);
        min-height: 0;
    }

    .search-page-header:has(.search-bar-inner) .search-header-top {
        padding-bottom: 0;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-container {
        margin-top: 5px;
        padding-top: 0;
        padding-left: var(--header-pad-x);
        padding-right: var(--header-pad-x);
        padding-bottom: 14px;
    }

    .search-bar-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-inner {
        gap: 5px;
    }

    .search-bar-logo {
        justify-content: center;
        align-self: center;
        flex-basis: auto;
        width: var(--search-logo-slot);
        min-width: var(--search-logo-slot);
        max-width: var(--search-logo-slot);
    }

    .search-page-header:has(.search-bar-inner) .search-bar-logo {
        width: auto;
        min-width: 0;
        max-width: none;
    }

    .search-page-header:has(.search-bar-inner) .search-bar-logo img,
    .search-bar-logo img {
        --logo-visual: clamp(72px, 26vw, 140px);
        width: auto;
        height: var(--logo-visual);
        max-width: min(92vw, 280px);
        transform: none !important;
        object-fit: contain;
    }

    .search-inline-form {
        flex-direction: column;
        border-radius: 6px;
    }
    .search-inline-field {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .search-inline-sep {
        display: none;
    }
    .search-submit-btn {
        border-radius: 0 0 6px 6px;
        padding: 12px;
        width: 100%;
    }
    .bk-prop-img-link {
        height: 180px;
    }
    .bk-prop-main {
        min-width: 0;
        width: 100%;
    }
    .bk-prop-name {
        font-size: 15px;
    }
    .bk-prop-features {
        gap: 6px;
    }
    .bk-prop-features span {
        font-size: 11px;
        padding: 2px 6px;
    }
    .bk-prop-price strong {
        font-size: 17px;
        display: block;
        line-height: 1.2;
    }
    .bk-per-night {
        display: block;
        margin-top: 2px;
    }
    .bk-select-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    .bk-prop-side:not(:has(.bk-score-wrap)) {
        grid-template-areas:
            "price action";
    }

    @media (max-width: 420px) {
        .bk-prop-side {
            grid-template-columns: 1fr;
            grid-template-areas:
                "score"
                "price"
                "action";
        }
        .bk-prop-side:not(:has(.bk-score-wrap)) {
            grid-template-areas:
                "price"
                "action";
        }
        .bk-select-btn {
            width: 100%;
            justify-self: stretch;
        }
    }

    .header-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* ===== 20. Header User Dropdown (styled like autocomplete) ===== */
.dropdown-menu.dropdown-menu-right {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.06);
    padding: 6px 0;
    min-width: 200px;
    background: #fff;
    margin-top: 6px;
    overflow: hidden;
}
.dropdown-menu.dropdown-menu-right .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 1.35rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: background 0.12s, color 0.12s;
    border-bottom: none;
}
.dropdown-menu.dropdown-menu-right .dropdown-item::before {
    flex-shrink: 0;
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.3rem;
    background: #e4ede3;
    color: #2D5A27;
}
.dropdown-menu.dropdown-menu-right .dropdown-item:first-child::before {
    content: '\f015'; /* fa-home → dashboard */
}
.dropdown-menu.dropdown-menu-right .dropdown-item:nth-child(2)::before {
    content: '\f007'; /* fa-user → profil */
}
.dropdown-menu.dropdown-menu-right .dropdown-item:last-child::before {
    content: '\f2f5'; /* fa-sign-out-alt → odjava */
    background: #fdebd0;
    color: #E67E22;
}
.dropdown-menu.dropdown-menu-right .dropdown-item:hover {
    background: #f2f6f2;
    color: #2D5A27;
    text-decoration: none;
}
.dropdown-menu.dropdown-menu-right .dropdown-item:last-child:hover {
    background: #fef5ec;
    color: #E67E22;
}

/* Preporučeni domovi (home) — kartice ne šire od 345px */
.recommandedbg .row.mt-5 > [class*='col-'] {
    max-width: 345px;
    flex-grow: 0;
}

/* Upoznaj Srbiju — fiksna visina kartica; slike u krugovima */
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    box-sizing: border-box;
    padding: 2rem 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card .name {
    padding-top: 1.2rem;
}
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card .desig {
    margin-bottom: 1rem;
}
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card .upoznaj-card-textblock {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
}
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card .details {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    text-align: center;
}
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card .upoznaj-readmore {
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d5a27;
    text-decoration: none;
    border: 0;
    line-height: inherit;
}
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card .upoznaj-readmore:hover,
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card .upoznaj-readmore:focus {
    color: #24481f;
    text-decoration: underline;
}
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card .upoznaj-card-img,
section.upoznaj-srbiju-cards .testimonials .item.upoznaj-card img {
    object-fit: cover;
    background: #f5f5f5;
}

/* === CMS static pages (CKEditor output) === */
.sp-cms-page-content.ck-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 0 48px;
    font-size: 1.6rem;
    line-height: 1.7;
    color: #222;
}

.sp-cms-page-content.ck-content > :first-child {
    margin-top: 0;
}

.sp-cms-page-content.ck-content > :last-child {
    margin-bottom: 0;
}

.sp-cms-page-content.ck-content h1,
.sp-cms-page-content.ck-content h2,
.sp-cms-page-content.ck-content h3,
.sp-cms-page-content.ck-content h4,
.sp-cms-page-content.ck-content h5,
.sp-cms-page-content.ck-content h6 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.25;
}

.sp-cms-page-content.ck-content h1 {
    margin: 0.67em 0;
    font-size: 2.8rem;
}

.sp-cms-page-content.ck-content h2 {
    margin: 0.83em 0;
    font-size: 2.4rem;
}

.sp-cms-page-content.ck-content h3 {
    margin: 1em 0;
    font-size: 2rem;
}

.sp-cms-page-content.ck-content h4 {
    margin: 1.33em 0;
    font-size: 1.75rem;
}

.sp-cms-page-content.ck-content h5 {
    margin: 1.67em 0;
    font-size: 1.75rem;
}

.sp-cms-page-content.ck-content h6 {
    margin: 2.33em 0;
    font-size: 1.75rem;
}

.sp-cms-page-content.ck-content p {
    min-height: 1.7em;
    margin: 1em 0;
}

.sp-cms-page-content.ck-content blockquote,
.sp-cms-page-content.ck-content figure,
.sp-cms-page-content.ck-content ul,
.sp-cms-page-content.ck-content ol,
.sp-cms-page-content.ck-content table {
    margin-bottom: 1.1em;
}

.sp-cms-page-content.ck-content ul,
.sp-cms-page-content.ck-content ol {
    margin-left: 0;
    padding-left: 2.2em;
}

.sp-cms-page-content.ck-content ul {
    list-style: disc;
}

.sp-cms-page-content.ck-content ol {
    list-style: decimal;
}

.sp-cms-page-content.ck-content li {
    margin: 0.25em 0;
    padding-left: 0.2em;
}

.sp-cms-page-content.ck-content a {
    color: #2d5a27;
    font-weight: 600;
    text-decoration: underline;
}

.sp-cms-page-content.ck-content a:hover,
.sp-cms-page-content.ck-content a:focus {
    color: #24481f;
}

.sp-cms-page-content.ck-content blockquote {
    padding: 0.9em 1.2em;
    border-left: 4px solid #2d5a27;
    background: #f6faf5;
    color: #333;
}

.sp-cms-page-content.ck-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #d8e5d5;
}

.sp-cms-page-content.ck-content img {
    max-width: 100%;
    height: auto;
}

.sp-cms-page-content.ck-content figure.image {
    display: table;
    clear: both;
    max-width: 100%;
    margin: 1.5em auto;
    text-align: center;
}

.sp-cms-page-content.ck-content figure.image img {
    display: block;
    margin: 0 auto;
}

.sp-cms-page-content.ck-content figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    padding: 0.6em;
    color: #666;
    font-size: 1.35rem;
    line-height: 1.4;
    background: #f5f5f5;
}

.sp-cms-page-content.ck-content .image-style-align-left {
    float: left;
    margin-right: 1.5em;
}

.sp-cms-page-content.ck-content .image-style-align-right {
    float: right;
    margin-left: 1.5em;
}

.sp-cms-page-content.ck-content .image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

.sp-cms-page-content.ck-content figure.table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
    overflow-x: auto;
}

.sp-cms-page-content.ck-content table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.sp-cms-page-content.ck-content table th,
.sp-cms-page-content.ck-content table td {
    padding: 0.75em 0.9em;
    border: 1px solid #d9e3d7;
    vertical-align: top;
}

.sp-cms-page-content.ck-content table th {
    background: #eef4ec;
    color: #1a1a1a;
    font-weight: 700;
}

.sp-cms-page-content.ck-content table tr:nth-child(even) td {
    background: #fafcf9;
}

.sp-cms-page-content.ck-content .text-tiny {
    font-size: 0.7em;
}

.sp-cms-page-content.ck-content .text-small {
    font-size: 0.85em;
}

.sp-cms-page-content.ck-content .text-big {
    font-size: 1.4em;
}

.sp-cms-page-content.ck-content .text-huge {
    font-size: 1.8em;
}

.sp-cms-page-content.ck-content::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 767px) {
    .sp-cms-page-content.ck-content {
        padding: 22px 0 36px;
        font-size: 1.5rem;
    }

    .sp-cms-page-content.ck-content h1 {
        font-size: 2.25rem;
    }

    .sp-cms-page-content.ck-content h2 {
        font-size: 2rem;
    }

    .sp-cms-page-content.ck-content .image-style-align-left,
    .sp-cms-page-content.ck-content .image-style-align-right {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/* === Static info pages (Taxi, Restorani, Apoteke, …) === */
.sp-static-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 2rem;
    font-size: 1.6rem;
    line-height: 1.667;
}

.sp-static-header {
    background: #2d5a27;
    border-radius: 8px 8px 0 0;
    padding: 14px 20px;
    text-align: center;
}

.sp-static-header-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    text-transform: uppercase;
}

.sp-static-list {
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.sp-static-row {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr minmax(120px, 180px);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.sp-static-row:last-child {
    border-bottom: 0;
}

.sp-static-row--linked {
    position: relative;
    cursor: pointer;
}

.sp-static-row-hit {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.sp-static-row--linked:hover,
.sp-static-row--linked:focus-within {
    background: #eef4ec;
}

/* Let clicks pass through to .sp-static-row-hit; only real links stay interactive */
.sp-static-row--linked .sp-static-row-brand,
.sp-static-row--linked .sp-static-row-body,
.sp-static-row--linked .sp-static-row-contact {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.sp-static-row--linked .sp-static-row-meta-link,
.sp-static-row--linked .sp-static-social-link,
.sp-static-row--linked a.sp-static-row-phone {
    pointer-events: auto;
}

.sp-static-row:not(:has(.sp-static-row-contact)) {
    grid-template-columns: minmax(140px, 200px) 1fr;
}

.sp-static-row-brand,
.sp-static-row-contact {
    display: flex;
    justify-content: center;
}

.sp-static-row-logo {
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 72px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.sp-static-row-logo img {
    max-height: 52px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sp-static-row-logo-fallback {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #2d5a27;
    line-height: 1.667;
    text-transform: uppercase;
}

.sp-static-row-body {
    min-width: 0;
}

.sp-static-row-description {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.667;
    color: #1a1a1a;
    text-transform: uppercase;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.sp-static-row-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.667;
    color: #333;
    text-transform: none;
}

.sp-static-row-meta-link {
    color: #2d5a27;
    font-weight: 600;
    text-decoration: underline;
}

.sp-static-row-meta-link:hover {
    color: #24481f;
}

.sp-static-social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sp-static-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sp-static-social-link:hover,
.sp-static-social-link:focus {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.sp-static-social-link img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.sp-static-social-link--action {
    width: 43px;
    height: 43px;
    border-radius: 8px;
}

.sp-static-social-link--action img {
    width: 28px;
    height: 28px;
}

.sp-static-row-phone-box {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 110px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.sp-static-row-phone-icon {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    color: #2d5a27;
}

.sp-static-row-phone-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sp-static-row-phone {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.667;
    color: #1a1a1a;
    white-space: nowrap;
}

.sp-static-row-phone:hover {
    color: #2d5a27;
}

.sp-static-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
}

@media (max-width: 767px) {
    .sp-static-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sp-static-row-body {
        order: 2;
    }

    .sp-static-row-description {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .sp-static-row-contact {
        order: 3;
    }
}

/* Static page entry detail */
.sp-static-detail-page {
    max-width: 960px;
}

.sp-static-detail-gallery-wrap {
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
}

.sp-static-detail-gallery-wrap:not(.sp-static-detail-gallery-wrap--single) {
    display: block;
}

/* Jedna slika — ceo logo/banner bez praznog grida (kao ranije) */
.sp-static-detail-gallery-wrap--single .sp-static-detail-hero--photo {
    cursor: pointer;
    min-height: 0;
}

.sp-static-detail-gallery-wrap--single .sp-static-detail-image {
    display: block;
    margin: 0 auto;
}

/* Više slika — podrazumevani layout (3fr glavna + 2fr bočne); JS bira varijantu po formatu */
.sp-static-detail-grid {
    --sp-static-gallery-gap: 6px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--sp-static-gallery-gap);
    width: 100%;
    max-width: 100%;
    height: min(52vh, 420px);
    min-height: 260px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Tri slike — tri portreta / dominantno uspravno: 3 kolone, contain */
.sp-static-detail-grid--layout-triptych-portrait {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: min(62vh, 500px);
    min-height: 300px;
    max-height: 520px;
}

.sp-static-detail-grid--layout-triptych-portrait .sp-static-detail-grid-side {
    display: contents;
}

.sp-static-detail-grid--layout-triptych-portrait .sp-static-detail-grid-main img,
.sp-static-detail-grid--layout-triptych-portrait .sp-static-detail-grid-cell img {
    object-fit: contain;
    object-position: center center;
}

/* Dve uspravne gore + jedna položena dole (puna širina) */
.sp-static-detail-grid--layout-portrait-duo-landscape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: start;
    height: auto;
    min-height: 0;
    max-height: none;
}

.sp-static-detail-grid--layout-portrait-duo-landscape .sp-static-detail-grid-side {
    display: contents;
}

.sp-static-detail-grid--layout-portrait-duo-landscape .sp-static-detail-grid-slot--r1c1 {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: var(--sp-static-slot-ratio, 3 / 4);
    height: auto;
    max-height: none;
}

.sp-static-detail-grid--layout-portrait-duo-landscape .sp-static-detail-grid-slot--r1c2 {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: var(--sp-static-slot-ratio, 3 / 4);
    height: auto;
    max-height: none;
}

.sp-static-detail-grid--layout-portrait-duo-landscape .sp-static-detail-grid-slot--r2full {
    grid-column: 1 / -1;
    grid-row: 2;
    aspect-ratio: var(--sp-static-slot-ratio, 16 / 9);
    height: auto;
    max-height: none;
}

.sp-static-detail-grid--layout-portrait-duo-landscape .sp-static-detail-grid-main img,
.sp-static-detail-grid--layout-portrait-duo-landscape .sp-static-detail-grid-cell img {
    object-fit: contain;
    object-position: center center;
}

/* Tri slike — 16:9 × 3: glavna puna širina + dve ispod */
.sp-static-detail-grid--layout-wide-169 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    max-height: none;
}

.sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-side {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    display: grid;
}

.sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-main {
    grid-column: 1 / -1;
    grid-row: 1;
}

.sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-main,
.sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-cell {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
}

.sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-main img,
.sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-cell img {
    object-fit: contain;
    object-position: center center;
}

/* 4:3 × 3 (i slični pejzaži): glavna puna širina + dve ispod */
.sp-static-detail-grid--layout-triptych-landscape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: start;
    height: auto;
    min-height: 0;
    max-height: none;
}

.sp-static-detail-grid--layout-triptych-landscape .sp-static-detail-grid-side {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    display: grid;
}

.sp-static-detail-grid--layout-triptych-landscape .sp-static-detail-grid-main {
    grid-column: 1 / -1;
    grid-row: 1;
}

.sp-static-detail-grid--layout-triptych-landscape .sp-static-detail-grid-main,
.sp-static-detail-grid--layout-triptych-landscape .sp-static-detail-grid-cell {
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: none;
}

.sp-static-detail-grid--layout-triptych-landscape .sp-static-detail-grid-main img,
.sp-static-detail-grid--layout-triptych-landscape .sp-static-detail-grid-cell img {
    object-fit: contain;
    object-position: center center;
}

/* Glavna portret + dve pejzažne bočne */
.sp-static-detail-grid--layout-portrait-hero {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    height: min(58vh, 460px);
    min-height: 280px;
    max-height: 480px;
}

.sp-static-detail-grid--layout-portrait-hero .sp-static-detail-grid-main img {
    object-fit: contain;
    object-position: center center;
}

/* Široka glavna + dva portreta ispod */
.sp-static-detail-grid--layout-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr);
    height: min(56vh, 440px);
    min-height: 300px;
    max-height: 460px;
}

.sp-static-detail-grid--layout-stack .sp-static-detail-grid-main {
    grid-column: 1 / -1;
    grid-row: 1;
}

.sp-static-detail-grid--layout-stack .sp-static-detail-grid-side {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    display: grid;
}

.sp-static-detail-grid--layout-stack .sp-static-detail-grid-main img {
    object-fit: cover;
    object-position: center center;
}

.sp-static-detail-grid--layout-stack .sp-static-detail-grid-cell img {
    object-fit: contain;
    object-position: center center;
}

/* Dve slike — obe portret */
.sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: min(58vh, 460px);
    min-height: 280px;
    max-height: 480px;
}

.sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-portrait .sp-static-detail-grid-side {
    display: contents;
}

.sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-portrait .sp-static-detail-grid-main img,
.sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-portrait .sp-static-detail-grid-cell img {
    object-fit: contain;
    object-position: center center;
}

/* Dve slike — mešovit format */
.sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-mixed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: min(52vh, 400px);
}

.sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-mixed .sp-static-detail-grid-side {
    display: contents;
}

.sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-mixed img[data-sp-aspect="portrait"] {
    object-fit: contain;
    object-position: center center;
}

.sp-static-detail-grid-cell,
.sp-static-detail-grid-main {
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

.sp-static-detail-grid-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--sp-static-gallery-gap);
    min-height: 0;
}

.sp-static-detail-grid--photos-2 .sp-static-detail-grid-side {
    grid-template-rows: 1fr;
}

.sp-static-detail-grid-main img,
.sp-static-detail-grid-cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border: none;
    background: transparent;
}

/* Portret / uska slika — manje kropovanja po visini */
.sp-static-detail-grid-main img[data-sp-aspect="portrait"],
.sp-static-detail-grid-cell img[data-sp-aspect="portrait"] {
    object-fit: cover;
    object-position: center top;
}

/* Panorama — centar po širini */
.sp-static-detail-grid-main img[data-sp-aspect="landscape-wide"],
.sp-static-detail-grid-cell img[data-sp-aspect="landscape-wide"] {
    object-position: center center;
}

.sp-static-detail-grid-more-btn {
    position: absolute;
    z-index: 2;
    right: 7px;
    bottom: 7px;
    left: auto;
    top: auto;
    border: 1.5px solid #fff;
    border-radius: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sp-static-detail-grid-more-btn:hover {
    background: #fff;
    border-color: #2D5A27;
    color: #2D5A27;
}

@media (max-width: 767px) {
    .sp-static-detail-grid {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(200px, 42vw) minmax(120px, 28vw);
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 0;
    }

    .sp-static-detail-grid-main {
        min-height: min(45vh, 320px);
    }

    .sp-static-detail-grid-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        min-height: min(28vw, 180px);
    }

    .sp-static-detail-grid--photos-2 .sp-static-detail-grid-side {
        grid-template-columns: 1fr;
        max-height: 180px;
    }

    .sp-static-detail-grid--layout-triptych-portrait,
    .sp-static-detail-grid--layout-triptych-landscape,
    .sp-static-detail-grid--layout-wide-169,
    .sp-static-detail-grid--layout-portrait-duo-landscape {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto;
        height: auto;
    }

    .sp-static-detail-grid--layout-portrait-duo-landscape .sp-static-detail-grid-side {
        display: contents;
    }

    .sp-static-detail-grid--layout-portrait-duo-landscape .sp-static-detail-grid-main {
        min-height: 0;
    }

    .sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-main,
    .sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-cell {
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    .sp-static-detail-grid--layout-triptych-portrait,
    .sp-static-detail-grid--layout-triptych-landscape {
        grid-template-rows: minmax(220px, 48vw) minmax(120px, 26vw);
    }

    .sp-static-detail-grid--layout-triptych-portrait .sp-static-detail-grid-side,
    .sp-static-detail-grid--layout-triptych-landscape .sp-static-detail-grid-side,
    .sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-side {
        display: grid;
    }

    .sp-static-detail-grid--layout-triptych-portrait .sp-static-detail-grid-main,
    .sp-static-detail-grid--layout-triptych-landscape .sp-static-detail-grid-main {
        min-height: min(50vh, 360px);
    }

    .sp-static-detail-grid--layout-wide-169 .sp-static-detail-grid-main {
        min-height: 0;
    }

    .sp-static-detail-grid--layout-stack {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(200px, 42vw) minmax(120px, 28vw);
    }

    .sp-static-detail-grid--layout-stack .sp-static-detail-grid-main {
        grid-column: auto;
        grid-row: auto;
    }

    .sp-static-detail-grid--layout-stack .sp-static-detail-grid-side {
        grid-column: auto;
        grid-row: auto;
    }

    .sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-portrait,
    .sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-mixed {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(200px, 42vw) minmax(200px, 42vw);
    }

    .sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-portrait .sp-static-detail-grid-side,
    .sp-static-detail-grid--photos-2.sp-static-detail-grid--layout-duo-mixed .sp-static-detail-grid-side {
        display: grid;
        grid-template-columns: 1fr;
        max-height: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .sp-static-detail-grid {
        height: min(45vh, 360px);
        min-height: 220px;
    }
}

/* Lightbox na statičkoj detail stranici */
#showSlider #ninja-slider.fullscreen {
    z-index: 10050;
}

.sp-static-detail-back {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.sp-static-detail-back a {
    color: #2d5a27;
    font-weight: 600;
    text-decoration: none;
}

.sp-static-detail-back a:hover,
.sp-static-detail-back a:focus {
    color: #24481f;
    text-decoration: underline;
}

.sp-static-detail-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sp-static-detail-hero {
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.sp-static-detail-image {
    max-height: 280px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sp-static-detail-image-fallback {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: #2d5a27;
    text-transform: uppercase;
    line-height: 1.3;
    padding: 1rem;
}

.sp-static-detail-body {
    padding: 24px 28px 28px;
}

.sp-static-detail-kicker {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2d5a27;
}

.sp-static-detail-title {
    margin: 0 0 16px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    text-transform: none;
}

.sp-static-detail-description {
    margin-bottom: 24px;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    text-transform: none;
}

.sp-static-detail-description p {
    margin: 0;
    white-space: pre-line;
}

.sp-static-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0 0 24px;
}

.sp-static-detail-meta-item {
    margin: 0;
    padding: 14px 16px;
    background: #f8f9f8;
    border-radius: 8px;
    border: 1px solid #e8ebe8;
}

.sp-static-detail-meta-label {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.sp-static-detail-meta-value {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    word-break: break-word;
}

.sp-static-detail-meta-value a {
    color: #2d5a27;
    text-decoration: underline;
}

.sp-static-detail-meta-value a:hover {
    color: #24481f;
}

.sp-static-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sp-static-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sp-static-detail-btn--primary {
    background: #2d5a27;
    color: #fff !important;
}

.sp-static-detail-btn--primary:hover,
.sp-static-detail-btn--primary:focus {
    background: #24481f;
    color: #fff !important;
}

.sp-static-detail-btn--accent {
    background: #e67e22;
    color: #fff !important;
}

.sp-static-detail-btn--accent:hover,
.sp-static-detail-btn--accent:focus {
    background: #ca6f1e;
    color: #fff !important;
}

@media (max-width: 767px) {
    .sp-static-detail-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sp-static-detail-hero {
        padding: 16px;
        min-height: 160px;
    }

    .sp-static-detail-gallery-wrap--single .sp-static-detail-hero--photo {
        min-height: 0;
        padding: 16px;
    }

    .sp-static-detail-image {
        max-height: 200px;
    }

    .sp-static-detail-body {
        padding: 18px 16px 22px;
    }

    .sp-static-detail-title {
        font-size: 1.5rem;
    }

    .sp-static-detail-meta {
        grid-template-columns: 1fr;
    }

    .sp-static-detail-actions {
        flex-direction: row;
    }

    .sp-static-detail-btn {
        width: 100%;
    }
}

/* Host listing calendar — semantic day states */
.host-calendar-container .calender_box.dt-cal-available {
    background-color: #e8f3e6;
}

.host-calendar-container .calender_box.dt-cal-booked {
    background-color: #fdeaea;
}

.host-calendar-container .calender_box.dt-cal-blocked {
    background-color: #fff0e0;
}

.host-calendar-container .calender_box.dt-cal-undefined {
    background-color: #ffffff;
}

.host-calendar-container .calender_box.dt-not-available {
    background-color: #dce0e0 !important;
}

.host-calendar-container .margin-top10 > .col-md-02 .wkText {
    font-size: 1.6rem;
    line-height: 1.2;
    text-align: center;
}

.listing-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.listing-calendar-legend li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    color: #414141;
}

.listing-calendar-legend-swatch {
    width: 1em;
    height: 1em;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    flex-shrink: 0;
}

.listing-calendar-legend-swatch--available {
    background-color: #e8f3e6;
}

.listing-calendar-legend-swatch--booked {
    background-color: #fdeaea;
}

.listing-calendar-legend-swatch--blocked {
    background-color: #fff0e0;
}

.listing-calendar-legend-swatch--undefined {
    background-color: #ffffff;
}

/* Dashboard — kompaktne kartice oglasa + kalendar */
.dashboard-property-card {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-property-card:hover,
.dashboard-property-card--active {
    border-color: #2D5A27 !important;
    box-shadow: 0 0 0 1px rgba(45, 90, 39, 0.2);
}

.dashboard-property-card--active {
    background-color: rgba(45, 90, 39, 0.04);
}

.dashboard-property-card__img {
    width: 72px;
    height: 48px;
    object-fit: cover;
}

.dashboard-property-card__body {
    flex: 1;
    min-width: 0;
}

.min-width-0 {
    min-width: 0;
}

/* ===== Amenities — kategorije (nova struktura, 14 tipova) ===== */
.sp-amenity-category {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.sp-amenity-category:last-child {
    border-bottom: none;
}
.sp-amenity-cat-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}
.sp-amenity-cat-icon,
.amenity-cat-icon {
    opacity: 0.8;
    flex-shrink: 0;
}
.sp-amenity-freetext {
    font-size: 0.9rem;
    font-style: italic;
}
.sp-amenity-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem 1rem;
}
.sp-facility-icon-svg {
    vertical-align: middle;
    flex-shrink: 0;
}
.amenity-icon {
    opacity: 0.75;
    flex-shrink: 0;
}
.sp-show-more-cat {
    font-size: 0.85rem;
    color: #2D5A27;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}
.sp-show-more-cat:hover {
    color: #24481F;
}
/* Forme — amenities kategorija sa ikonicama */
.amenity-label {
    cursor: pointer;
}

/* Owner listing amenities — user-front nema Bootstrap utility (d-flex, gap-2) */
form#amenities_id .amenity-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

form#amenities_id .amenity-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-right: 0;
}

form#amenities_id .amenity-icon {
    flex-shrink: 0;
    opacity: 0.75;
}

form#amenities_id h4.text-18 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

form#amenities_id .amenity-cat-icon {
    flex-shrink: 0;
}
/* Listing — kreveti i tipovi (owner forma) */
#listing_bes .property-beds-section-owner {
    flex: 0 0 100%;
    max-width: 100%;
}

#listing_bes #property-beds-rows .property-bed-row {
    margin-left: 0;
    margin-right: 0;
}

#property-beds-section .property-bed-action {
    display: flex;
    align-items: center;
}

#property-beds-section .property-bed-remove {
    min-height: calc(1.5em + 0.75rem + 2px);
    min-width: calc(1.5em + 0.75rem + 2px);
    padding: 0;
    line-height: 1;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

