/* 
 * MODERN LISTING CSS - ULTRA RESPONSIVE DESIGN
 * Created: 2025-01-XX 
 * Completely redesigned from scratch with modern CSS Grid & Flexbox
 * Unique class names to prevent theme conflicts
 */

/* Owner dashboard: mobile table-to-card layout */
@media (max-width: 768px) {
  .owner-dashboard table.table { display: block; width: 100%; }
  .owner-dashboard table.table thead { display: none; }
  .owner-dashboard table.table tbody,
  .owner-dashboard table.table tr,
  .owner-dashboard table.table td { display: block; width: 100%; }
  .owner-dashboard table.table tr { border-top: 1px solid #e9ecef; }
  .owner-dashboard table.table td { position: relative; padding-left: 48%; box-sizing: border-box; }
  .owner-dashboard table.table td::before {
    content: attr(data-label);
    position: absolute; left: 12px; top: 8px; font-weight: 600; color: #6c757d;
  }
}

/* CSS Custom Properties for consistent theming */
:root {
    --modern-primary: #2077ba;
    --modern-primary-hover: #2c91ce;
    --modern-secondary: #f59e0b;
    --modern-success: #10b981;
    --modern-danger: #ef4444;
    --modern-dark: #111827;
    --modern-gray-50: #f9fafb;
    --modern-gray-100: #f3f4f6;
    --modern-gray-200: #e5e7eb;
    --modern-gray-300: #d1d5db;
    --modern-gray-600: #4b5563;
    --modern-gray-700: #374151;
    --modern-gray-800: #1f2937;
    --modern-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --modern-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --modern-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --modern-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --modern-radius: 0.5rem;
    --modern-radius-lg: 0.75rem;
    --modern-radius-xl: 1rem;
    --modern-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET AND BASE STYLES */
.modern-listing-container * {
    box-sizing: border-box;
}

/* Ensure all modern elements use border-box */
.modern-listing-grid,
.modern-listing-grid * {
    box-sizing: border-box;
}

/* MAIN LISTING GRID CONTAINER */
.modern-listing-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    width: 100%;
    overflow-x: hidden;
    clear: both;
}

/* MODERN PROPERTY CARD */
.modern-property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--modern-transition);
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 200px;
    border: 1px solid var(--modern-gray-200);
}

/* Override conflicting property_listing styles */
.modern-property-card .property_listing {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: static;
}

.modern-property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* IMAGE CONTAINER */
.modern-image-container {
    position: relative;
    width: 300px;
    height: 100%;
    overflow: hidden;
    background: var(--modern-gray-100);
    flex-shrink: 0;
}

.modern-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--modern-transition);
}

.modern-property-card:hover .modern-property-image {
    transform: scale(1.05);
}

/* SUPPORT LEGACY IMAGE MARKUP IN AJAX RESULTS
   The filter search results currently render the image inside
   `listing-unit-img-wrapper` instead of `modern-image-container`.
   Without explicit sizing, the flex row layout can shrink the image on
   small screens, making thumbnails appear half/cut. We scope fixes to
   `.modern-property-card` to avoid side effects elsewhere. */
.modern-property-card .listing-unit-img-wrapper {
    position: relative !important;
    width: 300px !important;          /* match modern-image-container */
    height: 100% !important;
    overflow: hidden !important;
    background: var(--modern-gray-100) !important;
    flex: 0 0 300px !important;       /* override legacy flex-basis:30% */
    flex-shrink: 0 !important;
    max-width: none !important;       /* defeat #primary .listing-unit-img-wrapper max-width */
    min-width: 0 !important;
    display: block !important;        /* avoid inline-block shrink rules */
}

.modern-property-card .listing-unit-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: var(--modern-transition) !important;
}

/* STATUS BADGES */
.modern-status-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    z-index: 10;
}

.modern-status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    backdrop-filter: blur(8px);
    color: white;
}

.modern-status-featured {
    background: rgba(30, 64, 175, 0.9);
}

.modern-status-offer {
    background: rgba(16, 185, 129, 0.9);
}

/* OWNER AVATAR */
.modern-owner-avatar {
    display: none; /* Hide for cleaner look */
}

/* CARD CONTENT */
.modern-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

