/**
 * Kloek Verhuur - Public Styles
 * Minimalistic styling following design system principles
 */

/* Container and Layout */
.kloek-verhuur-container {
}

.kloek-verhuur-layout {
    display: flex;
    /*display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;*/
    margin-top: 20px;
}

/* Filters Section */
.kloek-verhuur-filters {
    background: #ffefef;
    padding: 20px;
    height: fit-content;
}

.kloek-verhuur-filters h3 {
    margin: 0 0 20px 0;
}

.kloek-filter-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kloek-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kloek-form-label {
    margin-bottom: 5px;
}

.kloek-select,
.kloek-input {
    font-family: 'CartoGothicProBold' !important;
    width: 100%;
    border-top: 0px;
    border-right: 0px;
    border-bottom: 1px solid #ccc;
    border-left: 0px;
    padding: 0px;
}

.kloek-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kloek-range-inputs .kloek-input {
    flex: 1;
}

/* Collapsible Filter Sections */
.kloek-filter-section {
    margin-bottom: 0;
}

.kloek-filter-section:last-child {
    border-bottom: none;
}

.kloek-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    color: rgb(189,10,28);
}

.kloek-filter-header:hover {
    color: #454545;
}

.kloek-filter-title {
    font-family: 'CartoGothicProBold';
}

.kloek-filter-chevron {
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
}

.kloek-filter-section.expanded .kloek-filter-chevron {
    transform: rotate(90deg);
}

.kloek-filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.kloek-filter-section.expanded .kloek-filter-options {
    max-height: 300px;
}

.kloek-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.kloek-filter-option input[type="checkbox"] {
    display: none;
}

.kloek-checkbox {
    width: 12px;
    height: 12px;
    border: 1px solid rgb(69,84,97);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kloek-filter-option input[type="checkbox"]:checked + .kloek-checkbox {
    background-color: #fc5c52;
    border-color: #fc5c52);
}

.kloek-filter-option input[type="checkbox"]:checked + .kloek-checkbox::after {
}

.kloek-option-text {
    transition: color 0.2s ease;
}

.kloek-filter-option:hover .kloek-option-text {
    color: rgb(189,10,28);
}

.kloek-no-options {
    padding: 10px 0;
    color: rgb(150,150,150);
    font-style: italic;
}

.kloek-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.kloek-range-inputs .kloek-input {
    flex: 1;
}

.kloek-filter-actions {
    /*display: flex;*/
    gap: 10px;
    margin-top: 10px;
}

/* Results Section */
.kloek-verhuur-results {
    overflow: auto;
    max-height: calc(100vh - 100px);
    margin-top: 20px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.kloek-verhuur-results::-webkit-scrollbar {
    display: none;
}

.kloek-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
    z-index: 10;
}

.kloek-results-header h3 {
    margin: 0;
}

.kloek-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kloek-sorting label {
    white-space: nowrap;
}

.kloek-sorting .kloek-select {
    min-width: 200px;
    height: 30px;
    margin-top: 15px;
    cursor: pointer;
}

/* Apartments Grid */
.kloek-apartments-grid {
    /*
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    */
}

.kloek-apartment-card {
    display: flex;
    position: relative;
    padding-bottom: 15px;
    overflow: hidden;
    border-top: 1px #ccc solid;
}

.kloek-apartment-card:nth-child(odd) {
    /*background: #efefef;*/
}



.kloek-apartment-card:hover {
    /*border-color: rgb(189,10,28);*/
    background: rgb(245,245,245,1.0);
}

.kloek-apartment-image {
    position: absolute;
    width: 80px;
    height: 80px;
    overflow: hidden;
    background: #f0f0f0;
}

.kloek-apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kloek-no-image {
    width: 100%;
    height: 100%;
    background: rgb(245,245,247);
}

.kloek-apartment-status {
    /*position: absolute;
    top: 10px;
    right: 10px;*/
}

.kloek-status-badge {
}

/*.kloek-apartment-card.status-beschikbaar .kloek-status-badge,*/
.kloek-apartment-card.status-beschikbaar [data-icon="icon-dot"]:before {
    color: #46b450;
}

.kloek-apartment-card.status-gereserveerd [data-icon="icon-dot"]:before {
    color: #ffb900;
}

.kloek-apartment-card.status-verhuurd [data-icon="icon-dot"]:before {
    color: rgb(189,10,28);
}

.kloek-apartment-actions {
    /*display: flex;*/
    gap: 8px;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.kloek-apartment-card:hover .kloek-apartment-actions {
    opacity: 1;
}

.kloek-apartment-actions .kloek-button {
    flex: 1;
    padding: 8px 12px;
}

.kloek-apartment-info {
    padding: 20px 0 15px 95px;
}

.kloek-apartment-title {
    margin: 0 0 15px 0;
}

.kloek-apartment-details {
    font-family: 'CartoGothicProBold';
    /*display: flex;
    flex-direction: row;*/
}

.kloek-detail-item {
    display: inline;
    /*justify-content: space-between;
    align-items: center;
    margin: 0 10px;*/
}
.kloek-detail-item::before {
    /*position: absolute;*/
    /*content: '•';*/
}

.kloek-detail-label {
}

.kloek-detail-value {
    display: inline-block;
}

.kloek-partner-badge {
}

.kloek-partner-badge .kloek-detail-value {
}

/* Favorites Section */
.kloek-favorites-section {
    background: #ffefef;
    padding: 30px 0 0px 20px;
    width: 100%;
    max-width: 300px;
    right: 0;}

.kloek-favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.kloek-favorites-header h3 {
    margin: 0;
}

.kloek-favorites-actions {
    display: flex;
    gap: 10px;
}

.kloek-favorites-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* Modal */
.kloek-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kloek-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255, 1.0);
}


