/**
 * Napredno Pretraživanje - Frontend Styles
 * 
 * All styles use both napredno- and nap-pret- prefixes for maximum isolation
 * and conflict prevention with other site styles.
 */

/* ============================================================================
   MAIN WRAPPER - Isolated with specific prefixes
   ============================================================================ */
.napredno-pretrazivanje-wrapper,
.nap-pret-wrapper {
    width: 100% !important;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Ensure wrapper isolation - prevent style conflicts */
.nap-pret-wrapper *,
.napredno-pretrazivanje-wrapper * {
    box-sizing: border-box;
}

/* Prevent theme styles from affecting plugin elements */
.nap-pret-wrapper,
.napredno-pretrazivanje-wrapper {
    isolation: isolate;
}

/* Reset any inherited styles that might conflict */
.nap-pret-wrapper h1,
.nap-pret-wrapper h2,
.nap-pret-wrapper h3,
.nap-pret-wrapper h4,
.nap-pret-wrapper p,
.nap-pret-wrapper ul,
.nap-pret-wrapper li,
.nap-pret-wrapper a,
.nap-pret-wrapper button,
.nap-pret-wrapper input,
.nap-pret-wrapper select,
.nap-pret-wrapper textarea {
    font-family: inherit;
    line-height: inherit;
}

/* Ensure plugin elements don't inherit theme button styles */
.nap-pret-wrapper button,
.nap-pret-wrapper .btn,
.napredno-pretrazivanje-wrapper button,
.napredno-pretrazivanje-wrapper .btn {
    font-family: inherit !important;
    line-height: inherit !important;
}

/* ============================================================================
   TOP BAR - Filters and Actions
   ============================================================================ */
.napredno-top-bar,
.nap-pret-top-bar {
    width: 100% !important;
    background: #fff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 15px 20px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    overflow: visible !important; /* Allow dropdowns to extend beyond top bar */
}

.napredno-top-bar-content,
.nap-pret-top-bar-content {
    width: 100% !important;
    max-width: 100% !important;
}

.napredno-top-bar .napredno-filters-wrapper,
.nap-pret-top-bar .nap-pret-filters-wrapper,
.napredno-top-bar .nap-pret-filters-wrapper,
.nap-pret-top-bar .napredno-filters-wrapper {
    width: 100% !important;
    overflow: visible !important; /* Allow dropdowns to extend beyond wrapper */
}

.napredno-top-bar-content,
.nap-pret-top-bar-content {
    overflow: visible !important; /* Allow dropdowns to extend beyond content */
}

/* ============================================================================
   DESKTOP LAYOUT - 50/50 Split
   ============================================================================ */
.napredno-desktop-layout,
.nap-pret-desktop-layout {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    height: calc(100vh - 150px) !important;
    min-height: 600px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.napredno-left-side,
.nap-pret-left-side {
    width: 50% !important;
    overflow-y: auto !important;
    padding: 20px !important;
    background: #fff !important;
    border-right: 1px solid #e0e0e0 !important;
    transition: width 0.3s ease !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.napredno-left-side.full-width,
.nap-pret-left-side.full-width,
.napredno-left-side.nap-pret-full-width,
.nap-pret-left-side.napredno-full-width {
    width: 100% !important;
    border-right: none !important;
}

.napredno-right-side,
.nap-pret-right-side {
    width: 50% !important;
    position: relative !important;
    background: #f5f5f5 !important;
    overflow: hidden !important;
    transition: width 0.3s ease, opacity 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.napredno-desktop-layout.map-hidden .napredno-right-side,
.nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-right-side,
.napredno-desktop-layout.map-hidden .nap-pret-right-side,
.nap-pret-desktop-layout.map-hidden .napredno-right-side {
    display: none !important;
}

/* Page Header */
.napredno-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.napredno-page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
    text-transform: none;
}

.napredno-results-count {
    font-weight: 400;
    color: #666;
    font-size: 18px;
}

.napredno-sort-wrapper {
    position: relative;
}

.napredno-sort-dropdown .btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.napredno-sort-dropdown .caret {
    margin-left: 8px;
}

/* ============================================================================
   FILTERS - Maximum Isolation
   ============================================================================ */
.napredno-filters-wrapper,
.nap-pret-filters-wrapper {
    margin-bottom: 0 !important;
    width: 100% !important;
}

.napredno-filters-row,
.nap-pret-filters-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: visible !important; /* Changed from hidden to visible to allow dropdowns */
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #ddd transparent !important;
    position: relative !important;
    z-index: 1 !important;
}

.napredno-filters-row::-webkit-scrollbar {
    height: 4px;
}

.napredno-filters-row::-webkit-scrollbar-track {
    background: transparent;
}

.napredno-filters-row::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.napredno-filter-item,
.nap-pret-filter-item {
    flex: 0 1 auto !important;
    min-width: 100px !important;
    max-width: 180px !important;
    position: relative !important;
    z-index: auto !important;
    overflow: visible !important; /* Allow dropdown menu to extend beyond filter item */
}

.napredno-map-toggle-item,
.nap-pret-map-toggle-item {
    min-width: auto !important;
    max-width: none !important;
}

.napredno-filter-dropdown,
.nap-pret-filter-dropdown {
    position: relative !important;
    z-index: 101 !important; /* Ensure dropdown container is above top bar */
    overflow: visible !important; /* Allow menu to extend beyond dropdown */
}

/* Also handle Bootstrap dropdown class */
.dropdown.napredno-filter-dropdown,
.dropdown.nap-pret-filter-dropdown {
    position: relative !important;
    z-index: 101 !important;
    overflow: visible !important;
}

/* Completely disable Bootstrap dropdown functionality for our custom filters on desktop */
@media (min-width: 993px) {
    .napredno-filter-dropdown[data-bs-toggle],
    .nap-pret-filter-dropdown[data-bs-toggle],
    .napredno-filter-btn[data-bs-toggle="dropdown"],
    .nap-pret-filter-btn[data-bs-toggle="dropdown"] {
        pointer-events: auto !important;
    }
    
    /* Prevent Bootstrap from taking control */
    .napredno-filter-dropdown .dropdown-toggle,
    .nap-pret-filter-dropdown .dropdown-toggle {
        pointer-events: auto !important;
    }
}

.napredno-filter-btn,
.nap-pret-filter-btn {
    width: 100% !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    padding: 8px 12px !important;
    text-align: left !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    margin: 0 !important;
}

.napredno-filter-btn span:not(.caret) {
    text-transform: capitalize;
    margin-left: 8px;
}

.napredno-filter-icon {
    color: #666;
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.napredno-filter-btn:hover,
.nap-pret-filter-btn:hover {
    border-color: #fd363b !important;
    background: #f8f8f8;
    color: #fd363b !important;
}

.napredno-filter-btn:hover .nap-pret-filter-text,
.nap-pret-filter-btn:hover .nap-pret-filter-text {
    color: #fd363b !important;
}

.napredno-filter-btn:hover .napredno-filter-icon,
.nap-pret-filter-btn:hover .nap-pret-filter-icon {
    color: #fd363b !important;
}

.napredno-filter-btn .caret,
.nap-pret-filter-btn .caret,
.nap-pret-caret {
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.napredno-filter-btn:hover .caret,
.nap-pret-filter-btn:hover .caret,
.napredno-filter-btn:hover .nap-pret-caret,
.nap-pret-filter-btn:hover .nap-pret-caret {
    opacity: 1;
    color: #fd363b !important;
}

.napredno-filter-menu,
.nap-pret-filter-menu {
    display: none !important;
    min-width: 200px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    margin-top: 5px !important;
    z-index: 10001 !important; /* Very high z-index to ensure it appears above everything */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #fff !important;
    border-radius: 4px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 5px 0 0 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    /* Prevent Bootstrap dropdown animations */
    transition: none !important;
}

/* Bootstrap 3.x uses 'open' class, Bootstrap 5 uses 'show' class - support both */
.napredno-filter-dropdown.show .napredno-filter-menu,
.nap-pret-filter-dropdown.show .nap-pret-filter-menu,
.napredno-filter-dropdown.show .nap-pret-filter-menu,
.nap-pret-filter-dropdown.show .napredno-filter-menu,
.napredno-filter-menu.show,
.nap-pret-filter-menu.show,
.napredno-filter-dropdown.show .napredno-filter-menu.show,
.nap-pret-filter-dropdown.show .nap-pret-filter-menu.show,
.dropdown.show .napredno-filter-menu,
.dropdown.show .nap-pret-filter-menu,
/* Bootstrap 3.x 'open' class support */
.napredno-filter-dropdown.open .napredno-filter-menu,
.nap-pret-filter-dropdown.open .nap-pret-filter-menu,
.napredno-filter-dropdown.open .nap-pret-filter-menu,
.nap-pret-filter-dropdown.open .napredno-filter-menu,
.dropdown.open .napredno-filter-menu,
.dropdown.open .nap-pret-filter-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    /* Prevent Bootstrap dropdown animations */
    transition: none !important;
}

/* Ensure dropdown menu is visible when parent has show class */
.napredno-filter-dropdown.show > .napredno-filter-menu,
.nap-pret-filter-dropdown.show > .nap-pret-filter-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Also handle Bootstrap dropdown-menu class if present */
.dropdown.show .dropdown-menu.napredno-filter-menu,
.dropdown.show .dropdown-menu.nap-pret-filter-menu,
.dropdown.show > .dropdown-menu.napredno-filter-menu,
.dropdown.show > .dropdown-menu.nap-pret-filter-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Ensure filter items allow dropdown overflow */
.napredno-filter-item,
.nap-pret-filter-item {
    overflow: visible !important;
    position: relative !important;
    z-index: auto !important;
}

.napredno-filter-menu li {
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.napredno-filter-menu li:hover {
    background: #f0f0f0;
}

/* Structure Filter Menu */
.structure-filter-menu {
    min-width: 300px;
    max-width: 400px;
}

.structure-filter-content {
    padding: 15px;
}

.structure-filter-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0 10px 0;
    color: #333;
    text-transform: none;
}

.structure-filter-content h4:first-child {
    margin-top: 0;
}

.structure-checkboxes,
.bedrooms-checkboxes,
.bathrooms-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.structure-checkbox-item,
.bedroom-checkbox-item,
.bathroom-checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.structure-checkbox-item:hover,
.bedroom-checkbox-item:hover,
.bathroom-checkbox-item:hover {
    background: #f5f5f5;
}

.structure-checkbox-item input[type="checkbox"],
.bedroom-checkbox-item input[type="checkbox"],
.bathroom-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Price and Size Filter Menus */
.price-filter-menu,
.size-filter-menu {
    min-width: 250px;
}

.price-filter-content,
.size-filter-content {
    padding: 15px;
}

.price-filter-content label,
.size-filter-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.price-filter-content input,
.size-filter-content input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.napredno-apply-filter {
    width: 100%;
    margin-top: 10px;
    background: #dc3545;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.napredno-apply-filter:hover {
    background: #c82333;
}

/* Filter Actions - now inline with filters */
.napredno-filter-actions {
    margin-left: auto;
}

.napredno-filter-actions .napredno-save-search-btn,
.napredno-filter-actions .napredno-reset-filters-btn {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.napredno-reset-filters-btn {
    background: #fff;
    color: #666;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.napredno-reset-filters-btn:hover {
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
}

.napredno-save-search-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
    white-space: nowrap;
}

.napredno-save-search-btn:hover {
    background: #c82333;
}

/* Top bar action buttons styling - reduce gap between buttons */
.nap-pret-top-bar .nap-pret-filter-item.nap-pret-filter-actions {
    margin-left: -4px !important; /* Closer spacing between action buttons and to "Više filtera" */
}

.nap-pret-top-bar .nap-pret-save-search-btn,
.nap-pret-top-bar .nap-pret-reset-filters-btn {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: background 0.3s !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.nap-pret-top-bar .nap-pret-save-search-btn i,
.nap-pret-top-bar .nap-pret-reset-filters-btn i {
    color: #fff !important;
}

.nap-pret-top-bar .nap-pret-save-search-btn:hover,
.nap-pret-top-bar .nap-pret-reset-filters-btn:hover {
    background: #c82333 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.nap-pret-top-bar .nap-pret-save-search-btn:hover i,
.nap-pret-top-bar .nap-pret-reset-filters-btn:hover i {
    color: #fff !important;
}

/* Modal Styles */
.napredno-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.napredno-modal-overlay.active,
.napredno-modal-overlay:not([style*="display: none"]) {
    display: flex;
}

.napredno-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.napredno-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.napredno-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.napredno-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.napredno-modal-close:hover {
    color: #333;
}

.napredno-modal-body {
    padding: 20px;
}

.napredno-modal-body p {
    margin-bottom: 20px;
    color: #666;
}

.napredno-modal-actions {
    display: flex;
    gap: 10px;
}

.napredno-btn-primary {
    background: #dc3545;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    flex: 1;
    text-align: center;
    border: none;
    display: inline-block;
}

.napredno-btn-primary:hover {
    background: #c82333;
    color: #fff;
    text-decoration: none;
}

/* Custom modal login/register buttons - red background with white text */
.napredno-modal-login-btn,
.napredno-modal-register-btn {
    background: #dc3545 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: background 0.3s !important;
    flex: 1 !important;
    text-align: center !important;
    border: none !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.napredno-modal-login-btn:hover,
.napredno-modal-register-btn:hover {
    background: #c82333 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.napredno-btn-secondary {
    background: #f8f8f8;
    color: #333;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    flex: 1;
    text-align: center;
}

.napredno-btn-secondary:hover {
    background: #e8e8e8;
    color: #333;
}

.napredno-reset-filters {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.napredno-reset-filters:hover {
    color: #333;
    text-decoration: underline;
}

/* Property List */
.napredno-property-list {
    margin-top: 20px;
}

/* Use theme's property card styles */
.napredno-property-list .listing_wrapper {
    margin-bottom: 20px;
}

.napredno-property-list .property_listing {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

.napredno-property-list .property_listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Custom Property Grid - Override existing grid for custom cards */
/* Default: 3 columns when map is visible (desktop layout without map-hidden class) */
.nap-pret-wrapper .nap-pret-custom-property-grid,
.nap-pret-wrapper #napredno-property-list .nap-pret-custom-property-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* When map is visible: 3 columns */
.nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) #napredno-property-list .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-left-side .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* When map is hidden on desktop, show 5 columns */
.nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout.map-hidden #napredno-property-list .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-custom-property-grid,
.nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .nap-pret-custom-property-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    grid-auto-flow: row !important;
}

/* Ensure listing_wrapper elements fit properly in 5-column grid when map is hidden */
.nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-desktop-layout.map-hidden #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-custom-property-grid .listing_wrapper,
.nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    grid-column: auto !important;
}

/* Mobile property list - single column */
.nap-pret-wrapper #napredno-mobile-property-list .nap-pret-custom-property-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================================
   PROPERTY GRID LAYOUT - Custom Styles with Maximum Isolation
   ============================================================================ */
/* Override Bootstrap grid system with CSS Grid - Using both class prefixes */
.napredno-pretrazivanje-wrapper .napredno-property-list .row,
.nap-pret-wrapper .nap-pret-property-list .row,
.napredno-pretrazivanje-wrapper .napredno-property-list .ajax-map.row,
.nap-pret-wrapper .nap-pret-property-list .ajax-map.row,
.napredno-pretrazivanje-wrapper .napredno-left-side .row,
.nap-pret-wrapper .nap-pret-left-side .row,
.napredno-pretrazivanje-wrapper .napredno-left-side .ajax-map.row,
.nap-pret-wrapper .nap-pret-left-side .ajax-map.row,
.napredno-pretrazivanje-wrapper #napredno-property-list .row,
.nap-pret-wrapper #napredno-property-list .row,
.napredno-pretrazivanje-wrapper #napredno-property-list .ajax-map.row,
.nap-pret-wrapper #napredno-property-list .ajax-map.row,
.nap-pret-wrapper .napredno-property-list .row,
.nap-pret-wrapper .napredno-property-list .ajax-map.row,
.nap-pret-wrapper .napredno-left-side .row,
.nap-pret-wrapper .napredno-left-side .ajax-map.row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* When map is hidden on desktop, show 5 columns */
.napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-property-list .row,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-property-list .row,
.napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-property-list .ajax-map.row,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-property-list .ajax-map.row,
.napredno-pretrazivanje-wrapper .napredno-left-side.full-width .napredno-property-list .row,
.nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-property-list .row,
.napredno-pretrazivanje-wrapper .napredno-left-side.full-width .napredno-property-list .ajax-map.row,
.nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-property-list .ajax-map.row,
.napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-left-side .row,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .row,
.napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-left-side .ajax-map.row,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .ajax-map.row,
.napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden #napredno-property-list .row,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .row,
.napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden #napredno-property-list .ajax-map.row,
.nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .ajax-map.row,
.napredno-pretrazivanje-wrapper .napredno-left-side.full-width #napredno-property-list .row,
.nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .row,
.napredno-pretrazivanje-wrapper .napredno-left-side.full-width #napredno-property-list .ajax-map.row,
.nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .ajax-map.row {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* Override Bootstrap column classes for listing_wrapper */
.napredno-pretrazivanje-wrapper .napredno-property-list .row .listing_wrapper,
.nap-pret-wrapper .nap-pret-property-list .row .listing_wrapper,
.napredno-pretrazivanje-wrapper .napredno-property-list .ajax-map.row .listing_wrapper,
.nap-pret-wrapper .nap-pret-property-list .ajax-map.row .listing_wrapper,
.napredno-pretrazivanje-wrapper .napredno-left-side .row .listing_wrapper,
.nap-pret-wrapper .nap-pret-left-side .row .listing_wrapper,
.napredno-pretrazivanje-wrapper .napredno-left-side .ajax-map.row .listing_wrapper,
.nap-pret-wrapper .nap-pret-left-side .ajax-map.row .listing_wrapper,
.napredno-pretrazivanje-wrapper #napredno-property-list .row .listing_wrapper,
.nap-pret-wrapper #napredno-property-list .row .listing_wrapper,
.napredno-pretrazivanje-wrapper #napredno-property-list .ajax-map.row .listing_wrapper,
.nap-pret-wrapper #napredno-property-list .ajax-map.row .listing_wrapper {
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    /* Override Bootstrap column classes */
    flex-basis: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    /* Remove Bootstrap column width constraints */
    min-width: 0 !important;
}

/* Override Bootstrap column classes (col-md-*, col-lg-*, etc.) */
.napredno-pretrazivanje-wrapper .napredno-property-list .listing_wrapper[class*="col-"],
.nap-pret-wrapper .nap-pret-property-list .listing_wrapper[class*="col-"],
.napredno-pretrazivanje-wrapper .napredno-left-side .listing_wrapper[class*="col-"],
.nap-pret-wrapper .nap-pret-left-side .listing_wrapper[class*="col-"],
.napredno-pretrazivanje-wrapper #napredno-property-list .listing_wrapper[class*="col-"],
.nap-pret-wrapper #napredno-property-list .listing_wrapper[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

.napredno-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    grid-column: 1 / -1;
}

/* Pagination */
.napredno-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Map */
.napredno-map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Map Toggle in Top Bar */
.napredno-map-toggle-item {
    margin-left: auto;
}

.napredno-map-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.napredno-map-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Keep map toggle visible even when map is hidden - so user can toggle it back on */
.napredno-map-toggle-item,
.nap-pret-map-toggle-item {
    display: flex !important;
}

.napredno-map-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.napredno-map-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.napredno-map-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.napredno-map-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.napredno-map-switch input:checked + .napredno-map-slider {
    background-color: #dc3545;
}

.napredno-map-switch input:checked + .napredno-map-slider:before {
    transform: translateX(26px);
}

.napredno-openstreet-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    z-index: 1;
}

/* Leaflet map container */
#naprednoOpenStreetMap {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Map popup styles */
.napredno-map-popup {
    min-width: 200px;
}

.napredno-map-popup img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

.napredno-map-popup h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.napredno-map-popup h4 a {
    color: #333;
    text-decoration: none;
}

.napredno-map-popup h4 a:hover {
    color: #dc3545;
}

.napredno-popup-price {
    font-weight: 600;
    color: #dc3545;
    margin: 5px 0;
}

.napredno-popup-category {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
}

.napredno-map-controls {
    position: absolute;
    right: 10px;
    top: 60px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.napredno-map-zoom-in,
.napredno-map-zoom-out {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.3s;
}

.napredno-map-zoom-in:hover,
.napredno-map-zoom-out:hover {
    background: #f5f5f5;
}

.napredno-map-attribution {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

/* Loading state */
.napredno-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Mobile Layout */
.napredno-mobile-layout,
.nap-pret-mobile-layout {
    display: none !important;
}

.napredno-mobile-header {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.napredno-mobile-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: capitalize;
}

.napredno-mobile-actions {
    display: flex;
    gap: 10px;
}

.napredno-mobile-filter-btn,
.napredno-mobile-sort-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.napredno-mobile-filter-btn:hover,
.napredno-mobile-sort-btn:hover {
    background: #f8f8f8;
}

.napredno-mobile-filters {
    display: none;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    max-height: 70vh;
    overflow-y: auto;
}

.napredno-mobile-filters.active {
    display: block;
}

/* Mobile filters as accordion - full width */
@media (max-width: 992px) {
    .napredno-mobile-filters .nap-pret-filters-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-dropdown {
        width: 100% !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-btn {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        border: 1px solid #ddd !important;
        background: #fff !important;
        border-radius: 6px !important;
        font-size: 15px !important;
    }
    
    /* Hide save search button in mobile filters */
    .napredno-mobile-filters .nap-pret-save-search-btn {
        display: none !important;
    }
    
    /* Style reset filters button for mobile */
    .napredno-mobile-filters .nap-pret-reset-filters-btn {
        width: 100% !important;
        background: #dc3545 !important;
        color: #fff !important;
        border: none !important;
        padding: 12px 16px !important;
        border-radius: 6px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        margin: 0 auto !important;
    }
    
    .napredno-mobile-filters .nap-pret-reset-filters-btn:hover {
        background: #c82333 !important;
        color: #fff !important;
        text-decoration: none !important;
    }
    
    /* Accordion style for dropdown menus */
    .napredno-mobile-filters .nap-pret-filter-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        margin-top: 8px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        padding: 0 !important;
        list-style: none !important;
        background: #fff !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-filter-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure all list items are visible in mobile filters */
    .napredno-mobile-filters .nap-pret-filter-menu li {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 12px 15px !important;
        cursor: pointer !important;
        border-bottom: 1px solid #f0f0f0 !important;
        transition: background 0.2s !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-menu li:last-child {
        border-bottom: none !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-menu li:hover {
        background: #f5f5f5 !important;
    }
    
    /* Hide any wrapper divs or labels that might be interfering */
    .napredno-mobile-filters .nap-pret-filter-menu > div,
    .napredno-mobile-filters .nap-pret-filter-menu > label {
        display: none !important;
    }
    
    /* Ensure menu is fully visible when opened */
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-filter-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        max-height: 300px !important;
        overflow-y: auto !important;
    }
    
    /* Make sure all direct children (li elements) are visible */
    .napredno-mobile-filters .nap-pret-filter-menu > * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Override any Bootstrap or other CSS that might hide the menu */
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-filter-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        padding: 0 !important;
        list-style: none !important;
        background: #fff !important;
    }
    
    /* Ensure all li elements are visible when parent is shown */
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-filter-menu li,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-filter-menu li {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 12px 15px !important;
        cursor: pointer !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-filter-menu li:last-child,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-filter-menu li:last-child {
        border-bottom: none !important;
    }
    
    /* Price and size filter menus */
    .napredno-mobile-filters .nap-pret-price-filter-menu,
    .napredno-mobile-filters .nap-pret-size-filter-menu,
    .napredno-mobile-filters .nap-pret-structure-filter-menu,
    .napredno-mobile-filters .nap-pret-more-filters-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        margin-top: 8px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        padding: 15px !important;
        background: #fff !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-price-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-size-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-structure-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown.show .nap-pret-more-filters-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-price-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-size-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-structure-filter-menu,
    .napredno-mobile-filters .nap-pret-filter-dropdown[aria-expanded="true"] .nap-pret-more-filters-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        padding: 15px !important;
        background: #fff !important;
    }
    
    /* Ensure content inside price, size, and structure filters is visible */
    .napredno-mobile-filters .nap-pret-price-filter-content,
    .napredno-mobile-filters .nap-pret-size-filter-content,
    .napredno-mobile-filters .nap-pret-structure-filter-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-label {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 10px !important;
        margin-bottom: 5px !important;
        font-weight: 600 !important;
    }
    
    .napredno-mobile-filters .nap-pret-filter-label:first-child {
        margin-top: 0 !important;
    }
    
    .napredno-mobile-filters .nap-pret-price-input,
    .napredno-mobile-filters .nap-pret-size-input {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .napredno-mobile-filters .nap-pret-apply-filter {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        margin-top: 15px !important;
    }
    
    .napredno-mobile-filters .nap-pret-structure-checkboxes {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .napredno-mobile-filters .nap-pret-structure-checkbox-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 10px !important;
    }
}

.napredno-mobile-property-list {
    padding: 15px;
    min-height: 400px;
}

.napredno-mobile-property-list .row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.napredno-mobile-pagination {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.napredno-mobile-map-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.napredno-mobile-save-search,
.napredno-mobile-map-toggle {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.napredno-mobile-save-search {
    background: #dc3545;
    color: #fff;
    transition: background 0.3s;
}

.napredno-mobile-save-search:hover {
    background: #c82333;
}

.napredno-mobile-map-toggle {
    background: #dc3545;
    color: #fff;
}

.napredno-mobile-map {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    z-index: 2000;
    background: #fff;
    width: 100%;
    height: calc(100vh - 60px);
}

.napredno-mobile-map.active {
    display: block;
}

.napredno-mobile-map .napredno-map-wrapper {
    height: 100%;
}

.napredno-mobile-map #naprednoOpenStreetMap,
.napredno-mobile-map #naprednoOpenStreetMapMobile {
    height: 100%;
    min-height: 100%;
}

/* Hide desktop-only elements on mobile */
.napredno-desktop-only,
.nap-pret-desktop-only {
    display: block;
}

/* Ensure desktop layout is visible on desktop and hidden on mobile by default */
@media (min-width: 992px) {
    .napredno-desktop-layout,
    .nap-pret-desktop-layout {
        display: flex !important;
    }
    
    .napredno-mobile-layout,
    .nap-pret-mobile-layout {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 991px) {
    /* Hide desktop top bar on mobile (mobile has its own header) */
    .napredno-top-bar,
    .nap-pret-top-bar {
        display: none !important;
    }
    
    /* Hide desktop layout on mobile */
    .napredno-desktop-layout,
    .nap-pret-desktop-layout {
        display: none !important;
    }
    
    .napredno-desktop-only,
    .nap-pret-desktop-only {
        display: none !important;
    }
    
    /* Show mobile layout on mobile */
    .napredno-mobile-layout,
    .nap-pret-mobile-layout {
        display: block !important;
    }
    
    /* Mobile: Single column layout */
    .napredno-pretrazivanje-wrapper .napredno-property-list .row,
    .nap-pret-wrapper .nap-pret-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-property-list .ajax-map.row,
    .nap-pret-wrapper .nap-pret-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-mobile-property-list .row,
    .nap-pret-wrapper .nap-pret-mobile-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-mobile-property-list .ajax-map.row,
    .nap-pret-wrapper .nap-pret-mobile-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper #napredno-mobile-property-list .row,
    .nap-pret-wrapper #napredno-mobile-property-list .row,
    .napredno-pretrazivanje-wrapper #napredno-mobile-property-list .ajax-map.row,
    .nap-pret-wrapper #napredno-mobile-property-list .ajax-map.row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .napredno-mobile-property-list {
        padding: 15px;
    }
    
    .napredno-mobile-property-list .listing_wrapper {
        margin-bottom: 15px;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 1201px) {
    /* On large screens (desktop), when map is visible: 3 columns */
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-property-list .row,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.nap-pret-map-hidden) .nap-pret-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-property-list .ajax-map.row,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.nap-pret-map-hidden) .nap-pret-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-left-side .row,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.nap-pret-map-hidden) .nap-pret-left-side .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-left-side .ajax-map.row,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.nap-pret-map-hidden) .nap-pret-left-side .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) #napredno-property-list .row,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.nap-pret-map-hidden) #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) #napredno-property-list .ajax-map.row,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.nap-pret-map-hidden) #napredno-property-list .ajax-map.row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* On large screens (desktop), when map is hidden: 5 columns */
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-property-list .row,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-property-list .ajax-map.row,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width .napredno-property-list .row,
    .nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width .napredno-property-list .ajax-map.row,
    .nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-left-side .row,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-left-side .ajax-map.row,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden #napredno-property-list .row,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden #napredno-property-list .ajax-map.row,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width #napredno-property-list .row,
    .nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width #napredno-property-list .ajax-map.row,
    .nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .ajax-map.row {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    /* On medium screens, show 4 columns when map is hidden */
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width .napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width .napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-left-side .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-left-side .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden #napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width #napredno-property-list .ajax-map.row {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    /* On medium screens, show 3 columns when map is visible */
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-left-side .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-left-side .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) #napredno-property-list .ajax-map.row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    /* On smaller desktop screens, show 3 columns when map is hidden */
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width .napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width .napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-left-side .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden .napredno-left-side .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout.map-hidden #napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-left-side.full-width #napredno-property-list .ajax-map.row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* On smaller desktop screens, show 2 columns when map is visible */
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-property-list .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-left-side .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) .napredno-left-side .ajax-map.row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) #napredno-property-list .row,
    .napredno-pretrazivanje-wrapper .napredno-desktop-layout:not(.map-hidden) #napredno-property-list .ajax-map.row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .napredno-filters-row {
        flex-direction: column;
    }
    
    .napredno-filter-item {
        width: 100%;
    }
    
    .napredno-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .napredno-mobile-property-list .listing_wrapper {
        width: 100%;
    }
}

/* ============================================================================
   CUSTOM PROPERTY CARD - Completely Custom Design
   ============================================================================ */

.nap-pret-custom-property-card {
    width: 100% !important;
    background: #F2F2F2 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    border: 2px solid transparent !important;
}

.nap-pret-custom-property-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: none !important;
    border-color: #dc3545 !important;
}

