/* IDX Search Bar Widget Styles */
.idx-search-section {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.idx-search-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="500" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.idx-search-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
}

.idx-search-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.idx-search-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.idx-search-widget {
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.idx-search-container {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.idx-search-container:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

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

.idx-search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.idx-search-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.idx-search-field input,
.idx-search-field select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #000000;
    transition: all 0.3s ease;
    outline: none;
}

.idx-search-field input::placeholder {
    color: #666666;
}

.idx-search-field input:focus,
.idx-search-field select:focus {
    background: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.idx-search-btn {
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    color: #ffffff;
    width: 100%;
}

.idx-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    opacity: 0.9;
}

.idx-search-btn:active {
    transform: translateY(0);
}

/* IDX Property Grid Widget Styles */
.idx-property-section {
    padding: 2rem 0;
}

.idx-section-header {
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease-out;
}

.idx-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.idx-section-subtitle {
    font-size: 1.125rem;
    color: #666666;
}

.idx-properties-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.idx-grid-columns-1 {
    grid-template-columns: 1fr;
}

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

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

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

.idx-property-card {
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out backwards;
}

.idx-property-card:nth-child(1) { animation-delay: 0.1s; }
.idx-property-card:nth-child(2) { animation-delay: 0.2s; }
.idx-property-card:nth-child(3) { animation-delay: 0.3s; }
.idx-property-card:nth-child(4) { animation-delay: 0.4s; }
.idx-property-card:nth-child(5) { animation-delay: 0.5s; }
.idx-property-card:nth-child(6) { animation-delay: 0.6s; }

.idx-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.idx-property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
}

.idx-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.idx-property-card:hover .idx-property-image img {
    transform: scale(1.08);
}

.idx-property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.idx-property-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.idx-property-content {
    padding: 1.5rem;
}

.idx-property-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.idx-property-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.idx-property-location {
    font-size: 0.9375rem;
    color: #666666;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.idx-property-location::before {
    content: "📍";
    font-size: 1rem;
}

.idx-property-details {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.idx-property-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.idx-property-detail-label {
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.idx-property-detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@media (max-width: 768px) {
    .idx-search-title {
        font-size: 2.5rem;
    }

    .idx-search-subtitle {
        font-size: 1rem;
    }

    .idx-search-form {
        grid-template-columns: 1fr;
    }

    .idx-grid-columns-2,
    .idx-grid-columns-3,
    .idx-grid-columns-4 {
        grid-template-columns: 1fr;
    }

    .idx-section-title {
        font-size: 2rem;
    }
}
