
    /* Base Styles */
    :root {
        --primary-color: #00857e;
        --primary-light: #E8EEF4;
        --primary-dark: #2A3F5F;
        --accent-color: #D4A373;
        --accent-light: #F9F3E9;
        --text-color: #333333;
        --text-light: #666666;
        --text-lighter: #999999;
        --border-color: #E5E5E5;
        --border-light: #F0F0F0;
        --success-color: #4CAF50;
        --error-color: #F44336;
        --warning-color: #FFC107;
        --white: #FFFFFF;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        --shadow-large: 0 4px 12px rgba(0, 0, 0, 0.12);
        --price-color: #E53935;
    }
    
    

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Noto Sans JP', sans-serif;
        color: var(--text-color);
        line-height: 1.6;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    a {
        text-decoration: none;
        color: var(--primary-color);
    }

    ul {
        list-style: none;
    }

    button {
        cursor: pointer;
        font-family: 'Noto Sans JP', sans-serif;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Desktop/Mobile Display Control */
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    /* Breadcrumb Navigation */
    .breadcrumb-container {
        background-color: var(--white);
        border-bottom: 1px solid var(--border-light);
        padding: 8px 0;
    }

    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        font-size: 12px;
        color: var(--text-lighter);
    }

    .breadcrumb li {
        display: flex;
        align-items: center;
    }

    .breadcrumb li:not(:last-child)::after {
        content: '>';
        margin: 0 8px;
        color: var(--text-lighter);
    }

    .breadcrumb a {
        color: var(--text-light);
    }

    .breadcrumb a:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

    /* Page Header */
    .page-header {
        background-color: var(--white);
        padding: 15px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .page-header h1 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 1.3;
        position: relative;
        padding-left: 12px;
        border-left: 4px solid var(--accent-color);
    }

    /* Filter Summary */
    .filter-summary {
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        margin-bottom: 15px;
        display: none;
    }

    .filter-item {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        border-bottom: 1px solid var(--border-light);
    }

    .filter-item:last-child {
        border-bottom: none;
    }

    .filter-label {
        font-size: 13px;
        color: var(--text-light);
        width: 80px;
    }

        .filter-value {
        font-size: 14px;
        flex: 1;
        white-space: nowrap;        
        overflow: hidden;          
        text-overflow: ellipsis;
    }


    .filter-change {
        background-color: transparent;
        border: none;
        color: var(--primary-color);
        font-size: 13px;
        padding: 5px;
    }

    .page-header-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .result-count-large {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-color);
        display: flex;
        align-items: baseline;
        background-color: rgba(255,255,255,0.7);
        padding: 5px 10px;
        border-radius: 4px;
    }

    .result-count-large span {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-light);
        margin-left: 2px;
    }

    .page-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .share-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: 1px solid var(--border-color);
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 13px;
        color: var(--text-color);
        transition: all 0.2s ease;
    }

    .share-btn:hover {
        background-color: var(--border-light);
        transform: translateY(-1px);
    }

    .sort-dropdown {
        position: relative;
        display: flex;
        align-items: center;
    }

    .sort-dropdown select {
        appearance: none;
        background: transparent;
        border: 1px solid var(--border-color);
        padding: 6px 25px 6px 10px;
        border-radius: 4px;
        font-size: 13px;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .sort-dropdown select:hover {
        border-color: var(--primary-color);
    }

    .sort-dropdown svg {
        position: absolute;
        right: 10px;
        pointer-events: none;
    }

    /* Search Banner */
    .search-banner {
        background-color: var(--primary-light);
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        background-image: linear-gradient(to right, var(--primary-light), #f0f5fa);
    }

    .search-banner .container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .view-options {
        display: flex;
        gap: 10px;
    }

    .view-options button {
        background: transparent;
        border: 1px solid var(--border-color);
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        color: var(--text-light);
        transition: all 0.2s ease;
    }

    .view-options button:hover {
        border-color: var(--primary-color);
    }

    .view-options button.active {
        background-color: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    /* Main Content Layout */
    main.container {
        display: flex;
        gap: 30px;
        margin-top: 20px;
        margin-bottom: 30px;
        position: relative;
    }

    /* Filter Panel - WIDENED */
    .filter-panel {
        width: 320px; /* Increased from 280px */
        background-color: var(--white);
        border-radius: 8px;
        box-shadow: var(--shadow);
        padding: 20px;
        position: sticky;
        top: 20px;
        height: calc(100vh - 40px);
        overflow-y: auto;
        background-image: linear-gradient(to bottom, rgba(240, 248, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
        border: 1px solid var(--border-light);
        z-index: 100;
        margin-bottom: 20px;
        align-self: flex-start;
    
        /* Add these for scroll and radius handling */
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-radius: 8px;
    }
    
    .filter-panel::-webkit-scrollbar {
        display: none;
    }

    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-light);
    }

    .filter-header h3 {
        font-size: 16px;
        font-weight: 700;
        color: var(--primary-dark);
        position: relative;
        padding-left: 10px;
    }

    .filter-header h3::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 16px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

    .reset-btn, .close-filter {
        background: transparent;
        border: none;
        color: var(--text-light);
        font-size: 13px;
        transition: all 0.2s ease;
    }

    .reset-btn {
        text-decoration: underline;
        color: var(--primary-color);
    }

    .reset-btn:hover {
        color: var(--primary-dark);
    }

    .filter-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-light);
    }

    .filter-section h4 {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 12px;
        color: var(--text-color);
        display: flex;
        align-items: center;
    }

    .filter-section h4::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 14px;
        background-color: var(--primary-color);
        margin-right: 8px;
        border-radius: 2px;
    }

    .area-select {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .area-select select {
        padding: 10px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 14px;
        color: var(--text-color);
        background-color: var(--white);
        width: 100%;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9L12 15L18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        transition: all 0.2s ease;
    }

    .area-select select:hover {
        border-color: var(--primary-color);
    }

    /* Range Inputs Style - FIXED FOR MOBILE */
    .range-inputs {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* For mobile, make it a row */
    .range-inputs.mobile {
        flex-direction: row;
        justify-content: space-between;
    }

    .range-inputs.mobile .input-group {
        width: 48%;
    }

    .input-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .input-label {
        font-size: 12px;
        color: var(--text-light);
    }

    .range-inputs input {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 14px;
        color: var(--text-color);
        transition: all 0.2s ease;
    }

    .range-inputs input:hover, 
    .range-inputs input:focus {
        border-color: var(--primary-color);
    }

    /* Floor Plan Checkboxes - FIXED ALIGNMENT */
    .floor-plan-checkboxes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .floor-plan-label {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 6px 10px;
        background-color: var(--border-light);
        border-radius: 4px;
        font-size: 13px;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .floor-plan-label:hover {
        background-color: var(--primary-light);
    }

    .floor-plan-label input {
        margin: 0;
        width: 14px;
        height: 14px;
        cursor: pointer;
    }

    .floor-plan-checkboxes.mobile {
        grid-template-columns: repeat(3, 1fr);
        background-color: var(--primary-light);
        padding: 8px;
        border-radius: 6px;
    }

    .floor-plan-checkboxes.mobile .floor-plan-label {
        background-color: var(--white);
        border: 1px solid var(--border-color);
        justify-content: center;
        padding: 8px 5px;
    }

    .floor-plan-checkboxes.mobile .floor-plan-label input:checked + span {
        color: var(--primary-color);
        font-weight: 500;
    }

    .checkbox-group,
    .radio-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .checkbox-label,
    .radio-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: var(--text-color);
        cursor: pointer;
    }

    .checkbox-label input,
    .radio-label input {
        cursor: pointer;
        width: 16px;
        height: 16px;
    }

    /* Tag Group - FIXED ALIGNMENT */
    .tag-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag-label {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 6px 10px;
        background-color: var(--border-light);
        border-radius: 4px;
        font-size: 13px;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .tag-label:hover {
        background-color: var(--primary-light);
    }

    .tag-label input {
        margin: 0;
        width: 14px;
        height: 14px;
        cursor: pointer;
    }

    /* More Button */
    .more-btn {
        width: 100%;
        background-color: var(--accent-light);
        color: var(--accent-color);
        border: 1px solid var(--accent-color);
        padding: 8px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 10px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .more-btn:hover {
        background-color: var(--accent-color);
        color: var(--white);
    }

    .search-btn {
        width: 100%;
        background-color: var(--primary-color);
        color: var(--white);
        border: none;
        padding: 12px;
        border-radius: 4px;
        font-size: 15px;
        font-weight: 500;
        margin-top: 10px;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .search-btn:hover {
        background-color: var(--primary-dark);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }

    /* Search Results */
    .search-results {
        flex: 1;
    }

    .featured-property {
        position: relative;
        margin-bottom: 30px;
    }

    .featured-badge {
        position: absolute;
        top: 15px;
        left: 0;
        background-color: var(--accent-color);
        color: var(--white);
        padding: 5px 15px;
        font-size: 13px;
        font-weight: 500;
        z-index: 1;
        border-radius: 0 4px 4px 0;
    }

    .property-card {
        background-color: var(--white);
        border: 1px solid #e0e7ff; /* Soft blue border */
        border-radius: 8px;
        box-shadow: var(--shadow);
        overflow: hidden;
        margin-bottom: 25px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
    }


    @media (min-width: 768px) {
        .property-card {
            flex-direction: row;
        }
        
        .property-card .property-media {
            width: 40%;
        }
        
        .property-card .property-details {
            width: 60%;
        }
    }


    .property-card.featured {
        border: 2px solid var(--accent-color);
    }

    .property-media {
        position: relative;
    }

    .property-images {
        position: relative;
        overflow: hidden;
    }

        .property-images .main-image {
        width: 100%;
        height: 240px;
        object-fit: contain;
        display: block;
        background-color: #f9f9f9;
    }

    .image-nav {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 5px;
    }

    .image-nav span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
    }

    .image-nav span.active {
        background-color: var(--white);
    }

    /* Property Thumbnails */
    .property-thumbnails {
        display: flex;
        gap: 8px;
        padding: 10px;
        background-color: var(--white);
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        border: 1px solid var(--border-light);
        border-radius: 4px;
        overflow: hidden;
        cursor: pointer;
        background-color: var(--white);
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        transition: all 0.2s ease;
    }

    .thumbnail.active {
        border-color: var(--primary-color);
    }

    .thumbnail:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumbnail.floor-plan {
        position: relative;
    }

    .thumbnail.floor-plan .floor-plan-label {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        font-size: 8px;
        text-align: center;
        padding: 2px 0;
    }

    .property-details {
        padding: 20px;
    }

    .property-type {
        display: inline-block;
        background-color: var(--primary-light);
        color: var(--primary-color);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        margin-bottom: 10px;
    }

    .property-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .property-price {
        font-size: 22px;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 15px;
    }

    .price-unit {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-light);
        margin-left: 2px;
    }

    .property-specs {
        display: flex;
        gap: 20px;
        margin-bottom: 15px;
    }

    .spec {
        display: flex;
        flex-direction: column;
    }

    .spec-label {
        font-size: 12px;
        color: var(--text-lighter);
    }

    .spec-value {
        font-size: 15px;
        font-weight: 500;
    }

    /* Improved property fees section for PC */
    .property-fees {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 15px;
        background-color: var(--primary-light);
        padding: 12px;
        border-radius: 6px;
    }

    .fee-item {
        display: flex;
        flex-direction: column;
    }

    .fee-label {
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 4px;
    }

    .fee-value {
        font-size: 14px;
        font-weight: 500;
    }

    .fee-value.not-required {
        color: var(--success-color);
    }

    .property-location {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        align-items: flex-start;
    }

    .location-icon {
        width: 18px;
        height: 18px;
        background-color: var(--primary-light);
        border-radius: 50%;
        margin-top: 3px;
        position: relative;
    }

    .location-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background-color: var(--primary-color);
        border-radius: 50%;
    }

    .location-details {
        flex: 1;
    }

    .address {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .station {
        font-size: 13px;
        color: var(--text-light);
    }

    .property-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }

    .tag {
        background-color: var(--accent-light);
        color: var(--accent-color);
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 12px;
    }

    .property-actions {
        display: flex;
        gap: 10px;
    }

    .btn-favorite {
        flex: 1;
        background-color: var(--white);
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        padding: 10px;
        border-radius: 4px;
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .btn-favorite:hover {
        background-color: var(--primary-light);
    }

    .btn-contact {
    flex: 2;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    user-select: none;
}

.btn-contact:hover, 
.btn-contact:focus {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}


    /* Enhanced Mobile Property Card Styles */
    .mobile-property-card {
        background-color: var(--white);
        border-radius: 12px;
        box-shadow: var(--shadow);
        margin-bottom: 16px;
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
        border: 1px solid var(--border-light);
    }

    .mobile-property-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-large);
    }

    .property-link {
        display: flex;
        flex-direction: column;
        color: var(--text-color);
        position: relative;
    }

       .property-image {
        width: 100%;
        max-height: 300px; /* adjust max height as needed */
        overflow: hidden;
    }
    
    .property-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        display: block;
         background-color: #f9f9f9;
    }

    .online-badge {
        position: absolute;
        top: 8px;
        left: 0;
        background-color: #E8F5E9;
        color: #2E7D32;
        padding: 4px 8px;
        border-radius: 0 4px 4px 0;
        font-size: 10px;
        font-weight: 500;
    }

    .property-content {
        padding: 15px;
        position: relative;
    }

    .property-name {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.3;
        color: var(--primary-dark);
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 8px;
    }

    /* Improved property info section - removed dot icon */
    .property-info-section {
        margin-bottom: 12px;
        font-size: 13px;
        color: var(--text-color);
        line-height: 1.5;
    }

    .property-info-section p {
        margin: 0;
        padding: 3px 0;
    }

    .property-info-section .highlight {
        color: var(--primary-color);
        font-weight: 500;
    }

    /* Enhanced price row */
    .property-price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 12px 0;
        background: linear-gradient(to right, #F0F5FA, #F8FAFD);
        padding: 8px;
        border-radius: 8px;
        border-left: 1px solid var(--primary-color);
    }

    .price {
        display: flex;
        align-items: baseline;
    }

    .price-value {
        font-size: 18px;
        font-weight: 700;
        color: var(--price-color);
    }

    .price-decimal {
        font-size: 18px;
        font-weight: 700;
        color: var(--price-color);
    }

    .price-unit {
        font-size: 14px;
        font-weight: 500;
        color: var(--price-color);
        margin-left: 2px;
    }

    .price-tax {
        font-size: 12px;
        color: var(--text-light);
        margin-left: 5px;
    }

    .floor-plan {
        width: 60px;
        height: 60px;
        border: 1px solid var(--border-light);
        border-radius: 4px;
        overflow: hidden;
        background-color: var(--white);
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .floor-plan img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Improved fee and deposit section for mobile */
    .property-fee-section {
        background-color: #FAFAFA;
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    /* Improved fee grid layout for mobile */
    .fee-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }

    .fee-grid-item {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .fee-grid-label {
        color: var(--text-light);
        font-size: 12px;
        margin-right: 4px;
    }

    .fee-grid-value {
        font-weight: 500;
        font-size: 12px;
    }

    .fee-grid-value.not-required {
        color: var(--success-color);
    }

    @media (max-width: 360px) {
        .fee-grid {
            justify-content: flex-start;
        }
        
        .fee-grid-item {
            margin-right: 8px;
        }
        
        .fee-grid-label, 
        .fee-grid-value {
            font-size: 11px;
        }
    }

    /* Improved specs row */
    .property-specs-row {
        display: flex;
        align-items: center;
        font-size: 13px;
        font-weight: 500;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-light);
        color: var(--primary-color);
    }

    .spec-separator {
        margin: 0 8px;
        color: var(--text-lighter);
    }

    .property-arrow {
        position: absolute;
        right: 15px;
        bottom: 15px;
        width: 24px;
        height: 24px;
        background-color: var(--primary-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .property-arrow svg {
        width: 12px;
        height: 12px;
        stroke: var(--primary-color);
    }

    /* Pagination */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        margin: 30px 0;
        flex-wrap: wrap;
    }

    .page-prev,
    .page-next {
        padding: 8px 12px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 13px;
        color: var(--text-color);
        transition: all 0.2s ease;
    }

    .page-prev:hover,
    .page-next:hover,
    .page-number:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .page-number {
        width: 32px;
        height: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 13px;
        color: var(--text-color);
        transition: all 0.2s ease;
    }

    .page-number.active {
        background-color: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    .page-dots {
        color: var(--text-lighter);
    }

    /* Recently Viewed */
    .recently-viewed {
        background-color: var(--white);
        border-radius: 8px;
        box-shadow: var(--shadow);
        padding: 20px;
        margin-top: 30px;
    }

    .recently-viewed h3 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 15px;
        color: var(--primary-dark);
        position: relative;
        padding-left: 15px;
    }

    .recently-viewed h3::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 16px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

    .recent-properties {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .recent-property {
        min-width: 200px;
        border: 1px solid var(--border-light);
        border-radius: 6px;
        overflow: hidden;
        transition: all 0.2s ease;
    }

    .recent-property:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .recent-property img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

    .recent-property-info {
        padding: 10px;
    }

    .recent-property-title {
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .recent-property-price {
        font-size: 14px;
        font-weight: 700;
        color: var(--primary-dark);
    }

    /* Search Support */
    .search-support {
        background-color: var(--primary-light);
        padding: 40px 0;
        text-align: center;
        margin-bottom: 50px;
        background-image: linear-gradient(to right, var(--primary-light), #f0f5fa);
    }

    .search-support h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .search-support p {
        font-size: 15px;
        color: var(--text-light);
        margin-bottom: 20px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .search-support .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
        background-color: var(--primary-color);
        border: none;
        color: var(--white);
        border-radius: 4px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .search-support .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
    }

    /* Mobile Filter Buttons */
    .mobile-filter-buttons {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        padding: 10px;
        z-index: 900;
    }

    .mobile-filter-button {
        width: 49%;
        padding: 12px;
        background-color: var(--primary-color);
        color: var(--white);
        text-align: center;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .mobile-filter-button:hover {
        background-color: var(--primary-dark);
    }

    .mobile-filter-button:first-child {
        margin-right: 2%;
    }

    /* Overlay */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 900;
    }

    /* Mobile Filter Panel - FIXED POSITIONING */
    .filter-panel.mobile-only {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
        padding-bottom: 80px; /* Extra padding at bottom for mobile */
    }

    /* Enhanced Modal Styles */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        overflow-y: auto;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1100;
    }

    .modal-container {
        position: relative;
        background-color: var(--white);
        width: 90%;
        max-width: 600px;
        margin: 50px auto;
        border-radius: 12px;
        box-shadow: var(--shadow-large);
        z-index: 1200;
        animation: modalFadeIn 0.3s ease;
        overflow: hidden;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-light);
        background-color: var(--primary-light);
    }

    .modal-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-dark);
        position: relative;
        padding-left: 12px;
    }

    .modal-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 18px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

    .modal-close {
        background: transparent;
        border: none;
        font-size: 24px;
        color: var(--text-light);
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    .modal-close:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: var(--text-color);
    }

    .modal-body {
        padding: 20px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .modal-section {
        margin-bottom: 24px;
    }

    .modal-section:last-child {
        margin-bottom: 0;
    }

    .modal-section h4 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
        color: var(--primary-dark);
        position: relative;
        padding-left: 12px;
        display: flex;
        align-items: center;
    }

    .modal-section h4::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 16px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

    /* Enhanced checkbox styles for modal */
    .modal-checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .modal-checkbox-label {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        background-color: var(--white);
        border: 1px solid var(--border-light);
        border-radius: 6px;
        font-size: 14px;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .modal-checkbox-label:hover {
        background-color: var(--primary-light);
        border-color: var(--primary-color);
    }

    .modal-checkbox-label input {
        margin: 0;
        width: 18px;
        height: 18px;
        margin-right: 10px;
        cursor: pointer;
    }

    /* Enhanced tag group for modal */
    .modal-tag-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    @media (max-width: 600px) {
        .modal-tag-group {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .modal-tag-label {
        display: flex;
        align-items: center;
        padding: 10px;
        background-color: var(--white);
        border: 1px solid var(--border-light);
        border-radius: 6px;
        font-size: 13px;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .modal-tag-label:hover {
        background-color: var(--primary-light);
        border-color: var(--primary-color);
    }

    .modal-tag-label input {
        margin: 0;
        width: 16px;
        height: 16px;
        margin-right: 8px;
        cursor: pointer;
    }

    .modal-tag-label input:checked + span {
        color: var(--primary-color);
        font-weight: 500;
    }

    .modal-footer {
        display: flex;
        justify-content: space-between;
        padding: 16px 20px;
        border-top: 1px solid var(--border-light);
        background-color: #FAFAFA;
    }

    .modal-btn {
        padding: 12px 24px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .modal-btn-clear {
        background-color: var(--white);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }

    .modal-btn-clear:hover {
        background-color: var(--border-light);
    }

    .modal-btn-search {
        background-color: var(--primary-color);
        border: none;
        color: var(--white);
        min-width: 160px;
    }

    .modal-btn-search:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
    }

    /* Responsive Styles */
    @media (max-width: 1024px) {
        .property-specs {
            flex-wrap: wrap;
            gap: 15px;
        }
    }

    @media (max-width: 767px) {
        .desktop-only {
            display: none;
        }
        
        .mobile-only {
            display: block;
        }
        
        .filter-summary {
            display: block;
        }
        
        main.container {
            flex-direction: column;
            margin-bottom: 70px; /* Space for filter buttons */
        }
        
        .mobile-filter-buttons {
            display: flex;
        }
        
        .page-header-info {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
        
        .page-actions {
            width: 100%;
            justify-content: space-between;
        }
        
        .breadcrumb {
            font-size: 10px;
        }
        
        .page-header h1 {
            font-size: 18px;
        }
        
        /* Japanese style alignment for mobile */
        .property-content {
            padding: 15px;
        }
        
        .property-address, 
        .property-station, 
        .property-building, 
        .property-internet {
            margin-bottom: 4px;
        }
        
        .floor-plan-checkboxes.mobile {
            padding: 8px;
            background-color: var(--primary-light);
            border-radius: 6px;
        }
        
        .floor-plan-label {
            margin: 3px;
            background-color: var(--white);
            border: 1px solid var(--border-color);
        }

        .modal-container {
            width: 95%;
            margin: 30px auto;
        }
    }

    @media (max-width: 480px) {
        .property-specs-row {
            font-size: 11px;
        }
        
        .pagination {
            gap: 3px;
        }
        
        .page-number {
            width: 28px;
            height: 28px;
            font-size: 12px;
        }
        
        .page-prev,
        .page-next {
            padding: 6px 8px;
            font-size: 12px;
        }

        .modal-tag-group {
            grid-template-columns: repeat(1, 1fr);
        }
    }