.nap-pret-card-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: none !important;
}

.nap-pret-card-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Image Section */
.nap-pret-card-image-wrapper {
    position: relative !important;
    width: 100% !important;
    padding-top: 70% !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
}

.nap-pret-card-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.nap-pret-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.nap-pret-custom-property-card:hover .nap-pret-card-image img {
    transform: scale(1.05) !important;
}

.nap-pret-no-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
}

.nap-pret-no-image-text {
    color: #999 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Badges */
/* ID Badge and Favorite Row */
.nap-pret-card-id-favorite-row {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 10 !important;
    gap: 8px !important;
}

.nap-pret-card-id-badge {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
}

/* Favorite Button */
.nap-pret-card-favorite-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(253, 54, 59, 0.3) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    z-index: 11 !important;
}

.nap-pret-card-favorite-btn i {
    color: rgba(253, 54, 59, 0.6) !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.nap-pret-card-favorite-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #fd363b !important;
    transform: scale(1.1) !important;
}

.nap-pret-card-favorite-btn:hover i {
    color: #fd363b !important;
    transform: scale(1.1) !important;
}

.nap-pret-card-favorite-btn.active {
    background: #fd363b !important;
    border-color: #fd363b !important;
}

.nap-pret-card-favorite-btn.active i {
    color: #fff !important;
}

