/**
 * CSS for Kost Services Info Plugin - Frontend Display
 */

:root {
    --kost-primary: #485eff;
    --kost-primary-hover: #3346c2;
    --kost-wa: #128c7e;
    --kost-wa-hover: #0e6c60;
    --kost-text-dark: #1e293b;
    --kost-text-muted: #475569;
    --kost-bg-light: #f8fafc;
    --kost-border: #e2e8f0;
    --kost-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --kost-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.kost-info-container,
.kost-info-container * {
    box-sizing: border-box !important;
}

.kost-info-container {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    gap: 30px;
    margin: 30px auto;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 0;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    color: var(--kost-text-dark);
    max-width: 1200px;
    width: 100%;
    padding: 0 20px 0;
}

.kost-info-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.kost-info-main-card {
    background: #ffffff;
    border: 1px solid var(--kost-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--kost-shadow);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.kost-description-body p {
    margin: 0 0 15px 0;
}

.kost-description-body p:last-child {
    margin-bottom: 0;
}

.kost-description-body ul {
    list-style-type: disc !important;
    margin: 0 0 15px 20px !important;
}

.kost-description-body ol {
    list-style-type: decimal !important;
    margin: 0 0 15px 20px !important;
}

.kost-description-body li {
    margin-bottom: 6px !important;
}

/* Post Tag Items styling inside description */
.kost-post-tag-item {
    background: var(--kost-bg-light);
    color: var(--kost-text-muted) !important;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--kost-border);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.kost-post-tag-item:hover {
    color: var(--kost-primary) !important;
    border-color: var(--kost-primary) !important;
    background: #f0f3ff !important;
    transform: translateY(-1px);
}

/* Header & Badges */
.kost-info-header {
    margin-bottom: 24px;
}

.kost-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.kost-info-badge {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.badge-tipe.tipe-putri {
    background: #f0f3ff;
    color: var(--kost-primary);
    border: 1px solid #dbeafe;
}

.badge-tipe.tipe-putra {
    background: #f0f3ff;
    color: var(--kost-primary);
    border: 1px solid #dbeafe;
}

.badge-tipe.tipe-campur {
    background: #fffdf0;
    color: #b48a00;
    border: 1px solid #ffe89e;
}

.badge-tipe.tipe-pasutri {
    background: #f0fdfa;
    color: #0d9488;
    border: 1px solid #ccfbf1;
}

.badge-status.status-tersedia {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-status.status-penuh {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.kost-info-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #0f172a;
}

.kost-info-address {
    display: flex;
    align-items: center;
    color: var(--kost-text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.kost-info-address svg,
.kost-info-address i,
.kost-info-address img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

/* Specs Bar */
.kost-info-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: var(--kost-bg-light);
    border: 1px solid var(--kost-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
}

.kost-info-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kost-info-spec-item:not(:last-child) {
    border-right: 1px solid var(--kost-border);
    padding-right: 15px;
}

.spec-icon {
    background: #ffffff;
    color: var(--kost-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.spec-icon svg,
.spec-icon i {
    font-size: 18px;
    width: auto;
    height: auto;
}

.spec-details {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 11px;
    color: var(--kost-text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--kost-text-dark);
}

/* Gallery Section */
.kost-info-gallery-section {
    margin-bottom: 30px;
}

.kost-info-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 450px;
    margin-bottom: 12px;
    border: 1px solid var(--kost-border);
    background: #000;
    position: relative;
    user-select: none;
}

.kost-info-gallery-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.kost-gallery-slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.kost-gallery-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.kost-info-gallery-thumbs-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--kost-primary) var(--kost-bg-light);
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

.kost-info-gallery-thumbs-scroll::-webkit-scrollbar {
    height: 6px;
}

.kost-info-gallery-thumbs-scroll::-webkit-scrollbar-thumb {
    background-color: var(--kost-primary);
    border-radius: 10px;
}

.kost-info-gallery-thumbs-scroll::-webkit-scrollbar-track {
    background: var(--kost-bg-light);
}

.kost-gallery-thumb-item {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.kost-gallery-thumb-item:hover,
.kost-gallery-thumb-item.active {
    border-color: var(--kost-primary);
    opacity: 1;
    transform: translateY(-2px);
}

.kost-gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Facilities Tabs */
.kost-info-details-tabs {
    border-top: 1px solid var(--kost-border);
    padding-top: 25px;
}

.kost-info-tabs-headers {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}

.kost-info-tabs-headers::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Opera */
}

.kost-tab-btn {
    border: 1px solid var(--kost-border);
    background: #ffffff;
    color: var(--kost-text-muted);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none;
    transition: all 0.2s ease;
}

.kost-tab-btn:hover {
    color: var(--kost-text-dark);
    border-color: #cbd5e1;
    background: var(--kost-bg-light);
    outline: none !important;
}

.kost-tab-btn.active {
    background: var(--kost-primary);
    border-color: var(--kost-primary);
    color: #ffffff;
    outline: none !important;
    box-shadow: 0 4px 6px -1px rgba(72, 94, 255, 0.2);
}

/* Tab Panels Content */
.kost-tab-panel {
    display: none;
    animation: kostFadeIn 0.3s ease-in-out;
}

.kost-tab-panel.active {
    display: block;
}

/* Facilities Grid Layout - exactly 3 columns on desktop */
.kost-facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.kost-facility-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--kost-bg-light);
    border: 1px solid var(--kost-border);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.kost-facility-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: var(--kost-shadow);
}

.facility-icon {
    color: var(--kost-primary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.facility-icon img,
.spec-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.facility-icon svg,
.facility-icon i {
    font-size: 20px;
    width: auto;
    height: auto;
}

.facility-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--kost-text-dark);
    line-height: 1.3;
}

.kost-rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kost-rule-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--kost-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.kost-rule-item:hover {
    background: var(--kost-bg-light);
    border-color: #cbd5e1;
}

/* Prohibition / Larangan styling (Red) */
.kost-rule-item.rule-prohibition {
    background: #fff5f5;
    border-color: #fee2e2;
}

.kost-rule-item.rule-prohibition:hover {
    background: #fff1f1;
    border-color: #fca5a5;
}

.rule-icon {
    color: var(--kost-text-muted);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 0px;
}

.kost-rule-item.rule-prohibition .rule-icon {
    color: #ef4444;
}

.rule-icon svg,
.rule-icon i {
    font-size: 18px;
    width: auto;
    height: auto;
}

.rule-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.rule-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--kost-text-dark);
}

/* Maps wrapper */
.kost-maps-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--kost-border);
}

