/* ==========================================================================
   Hazeways Property Alerts — Styles
   Colors: Blue #1F3E7E, Gold #CCB259, Gold-bg #E7DEC2
   Font: Oswald (inherited from theme)
   ========================================================================== */

/* Search Form */
.hpa-search-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hpa-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.hpa-form-col {
    flex: 1;
    min-width: 150px;
}
.hpa-col-wide {
    flex: 2;
    min-width: 250px;
}
.hpa-select,
.hpa-input,
#hpa-app input[type="text"].hpa-input,
#hpa-app input[type="email"].hpa-input {
    width: 100% !important;
    height: 42px !important;
    padding: 10px 12px !important;
    border: 2px solid #CFB05E !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-family: inherit;
    background: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    appearance: auto;
    line-height: 1.4;
}
.hpa-select:focus,
.hpa-input:focus,
#hpa-app input[type="text"].hpa-input:focus,
#hpa-app input[type="email"].hpa-input:focus {
    outline: none;
    border-color: #1F3E7E !important;
    box-shadow: 0 0 0 2px rgba(31, 62, 126, 0.15) !important;
}
.hpa-form-buttons {
    display: flex;
    gap: 5px;
    min-width: 200px;
}
.hpa-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.hpa-btn-search {
    background: #1F3E7E;
    color: #fff;
    flex: 1;
}
.hpa-btn-search:hover {
    background: #CCB259;
    color: #1F3E7E;
}
.hpa-btn-clear {
    background: #f0f0f1;
    color: #666;
    flex: 1;
}
.hpa-btn-clear:hover {
    background: #ddd;
}

/* Results Bar */
.hpa-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}
.hpa-results-count {
    font-family: 'Oswald', sans-serif;
    color: #1F3E7E;
    font-size: 16px;
}
.hpa-select-small {
    width: auto;
    min-width: 160px;
}

/* Property Grid */
.hpa-property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Property Card */
.hpa-property-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hpa-property-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.hpa-property-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.hpa-property-photo {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
}
.hpa-property-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hpa-exclusive-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #CCB259;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 3px;
    z-index: 2;
}
.hpa-property-details {
    padding: 15px;
}
.hpa-location {
    font-family: 'Oswald', sans-serif;
    color: #CCB259;
    margin: 0 0 5px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hpa-type {
    font-family: 'Oswald', sans-serif;
    color: #1F3E7E;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
}
.hpa-price {
    color: #CCB259;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
.hpa-property-specs {
    display: flex;
    gap: 15px;
    padding: 10px 15px 15px;
    font-family: 'Oswald', sans-serif;
    color: #1F3E7E;
    font-size: 13px;
}

/* Loading */
.hpa-loading {
    text-align: center;
    padding: 40px;
}
.hpa-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #E7DEC2;
    border-radius: 50%;
    border-top-color: #1F3E7E;
    animation: hpa-spin 0.8s linear infinite;
}
@keyframes hpa-spin {
    to { transform: rotate(360deg); }
}

/* No results */
.hpa-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Pagination */
.hpa-pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}
.hpa-page-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
}
.hpa-page-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #CCB259;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.hpa-page-btn:hover,
.hpa-page-btn.active {
    background: #1F3E7E;
    color: #fff;
}

/* Subscribe Panel */
.hpa-subscribe-panel {
    background: linear-gradient(135deg, #1F3E7E 0%, #2a5298 100%);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    color: #fff;
}
.hpa-subscribe-inner h3 {
    margin: 0 0 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    color: #CCB259;
}
.hpa-subscribe-inner p {
    margin: 0 0 20px;
    font-size: 14px;
    opacity: 0.9;
}
.hpa-subscribe-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.hpa-subscribe-fields .hpa-input,
#hpa-app .hpa-subscribe-fields input[type="text"].hpa-input,
#hpa-app .hpa-subscribe-fields input[type="email"].hpa-input {
    flex: 1;
    min-width: 200px;
    border-color: rgba(255,255,255,0.3) !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}
.hpa-subscribe-fields .hpa-input::placeholder {
    color: rgba(255,255,255,0.6);
}
.hpa-subscribe-fields .hpa-input:focus,
#hpa-app .hpa-subscribe-fields input[type="text"].hpa-input:focus,
#hpa-app .hpa-subscribe-fields input[type="email"].hpa-input:focus {
    border-color: #CCB259 !important;
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
.hpa-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 15px;
    opacity: 0.9;
}
.hpa-gdpr-label a {
    color: #CCB259;
    text-decoration: underline;
}
.hpa-gdpr-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.hpa-btn-subscribe {
    background: #CCB259;
    color: #1F3E7E;
    font-weight: bold;
    padding: 12px 30px;
    font-size: 15px;
}
.hpa-btn-subscribe:hover {
    background: #E7DEC2;
}
.hpa-msg-success {
    background: rgba(70, 180, 80, 0.2);
    border: 1px solid rgba(70, 180, 80, 0.4);
    padding: 12px 18px;
    border-radius: 4px;
    color: #fff;
}
.hpa-msg-error {
    background: rgba(220, 50, 50, 0.2);
    border: 1px solid rgba(220, 50, 50, 0.4);
    padding: 12px 18px;
    border-radius: 4px;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .hpa-property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hpa-property-grid {
        grid-template-columns: 1fr;
    }
    .hpa-form-row {
        flex-direction: column;
    }
    .hpa-form-col,
    .hpa-col-wide {
        min-width: 100%;
    }
    .hpa-subscribe-fields {
        flex-direction: column;
    }
    .hpa-results-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