.nap-pret-card-favorite-btn.active:hover {
    background: #dc2a2f !important;
    border-color: #dc2a2f !important;
}

.nap-pret-card-id-badge {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.nap-pret-card-featured-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #333 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4) !important;
}

.nap-pret-card-featured-badge i {
    font-size: 10px !important;
}

/* Hide featured badge in exclusive section (top right) */
.nap-pret-exclusive-section .nap-pret-card-featured-badge {
    display: none !important;
}

/* Action badges container for exclusive properties */
.nap-pret-card-action-badges {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 10 !important;
    flex-wrap: wrap !important;
}

/* Action badge when inside badges container */
.nap-pret-card-action-badges .nap-pret-card-action-badge {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-block !important;
}

/* Action badge when standalone (not in exclusive section) */
.nap-pret-card-action-badge {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    background: rgba(220, 53, 69, 0.95) !important;
    color: #fff !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    z-index: 10 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* Featured badge inline (shown next to action badge in exclusive section) */
.nap-pret-card-featured-badge-inline {
    background: rgba(255, 215, 0, 0.95) !important;
    color: #333 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4) !important;
}

.nap-pret-card-featured-badge-inline i {
    font-size: 9px !important;
}

/* Content Section */
.nap-pret-card-content {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    gap: 8px !important; /* Reduced from 12px to make layout more compact */
}

.nap-pret-card-price {
    font-size: 1.1em !important; /* Reduced from 1.2em for desktop */
    font-weight: 700 !important;
    color: #000 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.nap-pret-card-price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
}

.nap-pret-card-price {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 1.1em !important; /* Reduced from 1.2em for desktop */
    font-weight: 700 !important;
    color: #000 !important;
    line-height: 1.2 !important;
}

/* Monthly Rate Display - inline with price */
.nap-pret-card-rate-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    border: 1px solid #e56d2e !important;
    border-radius: 4px !important;
    color: #e56d2e !important;
    font-size: 0.7em !important; /* Reduced from 0.85em for desktop */
    font-weight: 600 !important;
    cursor: help !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.nap-pret-card-rate-wrapper:hover {
    background-color: rgba(229, 109, 46, 0.05) !important;
}

.nap-pret-card-rate {
    color: #e56d2e !important;
    white-space: nowrap !important;
}

.nap-pret-card-rate-info-icon {
    font-size: 0.7em !important; /* Reduced from 0.85em to match rate wrapper */
    color: #e56d2e !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
    flex-shrink: 0 !important;
}

/* Category below price */
.nap-pret-card-category-below {
    display: inline-block !important;
    width: fit-content !important;
    width: -moz-fit-content !important; /* Firefox */
    max-width: 100% !important;
    background: #DBDBDB !important;
    color: #000 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    margin-top: 1px !important; /* Reduced to make it closer to price */
}

/* Responsive adjustments for price row with rate */
@media (max-width: 768px) {
    .nap-pret-card-price-row {
        gap: 4px !important; /* Reduced gap to give more space for rate */
        flex-wrap: nowrap !important; /* Keep rate in same line as price */
        align-items: center !important;
    }
    
    .nap-pret-card-price {
        font-size: 1.6em !important; /* Increased font size for better readability on mobile */
        flex: 0 1 auto !important; /* Allow price to shrink if needed, but don't grow */
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        line-height: 1.3 !important; /* Slightly increased line-height for better readability */
        max-width: 60% !important; /* Limit price width to leave space for rate */
    }
    
    .nap-pret-card-rate-wrapper {
        font-size: 0.9em !important; /* Increased font size for better readability on mobile */
        padding: 4px 6px !important;
        gap: 3px !important;
        flex-shrink: 0 !important; /* Prevent rate from shrinking */
        white-space: nowrap !important; /* Prevent rate text from wrapping */
        min-width: fit-content !important; /* Ensure rate wrapper fits content */
        max-width: 40% !important; /* Limit rate width but ensure it's visible */
    }
    
    .nap-pret-card-rate {
        white-space: nowrap !important; /* Prevent rate text from wrapping */
        overflow: visible !important; /* Allow text to be fully visible */
        font-size: inherit !important; /* Inherit from wrapper */
    }
    
    .nap-pret-card-rate-info-icon {
        font-size: 0.9em !important; /* Match rate wrapper font size */
        flex-shrink: 0 !important; /* Prevent icon from shrinking */
    }
}

.nap-pret-card-rate-wrapper:hover .nap-pret-card-rate-info-icon {
    opacity: 1 !important;
}

/* Tooltip for rate */
.nap-pret-card-rate-wrapper[data-tooltip]:hover::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 8px !important;
    padding: 12px 16px !important;
    background: #333 !important;
    color: #fff !important;
    font-size: 0.85em !important;
    line-height: 1.5 !important;
    white-space: pre-line !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    z-index: 1000 !important;
    min-width: 250px !important;
    max-width: 300px !important;
    pointer-events: none !important;
    text-align: left !important;
}

