/**
 * ZIIZ Property IntelligenceMax - Frontend Styles
 * Version: 1.0.0
 * Responsive styles for property cards, badges, and widgets
 */
/**
 * ZIIZ Area Overview - Custom Open Sans Fonts
 * Using locally hosted fonts from Kadence Child theme
 */

/**
 * ZIIZ Area Overview - Custom Open Sans Fonts
 */

/* Open Sans Font Face Declarations */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/wp-content/themes/kadence-child/fonts/open-sans-v43-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   Area Overview Section - Tweaked Version
   ========================================================================== */

.ziiz-area-overview-section {
    background: #ffffff;
    padding: 60px 0;
    margin: 40px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ziiz-area-overview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ziiz-area-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid #87CEEB; /* Light blue color */
    line-height: 1.3;
}

.ziiz-area-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 30px;
}

.ziiz-area-content p {
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

.ziiz-area-content p:last-child {
    margin-bottom: 0;
}

.ziiz-area-disclaimer {
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #666666;
    text-align: center;
}

.ziiz-area-disclaimer em {
    font-style: italic;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ziiz-area-overview-section {
        padding: 40px 0;
        margin: 30px 0;
    }
    
    .ziiz-area-heading {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .ziiz-area-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .ziiz-area-disclaimer {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ziiz-area-overview-container {
        padding: 0 15px;
    }
    
    .ziiz-area-heading {
        font-size: 20px;
    }
    
    .ziiz-area-content {
        font-size: 14px;
    }
    
    .ziiz-area-disclaimer {
        font-size: 12px;
    }
}



/* ==========================================================================
   General Components
   ========================================================================== */

.ziiz-notice {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    margin: 20px 0;
    border-radius: 4px;
}

/* ==========================================================================
   Similar Properties Widget
   ========================================================================== */

.ziiz-similar-properties {
    margin: 40px 0;
}

.ziiz-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.ziiz-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ziiz-property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ziiz-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ziiz-property-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.ziiz-match-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ziiz-match-badge.ziiz-match-high {
    background: #28a745;
    color: #fff;
}

.ziiz-match-badge.ziiz-match-medium {
    background: #ffc107;
    color: #333;
}

.ziiz-match-badge.ziiz-match-low {
    background: #6c757d;
    color: #fff;
}

.ziiz-property-details {
    padding: 15px;
}

.ziiz-property-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.ziiz-property-price {
    font-size: 18px;
    font-weight: 700;
    color: #4A90E2;
    margin: 0 0 12px 0;
}

.ziiz-property-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.ziiz-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ziiz-meta-separator {
    color: #ddd;
}



/* ==========================================================================
   Match Score Badge (Header)
   ========================================================================== */

.ziiz-match-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 15px 0;
    font-weight: 600;
}

.ziiz-match-score-badge.ziiz-match-high {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.ziiz-match-score-badge.ziiz-match-medium {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #333;
}

.ziiz-match-percentage {
    font-size: 20px;
    font-weight: 700;
}

.ziiz-match-label {
    font-size: 14px;
}

/* ==========================================================================
   Recommendations Widget (Sidebar)
   ========================================================================== */

.ziiz-recommendations-widget,
.ziiz-popular-properties-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.ziiz-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #4A90E2;
    color: #333;
}

.ziiz-recommendations-list,
.ziiz-popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ziiz-recommendation-item,
.ziiz-popular-item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: background 0.2s ease;
}

.ziiz-recommendation-item:hover,
.ziiz-popular-item:hover {
    background: #f8f9fa;
}

.ziiz-recommendation-link,
.ziiz-popular-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.ziiz-recommendation-image,
.ziiz-popular-image {
    position: relative;
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.ziiz-recommendation-image img,
.ziiz-popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ziiz-recommendation-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(40, 167, 69, 0.95);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.ziiz-hot-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 87, 34, 0.95);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.ziiz-recommendation-details,
.ziiz-popular-details {
    flex: 1;
    min-width: 0;
}

.ziiz-recommendation-title,
.ziiz-popular-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.ziiz-recommendation-price,
.ziiz-popular-price {
    font-size: 15px;
    font-weight: 700;
    color: #4A90E2;
    margin: 0 0 6px 0;
}

.ziiz-recommendation-meta,
.ziiz-popular-meta {
    font-size: 12px;
    color: #666;
}

.ziiz-recommendations-note,
.ziiz-popular-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 11px;
    text-align: center;
}

.ziiz-trending-icon {
    margin-right: 6px;
}

.ziiz-hot-property {
    border-left: 3px solid #ff5722;
}

/* ==========================================================================
   Area Comparison
   ========================================================================== */

.ziiz-area-comparison {
    margin: 40px 0;
}

.ziiz-comparison-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.ziiz-comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.ziiz-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ziiz-comparison-table thead {
    background: #4A90E2;
    color: #fff;
}