.kost-maps-wrapper iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

.kost-maps-link-box {
    padding: 30px;
    text-align: center;
    background: var(--kost-bg-light);
}

.kost-maps-text {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--kost-text-muted);
}

.kost-btn-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--kost-primary);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(72, 94, 255, 0.15);
}

.kost-btn-maps-link:hover {
    background: var(--kost-primary-hover);
}

.kost-btn-maps-link svg,
.kost-btn-maps-link i {
    font-size: 18px;
    width: auto;
    height: auto;
}

.kost-empty-msg {
    color: var(--kost-text-muted);
    font-style: italic;
    font-size: 14px;
}

/* Booking Card (Sidebar/Sticky) */
.kost-info-booking-card {
    background: #ffffff;
    border: 1px solid var(--kost-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--kost-shadow-lg);
    position: sticky;
    top: 30px;
    align-self: start;
}

.booking-price-header {
    border-bottom: 1px solid var(--kost-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.price-prefix {
    font-size: 12px;
    color: var(--kost-text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.booking-price-amount {
    display: flex;
    align-items: baseline;
    margin-top: 4px;
}

.price-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--kost-primary);
}

.price-suffix {
    font-size: 14px;
    color: var(--kost-text-muted);
    font-weight: 600;
    margin-left: 4px;
}

/* Price Suffix Dropdown Styling */
.kost-price-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 4px;
}

.price-suffix-trigger {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 14px;
    color: var(--kost-text-muted);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    outline: none;
}

.price-suffix-trigger:hover,
.price-suffix-trigger.active {
    background: var(--kost-bg-light);
    color: var(--kost-primary);
}

.price-suffix-trigger i {
    transition: transform 0.2s ease;
}

.price-suffix-trigger.active i {
    transform: rotate(180deg);
}

.kost-price-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid var(--kost-border);
    border-radius: 8px;
    box-shadow: var(--kost-shadow-md);
    list-style: none !important;
    list-style-type: none !important;
    padding: 6px 0 !important;
    margin: 6px 0 0 0 !important;
    min-width: 110px;
    z-index: 999;
    display: none;
}

.kost-price-dropdown-wrapper.open-upwards .kost-price-dropdown-menu {
    top: auto !important;
    bottom: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08) !important;
}

.kost-price-dropdown-menu li {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--kost-text-dark) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    text-align: left !important;
    list-style: none !important;
    list-style-type: none !important;
}

.kost-price-dropdown-menu li::before,
.kost-price-dropdown-menu li::after {
    content: none !important;
    display: none !important;
}

.kost-price-dropdown-menu li:hover {
    background: var(--kost-bg-light);
    color: var(--kost-primary);
}

.kost-price-dropdown-menu li.active {
    background: #f0f3ff;
    color: var(--kost-primary);
}

.booking-price-alternatives {
    display: none;
}