.nap-pret-card-rate-wrapper[data-tooltip]:hover::before {
    content: '' !important;
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 2px !important;
    border: 6px solid transparent !important;
    border-top-color: #333 !important;
    z-index: 1001 !important;
    pointer-events: none !important;
}

/* JavaScript-based tooltip */
.nap-pret-rate-tooltip {
    position: absolute !important;
    padding: 12px 16px !important;
    background: #333 !important;
    color: #fff !important;
    font-size: 0.85em !important;
    line-height: 1.6 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    z-index: 10000 !important;
    min-width: 250px !important;
    max-width: 300px !important;
    pointer-events: none !important;
    text-align: left !important;
}

.nap-pret-rate-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: -1px !important;
    border: 6px solid transparent !important;
    border-top-color: #333 !important;
}

/* Make tooltip text bold for key values */
.nap-pret-rate-tooltip strong {
    font-weight: 600 !important;
}


.nap-pret-card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 50px !important;
}

.nap-pret-card-location {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 0 4px 0 !important; /* Reduced bottom margin to make details closer */
}

.nap-pret-card-location i {
    color: #dc3545 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.nap-pret-card-location span {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.nap-pret-card-category {
    display: inline-block !important;
    background: #f0f0f0 !important;
    color: #555 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    align-self: flex-start !important;
    margin: 0 !important;
}

