/* Propstack Integration Styles */

.propstack-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.propstack-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.propstack-columns-1 { grid-template-columns: 1fr; }
.propstack-columns-2 { grid-template-columns: repeat(2, 1fr); }
.propstack-columns-3 { grid-template-columns: repeat(3, 1fr); }
.propstack-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid */
@media (max-width: 1024px) {
    .propstack-columns-4 { grid-template-columns: repeat(3, 1fr); }
    .propstack-columns-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .propstack-columns-4,
    .propstack-columns-3,
    .propstack-columns-2 { grid-template-columns: 1fr; }
    
    .propstack-grid {
        gap: 20px;
    }
}

/* Property Card Styles */
.propstack-card {
   background: #f6f6f6;
   /*border-radius: 12px;*/
   /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
    overflow: hidden;
    transition: all 0.3s ease;
   /* border: 1px solid #f0f0f0;*/
}

.propstack-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.propstack-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.propstack-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.propstack-card:hover .propstack-card-image img {
    transform: scale(1.05);
}

.propstack-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family:'Teko';
 
    color: white;
    
}

/* Fallback colors for specific status names */
.propstack-status-verkauft,
.propstack-status-abgeschlossen {
    background: transparent !important;
    color: white !important;
}

.propstack-status-verfügbar,
.propstack-status-vermarktung {
    background: transparent !important;
    color: white !important;
}

.propstack-status-reserviert,
.propstack-status-vorbereitung {
    background: transparent !important;
    color: white !important;
}

/* Card Content */
.propstack-card-content {
    padding: 3rem;
}

.button2{color:white;}
.propstack-title {
    font-size: 2.025rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #333333;
        text-transform: uppercase;
        font-family: 'Teko', sans-serif!important;
}

.propstack-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.propstack-title a:hover {
    color: black;
}

.propstack-address {
    color: #333333e;
    font-size: 12px;
    margin-bottom: 10px;
    
        display: flex
;
    justify-content: space-between;
}

 

.propstack-id {
    color: #95a5a6;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Property Details */
.propstack-details {
    display:flex;
    justify-content: space-between
}

.propstack-detail {
      display: flex
;
    flex-wrap: wrap;
    flex-direction: column;
 
}

.propstack-detail:last-child {
    border-bottom: none;
}

.propstack-detail-label {
   color: #aaa;
    font-size: 12px;
    
    letter-spacing: 0.5px;
}

.propstack-detail-value {
     
    font-size: 1.62rem;
    font-weight: 600;
    color: #333333;
    font-family: Mukta, sans-serif;
    text-transform: none;
    line-height: 1.3;
}

.propstack-price {
    
    color: white;
 
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.propstack-price .propstack-detail-label {
    color: #aaa;
    font-size: 12px;
    
    letter-spacing: 0.5px;
}

.propstack-price-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

/* Card Actions */
.propstack-card-actions {
    padding: 0 25px 25px 25px;
    margin-top: auto;
}

.propstack-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.propstack-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.propstack-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}
 

/* Error and No Results */
.propstack-error,
.propstack-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.propstack-error {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #fecaca;
}

.propstack-no-results {
    color: #6c757d;
}

.propstack-error p,
.propstack-no-results p {
    font-size: 18px;
    margin: 0;
}

/* Loading States */
.propstack-loading {
    text-align: center;
    padding: 40px;
}

.propstack-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: propstack-spin 1s linear infinite;
}

@keyframes propstack-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .propstack-listings-container {
        padding: 15px;
    }
    
    .propstack-card-content {
        padding: 3rem 1.5rem;
    }
    
    .propstack-title {
        font-size: 20px;
    }
    
    .propstack-price-value {
        font-size: 20px;
    }
    
    .propstack-price {
        margin: 0px -20px 0 -20px;
        padding: 0px 20px;
    }
    
    .propstack-card-actions {
        padding: 0 20px 20px 20px;
    }
    
    .propstack-pagination-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .propstack-page-link {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Admin Styles */
.propstack-admin-notice {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left-width: 4px;
    border-left-color: #667eea;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin: 15px 0;
    padding: 12px;
}

/* Accessibility */
.propstack-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.propstack-btn:focus,
.propstack-page-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .propstack-card {
        border: 2px solid #000;
    }
    
    .propstack-btn-primary {
        background: #000;
        border: 2px solid #000;
    }
}
 
 
/* Slider Styles */
.property-gallery-slider {
    margin: 50px 0;
}

.slider-container {
   
    margin: 0 auto;
}

.slider-main {
    position: relative;
    background: #f5f5f5;
  
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* View All Images Button */
.view-all-images-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 400;
             font-family: Teko, sans-serif;

    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.view-all-images-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Thumbnail Navigation */
.slider-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
}

.slider-thumbs::-webkit-scrollbar {
    height: 6px;
}

.slider-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.slider-thumbs::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb.active {
    opacity: 1;
    border-color: #007bff;
}

