/* ═══════════════════════════════════════════════════════
   Property Hub — TOASTERUI Glass Morphism Styles
   ═══════════════════════════════════════════════════════ */

/* ── Hero ── */
.ph-hero {
    position: relative;
    padding: 60px 20px 48px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-color) 0%, rgba(0,0,0,0.6) 100%);
    border-radius: 0 0 32px 32px;
    margin-bottom: 32px;
    overflow: hidden;
}
.ph-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.ph-hero-logo {
    max-height: 80px;
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.ph-hero h1 {
    font-size: 36px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: #ffffff;
    margin: 0 0 8px;
}
.ph-hero h1 i {
    color: #fff;
    margin-right: 8px;
}
.ph-hero-org {
    font-size: 16px;
    font-family: 'Gilroy-Light', sans-serif;
    color: rgba(255,255,255,0.8);
    margin: 0 0 24px;
}

/* ── Chat Bubbles ── */
.ph-chat-bubbles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 0;
}
.ph-bubble {
    max-width: 80%;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
    font-family: 'Gilroy-Light', sans-serif;
}
.ph-bubble-user {
    align-self: flex-end;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}
.ph-bubble-assistant {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border-bottom-left-radius: 4px;
}

/* ── Search Input ── */
.ph-search-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}
.ph-search-input {
    width: 100%;
    padding: 16px 56px 16px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Gilroy-Light', sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ph-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}
.ph-search-input:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.14);
}
.ph-search-input:disabled {
    opacity: 0.5;
}
.ph-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--brand-color, #22c55e);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}
.ph-search-btn:hover { opacity: 0.85; }
.ph-search-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── AI Reply ── */
.ph-ai-reply {
    max-width: 700px;
    margin: 0 auto 24px;
    padding: 0 20px;
}
.ph-ai-reply-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-family: 'Gilroy-Light', sans-serif;
    line-height: 1.5;
}
.ph-ai-reply-inner i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Dynamic Zone ── */
.ph-dynamic-zone {
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

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

/* ── Property Card ── */
.ph-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.ph-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.ph-card-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}
.ph-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ph-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 32px;
}
.ph-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ph-badge-sale { background: #22c55e; }
.ph-badge-let { background: #3b82f6; }
.ph-card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: #ffffff;
    background: #f59e0b;
}
.ph-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ph-card-address {
    font-size: 15px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.3;
}
.ph-card-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-family: 'Gilroy-Light', sans-serif;
    margin: 0 0 8px;
    flex: 1;
}
.ph-card-price {
    font-size: 18px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: var(--brand-color, #22c55e);
    margin: 0;
}

/* ── No Results ── */
.ph-no-results {
    text-align: center;
    padding: 48px 20px;
    color: rgba(255,255,255,0.5);
}
.ph-no-results i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.ph-no-results p {
    font-family: 'Gilroy-Light', sans-serif;
    font-size: 15px;
    margin: 0;
}

/* ── Save Search ── */
.ph-save-search {
    text-align: center;
    margin-top: 8px;
}
.ph-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ph-save-btn:hover { background: rgba(255,255,255,0.12); }
.ph-save-form {
    max-width: 400px;
    margin: 16px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ph-save-form-title {
    font-size: 14px;
    font-family: 'Gilroy-Light', sans-serif;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.ph-save-submit {
    padding: 12px 24px;
    background: var(--brand-color, #22c55e);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.ph-save-submit:hover { opacity: 0.9; }
.ph-save-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.ph-save-success {
    padding: 16px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 12px;
    color: #22c55e;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    font-size: 15px;
}
.ph-save-error {
    padding: 12px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 12px;
    color: #ef4444;
    font-size: 13px;
}

/* ── Form Input (shared) ── */
.ph-form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Gilroy-Light', sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.ph-form-input::placeholder { color: rgba(255,255,255,0.4); }
.ph-form-input:focus { border-color: rgba(255,255,255,0.3); }
.ph-input-half { max-width: 200px; }

/* ── Seller Form ── */
.ph-seller-form {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 28px;
}
.ph-seller-title {
    font-size: 22px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: #ffffff;
    margin: 0 0 6px;
}
.ph-seller-title i { color: var(--brand-color, #22c55e); margin-right: 8px; }
.ph-seller-subtitle {
    font-size: 14px;
    font-family: 'Gilroy-Light', sans-serif;
    color: rgba(255,255,255,0.6);
    margin: 0 0 20px;
}
.ph-seller-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ph-seller-submit {
    padding: 14px 32px;
    background: var(--brand-color, #22c55e);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}
.ph-seller-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.ph-seller-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ph-seller-success {
    padding: 16px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 12px;
    color: #22c55e;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    font-size: 15px;
    text-align: center;
}
.ph-seller-error {
    padding: 12px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 12px;
    color: #ef4444;
    font-size: 13px;
}

/* ── Pill Buttons ── */
.ph-pill-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ph-pill-label {
    font-size: 13px;
    font-family: 'Gilroy-Light', sans-serif;
    color: rgba(255,255,255,0.6);
}
.ph-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ph-pill {
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ph-pill:hover { background: rgba(255,255,255,0.1); }
.ph-pill.active {
    background: var(--brand-color, #22c55e);
    border-color: var(--brand-color, #22c55e);
    color: #ffffff;
}

/* ── Agent Card ── */
.ph-agent-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.ph-agent-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ph-agent-logo {
    max-width: 140px;
    max-height: 80px;
    border-radius: 8px;
}
.ph-google-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.ph-google-badge:hover { background: rgba(255,255,255,0.1); }
.ph-google-rating {
    font-size: 22px;
    font-weight: bold;
    color: #fbbf24;
}
.ph-google-star {
    font-size: 18px;
    color: #fbbf24;
}
.ph-google-count {
    font-size: 12px;
    color: #ffffff;
    font-family: 'Gilroy-ExtraBold', sans-serif;
}
.ph-google-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ph-agent-right { flex: 1; }
.ph-agent-name {
    font-size: 22px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: #ffffff;
    margin: 0 0 4px;
}
.ph-agent-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-family: 'Gilroy-Light', sans-serif;
    margin: 0 0 16px;
}
.ph-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-family: 'Gilroy-Light', sans-serif;
}
.ph-contact-row i {
    color: var(--brand-color, #22c55e);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.ph-contact-row a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}
.ph-contact-row a:hover { color: #ffffff; }
.ph-contact-row span { color: rgba(255,255,255,0.7); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .ph-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ph-hero { padding: 40px 16px 32px; }
    .ph-hero h1 { font-size: 26px; }
    .ph-grid { grid-template-columns: 1fr; }
    .ph-agent-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ph-contact-row { justify-content: center; }
    .ph-input-half { max-width: 100%; }
    .ph-seller-form { padding: 20px 16px; }
    .ph-seller-submit { align-self: stretch; }
}