/* Details Icons - Single Row Layout */
.nap-pret-card-details {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin-top: 0 !important; /* Changed from auto to 0 to reduce space after location */
    padding-top: 4px !important; /* Reduced to make it closer to location */
    border-top: 1px solid #f0f0f0 !important;
    align-items: center !important;
    overflow: hidden !important;
}

.nap-pret-card-detail-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #666 !important;
    font-size: 13px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.nap-pret-card-detail-item i {
    color: #dc3545 !important;
    font-size: 14px !important;
    width: 16px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.nap-pret-card-detail-item span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Responsive Adjustments for Custom Cards */
@media (min-width: 1201px) {
    /* On large screens (desktop), when map is visible: 3 columns */
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* On large screens (desktop), when map is hidden: 5 columns */
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .nap-pret-custom-property-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        grid-auto-flow: row !important;
    }
    
    /* Ensure listing_wrapper elements fit properly in 5-column grid on large screens */
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        grid-column: auto !important;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    /* On medium screens, show 5 columns when map is hidden */
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .nap-pret-custom-property-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        grid-auto-flow: row !important;
    }
    
    /* Ensure listing_wrapper elements fit properly in 5-column grid on medium screens */
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        grid-column: auto !important;
    }
    
    /* On medium screens, show 3 columns when map is visible */
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .nap-pret-card-content {
        padding: 16px !important;
    }
    
    .nap-pret-card-price {
        font-size: 1.2em !important;
    }
    
    .nap-pret-card-title {
        font-size: 16px !important;
        min-height: 44px !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    /* On smaller desktop screens, show 5 columns when map is hidden */
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .nap-pret-custom-property-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        grid-auto-flow: row !important;
    }
    
    /* Ensure listing_wrapper elements fit properly in 5-column grid on smaller desktop screens */
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-left-side.full-width .nap-pret-custom-property-grid .listing_wrapper,
    .nap-pret-wrapper .nap-pret-left-side.full-width #napredno-property-list .nap-pret-custom-property-grid .listing_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        grid-column: auto !important;
    }
    
    /* On smaller desktop screens, show 3 columns when map is visible */
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) #napredno-property-list .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-left-side .nap-pret-custom-property-grid,
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-left-side #napredno-property-list .nap-pret-custom-property-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .nap-pret-card-content {
        padding: 16px !important;
    }
    
    .nap-pret-card-price {
        font-size: 1.2em !important;
    }
    
    .nap-pret-card-title {
        font-size: 16px !important;
        min-height: 44px !important;
    }
}

