/* --- Modern Premium Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0B132B; /* Premium Deep Midnight Blue */
    color: #F4F6F8;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Google Compliance Bar --- */
.google-compliance-bar {
    width: 100%;
    background-color: #111A36;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #A5B4FC;
    flex-shrink: 0;
    z-index: 101;
}

.google-compliance-bar .compliance-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.broker-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.headshot-mini {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.remax-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.remax-logo {
    height: 22px;
    width: auto;
    vertical-align: middle;
}

.google-compliance-bar strong {
    color: #FFFFFF;
    font-weight: 700;
}

.google-compliance-bar .divider {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

.phone-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.google-compliance-bar .phone-link {
    color: #4EA8DE;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.google-compliance-bar .phone-link:hover {
    color: #90E0EF;
    text-decoration: underline;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.email-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* --- Premium Navigation Header User Bar --- */
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: #111A36;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    flex-shrink: 0;
    z-index: 100;
}

/* 2-Column Desktop Grid Layout */
.portal-container {
    display: grid;
    grid-template-columns: 1.41fr 1fr;
    gap: 40px;
    width: 100%;
    flex: 1;
    height: calc(100vh - 110px);
    padding: 30px 40px;
    align-items: start;
}

/* --- Left Column: Content Flow --- */
.content-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

.content-column::-webkit-scrollbar {
    width: 6px;
}
.content-column::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.header-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.headshot-profile {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.header-block h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 5px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #90E0EF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-block .subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4EA8DE;
    margin: 0;
    font-weight: 600;
}

.header-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #A5B4FC;
    margin: 0;
}

.hero-cta-group {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-main, .hero-btn-sub {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.hero-btn-sub {
    text-decoration: none;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #1C2541;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.video-wrapper #youtube-player,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.feature-card.clickable-card {
    cursor: pointer;
    border-color: rgba(78, 168, 222, 0.3);
    background: rgba(78, 168, 222, 0.03);
}

.feature-card.clickable-card:hover {
    border-color: #4EA8DE;
    background: rgba(78, 168, 222, 0.08);
    transform: translateY(-2px);
}

.feature-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: #4EA8DE;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.5;
}

/* --- Social Follow & Subscription Bar --- */
.social-follow-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.social-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #A5B4FC;
}

.social-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.yt-btn {
    background-color: #FF0000;
}
.yt-btn:hover {
    background-color: #CC0000;
    transform: translateY(-1px);
}

.ig-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.ig-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.fb-btn {
    background-color: #1877F2;
}
.fb-btn:hover {
    background-color: #0C63D4;
    transform: translateY(-1px);
}

/* --- Right Column: Chatbot Layout Structure --- */
.chatbot-column {
    width: 100%;
    height: 100%;
}

.chatbot-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1C2541;
    border-radius: 24px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.chat-header {
    background: #111A36;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #FFFFFF;
}

.chat-header p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #4EA8DE;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* Message Wrapper Row Styles */
.message-row {
    display: flex;
    width: 100%;
    align-items: flex-end;
}

.message-row.bot-row {
    justify-content: flex-start;
}

.message-row.user-row {
    justify-content: flex-end;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4EA8DE;
    margin-right: 8px;
    flex-shrink: 0;
    background-image: url('../images/alice_profile.jpeg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.bot {
    background: rgba(255, 255, 255, 0.05);
    color: #F4F6F8;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.bot p {
    margin: 0 0 8px 0;
}
.message.bot p:last-child {
    margin-bottom: 0;
}

.message.bot a {
    color: #4EA8DE;
    font-weight: 600;
    text-decoration: underline;
    word-break: break-word;
    transition: color 0.2s ease;
}

.message.bot a:hover {
    color: #90E0EF;
}

.message.user {
    background: #0076D6;
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.typing-row {
    display: none;
    align-items: flex-end;
    width: 100%;
}

.typing-indicator {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #4EA8DE;
    border-radius: 50%;
    animation: bounce 1.3s infinite both;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-footer {
    padding: 16px;
    background: #111A36;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    background: #0B132B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    color: #FFFFFF;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #4EA8DE;
}

.send-btn {
    background: #0076D6;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.send-btn:hover {
    background: #005FA3;
}

/* --- Featured Listings Section Styles --- */
.listings-section {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.listings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.listings-header p {
    margin: 4px 0 0;
    color: #A5B4FC;
    font-size: 0.9rem;
}

.schedule-tour-link {
    color: #38BDF8;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95rem;
}

.listings-container {
    overflow-x: auto;
    background: #1C2541;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.listings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    color: #FFFFFF;
}

.listings-table th {
    background-color: #0F172A;
    border-bottom: 2px solid rgba(250, 204, 21, 0.3);
    padding: 14px 20px;
    color: #FACC15;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
}

.listings-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
    color: #7DD3FC;
}

.listings-table tr:last-child td {
    border-bottom: none;
}

.listings-table td strong {
    color: #FFFFFF;
    font-size: 1.05rem;
}

.listings-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.04);
}

.property-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.property-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    background: #eee;
}

.text-right {
    text-align: right;
}

/* Button Variants */
.btn-view-home {
    background-color: #2563EB;
    color: #FFFFFF !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-view-home:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.btn-get-value {
    background-color: #059669;
}

.btn-get-value:hover {
    background-color: #047857;
}

/* Status Badges */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    background-color: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid #10B981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.badge-status.just-listed {
    background-color: rgba(14, 165, 233, 0.2);
    color: #38BDF8;
    border: 1px solid #0EA5E9;
}