.shadowPanel {
  box-shadow: 0 0px 25px #ccc;
}

.kloek-modal-content {
    position: relative;
    background: #ffffff;
    max-width: 1280px;
    max-height: 90vh;
    height: 80vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kloek-modal-header {
    /*display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgb(69,84,97);*/
    padding: 20px;
    border-bottom: 1px solid #ccc;
    display: grid;
    gap: 20px;
}
@media (min-width: 769px) {
    .kloek-modal-header {
        grid-template-columns: 1fr 1fr;
    }
}


.kloek-modal-header h3 {
    margin: 0;
}

.kloek-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    font-family: 'CartoGothicProBlack';
    color: red;
    transition: color 0.2s ease;
    /*padding: 0;*/
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*width: 30px;*/
    /*height: 30px;*/
    /*padding-left: 150px;*/
}
.kloek-modal-close:hover {
    color: #454545;
}


.kloek-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.kloek-modal-footer {
    /*display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgb(69,84,97);*/
    padding: 20px;
    border-top: 1px solid #ccc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Modal Content */
.kloek-modal-apartment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kloek-modal-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kloek-modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kloek-modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.kloek-modal-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.kloek-modal-thumbnail.active,
.kloek-modal-thumbnail:hover {
    opacity: 1;
}

.kloek-modal-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kloek-modal-detail-group {
    border-bottom: 1px solid #ccc;
    padding-bottom: 25px;
}

.kloek-modal-detail-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kloek-modal-detail-group h4 {
    margin: 0 0 10px 0;
}

.kloek-modal-detail-item {
    display: flex;
    position: relative;
    /*flex-direction: column;*/
    /*justify-content: space-between;*/
    /*align-items: normal;*/
    /*gap: 8px;*/
}

.kloek-modal-detail-label {
}

.kloek-modal-detail-value {
    font-family: 'CartoGothicProBold';
    padding-left: 150px;
    position: absolute;
}

/* Loading States */
.kloek-loading {
    text-align: center;
    padding: 40px;
}

.kloek-no-results {
    text-align: center;
    padding: 40px;
}

/* Pagination */
.kloek-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.kloek-pagination-info {
}

.kloek-pagination-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kloek-pagination-btn {
    padding: 8px 12px;
}

/* Mobile Filter Header */
.kloek-mobile-filter-header {
    display: none;
    background: #ffffff;
}

.kloek-mobile-filter-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: color 0.2s ease;
}

.kloek-mobile-filter-toggle:hover {
    color: rgb(189,10,28);
}

.kloek-filter-icon {
    margin-right: 10px;
}

.kloek-filter-text {
    flex: 1;
    text-align: left;
}

