/* ==========================================================================
   AhentePro Front-End Styles: Authority Funnel, Listings Archive & Single Property
   Theme: Hello Elementor
   ========================================================================== */

:root {
    --ap-primary: #003865;
    --ap-primary-dark: #002847;
    --ap-primary-light: #0284c7;
    --ap-accent: #d4af37;
    --ap-accent-dark: #b89325;
    --ap-accent-soft: #fdf8e2;
    --ap-available: #0d8a56;
    --ap-reserved: #d97706;
    --ap-sold: #dc2626;
    --ap-dark: #0f172a;
    --ap-slate: #334155;
    --ap-muted: #64748b;
    --ap-light: #f8fafc;
    --ap-border: #e2e8f0;
    --ap-radius: 10px;
    --ap-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --ap-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --ap-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* ==========================================================================
   1. Authority Hero Section & Trust Bar
   ========================================================================== */
.ap-hero-wrapper {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ap-border);
    padding-top: 3.5rem;
}

.ap-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 868px) {
    .ap-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2.5rem;
    }
}

.ap-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.ap-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ap-dark);
    margin: 0 0 1.25rem;
}

@media (max-width: 640px) {
    .ap-hero-title {
        font-size: 1.85rem;
    }
}

.ap-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ap-slate);
    margin: 0 0 2rem;
}

.ap-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.65rem;
    border-radius: var(--ap-radius);
    font-size: 0.975rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.ap-btn-primary {
    background: var(--ap-primary);
    color: #ffffff !important;
}
.ap-btn-primary:hover {
    background: var(--ap-primary-dark);
    transform: translateY(-1px);
}

.ap-btn-outline {
    background: #ffffff;
    color: var(--ap-primary) !important;
    border: 2px solid var(--ap-primary);
}
.ap-btn-outline:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
}

.ap-btn-tel {
    background: #16a34a;
    color: #ffffff !important;
}
.ap-btn-tel:hover {
    background: #15803d;
}

.ap-btn-full {
    width: 100%;
    box-sizing: border-box;
}

/* Agent Portrait & Floating Card */
.ap-agent-card-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.ap-agent-portrait {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--ap-shadow-lg);
    display: block;
}

.ap-agent-portrait-placeholder {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ap-shadow-lg);
}

.ap-avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
}

.ap-avatar-badge {
    margin-top: 1rem;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
}

.ap-floating-credential-card {
    position: absolute;
    bottom: -1.25rem;
    left: 1rem;
    right: 1rem;
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ap-floating-credential-card strong {
    font-size: 1.1rem;
    color: var(--ap-dark);
}

.ap-floating-credential-card .ap-cred-numbers {
    font-size: 0.85rem;
    color: var(--ap-muted);
}

.ap-floating-credential-card .ap-cred-realty {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ap-primary);
}

/* Trust Bar */
.ap-trust-bar {
    background: #ffffff;
    border-top: 1px solid var(--ap-border);
    padding: 1.75rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ap-trust-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ap-border);
}

.ap-trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ap-trust-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ap-muted);
}

.ap-trust-item strong {
    font-size: 1.05rem;
    color: var(--ap-dark);
}

.ap-developer-strip {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.ap-dev-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ap-slate);
}

.ap-dev-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ap-dev-badge {
    background: var(--ap-light);
    border: 1px solid var(--ap-border);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--ap-slate);
}

/* ==========================================================================
   2. Client Turnover Social Proof Gallery
   ========================================================================== */
.ap-section {
    padding: 4.5rem 0;
}

.ap-turnover-section {
    background: #f8fafc;
    border-bottom: 1px solid var(--ap-border);
}

.ap-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.ap-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ap-primary-light);
    margin-bottom: 0.5rem;
}

.ap-section-header h2 {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--ap-dark);
    margin: 0 0 1rem;
    line-height: 1.25;
}

.ap-section-header p {
    font-size: 1.05rem;
    color: var(--ap-slate);
    line-height: 1.6;
    margin: 0;
}

.ap-turnover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.ap-turnover-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.ap-turnover-media {
    position: relative;
    height: 220px;
    background: #e2e8f0;
}

.ap-turnover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-turnover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
}