.ziiz-comparison-table th,
.ziiz-comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ziiz-comparison-table th {
    font-weight: 600;
}

.ziiz-comparison-metric {
    background: #f8f9fa;
    font-weight: 600;
}

.ziiz-metric-label {
    background: #f8f9fa;
    font-weight: 500;
}

.ziiz-comparison-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ziiz-comparison-area-detail {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ziiz-area-detail-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #4A90E2;
}

.ziiz-area-detail-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .ziiz-property-grid {
        grid-template-columns: 1fr;
    }

    .ziiz-comparison-table th,
    .ziiz-comparison-table td {
        padding: 10px;
        font-size: 13px;
    }

    .ziiz-comparison-details {
        grid-template-columns: 1fr;
    }

    .ziiz-section-title,
    .ziiz-comparison-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ziiz-recommendation-image,
    .ziiz-popular-image {
        width: 80px;
        height: 60px;
    }

    .ziiz-property-meta {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Property FAQ Section - Professional Grade Design
   Modern, Attractive, Production-Ready
   ========================================================================== */

.ziiz-property-faq-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 80px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.ziiz-property-faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ziiz-faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header Styling */
.ziiz-faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.ziiz-faq-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #87CEEB 0%, #6bb6d6 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(135, 206, 235, 0.3);
    color: #ffffff;
}

.ziiz-faq-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.ziiz-faq-subheading {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin: 0;
}

.ziiz-faq-count {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* FAQ List */
.ziiz-faq-list {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.ziiz-faq-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.ziiz-faq-item:last-child {
    border-bottom: none;
}

.ziiz-faq-item:hover {
    background: #fafbfc;
}

/* FAQ Question Button */
.ziiz-faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ziiz-faq-question:focus {
    outline: none;
}

.ziiz-faq-question:focus-visible {
    box-shadow: inset 0 0 0 2px #87CEEB;
}

.ziiz-faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: #f5f7fa;
    color: #87CEEB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.ziiz-faq-question-text {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.ziiz-faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f7fa;
    color: #87CEEB;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ziiz-faq-icon svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State */
.ziiz-faq-question.ziiz-faq-active .ziiz-faq-number {
    background: linear-gradient(135deg, #87CEEB 0%, #6bb6d6 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.4);
}

.ziiz-faq-question.ziiz-faq-active .ziiz-faq-question-text {
    color: #1976d2;
}

.ziiz-faq-question.ziiz-faq-active .ziiz-faq-icon {
    background: linear-gradient(135deg, #87CEEB 0%, #6bb6d6 100%);
    color: #ffffff;
    transform: rotate(180deg);
}

/* FAQ Answer */
.ziiz-faq-answer {
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ziiz-faq-answer-content {
    padding: 0 28px 28px 80px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #555555;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ziiz-faq-answer-content p {
    margin: 0;
}

/* Footer */
.ziiz-faq-footer {
    margin-top: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.ziiz-faq-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.ziiz-faq-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #87CEEB;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ziiz-property-faq-section {
        padding: 60px 0;
        margin: 40px 0;
    }
    
    .ziiz-faq-header {
        margin-bottom: 35px;
    }
    
    .ziiz-faq-icon-badge {
        width: 56px;
        height: 56px;
    }
    
    .ziiz-faq-heading {
        font-size: 28px;
    }
    
    .ziiz-faq-subheading {
        font-size: 14px;
    }
    
    .ziiz-faq-count {
        display: block;
        margin: 8px 0 0 0;
    }
    
    .ziiz-faq-question {
        padding: 20px 20px;
        gap: 12px;
    }
    
    .ziiz-faq-number {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .ziiz-faq-question-text {
        font-size: 15px;
    }
    
    .ziiz-faq-answer-content {
        padding: 0 20px 20px 64px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ziiz-property-faq-section {
        padding: 40px 0;
    }
    
    .ziiz-faq-heading {
        font-size: 24px;
    }
    
    .ziiz-faq-question {
        padding: 16px 16px;
        gap: 10px;
    }
    
    .ziiz-faq-number {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .ziiz-faq-question-text {
        font-size: 14px;
    }
    
    .ziiz-faq-icon {
        width: 28px;
        height: 28px;
    }
    
    .ziiz-faq-answer-content {
        padding: 0 16px 16px 54px;
        font-size: 13px;
    }
    
    .ziiz-faq-disclaimer {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .ziiz-faq-icon,
    .ziiz-faq-number {
        display: none !important;
    }
    
    .ziiz-faq-answer {
        display: block !important;
    }
    
    .ziiz-faq-question {
        padding: 12px 0;
    }
    
    .ziiz-faq-answer-content {
        padding: 0 0 12px 0;
    }
}