.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.lightbox-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-image {
        height: 400px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .view-all-images-btn {
        bottom: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .thumb {
        width: 80px;
        height: 60px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

/* ===================================================
   MODERN PAGINATION STYLES
   =================================================== */

/* Main Pagination Container */
.propstack-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 48px 0;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1), 
        0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Pagination Controls Wrapper */
.propstack-pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Page Numbers Container */
.propstack-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Base Page Link Styles */
.propstack-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    color: #64748b;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}

/* Page Link Hover State */
.propstack-page-link:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

/* Page Link Active State */
.propstack-page-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Current Page State */
.propstack-page-link.propstack-current {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-color: #3b82f6;
    font-weight: 600;
    cursor: default;
    transform: none;
}

.propstack-page-link.propstack-current:hover {
    transform: none;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    text-decoration: none;
}

/* Navigation Buttons (Previous/Next) */
.propstack-page-prev,
.propstack-page-next {
    min-width: 120px;
    font-weight: 600;
    gap: 8px;
}

.propstack-page-prev:hover,
.propstack-page-next:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Disabled State */
.propstack-page-link.disabled,
.propstack-page-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.propstack-page-link.disabled:hover {
    background: #ffffff;
    color: #64748b;
    border-color: #e2e8f0;
    transform: none;
    box-shadow: none;
}

/* Ellipsis */
.propstack-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
    user-select: none;
}

/* Page Information Section */
.propstack-pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 600px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.propstack-page-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.propstack-results-summary,
.propstack-page-summary {
    line-height: 1.4;
}

.propstack-current-page,
.propstack-total-pages,
.propstack-start-item,
.propstack-end-item,
.propstack-total-items {
    color: #0f172a;
    font-weight: 600;
}

/* Per Page Selector */
.propstack-per-page-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.propstack-per-page-selector label {
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.propstack-per-page-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.propstack-per-page-select:hover {
    border-color: #cbd5e1;
}

.propstack-per-page-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Load More Button */
.propstack-load-more-container {
    margin-top: 16px;
}

.propstack-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.propstack-load-more-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 6px -1px rgba(59, 130, 246, 0.25), 
        0 2px 4px -1px rgba(59, 130, 246, 0.06);
}

.propstack-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.propstack-pagination.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.propstack-pagination.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: propstack-spin 1s linear infinite;
}

.propstack-loading-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.propstack-loading-spinner svg {
    animation: propstack-spin 1s linear infinite;
}

/* Animations */
@keyframes propstack-spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .propstack-pagination {
        padding: 28px 24px;
        gap: 20px;
    }
    
    .propstack-pagination-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .propstack-pagination {
        padding: 24px 16px;
        gap: 20px;
        margin: 32px 0;
    }

    .propstack-pagination-wrapper {
        gap: 6px;
    }

    .propstack-page-numbers {
        gap: 2px;
    }

    .propstack-page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .propstack-page-prev,
    .propstack-page-next {
        min-width: 100px;
    }

    .propstack-page-text {
        display: none;
    }

    .propstack-pagination-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .propstack-per-page-selector {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .propstack-pagination {
        padding: 20px 12px;
        margin: 24px 0;
    }

    .propstack-page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
    }

    .propstack-page-prev,
    .propstack-page-next {
        min-width: 80px;
        padding: 0 12px;
    }
    
    .propstack-page-info {
        font-size: 13px;
    }
    
    .propstack-per-page-select {
        font-size: 13px;
        padding: 6px 10px;
        min-width: 100px;
    }
}

/* ===================================================
   ACCESSIBILITY & PREFERENCES
   =================================================== */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .propstack-page-link {
        border-width: 2px;
    }
    
    .propstack-page-link.propstack-current {
        background: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .propstack-page-link:hover {
        background: #000000;
        color: #ffffff;
        border-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .propstack-page-link,
    .propstack-load-more-btn,
    .propstack-per-page-select {
        transition: none;
    }
    
    .propstack-pagination.loading::after,
    .propstack-loading-spinner svg {
        animation: none;
    }
}

/* Focus Styles for Keyboard Navigation */
.propstack-page-link:focus,
.propstack-per-page-select:focus,
.propstack-load-more-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .propstack-pagination {
        display: none !important;
    }
}

/* ===================================================
   LEGACY SUPPORT & FALLBACKS
   =================================================== */

/* Fallback for older browsers without CSS Grid/Flexbox support */
.no-flexbox .propstack-pagination-wrapper {
    text-align: center;
}

.no-flexbox .propstack-page-link {
    display: inline-block;
    margin: 0 4px;
}

/* Dark Theme Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .propstack-pagination {
        background: #1f2937;
        border-color: #374151;
        box-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.3), 
            0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .propstack-page-link {
        background: #374151;
        color: #d1d5db;
        border-color: #4b5563;
    }
    
    .propstack-page-link:hover {
        background: #4b5563;
        color: #f9fafb;
        border-color: #6b7280;
    }
    
    .propstack-page-link.propstack-current {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: #ffffff;
        border-color: #3b82f6;
    }
    
    .propstack-per-page-select {
        background: #374151;
        color: #d1d5db;
        border-color: #4b5563;
    }
    
    .propstack-pagination-info {
        color: #9ca3af;
    }
    
    .propstack-current-page,
    .propstack-total-pages,
    .propstack-start-item,
    .propstack-end-item,
    .propstack-total-items {
        color: #f9fafb;
    }
}
.propstack-results-count{display:none;}