/* Property Listings Display - Isolated Styles */
.pld-root {
    --pld-primary: #2c3e50;
    --pld-secondary: #3498db;
    --pld-bg: #ffffff;
    --pld-border: #e0e0e0;
    --pld-text: #333333;
    --pld-text-light: #666666;
    --pld-shadow: rgba(0, 0, 0, 0.1);
    --pld-radius: 6px;
    
    font-family: Open Sans,sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--pld-text);
    box-sizing: border-box;
    margin: 20px 0;
    width:100%;
}

.pld-root * {
    box-sizing: inherit;
}

/* Header */
.pld-root .pld-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.pld-root .pld-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--pld-primary);
    margin: 0;
    line-height: 1.2;
}

.pld-root .pld-view-all {
    color: var(--pld-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.2s;
}

.pld-root .pld-view-all:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Container */
.pld-root .pld-container {
    position: relative;
    overflow: hidden;
}

/* Grid Mode */
.pld-root .pld-grid-mode .pld-grid {
    display: grid;
    grid-template-columns: repeat(var(--pld-cols, 3), 1fr);
    gap: 20px;
}

/* Slider Mode */
.pld-root .pld-slider-mode .pld-grid {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.pld-root .pld-slider-mode .pld-card {
    flex: 0 0 calc(100% / var(--pld-cols, 3) - 20px);
}

/* Card Styles */
.pld-root .pld-card {
    background: var(--pld-bg);
    border: 1px solid var(--pld-border);
    border-radius: var(--pld-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.pld-root .pld-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--pld-shadow);
}

.pld-root .pld-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pld-root .pld-card-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.pld-root .pld-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pld-root .pld-price-tag {
  align-items: center;
  background: linear-gradient(270deg,#4269da00,#4269da);
  bottom: 15px;
  color: #fff;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  height: 20px;
  padding-left: 10px;
  position: absolute;
  width: 80%;
}

.pld-root .pld-card-content {
    padding: 12px;
}

.pld-root .pld-address {
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
    color: var(--pld-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pld-root .pld-details {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pld-root .pld-detail {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    color: var(--pld-text-light);
}

.pld-root .pld-icon {
    font-size: 16px;
}
.pld-root .pld-icon img {
  height: 16px;
  margin: 4px;
}

.pld-root .pld-mls {
    font-size: 12px;
    color: var(--pld-text-light);
    margin-top: 8px;
    text-align: right;
}

/* Slider Controls */
.pld-root .pld-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.pld-root .pld-slider-controls button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pld-root .pld-slider-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}
.pld-root .pld-mobile-controls {
    display: none;
}

/* No Results */
.pld-root .pld-no-results {
    text-align: center;
    padding: 40px;
    color: var(--pld-text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pld-root .pld-grid-mode .pld-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pld-root .pld-slider-mode .pld-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .pld-root .pld-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pld-root .pld-title {
        font-size: 24px;
    }
    
    /* Force slider-like behavior on mobile for both modes */
    .pld-root .pld-container {
        position: relative;
    }
    
    .pld-root .pld-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .pld-root .pld-grid::-webkit-scrollbar {
        display: none;
    }
    
    .pld-root .pld-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
    
    /* Mobile arrow controls for all modes */
    .pld-root .pld-mobile-controls {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        padding: 0 5px;
        pointer-events: none;
        transform: translateY(-50%);
    }
    
    .pld-root .pld-mobile-controls button {
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        pointer-events: all;
        transition: background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.8;
    }
    
    .pld-root .pld-mobile-controls button:hover {
        background: rgba(0, 0, 0, 0.8);
        opacity: 1;
    }
    
    /* Hide desktop slider controls on mobile */
    .pld-root .pld-slider-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .pld-root .pld-card {
        flex: 0 0 90%;
    }
    
    .pld-root .pld-details {
        gap: 12px;
    }
    
    .pld-root .pld-detail {
        font-size: 13px;
    }
}

/* Loading State */
.pld-root.pld-loading .pld-grid {
    opacity: 0.5;
    pointer-events: none;
}

.pld-root.pld-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--pld-border);
    border-top-color: var(--pld-secondary);
    border-radius: 50%;
    animation: pld-spin 1s linear infinite;
}

@keyframes pld-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