.ap-turnover-icon {
    font-size: 3rem;
}

.ap-turnover-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.ap-turnover-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ap-turnover-card figcaption {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ap-turnover-card figcaption strong {
    font-size: 1.1rem;
    color: var(--ap-dark);
}

.ap-turnover-card figcaption span {
    font-size: 0.925rem;
    color: var(--ap-slate);
    line-height: 1.5;
}

/* ==========================================================================
   3. 5-Step Philippine Home Buying Guide
   ========================================================================== */
.ap-buying-guide {
    background: #ffffff;
}

.ap-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.ap-step-card {
    background: #f8fafc;
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease;
}

.ap-step-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.ap-step-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--ap-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.ap-step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ap-dark);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.ap-step-card p {
    font-size: 0.9rem;
    color: var(--ap-slate);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   4. Single Property Template (/listings/{slug})
   ========================================================================== */
.ap-single-property-main {
    padding: 2rem 0 4rem;
    background: #f8fafc;
}

.ap-breadcrumb {
    font-size: 0.875rem;
    color: var(--ap-muted);
    margin-bottom: 1.5rem;
}

.ap-breadcrumb a {
    color: var(--ap-primary);
    text-decoration: none;
}

.ap-breadcrumb a:hover {
    text-decoration: underline;
}

.ap-prop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 1.75rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
}

.ap-prop-title-col {
    flex: 1;
    min-width: 300px;
}

.ap-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ap-status-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ap-status-available {
    background: #dcfce7;
    color: var(--ap-available);
}

.ap-status-reserved {
    background: #fef3c7;
    color: var(--ap-reserved);
}

.ap-status-sold {
    background: #fee2e2;
    color: var(--ap-sold);
}

.ap-type-badge {
    background: #e0f2fe;
    color: var(--ap-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ap-code-badge {
    background: #f1f5f9;
    color: var(--ap-slate);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ap-prop-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ap-dark);
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.ap-prop-location-sub {
    font-size: 1rem;
    color: var(--ap-slate);
    margin: 0;
}

.ap-prop-price-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (max-width: 640px) {
    .ap-prop-price-col {
        text-align: left;
    }
}

.ap-price-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ap-muted);
}

.ap-price-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--ap-primary);
    line-height: 1;
}

.ap-res-fee-note {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ap-slate);
}

/* Photo Gallery Carousel */
.ap-media-tabs-section {
    margin-bottom: 2rem;
}

.ap-gallery-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ap-shadow);
    background: #0f172a;
    max-height: 520px;
}

.ap-gallery-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.ap-gallery-placeholder {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
}

.ap-placeholder-graphic {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ap-ph-icon {
    font-size: 3.5rem;
}

.ap-placeholder-graphic strong {
    font-size: 1.35rem;
}

.ap-placeholder-graphic span {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Two-column layout */
.ap-property-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .ap-property-layout-grid {
        grid-template-columns: 1fr;
    }
}

.ap-card {
    background: #ffffff;
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--ap-shadow);
}

.ap-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ap-dark);
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

/* Specs Table */
.ap-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.ap-specs-table th,
.ap-specs-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--ap-border);
    font-size: 0.925rem;
    text-align: left;
}

.ap-specs-table th {
    background: #f8fafc;
    color: var(--ap-slate);
    font-weight: 600;
    width: 25%;
}

.ap-specs-table td {
    color: var(--ap-dark);
}

.ap-status-pill {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ap-text-accent {
    color: var(--ap-primary);
    font-size: 1.05rem;
}

/* Calculator Box */
.ap-calculator-box {
    background: #f8fafc;
    border: 1px solid var(--ap-border);
    border-radius: 10px;
    padding: 1.5rem;
}

.ap-calc-header p {
    font-size: 0.925rem;
    color: var(--ap-slate);
    margin: 0.5rem 0 1.25rem;
}

.ap-calc-results-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--ap-border);
}