.price-alt-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 10px;
    background: var(--kost-bg-light);
    border-radius: 6px;
    color: var(--kost-text-muted);
}

.price-alt-item strong {
    color: var(--kost-text-dark);
}

.price-alt-item.text-highlight {
    background: #e6f6f2;
}

.price-alt-item.text-highlight strong {
    color: var(--kost-primary);
}

.booking-action-box {
    text-align: center;
}

.kost-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--kost-wa);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap !important;
    box-shadow: 0 6px 15px -3px rgba(37, 211, 102, 0.3);
    animation: waPulse 2s infinite;
}

.kost-btn-whatsapp:hover {
    background: var(--kost-wa-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(37, 211, 102, 0.4);
}

.wa-btn-icon svg,
.wa-btn-icon i {
    font-size: 20px;
    width: auto;
    height: auto;
    display: block;
}

.booking-note {
    font-size: 11px;
    color: var(--kost-text-muted);
    margin: 8px 0 0 0;
    line-height: 1.4;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Places/Landmarks Terdekat Styling */
.kost-nearby-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--kost-border);
}

.kost-nearby-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--kost-text-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kost-nearby-title i {
    color: var(--kost-primary);
}

.kost-nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.kost-nearby-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--kost-bg-light);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--kost-border);
}

.kost-nearby-item.full-width {
    grid-column: 1 / -1;
}

.nearby-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    color: var(--kost-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.nearby-icon i {
    font-size: 16px;
}

.nearby-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.nearby-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.nearby-badge {
    background: #eff6ff;
    color: var(--kost-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
    white-space: nowrap;
}

.nearby-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--kost-text-dark);
}

/* Clean up theme default elements: Hide standard post featured image and tags when the plugin content layout is present */
body:has(.kost-info-container) .jeg_featured,
body:has(.kost-info-container) .jeg_featured_big,
body:has(.kost-info-container) .jeg_featured_bg,
body:has(.kost-info-container) .jeg_post_tags,
body:has(.kost-info-container) .post-thumbnail,
body:has(.kost-info-container) .featured-image {
    display: none !important;
}

/* Sidebar Layout Adaptations: Expand main content and display booking card as mobile bottom floating bar when theme sidebar is active */
body:has([class*="sidebar"]) .kost-info-container,
body:has([id*="sidebar"]) .kost-info-container,
body:has(.widget-area) .kost-info-container,
body:has(aside) .kost-info-container {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

body:has([class*="sidebar"]) .kost-info-booking-card,
body:has([id*="sidebar"]) .kost-info-booking-card,
body:has(.widget-area) .kost-info-booking-card,
body:has(aside) .kost-info-booking-card {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    border-radius: 16px 16px 0 0 !important;
    border: 1px solid var(--kost-border) !important;
    border-bottom: 0 !important;
    padding: 16px 24px 34px 24px !important;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 !important;
}

body:has([class*="sidebar"]) .booking-price-header,
body:has([id*="sidebar"]) .booking-price-header,
body:has(.widget-area) .booking-price-header,
body:has(aside) .booking-price-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
}