@media (max-width: 768px) {
    .nap-pret-wrapper .nap-pret-custom-property-grid,
    .nap-pret-wrapper #napredno-mobile-property-list .nap-pret-custom-property-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .nap-pret-card-image-wrapper {
        padding-top: 60% !important;
    }
    
    .nap-pret-card-content {
        padding: 18px !important;
    }
    
    /* Keep details in single row on mobile */
    .nap-pret-card-details {
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .nap-pret-card-details::-webkit-scrollbar {
        display: none !important;
    }
    
    .nap-pret-card-detail-item {
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .nap-pret-card-detail-item i {
        font-size: 12px !important;
        width: 14px !important;
    }
}

/* Override theme styles for custom cards */
.nap-pret-wrapper .nap-pret-custom-property-card,
.nap-pret-wrapper .nap-pret-custom-property-grid {
    /* Reset any theme interference */
    box-sizing: border-box !important;
}

.nap-pret-wrapper .nap-pret-custom-property-card * {
    box-sizing: border-box !important;
}

/* ============================================================================
   MAP MARKER AND POPUP STYLES
   ============================================================================ */

/* Map Marker Pin */
.nap-pret-map-marker {
    background: transparent !important;
    border: none !important;
}

.nap-pret-marker-pin {
    width: 30px !important;
    height: 40px !important;
    background: #dc3545 !important;
    border-radius: 50% 50% 50% 0 !important;
    transform: rotate(-45deg) !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nap-pret-marker-pin::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
    width: 12px !important;
    height: 12px !important;
    background: #fff !important;
    border-radius: 50% !important;
}

.nap-pret-marker-pin:hover {
    transform: rotate(-45deg) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5) !important;
}

/* Map Popup Container */
.leaflet-popup-content-wrapper .nap-pret-map-popup {
    padding: 0 !important;
    margin: 0 !important;
}