.ap-break-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ap-break-row span {
    font-size: 0.785rem;
    color: var(--ap-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.ap-break-row strong {
    font-size: 1.15rem;
    color: var(--ap-dark);
}

/* Map Wrapper */
.ap-map-wrapper .ap-map-sub {
    font-size: 0.925rem;
    color: var(--ap-slate);
    margin: -0.5rem 0 1rem;
}

/* Sidebar Tripping Card */
.ap-sticky-sidebar {
    position: sticky;
    top: 2rem;
}

.ap-tripping-card {
    background: #ffffff;
    border: 2px solid var(--ap-primary);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--ap-shadow-lg);
}

.ap-trip-agent-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ap-border);
    margin-bottom: 1.25rem;
}

.ap-trip-agent-head strong {
    font-size: 1.25rem;
    color: var(--ap-dark);
}

.ap-trip-agent-head span {
    font-size: 0.85rem;
    color: var(--ap-muted);
}

.ap-trip-info p {
    font-size: 0.925rem;
    color: var(--ap-slate);
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

/* ==========================================================================
   5. Listings Archive Template (/listings/)
   ========================================================================== */
.ap-archive-property-main {
    padding: 3rem 0 5rem;
    background: #f8fafc;
}

.ap-archive-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem;
}

.ap-archive-header h1 {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--ap-dark);
    margin: 0.5rem 0 1rem;
    line-height: 1.25;
}

.ap-archive-header p {
    font-size: 1.05rem;
    color: var(--ap-slate);
    line-height: 1.6;
    margin: 0;
}

.ap-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ap-listing-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ap-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ap-shadow-lg);
}

.ap-card-media {
    position: relative;
    height: 230px;
    background: #0f172a;
}

.ap-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.ap-card-ph-icon {
    font-size: 3rem;
}

.ap-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.ap-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ap-card-location {
    font-size: 0.85rem;
    color: var(--ap-muted);
    margin-bottom: 0.5rem;
}

.ap-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.35;
}

.ap-card-title a {
    color: var(--ap-dark);
    text-decoration: none;
}

.ap-card-title a:hover {
    color: var(--ap-primary);
}

.ap-card-price-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ap-border);
}

.ap-card-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ap-muted);
}

.ap-card-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ap-primary);
}

.ap-card-specs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.85rem;
    color: var(--ap-slate);
    margin-bottom: 1.25rem;
}

.ap-card-footer {
    margin-top: auto;
}

.ap-no-listings {
    text-align: center;
    font-size: 1.1rem;
    color: var(--ap-muted);
    padding: 3rem 0;
}

/* ==========================================================================
   6. Milestone 3: Interactive Real Estate Conversion Tools Styles
   ========================================================================== */

/* Filter Form & Dynamic Grid */
.ap-filter-wrapper {
    margin-bottom: 3rem;
}

.ap-filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.ap-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ap-filter-group label {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--ap-slate);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ap-filter-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--ap-border);
    background: #f8fafc;
    font-size: 0.925rem;
    color: var(--ap-dark);
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ap-filter-group select:focus {
    outline: none;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px rgba(0, 56, 101, 0.12);
}

.ap-filter-actions {
    display: flex;
    align-items: flex-end;
}

.ap-filter-actions .ap-btn {
    width: 100%;
    padding: 0.65rem 1rem;
}

.ap-filter-status {
    font-size: 0.95rem;
    color: var(--ap-muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
    min-height: 1.5rem;
}

/* Calculator Detailed Controls & Results */
.ap-calc-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ap-calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ap-calc-field label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ap-slate);
}

.ap-toggle-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ap-calc-fin-btn,
.ap-calc-dp-btn {
    flex: 1;
    min-width: 160px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--ap-border);
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ap-slate);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ap-calc-fin-btn.active,
.ap-calc-dp-btn.active {
    background: var(--ap-primary);
    color: #ffffff;
    border-color: var(--ap-primary);
    box-shadow: 0 2px 4px rgba(0, 56, 101, 0.2);
}

.ap-range-slider {
    width: 100%;
    cursor: pointer;
}

.ap-range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--ap-muted);
    margin-top: 0.25rem;
}

