/* Smart Header Navigation */
.sidebar-location-header {
    margin-bottom: 30px;
}

.smart-header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #999;
}

.nav-buttons {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: #f4f4f4;
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #eee;
}

.nav-btn.is-active {
    background: #18a547 !important;
    border-color: #18a547 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(24, 165, 71, 0.3);
}

.nav-btn.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(5px);
}

.nav-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#btn-confirm-path.btn-primary {
    background: #18a547;
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 10px 20px rgba(24, 165, 71, 0.2);
}

#btn-confirm-path.btn-primary:hover:not(:disabled) {
    background: #148a3a;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(24, 165, 71, 0.3);
}

#btn-confirm-path.btn-primary:disabled {
    background: #666 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--dash-accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Light High-End Dashboard Theme for Aretida Loft Manager */
:root {
    --dash-bg: #ffffff;
    --dash-accent: #18a547;
    --dash-text: #333333;
    --dash-subtext: #999999;
    --dash-border: #eeeeee;
    --dash-glass: #f9f9f9;
    --dash-skeleton: #f0f0f0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

.aretida-filter-wrapper.light-theme {
    background: var(--dash-bg);
    padding: 40px;
    border-radius: 20px;
    color: var(--dash-text);
    font-family: var(--font-body);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.aretida-dashboard-filter {
    background: var(--dash-glass);
    border: 1px solid var(--dash-border);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.filter-top-bar, .filter-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start; /* Aligns all titles to the same top line */
}

/* Nuclear option to hide checkboxes that might be forced by the theme */
.aretida-filter-wrapper input[type="checkbox"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.filter-top-bar { 
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--dash-border); 
    padding-bottom: 30px; 
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.filter-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dash-subtext);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 12px;
}

/* Aukštas circular buttons refinement */
.btn-group-circular { 
    display: flex; 
    gap: 10px; 
}

.btn-circular {
    cursor: pointer;
    display: inline-flex;
    position: relative;
}

.btn-circular input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    z-index: -1;
}

.btn-circular span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 14px;
    border: 1px solid var(--dash-border);
    border-radius: 8px; /* Changed from 50% to match corp-btn */
    background: #fff;
    transition: all 0.3s ease;
    font-weight: 700;
    color: #666;
}

.btn-circular input:checked + span {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
    background: rgba(24, 165, 71, 0.05);
    box-shadow: none;
}

/* Type Filter Buttons refinement */
.type-filter-btns {
    display: flex;
    gap: 10px;
}

.btn-type {
    cursor: pointer;
    display: inline-flex;
    position: relative;
    flex: 1; /* Allow stretching to match design */
}

.btn-type input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    z-index: -1;
}

.btn-type span {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid var(--dash-border);
    background: #fff;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-heading);
}

.btn-type input:checked + span {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
    background: rgba(24, 165, 71, 0.05);
    box-shadow: none;
}

/* Status Toggle refinement */
.toggle-switch {
    height: 42px; /* Match height of other buttons */
    display: flex;
    align-items: center;
}

.toggle-switch input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    z-index: -1;
}

.toggle-switch label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--dash-text);
    text-transform: none;
    letter-spacing: normal;
}

@media (max-width: 1200px) {
    .filter-top-bar {
        gap: 20px;
    }
}

.toggle-switch .switch {
    position: relative;
    width: 44px;
    height: 22px;
    background: #e0e0e0;
    border-radius: 20px;
    transition: 0.3s;
}
.toggle-switch .switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}
.toggle-switch input:checked + label .switch { background: var(--dash-accent); }
.toggle-switch input:checked + label .switch::after { left: 24px; }

/* View Switcher */
.view-switcher {
    display: flex;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    padding: 4px;
}
.view-btn {
    background: none;
    border: none;
    color: var(--dash-subtext);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}
.view-btn.active {
    background: var(--dash-accent);
    color: #fff;
}

/* Range Sliders */
.range-group { 
    flex: 1 1 400px; /* Grow to fill space, with a larger base width */
    max-width: 600px; /* Prevent them from becoming excessively long on huge screens */
}

.range-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; /* Better than baseline for mixed font sizes */
    margin-bottom: 12px;
}

.range-header label {
    margin-bottom: 0; /* Override default label margin since header handles spacing */
}

.range-value { 
    font-family: var(--font-heading);
    font-size: 13px; 
    font-weight: 700; 
    color: var(--dash-accent); 
    background: rgba(24, 165, 71, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.range-slider-container { 
    padding: 10px 0; 
    display: flex;
    align-items: center;
    height: 42px; /* Match height of other buttons/toggles */
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    outline: none;
    margin: 0;
}

/* Chrome, Safari, Opera and Edge */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--dash-accent);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(24, 165, 71, 0.3);
}

/* Firefox */
.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--dash-accent);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

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

.reset-group {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    height: 100%;
    align-self: flex-end;
}