.leaflet-popup-content .nap-pret-map-popup-card {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Map popup uses same classes as property card - ensure proper styling */
.leaflet-popup-content .nap-pret-custom-property-card.nap-pret-map-popup-card {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.leaflet-popup-content .nap-pret-map-popup-card .nap-pret-card-link {
    pointer-events: auto !important;
}

.leaflet-popup-content .nap-pret-map-popup-card .nap-pret-card-favorite-btn {
    pointer-events: auto !important;
    z-index: 100 !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Ensure all property card styles apply to map popup */
.leaflet-popup-content .nap-pret-map-popup-card,
.leaflet-popup-content .nap-pret-map-popup-card * {
    box-sizing: border-box !important;
}

/* Make sure map popup card uses same image wrapper styles */
.leaflet-popup-content .nap-pret-map-popup-card .nap-pret-card-image-wrapper {
    padding-top: 70% !important;
}

/* Map Popup Card - Uses same classes as property card */
.nap-pret-map-popup-card {
    /* Inherits all styles from .nap-pret-custom-property-card */
    width: 100% !important;
    max-width: 350px !important;
}

/* Ensure map popup cards use property card styles */
.leaflet-popup-content .nap-pret-custom-property-card.nap-pret-map-popup-card {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure favorite button works in popup */
.leaflet-popup-content .nap-pret-map-popup-card .nap-pret-card-favorite-btn {
    pointer-events: auto !important;
    z-index: 100 !important;
    position: relative !important;
}

/* Prevent popup from closing when clicking favorite button */
.leaflet-popup-content .nap-pret-map-popup-card .nap-pret-card-favorite-btn {
    cursor: pointer !important;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: #fff !important;
}

/* Exclusive Properties Section */
.nap-pret-exclusive-section {
    width: 100% !important;
    margin-bottom: 40px !important;
    padding: 24px 16px !important;
    position: relative !important;
    background: #fd363b !important;
    border-radius: 12px !important;
}

/* Adjust slider wrapper width based on map visibility */
.nap-pret-left-side .nap-pret-exclusive-section {
    width: 100% !important;
}

.nap-pret-exclusive-header {
    margin-bottom: 24px !important;
}

.nap-pret-exclusive-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nap-pret-exclusive-slider-wrapper {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

.nap-pret-exclusive-slider {
    width: 100% !important;
    overflow: hidden !important;
}

.nap-pret-exclusive-slider-track {
    display: flex !important;
    gap: 20px !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
}

/* Desktop: Show multiple cards when map is visible or hidden */
@media (min-width: 993px) {
    /* When map is visible: show 3 cards */
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-exclusive-slider-track {
        flex-wrap: nowrap !important;
    }
    
    .nap-pret-wrapper .nap-pret-desktop-layout:not(.map-hidden):not(.nap-pret-map-hidden) .nap-pret-exclusive-slider-track .nap-pret-custom-property-card {
        flex: 0 0 calc((100% - 40px) / 3) !important;
        max-width: calc((100% - 40px) / 3) !important;
    }
    
    /* When map is hidden: show 5 cards */
    .nap-pret-wrapper .nap-pret-desktop-layout.map-hidden .nap-pret-exclusive-slider-track .nap-pret-custom-property-card,
    .nap-pret-wrapper .nap-pret-desktop-layout.nap-pret-map-hidden .nap-pret-exclusive-slider-track .nap-pret-custom-property-card {
        flex: 0 0 calc((100% - 80px) / 5) !important;
        max-width: calc((100% - 80px) / 5) !important;
    }
}

/* Mobile: Show 1 card with horizontal scroll */
@media (max-width: 992px) {
    /* Remove horizontal padding from exclusive section on mobile to allow full-width cards */
    .nap-pret-exclusive-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        border-radius: 0 !important; /* Remove border radius on mobile for full-width */
    }
    
    .nap-pret-exclusive-header {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .nap-pret-exclusive-slider-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE and Edge */
        scroll-snap-type: x mandatory !important;
        -webkit-scroll-snap-type: x mandatory !important;
        width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .nap-pret-exclusive-slider-wrapper::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
    }
    
    .nap-pret-exclusive-slider {
        overflow: visible !important; /* Don't add scroll here, only on wrapper */
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nap-pret-exclusive-slider-track {
        flex-wrap: nowrap !important;
        width: max-content !important;
        min-width: 100% !important;
        display: flex !important;
        transform: none !important; /* Remove transform for native scroll */
        gap: 0 !important; /* Remove gap on mobile */
        margin: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card {
        flex: 0 0 calc(100vw - 32px) !important; /* Use viewport width minus padding */
        max-width: calc(100vw - 32px) !important;
        min-width: calc(100vw - 32px) !important;
        width: calc(100vw - 32px) !important;
        margin: 0 !important;
        scroll-snap-align: start !important;
        -webkit-scroll-snap-align: start !important;
        overflow: hidden !important; /* Prevent internal scrolling */
        height: auto !important;
        max-height: none !important;
        flex-shrink: 0 !important; /* Prevent cards from shrinking */
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Add padding to card content instead of section */
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Limit image size on mobile for exclusive slider - prevent stretching */
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-image-wrapper {
        width: 100% !important;
        padding-top: 60% !important;
        max-height: 250px !important;
        height: 0 !important; /* Use padding-top trick */
        overflow: hidden !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }
    
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Ensure card content doesn't overflow and is properly sized */
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-content {
        overflow: visible !important;
        max-height: none !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Prevent specific elements from overflowing */
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-image-wrapper,
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-image,
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-image img,
    .nap-pret-exclusive-slider-track .nap-pret-custom-property-card .nap-pret-card-content {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Slider Navigation Buttons */
.nap-pret-exclusive-slider-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nap-pret-exclusive-slider-btn:hover {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-color: #dc3545 !important;
}

.nap-pret-exclusive-slider-btn i {
    color: #333 !important;
    font-size: 18px !important;
}

.nap-pret-exclusive-slider-btn:hover i {
    color: #dc3545 !important;
}

.nap-pret-exclusive-slider-prev {
    left: 12px !important;
}

.nap-pret-exclusive-slider-next {
    right: 12px !important;
}

/* Show navigation buttons only on desktop */
@media (max-width: 992px) {
    .nap-pret-exclusive-slider-btn {
        display: none !important;
    }
}

/* Slider Dots */
.nap-pret-exclusive-slider-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 24px !important;
}

.nap-pret-exclusive-slider-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #ddd !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.nap-pret-exclusive-slider-dot.active {
    background: #dc3545 !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* Hide dots on desktop, show on mobile */
@media (min-width: 993px) {
    .nap-pret-exclusive-slider-dots {
        display: none !important;
    }
}

/* ============================================================================
   MAIN SEARCH FORM - Shortcode
   ============================================================================ */

.nap-pret-main-search-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.nap-pret-main-search-form {
    width: 100%;
}

.nap-pret-main-search-container {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: visible;
    gap: 0;
}

.nap-pret-main-search-field {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
}

.nap-pret-main-search-field:not(:last-child):not(.nap-pret-search-btn-field) {
    border-right: 1px solid #e0e0e0;
}

.nap-pret-main-search-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.nap-pret-main-search-dropdown {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.nap-pret-main-search-field {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    z-index: 1;
}

.nap-pret-main-search-field.nap-pret-service-field,
.nap-pret-main-search-field.nap-pret-city-field {
    z-index: 1001;
}

.nap-pret-main-search-field.nap-pret-search-btn-field {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

.nap-pret-main-search-dropdown-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}

.nap-pret-main-search-dropdown-btn:hover {
    color: #fd363b;
}

.nap-pret-main-search-selected {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nap-pret-main-search-chevron {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    transition: transform 0.3s, color 0.2s;
}

.nap-pret-main-search-dropdown.active .nap-pret-main-search-chevron {
    transform: rotate(180deg);
    color: #fd363b;
}

.nap-pret-main-search-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    padding: 8px 0;
    z-index: 10000 !important;
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.nap-pret-main-search-dropdown.active .nap-pret-main-search-dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.nap-pret-main-search-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 15px;
    color: #333;
}

.nap-pret-main-search-option:hover {
    background: #f5f5f5;
    color: #fd363b;
}

.nap-pret-main-search-option.selected {
    background: #fd363b;
    color: #fff;
    font-weight: 600;
}

.nap-pret-search-btn-field {
    flex: 0 0 auto;
    padding: 0;
    border: none !important;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
}

.nap-pret-main-search-btn {
    background: #fd363b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 20px 40px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    height: 100%;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    outline: none !important;
}

.nap-pret-main-search-btn:hover {
    background: #dc2e33;
    transform: translateY(-2px);
}

.nap-pret-main-search-btn:active {
    transform: translateY(0);
}

.nap-pret-main-search-icon {
    font-size: 18px;
}

.nap-pret-main-search-btn-text {
    font-weight: 600;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nap-pret-main-search-wrapper {
        padding: 15px;
    }
    
    .nap-pret-main-search-container {
        flex-direction: column;
        border-radius: 12px;
        gap: 0;
    }
    
    .nap-pret-main-search-field {
        width: 100%;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nap-pret-main-search-field:last-child {
        border-bottom: none;
    }
    
    .nap-pret-main-search-field:not(:last-child) {
        border-right: none;
    }
    
    .nap-pret-search-btn-field {
        width: 100%;
        padding: 0;
    }
    
    .nap-pret-main-search-btn {
        width: 100%;
        border-radius: 0 0 12px 12px;
        justify-content: center;
        padding: 18px 30px;
        min-height: 56px;
    }
    
    .nap-pret-main-search-dropdown-menu {
        position: fixed;
        left: 20px;
        right: 20px;
        max-width: calc(100vw - 40px);
        max-height: 50vh;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 992px) {
    .nap-pret-main-search-container {
        flex-wrap: wrap;
    }
    
    .nap-pret-main-search-field {
        flex: 1 1 calc(50% - 1px);
    }
    
    .nap-pret-main-search-field:nth-child(2) {
        border-right: none;
    }
    
    .nap-pret-search-btn-field {
        flex: 1 1 100%;
        border-top: 1px solid #e0e0e0;
    }
    
    .nap-pret-main-search-btn {
        width: 100%;
        border-radius: 0 0 12px 12px;
        justify-content: center;
    }
}

/* ============================================================================
   SHORTCODE SLIDER STYLES
   ============================================================================ */

.nap-pret-shortcode-wrapper {
    width: 100%;
    margin-bottom: 40px;
}

/* Grid layout for shortcode when slider is not enabled */
.nap-pret-shortcode-wrapper .napredno-property-grid,
.nap-pret-shortcode-wrapper .nap-pret-property-grid,
.nap-pret-shortcode-wrapper .nap-pret-custom-property-grid {
    display: grid;
    gap: 25px;
    margin: 0;
    padding: 0;
}

/* Desktop: 3 cards per row */
@media (min-width: 993px) {
    .nap-pret-shortcode-wrapper .napredno-property-grid,
    .nap-pret-shortcode-wrapper .nap-pret-property-grid,
    .nap-pret-shortcode-wrapper .nap-pret-custom-property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2 cards per row */
@media (min-width: 769px) and (max-width: 992px) {
    .nap-pret-shortcode-wrapper .napredno-property-grid,
    .nap-pret-shortcode-wrapper .nap-pret-property-grid,
    .nap-pret-shortcode-wrapper .nap-pret-custom-property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 card per row */
@media (max-width: 768px) {
    .nap-pret-shortcode-wrapper .napredno-property-grid,
    .nap-pret-shortcode-wrapper .nap-pret-property-grid,
    .nap-pret-shortcode-wrapper .nap-pret-custom-property-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.nap-pret-shortcode-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.nap-pret-shortcode-no-results p {
    margin: 0;
    font-size: 16px;
}

.nap-pret-shortcode-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.nap-pret-shortcode-slider {
    width: 100%;
    overflow: hidden;
}

.nap-pret-shortcode-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    width: 100%;
}

@media (min-width: 993px) {
    .nap-pret-shortcode-slider-track {
        flex-wrap: nowrap;
    }
    
    .nap-pret-shortcode-slider-track .nap-pret-custom-property-card {
        flex: 0 0 calc((100% - 40px) / 3);
        max-width: calc((100% - 40px) / 3);
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .nap-pret-shortcode-slider-track .nap-pret-custom-property-card {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .nap-pret-shortcode-slider-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        -webkit-scroll-snap-type: x mandatory;
        width: 100%;
        position: relative;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .nap-pret-shortcode-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .nap-pret-shortcode-slider {
        overflow: visible;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nap-pret-shortcode-slider-track {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        display: flex;
        transform: none;
        gap: 0;
        margin: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .nap-pret-shortcode-slider-track .nap-pret-custom-property-card {
        flex: 0 0 calc(100vw - 32px); /* Use viewport width minus padding */
        max-width: calc(100vw - 32px);
        min-width: calc(100vw - 32px);
        width: calc(100vw - 32px);
        margin: 0;
        scroll-snap-align: start;
        -webkit-scroll-snap-align: start;
        overflow: hidden;
        height: auto;
        max-height: none;
        flex-shrink: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    
    .nap-pret-shortcode-slider-track .nap-pret-custom-property-card .nap-pret-card-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .nap-pret-shortcode-slider-track .nap-pret-custom-property-card .nap-pret-card-image-wrapper {
        width: 100%;
        padding-top: 60%;
        max-height: 250px;
        height: 0;
        overflow: hidden;
        flex-shrink: 0;
        position: relative;
    }
    
    .nap-pret-shortcode-slider-track .nap-pret-custom-property-card .nap-pret-card-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .nap-pret-shortcode-slider-track .nap-pret-custom-property-card .nap-pret-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .nap-pret-shortcode-slider-track .nap-pret-custom-property-card .nap-pret-card-content {
        overflow: visible;
        max-height: none;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

.nap-pret-shortcode-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
}

.nap-pret-shortcode-slider-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #dc3545;
}

.nap-pret-shortcode-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nap-pret-shortcode-slider-btn i {
    color: #333;
    font-size: 18px;
}

.nap-pret-shortcode-slider-btn:hover:not(:disabled) i {
    color: #dc3545;
}

.nap-pret-shortcode-slider-prev {
    left: 12px;
}

.nap-pret-shortcode-slider-next {
    right: 12px;
}

@media (max-width: 992px) {
    .nap-pret-shortcode-slider-btn {
        display: none;
    }
}

.nap-pret-shortcode-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.nap-pret-shortcode-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nap-pret-shortcode-slider-dot.active {
    background: #dc3545;
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 993px) {
    .nap-pret-shortcode-slider-dots {
        display: none;
    }
}

.nap-pret-exclusive-shortcode .nap-pret-exclusive-header {
    margin-bottom: 24px;
}

.nap-pret-exclusive-shortcode .nap-pret-exclusive-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0;
}