body:has([class*="sidebar"]) .booking-action-box,
body:has([id*="sidebar"]) .booking-action-box,
body:has(.widget-area) .booking-action-box,
body:has(aside) .booking-action-box {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

body:has([class*="sidebar"]) .booking-note,
body:has([id*="sidebar"]) .booking-note,
body:has(.widget-area) .booking-note,
body:has(aside) .booking-note {
    position: absolute !important;
    bottom: 10px !important;
    right: 24px !important;
    margin: 0 !important;
    text-align: right !important;
    font-size: 11px !important;
}

body:has([class*="sidebar"]) .kost-btn-whatsapp,
body:has([id*="sidebar"]) .kost-btn-whatsapp,
body:has(.widget-area) .kost-btn-whatsapp,
body:has(aside) .kost-btn-whatsapp {
    max-width: 250px !important;
    width: 100% !important;
}

/* Responsiveness */
@media (max-width: 991px) {
    .kost-info-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .kost-info-booking-card {
        position: relative;
        top: 0;
    }
    /* Exactly 3 columns on Tablet */
    .kost-facilities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .kost-info-tabs-headers {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
    .kost-info-gallery-thumbs-scroll {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .kost-info-container {
        padding: 0 8px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .kost-info-main-card {
        padding: 16px 12px;
        border-radius: 12px;
    }
    
    .kost-info-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .kost-info-address {
        font-size: 12px;
    }

    /* 3 Columns specs on Mobile - Very Compact */
    .kost-info-specs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        margin-bottom: 16px;
        width: 100%;
    }

    .kost-info-spec-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .kost-info-spec-item:not(:last-child) {
        border-right: 1px solid var(--kost-border);
        border-bottom: none;
        padding-right: 2px;
        padding-bottom: 0;
    }

    .spec-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .spec-icon svg,
    .spec-icon i {
        font-size: 14px;
    }

    .spec-label {
        font-size: 8px;
    }

    .spec-value {
        font-size: 10px;
    }

    /* Gallery thumbnail size reduction */
    .kost-gallery-thumb-item {
        width: 55px;
        height: 40px;
        border-radius: 4px;
    }

    /* Tab Buttons size reduction */
    .kost-tab-btn {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 20px;
        flex-shrink: 0;
    }

    /* Exactly 2 columns on Mobile */
    .kost-facilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .kost-facility-card {
        padding: 8px 10px;
        border-radius: 8px;
        gap: 8px;
    }

    .facility-icon svg,
    .facility-icon i {
        font-size: 16px;
    }

    .facility-label {
        font-size: 11px;
    }

    /* Rules Item list size reduction */
    .kost-rules-list {
        gap: 8px;
    }

    .kost-rule-item {
        padding: 10px 12px;
        border-radius: 8px;
        gap: 10px;
    }

    .rule-icon svg,
    .rule-icon i {
        font-size: 14px;
    }

    .rule-label {
        font-size: 12px;
    }

    /* Maps height reduction */
    .kost-maps-wrapper iframe {
        height: 240px;
    }

    /* Mobile Floating Booking Bar - Ultra Compact */
    .kost-info-booking-card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 999;
        border-radius: 16px 16px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 10px 16px 24px 16px;
        box-shadow: 0 -8px 25px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .booking-price-header {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .price-prefix {
        font-size: 8px;
    }

    .price-val {
        font-size: 15px;
    }

    .price-suffix {
        font-size: 10px;
    }

    .booking-price-alternatives {
        display: none;
    }

    .booking-action-box {
        flex-grow: 1;
    }

    .kost-btn-whatsapp {
        padding: 8px 10px !important;
        font-size: 10.5px !important;
        border-radius: 6px !important;
    }

    .booking-note {
        display: block !important;
        position: absolute !important;
        bottom: 8px !important;
        right: 16px !important;
        margin: 0 !important;
        font-size: 8px !important;
        color: var(--kost-text-muted) !important;
        text-align: right !important;
        white-space: nowrap !important;
        pointer-events: none !important;
    }

    /* Mobile Overrides for Nearby Places */
    .kost-nearby-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .kost-nearby-item {
        padding: 10px 12px;
    }
    
    .nearby-icon {
        width: 30px;
        height: 30px;
    }
    
    .nearby-icon i {
        font-size: 14px;
    }
    
    .nearby-icon img {
        width: 15px;
        height: 15px;
    }
    
    .nearby-text {
        font-size: 12px;
    }
}

/* =======================================================================
   ELEMENTOR CUSTOM LISTING CARD STYLES
   ======================================================================= */

.kost-el-grid {
	display: grid;
	gap: 24px;
	width: 100%;
}

/* Grid Columns for Desktop */
.kost-el-grid-d-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.kost-el-grid-d-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kost-el-grid-d-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kost-el-grid-d-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Card Element Container */
.kost-el-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
	position: relative;
	height: 100%;
}

/* Card Image Section */
.kost-el-card-img-wrap {
	position: relative;
	width: 100%;
	padding-top: 60%; /* Aspect Ratio 5:3 */
	background: #f1f5f9;
	overflow: hidden;
}

.kost-el-card-img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.35s ease !important;
	display: block !important;
}

.kost-el-card:hover .kost-el-card-img {
	transform: scale(1.04);
}

.kost-el-card-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #cbd5e1;
	color: #64748b;
}

/* Floating Type Badge */
.kost-el-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #ffffff;
	letter-spacing: 0.5px;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kost-el-badge.putri { background-color: #db2777; }
.kost-el-badge.putra { background-color: #2563eb; }
.kost-el-badge.campur { background-color: #7c3aed; }
.kost-el-badge.pasutri { background-color: #0d9488; }

/* Floating Category Badge (Right) */
.kost-el-badge-cat {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #485eff;
	background-color: rgba(255, 255, 255, 0.95);
	letter-spacing: 0.5px;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0,0,0,0.08);
	border: 1px solid rgba(72, 94, 255, 0.2);
}


/* Card Content Body */
.kost-el-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	box-sizing: border-box;
}

.kost-el-card-location {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 8px;
	font-weight: 600;
}

.kost-el-card-title {
	font-size: 16px;
	line-height: 1.4;
	margin: 0 0 0px 0;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kost-el-card-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.15s ease;
}

.kost-el-card-title a:hover {
	color: #485eff;
}

/* Card Facilities Layout (Horizontally Scrollable) */
.kost-el-card-facilities {
	display: flex;
	flex-wrap: nowrap; /* Prevent icons from wrapping to next line */
	gap: 6px;
	margin-top: 8px; /* Spacing above the dashed line */
	margin-bottom: 8px; /* Spacing below the facilities container */
	border-top: 1px dashed #e2e8f0;
	padding-top: 8px; /* Spacing below the dashed line to icons */
	padding-bottom: 0px; /* Consistently removed padding-bottom */
	align-items: center;
	overflow-x: auto; /* Enable horizontal scrolling */
	scrollbar-width: none; /* Hide scrollbar on Firefox */
	-ms-overflow-style: none; /* Hide scrollbar on IE/Edge */
	cursor: grab; /* Visual drag hint for desktop */
}

.kost-el-card-facilities::-webkit-scrollbar {
	display: none; /* Hide scrollbar on Chrome/Safari/Webkit */
}

.kost-el-card-facilities .facility-icon-wrap {
	flex-shrink: 0; /* Prevent icons from shrinking/collapsing */
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: #64748b;
	font-size: 11px;
	transition: all 0.2s ease;
}

.kost-el-card-facilities .facility-icon-wrap i,
.kost-el-card-facilities .facility-icon-wrap svg {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	display: inline-block !important;
	text-align: center !important;
	width: auto !important;
	height: auto !important;
}

.kost-el-card-facilities .facility-icon-wrap img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	display: block;
}

.kost-el-card-facilities .facility-icon-wrap:hover {
	background: #f1f5f9;
	color: #485eff;
	border-color: #cbd5e1;
}

.kost-el-card-facilities .facility-none {
	font-size: 12px;
	color: #94a3b8;
}

/* Card Footer Section (Price & CTA Button) */
.kost-el-card-footer {
	display: flex;
	flex-direction: column;
	align-items: center; /* Center children horizontally */
	border-top: 1px solid #f1f5f9;
	padding-top: 8px;
	margin-top: auto;
	gap: 8px; /* Space between price and button */
}

.kost-el-card-price {
	font-size: 15px;
	font-weight: 800;
	color: #485eff;
	line-height: 1.2;
	text-align: center; /* Center align price text */
}

.kost-el-card-price .period {
	font-size: 11px;
	font-weight: 500;
	color: #64748b;
}

.kost-el-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 8px;
	background-color: var(--kost-wa);
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	line-height: 1;
	box-shadow: 0 2px 4px rgba(37, 211, 102, 0.15);
}

.kost-el-card-btn:hover {
	background-color: var(--kost-wa-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(14, 108, 96, 0.2);
}

.kost-el-card-note {
	font-size: 10px;
	color: #64748b;
	text-align: center;
	margin: 6px 0 0 0;
	line-height: 1.4;
	font-weight: 500;
}

.kost-el-empty-state {
	text-align: center;
	padding: 40px 20px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #64748b;
	font-weight: 600;
	font-size: 14px;
}

/* Tablet Media Query Grid */
@media (max-width: 1024px) {
	.kost-el-grid-t-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.kost-el-grid-t-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kost-el-grid-t-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	
	.kost-el-grid {
		gap: 20px;
	}
}

/* Mobile Media Query Grid */
@media (max-width: 767px) {
	.kost-el-grid-m-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.kost-el-grid-m-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	
	.kost-el-grid {
		gap: 16px;
	}
	
	.kost-el-card-body {
		padding: 12px;
	}
	
	.kost-el-card-title {
		font-size: 14px;
		margin-bottom: 0px;
	}
	
	.kost-el-card-price {
		font-size: 13.5px;
	}
	
	.kost-el-card-btn {
		padding: 6px 10px;
		font-size: 11px;
	}
}

/* =======================================================================
   DYNAMIC ICON COLORING FILTERS
   ======================================================================= */

/* Force facility, spec, rule, nearby, address, and Elementor card PNG icons to follow primary color #485eff */
.facility-icon img,
.spec-icon img,
.rule-icon img,
.nearby-icon img,
.kost-info-address img,
.facility-icon-wrap img {
    filter: brightness(0) saturate(100%) invert(32%) sepia(87%) saturate(1478%) hue-rotate(218deg) brightness(101%) contrast(100%);
}

/* Force prohibition rules PNG icons to follow red color #ef4444 */
.kost-rule-item.rule-prohibition .rule-icon img {
    filter: brightness(0) saturate(100%) invert(41%) sepia(85%) saturate(7473%) hue-rotate(352deg) brightness(98%) contrast(93%);
}

/* Preserve faded styling for not included spec items (e.g. listrik belum termasuk) using opacity but keeping primary color */
.spec-listrik.is-not-included .spec-icon img {
    opacity: 0.35;
}

/* =======================================================================
   SMART FILTER & GRID WIDGET STYLES (OPTI A)
   ======================================================================= */

.kost-smart-filter-widget-container {
	width: 100%;
	margin: 0 auto 40px;
	font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
}

/* Search Bar Wrapper (Glassmorphism Effect) */
.kost-smart-search-bar-wrap {
	position: relative !important;
	z-index: 3 !important;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
	margin-bottom: 30px;
	transition: all 0.3s ease;
}

/* Search Bar Fields Grid Row */
.kost-smart-fields-row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
}

.kost-smart-field-col {
	display: flex;
	flex-direction: column;
	position: relative;
}

.kost-smart-field-col .field-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--kost-text-muted);
	margin-bottom: 8px;
	letter-spacing: 0.5px;
}