/* PROPERTY TITLE */
.modern-property-title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--modern-gray-800);
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

.modern-property-title:hover {
    color: var(--modern-primary);
    text-decoration: none;
}

/* Ensure anchor inside title also clamps/wraps nicely */
.modern-property-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

/* LOCATION INFO */
.modern-location-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--modern-gray-600);
    font-size: 1.135rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modern-location-icon {
    color: var(--modern-gray-500);
    font-size: 1.2rem;
}

/* AMENITIES GRID */
.modern-amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.modern-amenity-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--modern-gray-50);
    border-radius: 4px;
    color: var(--modern-secondary);
    font-size: 1.125rem;
    transition: var(--modern-transition);
    border: 1px solid var(--modern-gray-200);
}

.modern-amenity-icon:hover {
    background: var(--modern-secondary);
    color: white;
    transform: scale(1.1);
}

.modern-amenity-img {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
}



/* PROPERTY DESCRIPTION */
.modern-property-description {
    display: block;
    color: var(--modern-gray-600);
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0.75rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* DISTANCE BADGE */
.modern-distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2c91ce;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
}

.modern-distance-badge i {
    color: inherit;
    font-size: 1rem;
}

/* PRICE SECTION */
.modern-price-section {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.modern-price-info {
    flex: 1;
}

.modern-price-amount {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--modern-gray-800);
    line-height: 1;
}

.modern-price-period {
    font-size: 0.875rem;
    color: var(--modern-gray-500);
    font-weight: 400;
}

/* MODERN BUTTONS */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: var(--modern-transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-width: 80px;
}

.modern-btn-primary {
    background: var(--modern-primary);
    color: white;
    box-shadow: none;
}

.modern-btn-primary:hover {
    background: var(--modern-primary-hover);
    color: white;
    text-decoration: none;
}

.modern-btn-outline {
    background: transparent;
    color: var(--modern-primary);
    border: 2px solid var(--modern-primary);
}

.modern-btn-outline:hover {
    background: var(--modern-primary);
    color: white;
    text-decoration: none;
}

/* MAP BUTTON */
.modern-map-button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(54, 101, 202, 0.9);
    color: white;
    padding: 0.5rem;
    font-size: 1.3rem;
    border-radius: 0;
    min-width: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.modern-map-button:hover {
    background: rgba(17, 24, 39, 1);
}

/* Ensure pagination appears after listing grid */
#listing_ajax_container {
    margin-bottom: 2rem;
}

/* PAGINATION */
.modern-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem auto;
    flex-wrap: wrap;
    clear: both;
    width: 100%;
    flex-direction: row !important;
}

.modern-pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--modern-radius);
    border: 1px solid var(--modern-gray-300);
    background: white;
    color: var(--modern-gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--modern-transition);
}

.modern-pagination-item:hover {
    background: var(--modern-gray-50);
    border-color: var(--modern-primary);
    color: var(--modern-primary);
    text-decoration: none;
}

.modern-pagination-item.active {
    background: var(--modern-primary);
    border-color: var(--modern-primary);
    color: white;
}

/* SIDEBAR STYLES */
.modern-sidebar {
    background: white;
    border-radius: var(--modern-radius-lg);
    overflow: hidden;
    box-shadow: var(--modern-shadow);
    margin-bottom: 2rem;
}

.modern-sidebar-header {
    background: linear-gradient(135deg, var(--modern-gray-50), var(--modern-gray-100));
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--modern-gray-200);
    font-weight: 700;
    color: var(--modern-gray-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.modern-sidebar-header:hover {
    background: linear-gradient(135deg, var(--modern-gray-100), var(--modern-gray-200));
}

.modern-sidebar-content {
    padding: 1.5rem;
}

.modern-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--modern-radius);
    transition: background 0.2s;
    cursor: pointer;
}

.modern-checkbox-item:hover {
    background: var(--modern-gray-50);
}

.modern-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--modern-gray-300);
    border-radius: 0.25rem;
    position: relative;
    transition: var(--modern-transition);
}

.modern-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.modern-checkbox input:checked + .modern-checkbox-mark {
    background: var(--modern-primary);
    border-color: var(--modern-primary);
}

.modern-checkbox-mark {
    width: 100%;
    height: 100%;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--modern-transition);
}