.kloek-filter-chevron {
    transition: transform 0.2s ease;
}

.kloek-mobile-filter-toggle.active .kloek-filter-chevron {
    transform: rotate(90deg);
}


.btn-filter[aria-expanded=true] .filter-toggle-icon[data-v-4f76ac24] {
    transform: rotate(90deg);
}
.filter-toggle-icon[data-v-4f76ac24] {
    transform: rotate(0deg);
    transition: transform .3s;
}


/* Mobile Filter Overlay */
.kloek-mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255, 0.85);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kloek-mobile-filter-overlay.active {
    display: flex;
    opacity: 1;
}

.kloek-mobile-filter-content {
    background: #ffefef;
    width: 100%;
    max-width: 400px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.kloek-mobile-filter-overlay.active .kloek-mobile-filter-content {
    transform: translateY(0);
}

.kloek-mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffefef;
}

.kloek-mobile-filter-header h3 {
    margin: 0;
    font-size: 18px;
}

.kloek-mobile-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    font-family: 'CartoGothicProBlack';
    color: red;
    transition: color 0.2s ease;
    /*padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;*/
}

.kloek-mobile-filter-close:hover {
    color: rgb(189,10,28);
}

.kloek-mobile-filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Desktop Filters - Hidden on Mobile */
.kloek-desktop-filters {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile filter header, hide desktop filters */
    .kloek-mobile-filter-header {
        display: block;
    }
    
    .kloek-desktop-filters {
        display: none;
    }
    
    .kloek-verhuur-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kloek-verhuur-results {
        order: 1;
    }
    
    .kloek-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .kloek-sorting {
        width: 100%;
    }
    
    .kloek-sorting .kloek-select {
        min-width: auto;
        width: 100%;
    }
    
    .kloek-apartments-grid {
        grid-template-columns: 1fr;
    }
    
    .kloek-modal-apartment {
        grid-template-columns: 1fr;
    }
    
    .kloek-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .kloek-pagination-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .kloek-pagination-links {
        justify-content: center;
    }
}

/* Button States */
.kloek-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kloek-favorite-icon {
    transition: color 0.2s ease;
}

.kloek-favorite-icon.favorited {
    color: rgb(189,10,28);
}

/* Utility Classes */
.kloek-hidden {
    display: none !important;
}

.kloek-visible {
    display: block !important;
}

/* Animation for smooth transitions */
.kloek-apartment-card,
.kloek-modal-content {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
.kloek-button:focus,
.kloek-select:focus,
.kloek-input:focus {
    /*
    outline: 2px solid rgb(189,10,28);
    outline-offset: 2px;
    */
}

/* Prevent body scroll when mobile filter is open */
body.kloek-filter-open {
    overflow: hidden;
}

/* SmartSlider 3 Integration */
.kloek-modal-slider-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.kloek-modal-slider {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px !important;
    position: relative;
    overflow: hidden;
}

/* Ensure SmartSlider 3 container doesn't have conflicting styles */
.kloek-modal-slider > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px !important;
}

/* SmartSlider 3 basic styling */
.kloek-modal-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.kloek-modal-slider .n2-ss-slider {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 300px;
}

/* Force arrow controls to be visible */
.kloek-modal-slider .n2-ss-arrow {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

.kloek-modal-slider .n2-ss-arrow-previous,
.kloek-modal-slider .n2-ss-arrow-next {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.kloek-modal-slider .n2-ss-arrow-previous {
    left: 10px !important;
}

.kloek-modal-slider .n2-ss-arrow-next {
    right: 10px !important;
}

/* Force bullet controls to be visible */
.kloek-modal-slider .n2-ss-bullet {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

.kloek-no-slider {
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

.kloek-slider-error {
    width: 100%;
    height: 300px;
    background: #ffe6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d32f2f;
    font-weight: bold;
}

/* Responsive SmartSlider 3 */
@media (max-width: 768px) {
    .kloek-modal-slider-container {
        min-height: 250px;
    }
    
    .kloek-modal-slider {
        min-height: 250px;
    }
    
    .kloek-modal-slider .n2-ss-slider {
        min-height: 250px !important;
    }
    
    .kloek-no-slider,
    .kloek-slider-error {
        height: 250px;
    }
}