.aretida-reset-btn-modern {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff; 
    border: 1px solid var(--dash-border); 
    color: #999; 
    padding: 0 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-family: var(--font-heading); 
    transition: 0.3s;
    letter-spacing: 1px;
}

/* Grid Container */
.aretida-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.loft-card {
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.loft-card:hover { transform: translateY(-10px); border-color: var(--dash-accent); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

.loft-card-image { position: relative; height: 200px; background: #f5f5f5; overflow: hidden; }
.loft-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.loft-img-wrap.active { opacity: 1; z-index: 2; }
.loft-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.loft-card-corpus-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid #eee;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

.loft-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #eee;
    color: #999;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.loft-favorite-btn:hover {
    background: #fff;
    color: #ff4444;
    transform: scale(1.1);
}

.heart-icon {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.loft-favorite-btn.active {
    background: #fff;
    border-color: #ff4444;
    color: #ff4444;
}

.loft-favorite-btn.active .heart-icon,
.list-fav-btn.active .heart-icon {
    fill: #ff4444;
    stroke: #ff4444;
}

/* Single view specific */
.loft-favorite-btn.single-view {
    color: #ccc;
    position: relative;
    top: 0;
    right: 0;
    background: none;
    border: none;
}

.loft-favorite-btn.single-view.active {
    color: #ff4444;
    background: none;
}

.loft-plan-switcher {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    padding: 3px;
    z-index: 10;
    border: 1px solid #eee;
}
.plan-btn {
    background: none; border: none; color: #666; font-size: 10px; font-weight: 700; padding: 4px 10px; cursor: pointer; border-radius: 4px; transition: 0.3s; opacity: 0.6;
}
.plan-btn.active { background: var(--dash-accent); color: #fff; opacity: 1; }

.loft-card-details { padding: 25px; display: block; text-decoration: none !important; }
.loft-card-details h3 { 
    font-family: var(--font-heading);
    margin: 0 0 12px 0; 
    font-size: 22px; 
    font-weight: 700;
    color: #333; 
}

.loft-card-meta { 
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #777; 
    font-size: 13px; 
    margin-bottom: 20px; 
    font-weight: 600;
}
.loft-card-meta .meta-row { display: flex; justify-content: space-between; }
.loft-card-meta .second-row { font-size: 12px; opacity: 0.7; border-top: 1px solid #eee; padding-top: 8px; }

.loft-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.loft-card-price { 
    font-family: var(--font-heading);
    font-size: 24px; 
    font-weight: 800; 
    color: #1a1a1a; 
    letter-spacing: -1px;
}

.loft-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.loft-view-btn {
    background: transparent;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.loft-view-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

/* List View - Modern Table Display */
.aretida-table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
}

.view-list .loft-header {
    display: grid;
    /* Tracks: Nr, Type, Floor, Area, Mezzanine, Direction, Status, Price, Heart */
    grid-template-columns: 70px 1.5fr 80px 100px 100px 180px 100px 120px 80px;
    gap: 10px;
    align-items: center;
    padding: 15px 40px;
    background: #fcfaf8;
    border: none;
    font-family: var(--font-heading);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #999;
    margin: 0; /* Align with container edges */
    border-radius: 12px 12px 0 0;
}

.view-list .loft-header > div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (min-width: 992px) {
    /* Explicit Header Column Positions for Desktop */
    .view-list .loft-header > div:nth-child(1) { grid-column: 1; justify-content: flex-start; }
    .view-list .loft-header > div:nth-child(2) { grid-column: 2; justify-content: flex-start; }
    .view-list .loft-header > div:nth-child(3) { grid-column: 3; }
    .view-list .loft-header > div:nth-child(4) { grid-column: 4; }
    .view-list .loft-header > div:nth-child(5) { grid-column: 5; }
    .view-list .loft-header > div:nth-child(6) { grid-column: 6; }
    .view-list .loft-header > div:nth-child(7) { grid-column: 7; }
    .view-list .loft-header > div:nth-child(8) { grid-column: 8; justify-content: flex-end; }
    .view-list .loft-header > div:nth-child(9) { grid-column: 9; }

    .view-list .loft-row > div {
        grid-row: 1 !important;
        order: initial !important; /* Prevent sidebar order leakage */
    }
    .view-list .loft-row .loft-nr { grid-column: 1; justify-content: flex-start; }
    .view-list .loft-row .loft-type { grid-column: 2; justify-content: flex-start; }
    .view-list .loft-row .loft-aukstas { grid-column: 3; }
    .view-list .loft-row .loft-plotas-bendras { grid-column: 4; }
    .view-list .loft-row .loft-antresole { grid-column: 5; }
    .view-list .loft-row .loft-kryptis { grid-column: 6; }
    .view-list .loft-row .loft-status { grid-column: 7; }
    .view-list .loft-row .loft-price { grid-column: 8; justify-content: flex-end; order: initial !important; }
    .view-list .loft-row .loft-favorite { grid-column: 9; order: initial !important; }
}

.aretida-lofts-list {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.view-list .loft-row {
    display: grid;
    grid-template-columns: 70px 1.5fr 80px 100px 100px 180px 100px 120px 80px;
    grid-template-rows: 1fr;
    gap: 10px;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0;
    border-radius: 0;
    min-height: 80px;
}

.view-list .loft-row:hover {
    transform: scale(1.002);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    z-index: 10;
}

.view-list .loft-row > div {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #444;
    font-size: 15px;
    white-space: nowrap;
    grid-row: 1 !important;
}

/* Explicit Row Column Positions to Prevent Swapping - Removed global, moved to desktop block */

.list-fav-btn {
    background: none !important;
    border: none !important;
    color: #ff4d4d !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transform: scale(1.3);
}

.list-fav-btn:hover {
    transform: scale(1.5);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Type Filter Buttons removed from here, consolidated at top */

.view-list .loft-row:last-child {
    border-bottom: none;
}

.view-list .loft-row:hover {
    background: #f9f9f9;
}

.loft-nr strong {
    color: #1a1a1a;
    font-size: 16px;
}

.loft-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dash-accent);
}

.view-list .loft-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.show-mobile { display: none !important; }

@media (max-width: 991px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: inline !important; }

    .aretida-table-container {
        border: 1px solid var(--dash-border);
        background: #fff;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        margin: 20px 0 40px 0;
        position: relative;
    }

    .aretida-lofts-list {
        background: transparent;
        min-width: 620px;
    }

    /* Reset grid positions to auto to follow DOM order on mobile */
    .view-list .loft-header > div,
    .view-list .loft-row > div {
        grid-column: auto !important;
        grid-row: auto !important;
        order: initial !important;
    }

    .view-list .loft-header {
        display: grid !important;
        /* Columns: Nr(1), Tipas(2), Aukstas(3), Plotas(4), Status(5), Kaina(6), Mano(7) */
        grid-template-columns: 50px 100px 70px 90px 70px 100px 50px !important;
        min-width: 620px;
        padding: 0;
        background: #f9f9f9;
        border-bottom: 2px solid #eee;
        position: sticky;
        top: 0;
        z-index: 30;
    }

    .view-list .loft-row {
        display: grid !important;
        grid-template-columns: 50px 100px 70px 90px 70px 100px 50px !important;
        min-width: 620px;
        padding: 0;
        margin: 0;
        border: none;
        border-bottom: 1px solid #f2f2f2;
        box-shadow: none;
        border-radius: 0;
        min-height: 60px;
        align-items: center;
        background: #fff;
    }

    /* Column-specific alignment and styling */
    .view-list .loft-header > div {
        padding: 15px 10px;
        font-weight: 800;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #333;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .view-list .loft-row > div {
        display: flex !important;
        padding: 10px !important;
        font-size: 13px !important;
        justify-content: center !important;
        text-align: center;
        white-space: normal;
        color: #444;
    }

    /* Explicit Column Orders for Mobile Header */
    .view-list .loft-header > div:nth-child(1) { order: 1 !important; }
    .view-list .loft-header > div:nth-child(2) { order: 2 !important; }
    .view-list .loft-header > div:nth-child(3) { order: 3 !important; }
    .view-list .loft-header > div:nth-child(4) { order: 4 !important; }
    .view-list .loft-header > div:nth-child(7) { order: 5 !important; }
    .view-list .loft-header > div:nth-child(8) { order: 6 !important; }
    .view-list .loft-header > div:nth-child(9) { order: 7 !important; }

    /* NR Column (Sticky) */
    .view-list .loft-header > div:nth-child(1),
    .view-list .loft-row .loft-nr {
        position: sticky;
        left: 0;
        z-index: 25;
        background: #f9f9f9;
        border-right: 1px solid #eee;
        min-width: 50px;
        order: 1 !important;
    }
    .view-list .loft-row .loft-nr { background: #fff; font-weight: 800; color: #1a1a1a !important; }

    /* Favorite Column (Sticky on Right) */
    .view-list .loft-header > div:nth-child(9),
    .view-list .loft-row .loft-favorite {
        position: sticky;
        right: 0;
        z-index: 25;
        background: #f9f9f9;
        border-left: 1px solid #eee;
        min-width: 50px;
        order: 7 !important;
    }
    .view-list .loft-row .loft-favorite { background: #fff; }

    /* Explicit Column Orders for Mobile */
    .view-list .loft-row .loft-type { font-weight: 600; color: #666; order: 2 !important; }
    .view-list .loft-row .loft-aukstas { order: 3 !important; }
    .view-list .loft-row .loft-plotas-bendras { font-weight: 700; color: #1a1a1a; order: 4 !important; }
    
    .view-list .loft-row .loft-status { order: 5 !important; }
    .view-list .loft-row .status-laisvas { background: #18a547 !important; }
    .view-list .loft-row .status-rezervuotas { background: #ff9800 !important; }
    .view-list .loft-row .status-parduotas { background: #cc0000 !important; }

    .view-list .loft-row .loft-price { 
        font-weight: 800; 
        color: var(--dash-accent) !important;
        white-space: nowrap !important;
        justify-content: flex-end !important;
        order: 6 !important;
    }

    .view-list .loft-row .loft-favorite { 
        order: 7 !important; 
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .view-list .loft-row .list-fav-btn {
        width: 44px !important;
        height: 44px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
        color: #777 !important; /* Darker grey for visibility */
        transition: all 0.3s ease;
    }

    .view-list .loft-row .list-fav-btn.active {
        color: #ff4444 !important; /* Red when active */
    }

    .view-list .loft-row .list-fav-btn .heart-icon {
        width: 30px !important;
        height: 30px !important;
        fill: none;
        stroke: currentColor;
        stroke-width: 4px !important; /* Thicker stroke for visibility */
        transition: all 0.3s ease;
    }

    .view-list .loft-row .list-fav-btn.active .heart-icon {
        fill: #ff4444 !important;
        stroke: #ff4444 !important;
    }

    /* Explicitly hide Antresole and Kryptis by index to keep header/row in sync */
    .view-list .loft-header > div:nth-child(5),
    .view-list .loft-header > div:nth-child(6),
    .view-list .loft-row .loft-antresole,
    .view-list .loft-row .loft-kryptis {
        display: none !important;
    }

    /* Filter Responsiveness */
    .aretida-filter-wrapper.light-theme {
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .filter-top-bar, .filter-bottom-bar {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important; 
    }

    .filter-group {
        width: 100% !important;
        align-items: stretch !important;
        margin-bottom: 0 !important; 
    }

    .range-group {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .range-slider-container {
        height: auto !important;
        padding: 10px 0 20px 0 !important;
    }

    .reset-group {
        align-self: stretch !important;
        margin-top: 10px !important;
    }

    .aretida-reset-btn-modern {
        width: 100% !important;
        justify-content: center !important;
    }

    .btn-group-circular {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        padding-bottom: 10px !important;
        width: 100% !important;
    }

    .btn-circular {
        flex: 0 0 auto !important;
        display: inline-flex !important;
    }

    .btn-circular span {
        width: 50px !important; 
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    .type-filter-btns, .corpus-btns {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .btn-type, .corp-btn {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }

    .btn-type span, .corp-btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 18px 20px !important; 
        border-radius: 12px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    .smart-header-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding: 15px !important;
    }
}

.action-link, .show-on-map, .list-fav-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.list-fav-btn .heart-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ccc;
    stroke-width: 3px;
    transition: all 0.3s ease;
}

.list-fav-btn.active .heart-icon {
    fill: #ff4444 !important;
    stroke: #ff4444 !important;
}

.action-link:hover, .show-on-map:hover, .list-fav-btn:hover {
    border-color: var(--dash-accent);
    background: #f9f9f9;
}

.list-fav-btn.active {
    color: #ff4444;
    border-color: #ff4444;
}

.list-fav-btn.active .heart-icon {
    fill: #ff4444;
    stroke: #ff4444;
}

/* Sidebar Fav Actions */
.fav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transition: 0.3s;
}

.fav-item:hover .fav-actions {
    opacity: 1;
}

.fav-actions .remove-fav, .fav-actions .show-on-map {
    position: static;
    opacity: 1;
}

.fav-actions .remove-fav {
    background: #ff4444;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.fav-actions .show-on-map {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}



/* Favorites Drawer & Trigger - Refined High-End */
.aretida-master-plan {
    margin-bottom: 40px;
    text-align: center;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--dash-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.building-map {
    width: 100%;
    height: auto;
}

.corpus-path {
    cursor: pointer;
    transition: all 0.3s ease;
}

.corpus-path rect {
    fill: #f9f9f9;
    stroke: #eee;
    stroke-width: 2;
    transition: all 0.3s;
}

.corpus-path text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    pointer-events: none;
    fill: #999;
    transition: all 0.3s;
}

.corpus-path:hover rect,
.corpus-path.active rect {
    fill: rgba(24, 165, 71, 0.05);
    stroke: var(--dash-accent);
}

.corpus-path:hover text,
.corpus-path.active text {
    fill: var(--dash-accent);
}

.map-hint {
    font-size: 12px;
    color: var(--dash-subtext);
    margin-top: 15px;
    font-weight: 600;
}

/* Corpus Switcher */
.corpus-switcher-wrapper {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--dash-border);
}

.corpus-switcher-wrapper label {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dash-subtext);
    margin-bottom: 15px;
    font-weight: 700;
}

.corpus-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.corp-btn {
    background: #fff;
    border: 1px solid var(--dash-border);
    color: #666;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 13px;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
}

.corp-btn:hover, .corp-btn.active {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
    background: rgba(24, 165, 71, 0.05);
}

.floor-hint {
    font-size: 13px;
    color: var(--dash-subtext);
    font-style: italic;
    margin: 0;
}

/* Status Badges - Colored Bubbles */
.status-badge { 
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    text-indent: -9999px;
    overflow: hidden;
    border: none !important;
}

.status-laisvas { background: #18a547 !important; box-shadow: 0 0 8px rgba(24, 165, 71, 0.3); }
.status-rezervuotas { background: #ff9800 !important; box-shadow: 0 0 8px rgba(255, 152, 0, 0.3); }
.status-parduotas { background: #cc0000 !important; box-shadow: 0 0 8px rgba(204, 0, 0, 0.3); }

.filter-hidden {
    display: none !important;
}

/* Favorites Drawer & Trigger - Refined High-End */
.fav-trigger {
    position: fixed;
    bottom: 40px;
    right: 40px;
    height: 54px;
    padding: 0 25px;
    border-radius: 30px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fav-trigger:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fav-trigger .heart-icon { 
    width: 22px; 
    height: 22px; 
    transition: transform 0.3s;
}

.fav-trigger:hover .heart-icon { transform: scale(1.2); }

.fav-count {
    background: var(--dash-accent);
    color: #fff;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.aretida-fav-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--dash-border);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -30px 0 60px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.aretida-fav-drawer.active { right: 0; }

.fav-drawer-header {
    padding: 40px 30px;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fav-drawer-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    font-weight: 800;
}

.fav-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.clear-favs-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    transition: transform 0.3s;
}

.clear-favs-btn:hover {
    transform: scale(1.2);
}

#close-fav-sidebar {
    background: #f5f5f5; 
    border: 1px solid #eee; 
    color: #333; 
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; 
    transition: 0.3s;
    font-size: 12px;
}
#close-fav-sidebar:hover { background: #ff4444; border-color: #ff4444; color: #fff; }

.fav-drawer-content { 
    flex: 1; 
    overflow-y: auto; 
    padding: 30px; 
    scrollbar-width: thin;
    scrollbar-color: var(--dash-accent) transparent;
}

.fav-drawer-content::-webkit-scrollbar { width: 4px; }
.fav-drawer-content::-webkit-scrollbar-thumb { background: var(--dash-accent); border-radius: 10px; }

.empty-favs { 
    text-align: center; 
    padding: 100px 20px; 
    color: #999; 
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 1px;
}

/* Fav List Items */
.fav-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.fav-item:hover { 
    border-color: var(--dash-accent); 
    background: #fcfcfc; 
    transform: translateX(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.fav-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    text-decoration: none !important;
    color: #333 !important;
}

.fav-title { 
    display: block; 
    font-family: var(--font-heading); 
    font-weight: 700; 
    font-size: 16px; 
    margin-bottom: 8px; 
    letter-spacing: -0.5px;
}

.fav-meta { 
    font-size: 11px; 
    color: #999; 
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.fav-price { 
    font-family: var(--font-heading); 
    font-weight: 800; 
    color: var(--dash-accent); 
    font-size: 18px; 
    letter-spacing: -0.5px;
}

.remove-fav {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background: #ff4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.2);
}

.fav-item:hover .remove-fav { opacity: 1; right: 10px; top: 10px; }

@media (max-width: 480px) {
    .aretida-fav-drawer { width: 100%; right: -100%; }
    .fav-trigger { bottom: 20px; right: 20px; padding: 0 15px; }
    .fav-trigger span:not(.fav-count) { display: none; }

    .bank-offers-trigger { bottom: 85px; right: 20px; padding: 0 15px; height: 48px; font-size: 10px; }
}

/* Skeleton Loader */

/* Skeleton Loader */
.aretida-skeleton { background: #fff; border: 1px solid var(--dash-border); border-radius: 15px; overflow: hidden; }
.skeleton-image { height: 200px; background: #f5f5f5; position: relative; overflow: hidden; }
.skeleton-content { padding: 25px; }
.skeleton-title { height: 24px; background: #f5f5f5; width: 70%; margin-bottom: 15px; border-radius: 4px; }
.skeleton-animate::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent); animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Reset Button removed from here, consolidated with sliders */

/* Loft Detail Page Wrapper */
.aretida-loft-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Media Showcase Section */
.loft-media-showcase {
    margin-bottom: 40px;
}

.visuals-grid {
    display: flex;
    gap: 20px;
}

.visual-item {
    flex: 1;
}

.visual-item-inner {
    position: relative;
    background: var(--dash-glass);
    border: 1px solid var(--dash-border);
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
    transition: all 0.3s ease;
}

.visual-item-inner:hover {
    border-color: var(--dash-accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.visual-item label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 5;
    line-height: 1;
}

.visual-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.visual-item-inner:hover img {
    transform: scale(1.05);
}

.visuals-placeholder {
    background: var(--dash-glass);
    border: 2px dashed var(--dash-border);
    border-radius: 15px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.visuals-placeholder span {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--dash-subtext);
    text-transform: uppercase;
    letter-spacing: 3px;
}

@media (max-width: 768px) {
    .visuals-grid { flex-direction: column; }
    .visuals-placeholder { height: 200px; }
}

/* Loft Details Shortcode Grid */
.loft-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.info-card {
    background: var(--dash-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--dash-border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--dash-accent);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.info-card .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: var(--dash-accent);
}

.info-content label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dash-subtext);
    margin-bottom: 4px;
    font-weight: 700;
    opacity: 0.7;
}

.info-content strong {
    font-size: 18px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
}

.price-hero-standalone {
    background: rgba(24, 165, 71, 0.08);
    border: 1px solid var(--dash-accent);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.price-hero-standalone:hover {
    background: rgba(24, 165, 71, 0.12);
    transform: translateY(-2px);
}

.price-hero-standalone .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--dash-accent);
}

.price-content label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dash-subtext);
    margin-bottom: 5px;
    font-weight: 700;
    opacity: 0.7;
}

.price-hero-standalone strong {
    font-size: 36px;
    color: var(--dash-accent);
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

/* Status Badges Refined */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(24, 165, 71, 0.4); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(24, 165, 71, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(24, 165, 71, 0); transform: scale(1); }
}

.status-laisvas { 
    background: var(--dash-accent) !important; 
    color: #fff !important; 
    border: none !important;
    animation: pulse-green 2s infinite;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.status-rezervuotas { 
    background: rgba(255, 152, 0, 0.15) !important; 
    color: #ffb74d !important; 
    border: 1px solid rgba(255, 152, 0, 0.3) !important; 
}

.status-badge { 
    font-family: var(--font-heading);
    padding: 6px 14px; 
    border-radius: 6px; 
    font-size: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    display: inline-block;
}

/* Single Page Favorite Button Luxury Style */
.price-hero-standalone + .loft-favorite-btn {
    width: 100%;
    margin-top: 15px;
    height: 60px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    top: auto;
    right: auto;
}

.price-hero-standalone + .loft-favorite-btn:hover {
    background: #ffffff;
    color: var(--dash-bg);
    transform: scale(1.02);
}

.price-hero-standalone + .loft-favorite-btn.active {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.price-hero-standalone + .loft-favorite-btn.active .heart-icon {
    fill: #ff4444;
    stroke: #ff4444;
}

.price-hero-standalone + .loft-favorite-btn .heart-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* WPBakery Cleanup Utilities */
.wpb_wrapper.no-padding-bg, 
.wpb_text_column.no-padding-bg,
.vc_column-inner.no-padding-bg,
.wpb_column.no-padding-bg,
.no-padding-bg > .wpb_wrapper,
.no-padding-bg > .vc_column-inner {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Single Loftai Page Background Override */
body.single-loftai #ajax-content-wrap .container-wrap {
    background-color: #f8f8f8 !important;
}

/* Single Loftai Page Layout Overrides */
body.single-loftai .post-featured-img, 
body.single-loftai .page-header-no-img,
body.single-loftai .vc_single_image-wrapper.post-featured-img {
    display: none !important;
}

body.single-loftai #ajax-content-wrap .container-wrap {
    background-color: #f8f8f8 !important;
}

/* Bank Offers Floating Button & Modal */
.bank-offers-trigger {
    position: fixed;
    bottom: 110px; /* Sitting above the favorites button (40px + 54px + gap) */
    right: 40px;
    height: 54px;
    padding: 0 30px;
    border-radius: 30px;
    background: #18a547; /* Keep project green for bank offers */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(24, 165, 71, 0.2);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bank-offers-trigger:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(24, 165, 71, 0.3);
    background: #148a3a;
}

.aretida-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.aretida-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.aretida-modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    padding: 60px 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 30px 100px rgba(0,0,0,0.5);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.aretida-modal-overlay.active .aretida-modal-content {
    transform: translateY(0);
}

.aretida-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aretida-modal-close:hover {
    background: #ff4444;
    color: #fff;
    transform: rotate(90deg);
}

.aretida-modal-header {
    text-align: center;
    margin-bottom: 50px;
}

.aretida-modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.aretida-modal-header p {
    color: #888;
    font-size: 15px;
}

.aretida-bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.bank-offer-card {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.bank-offer-card:hover {
    background: #fff;
    border-color: #18a547;
    box-shadow: 0 15px 40px rgba(24, 165, 71, 0.1);
    transform: translateY(-5px);
}

.bank-offer-card.is-inactive {
    opacity: 0.6;
    cursor: default;
    background: #f5f5f5;
    filter: grayscale(1);
    border-style: dashed;
}

.bank-offer-card.is-inactive:hover {
    transform: none;
    box-shadow: none;
    border-color: #eee;
}

.bank-offer-card.is-inactive .bank-cta {
    color: #999;
}

.bank-logo-wrap {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.bank-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bank-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.bank-cta {
    font-size: 11px;
    font-weight: 800;
    color: #18a547;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    width: 100%;
}

body.modal-open {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .aretida-modal-content { padding: 40px 20px; }
    .aretida-modal-header h3 { font-size: 22px; }
}


body.single-loftai #ajax-content-wrap .container-wrap {
    background-color: #f8f8f8 !important;
}

/* 3-Column Loft Details Layout Refined */
body.single-loftai .aretida-loft-3col-container {
    display: grid !important;
    grid-template-columns: 1fr 2.2fr 1.3fr !important;
    gap: 30px !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05) !important;
    align-items: start !important;
    font-family: 'Montserrat', sans-serif !important;
    margin: 40px 0 !important;
    box-sizing: border-box !important;
}

.loft-col-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    border-right: 1px solid #f0f0f0 !important;
    padding-right: 20px !important; /* Reduced padding */
}

.loft-col-specs {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    background: transparent !important;
    border: none !important;
}

.loft-col-specs .spec-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.loft-col-specs .spec-item:last-child {
    border-bottom: none !important;
}

.loft-col-specs .spec-item label {
    font-size: 10px !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.loft-col-specs .spec-item strong {
    font-size: 20px !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.price-hero-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin-top: 15px !important;
    padding-top: 25px !important;
    border-top: 2px solid #1a1a1a !important;
}

.price-hero-block label {
    font-size: 12px !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
}

.price-hero-block strong {
    font-size: 36px !important; /* Adjusted for narrow column */
    color: #1a1a1a !important;
    font-weight: 800 !important;
    letter-spacing: -1.5px !important;
    line-height: 1 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.price-hero-block span {
    display: block !important;
    font-size: 13px !important;
    color: #18a547 !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
}

.loft-cta-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.aretida-btn-main {
    display: block !important;
    background: #0a3d1a !important; /* Dark forest green */
    color: #fff !important;
    text-align: center !important;
    padding: 20px !important;
    border-radius: 0 !important; /* Sharp corners */
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    letter-spacing: 2px !important;
    transition: all 0.4s ease !important;
}

.aretida-btn-main:hover {
    background: #052611 !important;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.2) !important;
    transform: translateY(-2px) !important;
}

.aretida-btn-pdf {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: 1px solid #18a547 !important;
    color: #1a1a1a !important;
    text-align: center !important;
    padding: 15px !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    letter-spacing: 2px !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.aretida-btn-pdf:hover {
    background: #f9f9f9 !important;
    border-color: #0e632b !important;
}

.aretida-btn-pdf span {
    display: inline-block !important;
    margin-right: 8px !important;
    font-size: 16px !important;
}

.aretida-btn-favorite {
    display: block !important;
    background: transparent !important;
    border: 1px solid #18a547 !important;
    color: #1a1a1a !important;
    text-align: center !important;
    padding: 15px !important;
    border-radius: 0 !important; /* Sharp corners */
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    letter-spacing: 2px !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.aretida-btn-favorite:hover {
    background: #f9f9f9 !important;
    border-color: #0e632b !important;
}

.aretida-btn-favorite.active {
    background: #fff0f0 !important;
    border-color: #ff4444 !important;
    color: #ff4444 !important;
}

.aretida-btn-favorite span {
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='none' stroke='%2318a547' stroke-width='3'%3E%3Cpath d='M25 39.7l-.6-.5C11.5 28.7 8 25 8 19c0-5 4-9 9-9 4.1 0 6.4 2.3 8 4.1 1.6-1.8 3.9-4.1 8-4.1 5 0 9 4 9 9 0 6-3.5 9.7-16.4 20.2l-.6.5z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    vertical-align: middle !important;
    margin-right: 8px !important;
    transition: all 0.3s ease !important;
}

.aretida-btn-favorite.active span {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='%23ff4444' stroke='%23ff4444' stroke-width='3'%3E%3Cpath d='M25 39.7l-.6-.5C11.5 28.7 8 25 8 19c0-5 4-9 9-9 4.1 0 6.4 2.3 8 4.1 1.6-1.8 3.9-4.1 8-4.1 5 0 9 4 9 9 0 6-3.5 9.7-16.4 20.2l-.6.5z'/%3E%3C/svg%3E") !important;
}

.loft-col-plan {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 20px !important;
}

.loft-plan-header-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.plan-toggle-btn {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 10px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #888;
    border-radius: 4px;
}

.plan-toggle-btn.active {
    background: #18a547;
    color: #fff;
    border-color: #18a547;
    box-shadow: 0 4px 12px rgba(24, 165, 71, 0.2);
}

.plan-view {
    display: none;
    width: 100%;
}

.plan-view.active {
    display: block;
}

.plan-disclaimer {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}

.loft-col-plan img,
.plan-img-responsive {
    height: 800px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15) !important;
    object-fit: contain !important;
    background-color: #fff; /* Ensure PNGs have white background on page */
}

/* Lightbox White Background overrides */
.mfp-content, .mfp-figure, .fancybox-content, .fancybox-bg {
    background: #fff !important;
}

.mfp-figure figure {
    background: #fff !important;
}

.mfp-image-holder .mfp-content {
    background: #fff !important;
    padding: 10px;
}

.fancybox-slide--image .fancybox-content {
    background: #fff !important;
}

.loft-col-map {
    border-left: 1px solid #f0f0f0 !important;
    padding-left: 30px !important;
    padding-bottom: 40px !important; /* Added padding-bottom */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.mini-map-box {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.mini-map-box .imp-wrap,
.mini-map-box .imp-main-image-spacer,
.mini-map-box svg {
    max-width: 100% !important;
    height: auto !important;
}
/* Compass Styling Refined */
.loft-compass-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 60px !important; /* Spacing between compass and map */
}

.compass-box {
    width: 80px !important;
    height: 80px !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.compass-label {
    font-size: 10px !important;
    text-transform: uppercase !important;
    color: #999 !important;
    letter-spacing: 2px !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
}

.compass-icon-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.compass-icon-container svg line {
    stroke: black !important; /* Black needle */
    stroke-width: 1 !important;
}

.compass-icon-container svg {
    width: 100% !important;
    height: auto !important;
}

.compass-degrees {
    margin-top: 15px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #bbb !important;
}

@media (max-width: 1200px) {
    body.single-loftai .aretida-loft-3col-container {
        grid-template-columns: 1fr 1.5fr !important;
        padding: 30px !important;
    }
    .loft-col-map {
        grid-column: span 2 !important;
        border-left: none !important;
        padding-left: 0 !important;
        padding-top: 30px !important;
        border-top: 1px solid #f0f0f0 !important;
    }
}

@media (max-width: 768px) {
    body.single-loftai .aretida-loft-3col-container {
        grid-template-columns: 1fr !important;
        gap: 0px !important; /* Control spacing manually with padding */
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    .loft-col-details {
        border-right: none !important;
        padding-right: 0 !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin-bottom: 20px !important;
    }
    .loft-col-plan {
        padding: 0 !important;
        margin-bottom: 20px !important;
    }
    .loft-col-map {
        grid-column: span 1 !important;
        padding-top: 20px !important;
        border-top: 1px solid #f0f0f0 !important;
    }
    .price-hero-block strong {
        font-size: 28px !important;
    }
    .loft-col-plan img,
    .plan-img-responsive {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
    .loft-plan-header-toggle {
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    .plan-toggle-btn {
        padding: 8px 10px !important;
        font-size: 11px !important;
        letter-spacing: 0px !important;
        flex: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}

/* Loft Sidebar Card - High-End Design Refined */
.aretida-filter-wrapper .aretida-loft-card,
.aretida-loft-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 40px !important;
    color: #333 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08) !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.aretida-loft-card .loft-card-header {
    margin-bottom: 30px !important;
}

.aretida-loft-card .loft-title {
    margin: 0 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-family: var(--font-heading) !important;
    line-height: 1.1 !important;
}

.aretida-loft-card .loft-meta-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
    margin: 35px 0 !important;
    border-top: 1px solid #eee !important;
    padding-top: 35px !important;
}

.aretida-loft-card .price-value-hero {
    margin: 5px 0 0 0 !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    font-family: var(--font-heading) !important;
    letter-spacing: -1.5px !important;
}

.aretida-loft-card .btn-loft-cta-hero {
    display: block !important;
    width: 100% !important;
    background: #18a547 !important;
    color: #fff !important;
    text-align: center !important;
    padding: 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    letter-spacing: 1px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}

.aretida-loft-card .btn-loft-cta-hero:hover {
    background: #148a3a !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 30px rgba(24, 165, 71, 0.3) !important;
}

/* Active Loft Highlight in Mini Map */
.is-active-mini {
    cursor: default !important;
}

.is-active-mini-green {
    animation: active-pulse-green 2s infinite ease-in-out !important;
}

.is-active-mini-red {
    animation: active-pulse-red 2s infinite ease-in-out !important;
}

@keyframes active-pulse-green {
    0% { opacity: 0.4; fill: #18a547; }
    50% { opacity: 0.9; fill: #2ecc71; }
    100% { opacity: 0.4; fill: #18a547; }
}

@keyframes active-pulse-red {
    0% { opacity: 0.4; fill: #cc0000; }
    50% { opacity: 0.9; fill: #ff4444; }
    100% { opacity: 0.4; fill: #cc0000; }
}