.modern-checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.modern-checkbox input:checked + .modern-checkbox-mark::after {
    opacity: 1;
}

/* SEARCH FORM */
.modern-search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--modern-radius-lg);
    padding: 2rem;
    box-shadow: var(--modern-shadow-lg);
    margin-bottom: 2rem;
}

.modern-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.modern-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--modern-gray-700);
}

.modern-form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--modern-gray-300);
    border-radius: var(--modern-radius);
    font-size: 1rem;
    transition: var(--modern-transition);
    background: white;
}

.modern-form-control:focus {
    outline: none;
    border-color: var(--modern-primary);
    box-shadow: 0 0 0 3px rgb(30 64 175 / 0.1);
}

/* TITLE SECTION */
.modern-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--modern-gray-800);
    text-align: center;
    margin: 2rem 0;
    line-height: 1.2;
}

/* COLLAPSIBLE DESCRIPTION */
.modern-description-toggle {
    background: linear-gradient(135deg, var(--modern-primary), var(--modern-primary-hover));
    color: white;
    border: none;
    border-radius: var(--modern-radius-lg);
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--modern-transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modern-description-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--modern-shadow-lg);
}

.modern-description-content {
    background: var(--modern-primary);
    color: white;
    padding: 0;
    border-radius: 0 0 var(--modern-radius-lg) var(--modern-radius-lg);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.modern-description-content.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.modern-description-content h1,
.modern-description-content h2,
.modern-description-content h3,
.modern-description-content h4,
.modern-description-content h5,
.modern-description-content h6,
.modern-description-content p,
.modern-description-content a {
    color: white !important;
}

/* RESPONSIVE DESIGN */

/* Large screens */
@media (min-width: 1200px) {
    .modern-listing-grid {
        max-width: 1000px;
    }
    
    .modern-property-card {
        min-height: 240px;
    }
    
    .modern-image-container {
        width: 300px;
    }
}

/* Medium screens */
@media (max-width: 991.98px) {
    .modern-property-card {
        flex-direction: column;
        height: auto;
        min-height: 300px;
    }
    
    .modern-image-container {
        width: 100%;
        height: 180px;
    }
    /* Legacy image wrapper on tablet */
    .modern-property-card .listing-unit-img-wrapper {
        width: 100% !important;
        height: 180px !important;
        flex: 0 0 auto !important; /* reset any fixed basis */
    }
    
    .modern-page-title {
        font-size: 2rem;
    }
}

/* Tablet screens */
@media (max-width: 768px) {
    .modern-amenities-grid {
        display: flex; /* Show on mobile */
        gap: 0.5rem;
        flex-wrap: wrap;
        margin: 0.5rem 0;
    }
    
    .modern-amenity-icon {
        width: 1.5rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--modern-gray-50);
        border-radius: 4px;
        color: var(--modern-secondary);
        font-size: 1.55rem;
        border: 1px solid var(--modern-gray-200);
    }
    
    .modern-property-description {
        display: block; /* Show on mobile */
        color: var(--modern-gray-600);
        font-size: 1.55rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0.25rem 0;
    }
    
    .modern-card-content {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .modern-property-title {
        font-size: 1.2rem;
    }
    
    .modern-owner-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .modern-amenities-grid {
        gap: 0.5rem;
    }
    
    .modern-amenity-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.55rem;
    }
    
    .modern-price-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }
    
    .modern-btn {
        width: 100%;
        padding: 0.875rem 1rem;
    }
    
    .modern-search-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modern-page-title {
        font-size: 1.55rem;
        margin: 1.5rem 0;
    }
    
    .modern-pagination {
        gap: 0.25rem;
    }
    
    .modern-pagination-item {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.55rem;
    }
}