.kost-smart-field-col .field-input-wrap {
	position: relative !important;
	display: block !important;
	width: 100% !important;
}

.kost-smart-field-col .field-input-wrap .field-icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: var(--kost-text-muted) !important;
	font-size: 14px !important;
	pointer-events: none !important;
	transition: color 0.2s !important;
	z-index: 2 !important;
}

/* Form Inputs Styling */
.kost-input-text,
.kost-input-select {
	width: 100% !important;
	height: 48px !important;
	padding-top: 0 !important;
	padding-right: 12px !important;
	padding-bottom: 0 !important;
	padding-left: 44px !important; /* Explicit padding-left override */
	border: 1px solid var(--kost-border) !important;
	border-radius: 10px !important;
	background-color: #ffffff !important;
	color: var(--kost-text-dark) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	outline: none !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.kost-input-select {
	cursor: pointer;
	padding-right: 32px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 16px !important;
}

.kost-input-text:focus,
.kost-input-select:focus {
	border-color: var(--kost-primary) !important;
	box-shadow: 0 0 0 3px rgba(72, 94, 255, 0.1) !important;
}

.kost-input-text:focus + .field-icon,
.kost-input-select:focus + .field-icon {
	color: var(--kost-primary);
}

/* ==========================================
   CUSTOM DUAL-HANDLE RANGE SLIDER
   ========================================== */
.kost-dual-slider-container {
	position: relative;
	width: 100%;
	height: 6px;
	margin: 20px 0 12px;
}

.kost-slider-track-bg {
	position: absolute;
	height: 6px;
	width: 100%;
	background: #e2e8f0;
	border-radius: 3px;
	top: 0;
	left: 0;
	z-index: 1;
}

.kost-slider-range-track {
	position: absolute;
	height: 6px;
	background: var(--kost-primary);
	border-radius: 3px;
	top: 0;
	z-index: 2;
}

/* Overlapping range inputs */
.kost-range-slider-input {
	position: absolute !important;
	width: 100% !important;
	height: 48px !important;
	top: -21px !important;
	left: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	pointer-events: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	z-index: 3 !important;
}

/* Range input thumb styling */
.kost-range-slider-input::-webkit-slider-thumb {
	height: 24px;
	width: 24px;
	border-radius: 50%;
	background: var(--kost-primary);
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
	border: 2.5px solid #ffffff;
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
	transition: transform 0.1s ease;
}

.kost-range-slider-input::-webkit-slider-thumb:hover {
	transform: scale(1.1);
}

.kost-range-slider-input::-moz-range-thumb {
	height: 24px;
	width: 24px;
	border-radius: 50%;
	background: var(--kost-primary);
	cursor: pointer;
	pointer-events: auto;
	border: 2.5px solid #ffffff;
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
	transition: transform 0.1s ease;
}

.kost-range-slider-input::-moz-range-thumb:hover {
	transform: scale(1.1);
}

.kost-price-range-indicator {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: var(--kost-text-dark);
	margin-top: 4px;
}

/* ==========================================
   FILTER ACTION BUTTONS
   ========================================== */
.kost-smart-search-actions {
	position: relative !important;
	z-index: 2 !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--kost-border);
}