.ap-calc-results {
    background: #ffffff;
    border: 1px solid var(--ap-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ap-calc-result-main {
    background: linear-gradient(135deg, var(--ap-primary) 0%, #002244 100%);
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ap-res-eyebrow {
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.ap-res-big {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.ap-res-sub {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.ap-calc-breakdown {
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f8fafc;
}

.ap-calc-disclaimer {
    font-size: 0.75rem;
    color: var(--ap-muted);
    line-height: 1.5;
    margin: 0;
}

/* Tripping Scheduler Form */
.ap-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.ap-form-row label {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--ap-slate);
}

.ap-form-row input,
.ap-form-row select {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--ap-border);
    font-size: 0.925rem;
    color: var(--ap-dark);
    font-family: inherit;
}

.ap-form-row input:focus,
.ap-form-row select:focus {
    outline: none;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px rgba(0, 56, 101, 0.12);
}

.ap-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .ap-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.ap-trip-submit-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.ap-btn-msgr {
    background: #0084ff;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ap-btn-msgr:hover {
    background: #0073e6;
}

.ap-trip-alt-channels {
    display: flex;
    gap: 0.5rem;
}

.ap-btn-wa {
    flex: 1;
    background: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.65rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.ap-btn-viber {
    flex: 1;
    background: #7360f2;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.65rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.ap-trip-status {
    font-size: 0.85rem;
    color: var(--ap-primary);
    font-weight: 600;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Leaflet Canvas & Landmark Badges */
.ap-leaflet-canvas {
    background: #e2e8f0;
    position: relative;
    z-index: 1;
}

.ap-landmarks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ap-landmark-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    border: 1px solid var(--ap-border);
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    font-size: 0.825rem;
    color: var(--ap-slate);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ap-landmark-chip:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: var(--ap-primary);
}

.ap-landmark-chip strong {
    color: var(--ap-dark);
}

/* Sticky Mobile Contact Bar */
.ap-sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    padding: 0.65rem 1rem;
    z-index: 99999;
    box-sizing: border-box;
    align-items: center;
    gap: 0.65rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 767px) {
    .ap-sticky-cta-bar {
        display: flex;
    }
    body {
        padding-bottom: 68px !important;
    }
}

@media (min-width: 768px) {
    .ap-sticky-cta-bar {
        display: none !important;
    }
}

.ap-sticky-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.15s ease;
}

.ap-sticky-btn:active {
    transform: scale(0.97);
}

.ap-sticky-call {
    background: #16a34a;
    color: #ffffff !important;
}

.ap-sticky-msgr {
    background: #0084ff;
    color: #ffffff !important;
}

.ap-sticky-trip {
    background: var(--ap-primary, #003865);
    color: #ffffff !important;
}

/* ==========================================================================
   6. Mobile Agent Quick Listing Portal (Milestone 5)
   ========================================================================== */
.ap-mobile-portal {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: var(--ap-font-main);
}

.ap-portal-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.ap-portal-header h2 {
    color: var(--ap-dark);
    margin: 0.5rem 0;
}

.ap-portal-card {
    background: #ffffff;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ap-portal-prop-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--ap-border);
}

.ap-portal-prop-row:last-child {
    border-bottom: none;
}

.ap-portal-prop-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ap-portal-prop-info a {
    color: var(--ap-primary);
    text-decoration: none;
}

.ap-portal-status-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ap-quick-st-btn {
    border: 1px solid var(--ap-border);
    background: #f8fafc;
    color: var(--ap-slate);
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ap-quick-st-btn.active.is-available {
    background: var(--ap-available);
    border-color: var(--ap-available);
    color: #ffffff;
}

.ap-quick-st-btn.active.is-reserved {
    background: var(--ap-reserved);
    border-color: var(--ap-reserved);
    color: #ffffff;
}

.ap-quick-st-btn.active.is-sold {
    background: var(--ap-sold);
    border-color: var(--ap-sold);
    color: #ffffff;
}

.ap-quick-st-btn.active.is-rented {
    background: var(--ap-primary);
    border-color: var(--ap-primary);
    color: #ffffff;
}

.ap-wizard-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}

.ap-wizard-pill {
    border: 1px solid var(--ap-border);
    background: #f1f5f9;
    color: var(--ap-slate);
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.ap-wizard-pill.is-active {
    background: var(--ap-primary);
    border-color: var(--ap-primary);
    color: #ffffff;
}

.ap-wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ap-portal-feedback {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--ap-primary);
}