.badge-status.just-sold {
    background-color: rgba(225, 29, 72, 0.2);
    color: #FB7185;
    border: 1px solid #E11D48;
}

.badge-status.pending {
    background-color: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    border: 1px solid #F59E0B;
}

.badge-status.sold {
    background-color: rgba(148, 163, 184, 0.15);
    color: #94A3B8;
    border: 1px solid #64748B;
}

/* --- Testimonials & Zillow Review Section --- */
.testimonials-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.testimonials-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #FFFFFF;
}

.testimonials-header p {
    margin: 4px 0 0;
    color: #A5B4FC;
    font-size: 0.88rem;
}

.zillow-review-link {
    color: #38BDF8;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.zillow-review-link:hover {
    color: #90E0EF;
    text-decoration: underline;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: #1C2541;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.star-rating {
    color: #FACC15;
    margin-bottom: 8px;
}

.testimonial-card p {
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.reviewer-name {
    font-size: 0.85rem;
    color: #7DD3FC;
}

/* --- Legal Footer --- */
.legal-footer {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 20px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #888888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.legal-footer a {
    color: #4EA8DE;
    text-decoration: none;
}

.footer-contacts {
    margin-top: 8px;
}

.footer-disclaimer {
    margin-top: 10px;
}

/* --- Mobile Responsiveness Adjustments --- */
@media (max-width: 968px) {
    html, body {
        height: auto;
    }
    .user-bar {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .portal-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 16px;
        height: auto;
    }
    .content-column {
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .chatbot-column {
        position: static;
        width: 100%;
        height: 520px;
    }
    .listings-section, .testimonials-section {
        padding: 0 16px;
        margin: 20px auto;
    }
}

@media (max-width: 600px) {
    .google-compliance-bar {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
    
    .google-compliance-bar .compliance-content {
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .phone-info, .location-info {
        width: 100%;
        justify-content: center;
    }

    .header-block {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 12px;
    }

    .headshot-profile {
        width: 90px;
        height: 90px;
    }

    .header-block h1 {
        font-size: 1.8rem;
    }

    .hero-cta-group {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .hero-btn-main, .hero-btn-sub {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .social-follow-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .social-buttons {
        width: 100%;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .listings-header, .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .listings-table th, .listings-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .property-thumb {
        width: 48px;
        height: 48px;
    }

    .btn-view-home {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}