.kost-toggle-filters-btn {
	background: none;
	border: none;
	color: var(--kost-text-dark);
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.kost-toggle-filters-btn:hover {
	color: var(--kost-primary);
	background-color: rgba(72, 94, 255, 0.04);
}

.kost-toggle-filters-btn .arrow-icon {
	font-size: 11px;
	transition: transform 0.3s ease;
}

.kost-toggle-filters-btn.panel-open .arrow-icon {
	transform: rotate(180deg);
}

.kost-smart-search-submit {
	background-color: var(--kost-primary);
	color: #ffffff;
	border: none;
	padding: 12px 28px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	box-shadow: 0 4px 6px -1px rgba(72, 94, 255, 0.15);
}

.kost-smart-search-submit:hover {
	background-color: var(--kost-primary-hover);
}

.kost-smart-search-submit:active {
	transform: scale(0.98);
}

/* ==========================================
   EXPANDED FILTER PANEL (FACILITIES)
   ========================================== */
.kost-expanded-filters-panel {
	position: relative !important;
	z-index: 1 !important;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed var(--kost-border);
	animation: slideDownFilter 0.3s ease-out forwards;
}

@keyframes slideDownFilter {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

.kost-expanded-filters-panel .filter-headline {
	font-size: 13px;
	font-weight: 700;
	color: var(--kost-text-dark);
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	text-align: center;
}

.facilities-buttons-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.facility-checkbox-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: 1px solid var(--kost-border);
	border-radius: 30px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--kost-text-muted);
	background: #ffffff;
	transition: all 0.2s ease;
	user-select: none;
}

