/* AuraInfra Properties - frontend styles */
.ai-properties-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 0 60px; }

.ai-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.ai-filter-btn {
    padding: 9px 20px; border-radius: 999px; border: 1px solid #d8d8d8;
    background: #fff; color: #333; font-size: 14px; cursor: pointer;
    transition: all .2s ease;
}
.ai-filter-btn:hover { border-color: #1a1a2e; }
.ai-filter-btn.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

.ai-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
}
.ai-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.ai-card-media { position: relative; display: block; height: 210px; overflow: hidden; background: #eee; }
.ai-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#e8e8e8,#f5f5f5); }

.ai-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(26,26,46,0.9); color: #fff; font-size: 12px;
    padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.ai-badge-static { position: static; display: inline-block; margin-bottom: 10px; }

.ai-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.ai-card-title { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.ai-card-title a { color: #1a1a2e; text-decoration: none; }
.ai-card-title a:hover { text-decoration: underline; }

.ai-card-location { color: #777; font-size: 13.5px; margin-bottom: 8px; }
.ai-card-meta { display: flex; gap: 14px; font-size: 13px; color: #555; margin-bottom: 10px; }
.ai-card-teaser { font-size: 14px; color: #555; line-height: 1.5; margin: 0 0 16px; flex: 1; }

.ai-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.ai-price { font-weight: 700; color: #1a1a2e; font-size: 16px; }
.ai-learn-more { font-size: 14px; font-weight: 600; color: #b8860b; text-decoration: none; white-space: nowrap; }
.ai-learn-more:hover { text-decoration: underline; }

.ai-contact-btn {
    background: #b8860b; color: #fff; border: none; padding: 9px 16px;
    border-radius: 8px; font-size: 13.5px; cursor: pointer; font-weight: 600;
}
.ai-contact-btn:hover { background: #9c6f08; }

.ai-loading, .ai-end-message, .ai-no-results { text-align: center; color: #888; padding: 24px 0; }

/* Single property page */
.ai-single-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.ai-single-hero { border-radius: 14px; overflow: hidden; margin-bottom: 30px; max-height: 480px; }
.ai-single-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ai-single-content { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 780px) { .ai-single-content { grid-template-columns: 1fr; } }

.ai-single-title { font-size: 30px; margin: 0 0 10px; color: #1a1a2e; }
.ai-single-location { color: #777; margin-bottom: 20px; }
.ai-single-meta { display: flex; gap: 30px; margin-bottom: 24px; flex-wrap: wrap; }
.ai-single-meta div { display: flex; flex-direction: column; font-size: 14px; }
.ai-single-meta strong { color: #999; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.ai-single-description { line-height: 1.7; color: #333; margin-bottom: 30px; }

.ai-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ai-gallery-img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }

.ai-sidebar-card {
    background: #f9f8f5; border-radius: 12px; padding: 26px; position: sticky; top: 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.ai-sidebar-price { font-size: 22px; font-weight: 700; color: #1a1a2e; }
.ai-brochure-btn, .ai-contact-btn-full {
    display: block; text-align: center; padding: 12px 16px; border-radius: 8px;
    font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; border: none;
}
.ai-brochure-btn { background: #1a1a2e; color: #fff; }
.ai-brochure-btn:hover { background: #2a2a45; color:#fff; }
.ai-contact-btn-full { background: #b8860b; color: #fff; }
.ai-contact-btn-full:hover { background: #9c6f08; }
.ai-back-link { font-size: 13.5px; color: #777; text-decoration: none; margin-top: 6px; }
.ai-back-link:hover { text-decoration: underline; }

/* Modal */
.ai-modal-overlay {
    position: fixed; inset: 0; background: rgba(20,20,30,0.55);
    display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 20px;
}
.ai-modal {
    background: #fff; border-radius: 12px; padding: 32px; width: 100%; max-width: 420px;
    position: relative; max-height: 90vh; overflow-y: auto;
}
.ai-modal h3 { margin: 0 0 6px; color: #1a1a2e; }
.ai-modal-sub { color: #777; font-size: 14px; margin: 0 0 18px; }
.ai-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #999; }
.ai-modal-close:hover { color: #333; }

.ai-form-row { margin-bottom: 14px; }
.ai-form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; color: #333; }
.ai-form-row input, .ai-form-row textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 7px; font-size: 14px; box-sizing: border-box;
}
.ai-honeypot { position: absolute !important; left: -9999px !important; top: -9999px !important; }

.ai-form-submit {
    width: 100%; background: #b8860b; color: #fff; border: none; padding: 12px;
    border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; margin-top: 4px;
}
.ai-form-submit:hover { background: #9c6f08; }
.ai-form-submit:disabled { opacity: .6; cursor: not-allowed; }
.ai-form-status { margin-top: 12px; font-size: 14px; text-align: center; }
.ai-form-status.success { color: #1a7a3c; }
.ai-form-status.error { color: #b3261e; }