/* Mobile screens */
@media (max-width: 576px) {
    /* Ensure body doesn't overflow */
    body {
        overflow-x: hidden;
    }
    
    .modern-listing-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        max-width: calc(100vw - 2rem); /* Prevent overflow with padding */
        overflow-x: hidden;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .modern-property-card {
        min-height: 350px;
        border-radius: var(--modern-radius-lg);
        max-width: 100%;
        overflow: hidden;
        margin: 0;
    }
    
    /* Override property_listing styles on mobile */
    .modern-property-card .property_listing {
        flex-direction: column;
        width: 100%;
        height: 100%;
    }
    
    .modern-image-container {
        height: 180px;
        width: 100%;
        max-width: 100%;
    }
    /* Legacy image wrapper on mobile */
    .modern-property-card .listing-unit-img-wrapper {
        height: 180px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
    }
    
    .modern-card-content {
        padding: 0.875rem;
        gap: 0.5rem;
        width: 100%;
        overflow: hidden;
    }
    
    .modern-property-title {
        font-size: 1.3rem;
        line-height: 1.4;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }
    
    .modern-owner-avatar {
        width: 2rem;
        height: 2rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .modern-status-badges {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .modern-status-badge {
        padding: 0.25rem 0.5rem;
        font-size: 1.3rem;
    }
    
    .modern-location-info {
        font-size: 1.3rem;
    }
    
    .modern-amenities-grid {
        gap: 0.375rem;
        margin: 0.375rem 0;
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .modern-amenity-icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 1.3rem;
    }
    
    .modern-property-description {
        font-size: 1.3rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .modern-distance-badge {
        padding: 0.25rem 0.5rem;
        font-size: 1.35rem;
    }
    
    .modern-price-amount {
        font-size: 1.25rem;
    }
    
    .modern-price-period {
        font-size: 0.75rem;
    }
    
    .modern-btn {
        padding: 0.75rem 1rem;
        font-size: 1.3rem;
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .modern-search-form {
        padding: 1rem;
        border-radius: var(--modern-radius);
    }
    
    .modern-page-title {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .modern-sidebar-header {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .modern-sidebar-content {
        padding: 1rem;
    }
    
    .modern-pagination {
        margin: 2rem 0;
    }
    
    .modern-pagination-item {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
    .modern-listing-grid {
        max-width: 1100px;
        gap: 1.25rem;
    }
    
    .modern-property-card {
        min-height: 300px;
    }
    
    .modern-image-container {
        width: 320px;
    }
}

/* Print styles */
@media print {
    .modern-property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--modern-gray-300);
    }

    .modern-btn {
        display: none;
    }

    .modern-sidebar {
        display: none;
    }
}

/* MAP BUTTON STYLING - HIGH PRIORITY */
.widget-area-sidebar .map-sidebar-button,
.map-sidebar-button {
    margin-bottom: 20px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1000 !important;
}

.widget-area-sidebar .map-sidebar-button a,
.map-sidebar-button a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: var(--modern-primary) !important;
    color: white !important;
    border-radius: var(--modern-radius) !important;
    text-decoration: none !important;
    transition: var(--modern-transition) !important;
    box-shadow: var(--modern-shadow) !important;
    border: none !important;
    cursor: pointer !important;
}

.widget-area-sidebar .map-sidebar-button a:hover,
.map-sidebar-button a:hover {
    background: var(--modern-primary-hover) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--modern-shadow-lg) !important;
}

.widget-area-sidebar .map-sidebar-button a i,
.map-sidebar-button a i {
    margin-right: 8px !important;
    color: white !important;
}



/* Mobile responsiveness for map button */
@media (max-width: 768px) {
    .widget-area-sidebar .map-sidebar-button,
    .map-sidebar-button {
        margin-bottom: 15px !important;
    }

    .widget-area-sidebar .map-sidebar-button a,
    .map-sidebar-button a {
        padding: 15px !important;
        font-size: 16px !important;
    }
}

/* Property Status Hashtags */
.modern-status-hashtags {
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--modern-border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.modern-status-hashtag {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--modern-secondary);
    border-radius: 25px;
    color: var(--modern-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-status-hashtag:hover {
    background: var(--modern-secondary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(32, 119, 186, 0.2);
}

.modern-status-hashtag:before {
    content: '#';
    margin-right: 0.25rem;
    font-weight: 600;
}

/* Responsive hashtags */
@media (max-width: 768px) {
    .modern-status-hashtags {
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .modern-status-hashtag {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        max-width: 200px;
        font-weight: 700;
        border-radius: 20px;
    }
}

/* Empty state when no hashtags */
.modern-status-hashtags:empty {
    display: none;
}