.facility-checkbox-btn:hover {
	border-color: var(--kost-primary);
	color: var(--kost-primary);
}

.facility-checkbox-btn.active {
	border-color: var(--kost-primary);
	color: var(--kost-primary);
	background-color: rgba(72, 94, 255, 0.05);
	box-shadow: 0 2px 4px rgba(72, 94, 255, 0.04);
}

.facility-checkbox-btn i {
	font-size: 14px;
}

/* ==========================================
   RESULTS LAYOUT & AJAX STATE
   ========================================== */
.kost-smart-results-container {
	position: relative;
	width: 100%;
}

.kost-smart-ajax-target {
	transition: opacity 0.2s ease;
}

.kost-smart-ajax-target.loading {
	opacity: 0.2;
	pointer-events: none;
}

/* Skeleton Loading Grid Card */
.kost-grid-skeleton-overlay {
	width: 100%;
}

.kost-card-skeleton {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--kost-border);
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.kost-card-skeleton .skeleton-img {
	width: 100%;
	padding-top: 60%;
	background: #e2e8f0;
	position: relative;
	overflow: hidden;
}

.kost-card-skeleton .skeleton-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kost-card-skeleton .skeleton-line {
	height: 12px;
	background: #e2e8f0;
	border-radius: 6px;
	position: relative;
	overflow: hidden;
}

.kost-card-skeleton .line-short {
	width: 35%;
}

.kost-card-skeleton .line-title {
	width: 85%;
	height: 16px;
}

.kost-card-skeleton .line-facilities {
	width: 55%;
	margin: 8px 0;
}

.kost-card-skeleton .line-price {
	width: 50%;
	height: 20px;
	margin-top: 4px;
}

/* Skeleton Animation Shimmer Pulse */
.kost-card-skeleton .skeleton-img::after,
.kost-card-skeleton .skeleton-line::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
	background-image: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.4) 20%,
		rgba(255, 255, 255, 0.6) 60%,
		rgba(255, 255, 255, 0) 100%
	);
	animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
	100% { transform: translateX(100%); }
}

/* Empty State Styling */
.kost-el-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--kost-text-muted);
	border: 2px dashed var(--kost-border);
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
	background-color: #ffffff;
	box-shadow: var(--kost-shadow);
}

/* ==========================================
   RESPONSIVENESS (MOBILE & TABLET)
   ========================================== */
@media (max-width: 991px) {
	.kost-smart-fields-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 15px;
	}
	.kost-smart-fields-row .search-price-col {
		grid-column: span 2 !important;
	}
	.kost-smart-search-actions {
		display: flex !important;
		gap: 15px !important;
	}
	.kost-smart-search-actions .kost-toggle-filters-btn,
	.kost-smart-search-actions .kost-smart-search-submit {
		flex: 1 !important;
		width: 100% !important;
		justify-content: center !important;
	}
}

@media (max-width: 767px) {
	.kost-smart-search-bar-wrap {
		padding: 16px;
	}

	.kost-smart-fields-row {
		grid-template-columns: 1fr !important;
		gap: 15px;
	}

	.kost-smart-fields-row .search-price-col {
		grid-column: auto !important; /* Reset tablet span 2 override on mobile */
	}

	.kost-smart-search-actions {
		flex-direction: column;
		gap: 16px;
		align-items: stretch;
	}

	.kost-smart-search-submit {
		justify-content: center;
		padding: 14px;
	}

	.kost-toggle-filters-btn {
		justify-content: center;
		padding: 10px;
	}
}

/* =======================================================================
   SELECT2 & CHOSEN COMPATIBILITY OVERRIDES
   ======================================================================= */

/* Select2 container override */
.kost-smart-field-col .field-input-wrap .select2-container {
	width: 100% !important;
	display: block !important;
}

