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

/* ── Hero ── */
.ph-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-color) 0%, rgba(0,0,0,0.6) 100%);
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}
.ph-hero-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 40px 32px;
}
.ph-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.ph-hero-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ph-askada-logo {
    height: 160px;
    margin-bottom: 4px;
    opacity: 0.7;
}
.ph-askada-label {
    font-size: 24px;
    font-family: 'Gilroy-Light', sans-serif;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.ph-hero-right {
    position: absolute;
    right: 32px;
    top: 32px;
    bottom: 80px;
    width: 25%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ph-hero-chat-link {
    text-align: center;
    padding: 8px 0 0;
    flex-shrink: 0;
}
.ph-hero-chat-link a {
    font-size: 12px;
    font-family: 'Gilroy-Light', sans-serif;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}
.ph-hero-chat-link a:hover {
    color: rgba(255,255,255,0.8);
}
.ph-hero.ph-hero-has-bg {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.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.ph-hero-has-bg::before {
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 100%);
}

/* ── Chat Bubbles ── */
.ph-chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
}
.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;
    width: 100%;
    max-width: 540px;
}
.ph-search-input {
    width: 100%;
    padding: 18px 56px 18px 24px;
    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: 999px;
    color: #ffffff;
    font-size: 18px;
    font-family: 'Gilroy-Light', sans-serif;
    text-align: center;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ph-search-input::placeholder {
    color: #ffffff;
    font-family: 'Gilroy-Light', sans-serif;
    font-size: 24px;
}
.ph-search-input:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.14);
}
.ph-search-input:focus::placeholder {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ph-search-input:disabled {
    opacity: 0.5;
}
.ph-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    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; }

/* ── Prompt Bar ── */
.ph-prompt-bar {
    text-align: center;
    padding: 48px 20px;
    margin-bottom: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.ph-prompt-bar p {
    font-size: 28px;
    font-family: 'Gilroy-Light', sans-serif;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.6;
    min-height: 1.6em;
}
.ph-prompt-bar p strong {
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: rgba(255,255,255,0.9);
}
.ph-prompt-bar .ph-simply {
    font-family: 'Gilroy-Light', sans-serif;
    color: rgba(255,255,255,0.7);
}
/* ── Loading Dots ── */
.ph-loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}
.ph-loading-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: ph-bounce 1.4s infinite ease-in-out both;
}
.ph-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.ph-loading-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes ph-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.ph-prompt-bar .ph-typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--brand-color, #22c55e);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: ph-blink 0.7s step-end infinite;
}
@keyframes ph-blink {
    50% { opacity: 0; }
}

/* ── AI Reply ── */
.ph-ai-reply-hero {
    margin-top: 12px;
}
.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: 100%;
    margin: 0 auto;
}

/* ── Listings Title Pill ── */
.ph-listings-title-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
}
.ph-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.ph-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 10px 28px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 20px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    color: rgba(255,255,255,0.85);
}
.ph-filter-pill.ph-filter-label {
    font-size: 20px;
    padding: 10px 28px;
}
.ph-filter-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.ph-filter-remove:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}
.ph-pill-icons {
    position: absolute;
    right: 0;
    display: flex;
    gap: 8px;
}
.ph-pill-link {
    text-decoration: none;
    transition: transform 0.2s ease;
}
.ph-pill-link:hover {
    transform: translateY(-2px);
}
.ph-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.ph-pill-link:hover .ph-pill-icon {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}
/* .ph-listings-pill replaced by .ph-filter-pill system */

/* ── Carousel Cards ── */
.carousel-card .ph-card {
    height: 100%;
}

/* ── Property Grid ── */
.ph-grid {
    display: grid;
    grid-template-columns: repeat(4, 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;
}

/* ── Action Buttons ── */
.ph-action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 20px 8px;
    max-width: 800px;
    margin: 0 auto;
}
.ph-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Gilroy-ExtraBold', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ph-action-btn i {
    font-size: 18px;
    color: var(--brand-color, #22c55e);
}
.ph-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.12);
}

/* ── Agent Card ── */
.ph-agent-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--logo-color, #131139);
    padding: 48px 36px 16px;
    color: var(--header-title-color, #ffffff);
}
.ph-agent-top {
    display: grid;
    grid-template-columns: 22% 28% 28% 22%;
    align-items: center;
    gap: 0;
}
.ph-agent-col {
    display: flex;
    flex-direction: column;
}
.ph-agent-col-details {
    align-items: flex-end;
}
.ph-agent-top > .ph-agent-cta-btn {
    width: calc(100% - 16px);
    box-sizing: border-box;
    margin: 0 8px;
}
.ph-agent-logo {
    max-width: 200px;
    max-height: 100px;
    border-radius: 8px;
}
.ph-agent-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
    padding-top: 4px;
}
.ph-agent-bottom-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: 'Gilroy-Light', sans-serif;
    color: var(--header-title-color, #ffffff);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.ph-agent-bottom-item:hover {
    opacity: 1;
}
.ph-agent-bottom-item i {
    font-size: 13px;
    opacity: 0.8;
}
.ph-agent-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--brand-color, #22c55e);
    border: none;
    border-radius: 999px;
    font-size: 20px;
    font-family: 'Gilroy-Light', sans-serif;
    color: var(--text-on-brand, #ffffff);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.ph-agent-cta-btn i {
    color: var(--logo-color, #131139);
    font-size: 36px;
}
.ph-agent-cta-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
/* ── Bottom Footer ── */
.mkt-footer {
    text-align: center;
    padding: 16px 20px;
    background: var(--page-bg, #101035);
    font-size: 13px;
    font-family: 'Gilroy-Light', sans-serif;
    color: rgba(255,255,255,0.4);
}
.mkt-footer-bold {
    font-family: 'Gilroy-ExtraBold', sans-serif;
}
.mkt-footer-brand {
    color: rgba(255,255,255,0.6);
}

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

@media (max-width: 800px) {
    .ph-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ph-hero { min-height: auto; }
    .ph-hero-layout { padding: 32px 16px; }
    .ph-hero-right {
        position: static;
        width: 100%;
        max-height: 160px;
        margin-top: 16px;
    }
    .ph-grid { grid-template-columns: 1fr; }
    .ph-action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 20px 16px 4px;
    }
    .ph-action-btn { justify-content: center; }
    .ph-agent-card {
        padding: 28px 20px;
        gap: 24px;
    }
    .ph-agent-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ph-agent-col {
        align-items: center;
    }
    .ph-agent-bottom {
        flex-direction: column;
        gap: 6px;
    }
    .ph-agent-cta-btn {
        font-size: 18px;
        padding: 16px 28px;
    }
    .ph-input-half { max-width: 100%; }
    .ph-seller-form { padding: 20px 16px; }
    .ph-seller-submit { align-self: stretch; }
}
