/**
 * Elementor Widget Styles
 * 
 * @package Nairobi_Off_Plan
 * @version 1.0.0
 */

/* Property Grid Widget */
.nop-property-grid-section {
    padding: 80px 0;
}

.nop-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.nop-section-title {
    margin-bottom: 16px;
}

.nop-section-subtitle {
    font-size: 1.125rem;
    color: #718096;
}

.nop-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.nop-property-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nop-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.nop-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.nop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.nop-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #d69e2e;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.nop-card-content {
    padding: 24px;
}

.nop-card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.nop-card-title a {
    color: inherit;
    text-decoration: none;
}

.nop-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.nop-card-developer {
    color: #4a5568;
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.nop-card-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.nop-card-meta-item {
    display: flex;
    flex-direction: column;
}

.nop-card-meta-label {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nop-card-meta-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a365d;
}

/* Hero Widget */
.nop-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.nop-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 54, 93, 0.85);
}

.nop-hero .nop-container {
    position: relative;
    z-index: 1;
}

.nop-hero-content {
    max-width: 700px;
}

.nop-hero-headline {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.nop-hero-subheadline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.nop-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nop-hero-btn-primary {
    background: #d69e2e;
    color: #ffffff;
}

.nop-hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.nop-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nop-hero-stat {
    text-align: center;
}

.nop-hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d69e2e;
}

.nop-hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Calculator Widget */
.nop-calculator-section {
    padding: 80px 0;
}

.nop-calculator {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nop-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nop-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.nop-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nop-form-label {
    font-weight: 600;
    color: #4a5568;
}

.nop-form-input {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nop-form-input:focus {
    outline: none;
    border-color: #1a365d;
}

.nop-calculator-results {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e2e8f0;
}

.nop-calculator-results h4 {
    margin-bottom: 24px;
    text-align: center;
}

.nop-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.nop-result-item {
    text-align: center;
    padding: 24px;
    background: #f7fafc;
    border-radius: 8px;
}

.nop-result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 4px;
}

.nop-result-label {
    font-size: 0.875rem;
    color: #718096;
}

/* Area Guides Widget */
.nop-area-guides-section {
    padding: 80px 0;
}

.nop-area-grid {
    display: grid;
    gap: 24px;
}

.nop-area-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.nop-area-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nop-area-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.nop-area-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.nop-area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.nop-area-card:hover img {
    transform: scale(1.1);
}

.nop-area-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.nop-area-name {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.nop-area-stats {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Lead Capture Widget */
.nop-lead-capture-section {
    padding: 80px 0;
}

.nop-lead-capture {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.nop-lead-content {
    text-align: center;
    margin-bottom: 32px;
}

.nop-lead-title {
    margin-bottom: 8px;
}

.nop-lead-subtitle {
    color: #718096;
}

.nop-lead-form {
    display: flex;
    gap: 16px;
}

.nop-lead-form-horizontal {
    flex-direction: row;
    align-items: flex-end;
}

.nop-lead-form-vertical {
    flex-direction: column;
}

.nop-lead-form .nop-form-group {
    flex: 1;
}

.nop-lead-submit {
    padding: 14px 32px;
    background: #d69e2e;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nop-lead-submit:hover {
    background: #b7791f;
}

.nop-lead-privacy {
    text-align: center;
    font-size: 0.875rem;
    color: #a0aec0;
    margin-top: 24px;
}

/* Blog Posts Widget */
.nop-blog-section {
    padding: 80px 0;
}

.nop-blog-grid {
    display: grid;
    gap: 30px;
}

.nop-blog-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.nop-blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nop-blog-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.nop-blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nop-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nop-blog-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.nop-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.nop-blog-content {
    padding: 24px;
}

.nop-blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: #a0aec0;
    margin-bottom: 12px;
}

.nop-blog-title {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.nop-blog-title a {
    color: inherit;
    text-decoration: none;
}

.nop-blog-excerpt {
    color: #718096;
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.nop-blog-readmore {
    font-weight: 600;
    color: #d69e2e;
    text-decoration: none;
}

.nop-blog-readmore:hover {
    color: #b7791f;
}

/* Filters */
.nop-filters {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

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

.nop-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nop-filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
}

.nop-filter-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nop-filter-select:focus {
    outline: none;
    border-color: #1a365d;
}

/* Responsive */
@media (max-width: 1024px) {
    .nop-hero-headline {
        font-size: 2.5rem;
    }
    
    .nop-hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .nop-area-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nop-blog-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nop-hero-headline {
        font-size: 2rem;
    }
    
    .nop-hero-buttons {
        flex-direction: column;
    }
    
    .nop-property-grid {
        grid-template-columns: 1fr;
    }
    
    .nop-form-row {
        grid-template-columns: 1fr;
    }
    
    .nop-area-grid-2,
    .nop-area-grid-3,
    .nop-area-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .nop-blog-grid-2,
    .nop-blog-grid-3,
    .nop-blog-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .nop-lead-form-horizontal {
        flex-direction: column;
    }
    
    .nop-calculator {
        padding: 24px;
    }
    
    .nop-lead-capture {
        padding: 24px;
    }
    
    .nop-filters-grid {
        grid-template-columns: 1fr;
    }
    
    .nop-card-meta {
        grid-template-columns: 1fr;
    }
}