.kost-smart-field-col .field-input-wrap .select2-selection--single {
	height: 48px !important;
	padding-left: 44px !important;
	display: flex !important;
	align-items: center !important;
	border: 1px solid var(--kost-border) !important;
	border-radius: 10px !important;
	background-color: #ffffff !important;
	position: relative !important;
}

.kost-smart-field-col .field-input-wrap .select2-selection__rendered {
	padding-left: 0 !important;
	color: var(--kost-text-dark) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 46px !important;
	text-align: left !important;
}

.kost-smart-field-col .field-input-wrap .select2-selection__arrow {
	height: 46px !important;
	right: 12px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Chosen container override */
.kost-smart-field-col .field-input-wrap .chosen-container-single {
	width: 100% !important;
	display: block !important;
}

.kost-smart-field-col .field-input-wrap .chosen-single {
	height: 48px !important;
	padding-left: 44px !important;
	line-height: 46px !important;
	border: 1px solid var(--kost-border) !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	display: block !important;
	text-align: left !important;
	color: var(--kost-text-dark) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	box-shadow: none !important;
}

.kost-smart-field-col .field-input-wrap .chosen-single div {
	top: 12px !important;
	right: 12px !important;
}

/* =======================================================================
   CUSTOM SELECT DROPDOWN REPLACEMENT STYLES
   ======================================================================= */

.kost-custom-dropdown-wrapper {
	position: relative !important;
	width: 100% !important;
}

.kost-custom-dropdown-trigger {
	width: 100% !important;
	height: 48px !important;
	padding-left: 44px !important;
	padding-right: 36px !important;
	border: 1px solid var(--kost-border) !important;
	border-radius: 10px !important;
	background-color: #ffffff !important;
	color: var(--kost-text-dark) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	outline: none !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	text-align: left !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	box-shadow: none !important;
	position: relative !important;
}

.kost-custom-dropdown-trigger:focus,
.kost-custom-dropdown-trigger.active {
	border-color: var(--kost-primary) !important;
	box-shadow: 0 0 0 3px rgba(72, 94, 255, 0.1) !important;
}

.kost-custom-dropdown-trigger .trigger-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	display: block;
}

.kost-custom-dropdown-trigger .field-icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: var(--kost-text-muted) !important;
	font-size: 14px !important;
	pointer-events: none !important;
	transition: color 0.2s !important;
	z-index: 2 !important;
}

.kost-custom-dropdown-trigger .arrow-icon {
	font-size: 11px;
	color: var(--kost-text-muted);
	transition: transform 0.25s ease;
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.kost-custom-dropdown-trigger.active .arrow-icon {
	transform: translateY(-50%) rotate(180deg);
}

/* Custom Dropdown Menu */
.kost-custom-dropdown-menu {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	width: 100% !important;
	margin-top: 6px !important;
	background: #ffffff !important;
	border: 1px solid var(--kost-border) !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.05) !important;
	list-style: none !important;
	list-style-type: none !important;
	padding: 6px 0 !important;
	margin: 0 !important;
	z-index: 999999999 !important;
	display: none;
	max-height: 250px;
	overflow-y: auto;
}

.kost-custom-dropdown-menu li {
	padding: 10px 16px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--kost-text-dark) !important;
	cursor: pointer !important;
	transition: background-color 0.2s, color 0.2s !important;
	text-align: left !important;
}

.kost-custom-dropdown-menu li:hover {
	background-color: var(--kost-bg-light) !important;
	color: var(--kost-primary) !important;
}

.kost-custom-dropdown-menu li.active {
	background-color: rgba(72, 94, 255, 0.05) !important;
	color: var(--kost-primary) !important;
	font-weight: 600 !important;
}

/* Disabled Custom Dropdown Wrapper */
.kost-custom-dropdown-wrapper.disabled {
	opacity: 0.65 !important;
	pointer-events: none !important;
}

.kost-custom-dropdown-wrapper.disabled .kost-custom-dropdown-trigger {
	background-color: #f8fafc !important;
	border-color: #cbd5e1 !important;
	color: var(--kost-text-muted) !important;
	cursor: not-allowed !important;
}

/* JNews Theme Content Spacing Overrides on Kos & Kontrakan single pages */
.single-kos .content-inner,
.single-kontrakan .content-inner {
	margin-bottom: 20px !important;
	padding-bottom: 0 !important;
}

.single-kos .jeg_share_bottom_bar,
.single-kontrakan .jeg_share_bottom_bar {
	margin-bottom: 20px !important;
	margin-top: 20px !important;
}

.single-kos .jeg_ad.jeg_article,
.single-kontrakan .jeg_ad.jeg_article {
	margin-top: 15px !important;
	margin-bottom: 15px !important;
}



