/* PIA Property Listing Grid — CSS Variables */
.prop-search-wrapper,
.prop-detail-wrapper,
.piaplg-agent-listings,
.prop-detail-hero,
.prop-detail-info,
.prop-detail-content,
.prop-detail-agent,
.prop-detail-action-card,
.prop-detail-meta {
    --primary-red: #E10600;
    --bg-grey: #f8f8f8;
    --text-dark: #333333;
    --text-light: #757575;
    --border-color: #e0e0e0;
}

/* PIA Property Listing Grid Styles */
.prop-search-wrapper {
    font-family: 'Source Sans 3', Arial, sans-serif;
    color: var(--text-dark);
    max-width: 1300px;
    margin: 0 auto;
}

/* Search Header */
.prop-search-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 20px;
}

.piaplg-search-row {
    display: contents;
}

.piaplg-filter-row {
    display: contents;
}

.prop-search-input-group {
    height: 50px;
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.prop-search-input-group input {
    width: 100%;
    font-size: 22px;
    padding: 13px 10px 10px 45px;
    border: 0px solid var(--border-color);
    border-radius: 6px;
    outline: none;
}

.prop-search-input-group::before {
    content: '';
    position: absolute;
    left: 12px;
    width: 22px;
    height: 22px;
    background-image: url('http://pia.rtw-preview.com/wp-content/uploads/2026/03/search-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.prop-btn-red {
    height: 50px;
    align-self: center;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.prop-btn-red:hover {
    background: #E10600;
}

.prop-toggle-container {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    margin-right: 5px;
    height: 50px;
    border-radius: 10px;
}

.prop-toggle-label {
    font-size: 18px;
    color: #000;
    white-space: nowrap;
}

.prop-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.prop-switch input { opacity: 0; width: 0; height: 0; }

.prop-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.prop-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .prop-slider { background-color: var(--primary-red); }
input:checked + .prop-slider:before { transform: translateX(16px); }

.prop-dropdown {
    place-self: center !important;
    height: 50px !important;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    color: #000;
    background: #fff;
    cursor: pointer;
    min-width: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

/* Range Filter Dropdowns */
.piaplg-range-wrap {
    align-content: center;
    position: relative;
}

.piaplg-range-trigger {
    height: 50px;
    cursor: pointer;
    text-align: left;
    font-family: 'Source Sans 3', Arial, sans-serif;
    background-image: none !important;
    padding-right: 30px;
    position: relative;
}

.piaplg-range-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.piaplg-range-trigger.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.piaplg-range-trigger.active {
    border-color: var(--primary-red);
}

.piaplg-trigger-label {
    white-space: nowrap;
}

.piaplg-trigger-value {
    white-space: nowrap;
}

.piaplg-trigger-label + .piaplg-trigger-value::before {
    content: ': ';
}

.piaplg-range-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #FFFF;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 100;
    flex-direction: column;
    gap: 16px;
    min-width: 280px;
}

.piaplg-range-panel.open {
    display: flex;
}

/* Dual-range slider track */
.piaplg-dual-track {
    position: relative;
    height: 30px;
}

.piaplg-dual-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #D9D9D9;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.piaplg-range-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    left: 0;
    right: 0;
}

.piaplg-range-slider {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    pointer-events: none;
    margin: 0;
    touch-action: none;
}

.piaplg-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-red);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    pointer-events: all;
    position: relative;
    z-index: 2;
}

.piaplg-range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-red);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    pointer-events: all;
    position: relative;
    z-index: 2;
}

.piaplg-range-slider::-moz-range-track {
    background: transparent;
    border: none;
}

/* Price input boxes */
.piaplg-price-panel {
    min-width: 320px;
}

.piaplg-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.piaplg-price-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    gap: 4px;
}

.piaplg-price-currency {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.piaplg-price-input-box input {
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Source Sans 3', Arial, sans-serif;
    color: #000;
    font-weight: 500;
    width: 100%;
    background: transparent;
    -moz-appearance: textfield;
}

.piaplg-price-input-box input::-webkit-outer-spin-button,
.piaplg-price-input-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.piaplg-price-to {
    font-size: 15px;
    color: var(--text-light);
    flex-shrink: 0;
}

/* BBC (beds/baths/car) min-max display */
.piaplg-bbc-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.piaplg-bbc-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    gap: 6px;
}

.piaplg-bbc-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.piaplg-bbc-value {
    font-size: 16px;
    color: #000;
    font-weight: 400;
}

/* Grid & Cards */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.prop-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prop-card-header {
    background: var(--primary-red);
    color: #fff;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    font-size: 26px;
    min-height: 56px;
}

.prop-card-header span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-card-header span:first-child {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

.prop-img-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.prop-img-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    gap: 8px;
}

.prop-img-placeholder span {
    font-size: 14px;
    color: #bbb;
}

.prop-details { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.prop-details .prop-icons { margin-top: auto; }

.prop-suburb {
    text-transform: uppercase;
    font-size: 19px;
    color: #000;
    margin-bottom: 5px;
}

.prop-address {
    font-size: 24px;
    color: #000;
    font-weight: 400;
    margin-bottom: 5px;
}

.prop-type {
    font-size: 19px;
    color: #000;
    margin-bottom: 15px;
}

/* Icons */
.prop-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
    color: #E10600;
    align-items: center;
}

.prop-icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-svg {
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    order: 2;
}

.icon-bed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='1.5'%3E%3Cpath d='M3 7v11M21 7v11M3 18h18M3 11h18M4 11V7a1 1 0 011-1h4a1 1 0 011 1v4M14 11V7a1 1 0 011-1h4a1 1 0 011 1v4'/%3E%3C/svg%3E");
}

.icon-bath {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='1.5'%3E%3Cpath d='M4 12h16a1 1 0 011 1v3a4 4 0 01-4 4H7a4 4 0 01-4-4v-3a1 1 0 011-1zM6 12V5a2 2 0 012-2h1'/%3E%3C/svg%3E");
}

.icon-car {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='1.5'%3E%3Cpath d='M5 17h14M5 17a2 2 0 01-2-2v-2h18v2a2 2 0 01-2 2M5 17a2 2 0 100 4 2 2 0 000-4zM19 17a2 2 0 100 4 2 2 0 000-4zM3 13l2-5h14l2 5'/%3E%3C/svg%3E");
}

.icon-building {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='1.5'%3E%3Cpath d='M3 21h18M9 21V3h6v18M9 7h6M9 11h6M9 15h6'/%3E%3C/svg%3E");
}

.icon-land {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='1.5'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6'/%3E%3C/svg%3E");
}

/* Load More */
.prop-load-more {
    text-align: center;
    margin-top: 40px;
    place-self: center;
}

.prop-load-more .prop-btn-red {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.piaplg-btn-arrow {
    margin-left: 8px;
    display: inline-flex;
    width: 16px;
    justify-content: center;
}

.prop-load-more .prop-btn-red:hover {
    transform: translateY(-10px);
}

/* Results bar */
.prop-results-bar {
    align-items: flex-end;
}

.prop-sort-select {
    cursor: pointer;
    border: solid 1px #D9D9D9 !important;
    padding: 5px 20px !important;
    padding-right: 35px !important;
    border-radius: 10px;
    font-size: 19px;
    color: #000;
    background: #fff !important;
    outline: none;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
}

/* No results */
.piaplg-no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

/* Date sort header */
.prop-date-header {
    grid-column: 1 / -1;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 5px 0;
    margin-top: 10px;
}

.prop-date-header:first-child {
    margin-top: 0;
}

/* Card footer (date sort mode) */
.prop-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    font-size: 16px;
    color: var(--text-dark);
}

/* Beds/Baths/Car group */
.piaplg-bbc-group {
    display: flex;
    gap: 12px;
    position: relative;
}

.piaplg-bbc-group .piaplg-range-wrap {
    position: static;
}

.piaplg-bbc-group .piaplg-range-panel {
    left: 0;
    right: 0;
    width: 100%;
    position: absolute;
    top: 100%;
    margin-top: 6px;
}

/* Mobile compact bar — hidden on desktop */
.piaplg-mobile-compact-bar {
    display: none;
}

.piaplg-mobile-search-btn {
    display: none !important;
}

/* Responsive — tablet filter row */
@media (max-width: 1230px) {
    .piaplg-filter-row {
        display: flex;
        width: 100%;
        gap: 12px;
        position: relative;
    }

    .piaplg-bbc-group {
        display: contents;
    }

    .piaplg-filter-row .piaplg-range-wrap {
        flex: 1;
        min-width: 0;
        position: relative;
    }

    .piaplg-filter-row .prop-dropdown {
        flex: 1;
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

/* Responsive — mobile */
@media (min-width: 769px) and (max-width: 992px) {
    .prop-search-header {
        flex-direction: row !important;
    }
}

@media (max-width: 768px) {
    .prop-search-header {
        flex-direction: column !important;
        align-items: stretch;
        margin-bottom: 60px;
    }

    .piaplg-search-row {
        display: flex;
        gap: 12px;
        align-items: stretch;
    }

    .piaplg-search-row .prop-search-input-group {
        flex: 1;
        min-width: 0;
    }

    /* Hide original search button on mobile */
    .piaplg-search-row .prop-btn-red {
        display: none;
    }

    /* Show mobile compact bar */
    .piaplg-mobile-compact-bar {
        display: flex;
        gap: 12px;
        width: 100%;
    }

    .piaplg-mobile-filter-btn {
        flex: 1;
        height: 50px;
        border: 2px solid var(--primary-red);
        border-radius: 10px;
        background: #fff;
        color: var(--primary-red);
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 16px;
    }

    .piaplg-mobile-filter-btn svg {
        flex-shrink: 0;
    }

    .piaplg-mobile-sort-wrap {
        flex: 1;
    }

    .piaplg-mobile-sort {
        width: 100%;
        height: 50px;
        border: 2px solid var(--primary-red);
        border-radius: 10px;
        background: #fff;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: var(--primary-red) !important;
        padding: 0 30px 0 15px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E10600' stroke-width='1.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        cursor: pointer;
    }

    /* Show mobile search button */
    .piaplg-mobile-search-btn {
        display: flex !important;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    /* Hide filters by default on mobile */
    .prop-toggle-container,
    .piaplg-filter-row {
        display: none !important;
    }

    /* Show filters when toggled open */
    .piaplg-filters-open .prop-toggle-container,
    .piaplg-filters-open .piaplg-filter-row {
        display: flex !important;
    }

    .piaplg-filters-open .piaplg-filter-row {
        flex-direction: column;
        gap: 12px;
        position: relative;
    }

    .piaplg-filter-row .piaplg-range-wrap {
        flex: none;
        position: static;
    }

    .piaplg-bbc-group {
        display: flex;
        position: static;
    }

    .piaplg-bbc-group .piaplg-range-wrap {
        position: static;
    }

    .piaplg-filters-open .prop-toggle-container {
        width: 100%;
        justify-content: space-between;
        border: 1px solid var(--border-color);
        padding-top: 10px;
        padding-bottom: 10px;
        height: auto;
    }

    .prop-dropdown {
        width: 100%;
        font-size: 16px !important;
    }

    .piaplg-range-panel {
        left: 0;
        right: 0;
        min-width: auto;
    }

    .piaplg-bbc-group .piaplg-range-wrap {
        flex: 1;
    }

    .piaplg-bbc-group .piaplg-range-trigger {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 8px 30px 8px 12px;
        font-size: 14px;
    }

    .piaplg-bbc-group .piaplg-trigger-label + .piaplg-trigger-value::before {
        content: none;
    }

    .piaplg-bbc-group .piaplg-trigger-value {
        font-size: 12px;
        color: var(--text-light);
    }

    .prop-sort-select {
        display: none;
    }
}

@media (max-width: 576px) {
    .prop-card-header {
        font-size: 20px;
        padding: 12px 16px;
    }

    .prop-address {
        font-size: 20px;
    }

    .prop-results-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Card Link */
.prop-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prop-card-link:hover .prop-card {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.prop-card {
    transition: all 0.3s ease;
}

/* ============================
   DETAIL PAGE STYLES
   ============================ */
.prop-detail-wrapper {
    --primary-red: #E10600;
    --bg-grey: #f8f8f8;
    --text-dark: #333333;
    --text-light: #757575;
    --border-color: #e0e0e0;
    font-family: 'Source Sans 3', Arial, sans-serif;
    color: #333;
    max-width: none;
    margin: 0 auto;
}

/* Hero */
.prop-detail-hero {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: visible;
    border-radius: 0 0 60px 60px;
}

.prop-detail-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 60px 60px;
}

/* Hero Gallery Grid */
.prop-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.prop-hero-main {
    overflow: hidden;
    min-height: 0;
}

.prop-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 20px;
    cursor: pointer;
}

.prop-hero-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.prop-hero-thumb {
    flex: 1 1 0;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.prop-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.prop-hero-thumb:last-child img {
    border-radius: 0 0 20px 0;
}

.prop-hero-more-count {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 0 20px 0;
}

.prop-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 0 0 60px 60px;
    gap: 12px;
}

.prop-hero-placeholder span {
    font-size: 18px;
    color: #bbb;
}

.prop-hero-buttons {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: white;
    padding: 12px;
    border-radius: 15px;
    z-index: 10;
}

.prop-hero-btn {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Sans 3', Arial, sans-serif;
}

.prop-hero-buttons .prop-hero-btn {
    padding: 10px;
    gap: 20px;
}

.prop-hero-btn:hover {
    background: #c00500;
}

/* Inspections Widget */
.prop-detail-inspections {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 30px;
}

.prop-detail-inspections h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
}

.prop-detail-inspection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.prop-detail-inspection-row:last-child {
    padding: 14px 0 0;
    border-bottom: 0;
}

.prop-inspection-date {
    font-size: 16px;
    color: #333;
}

.prop-inspection-time {
    font-size: 16px;
    color: #333;
}

/* Info Bar */
.prop-detail-info {
    padding: 90px 10px 10px;
    max-width: 1300px;
    width: 100%;
    justify-self: center;
    position: relative;
}

.prop-detail-suburb {
    font-size: 26px;
    color: #000;
    margin-bottom: 5px;
}

.prop-detail-address {
    font-size: 60px;
    font-weight: 400;
    color: #E10A0A;
    margin: 0 0 15px;
}

.prop-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.prop-detail-badge {
    background: #EDE8DE;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 19px;
    color: #000;
}

.prop-detail-icons-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E10600;
}

.prop-detail-icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prop-detail-icons-badge .icon-svg {
    width: 18px;
    height: 18px;
}

/* Two Column Layout */
.prop-detail-content {
    background: white;
    margin-top: 120px;
    padding: 130px 20px;
    border-radius: 60px 60px 0 0;
}

.prop-detail-content-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
}

/* Left Column */
.prop-detail-left {}

.prop-detail-description {
    font-family: 'Source Sans 3', Arial, sans-serif;
    font-size: 19px;
    line-height: normal;
    font-weight: 400;
    color: #000;
    margin-bottom: 40px;
}

.prop-detail-headline {
    font-size: 26px;
    font-weight: 400;
    color: #000;
    margin: 0 0 20px;
}

.prop-detail-description p {
    margin-bottom: 15px;
    font-size: 19px;
    line-height: normal;
    font-family: var(--e-global-typography-1c743eb-font-family);
    font-weight: 300;
}

.prop-detail-description span,
.prop-detail-description b,
.prop-detail-description strong {
    font-size: inherit !important;
    font-weight: inherit !important;
}

.prop-detail-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.prop-detail-description li {
    margin-bottom: 5px;
    font-family: var(--e-global-typography-1c743eb-font-family);
    font-weight: 300;
}

.prop-detail-description pre {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.prop-detail-features-section h2 {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 0;
    color: #000;
}

.prop-detail-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.prop-detail-features-grid h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #000;
}

.prop-detail-features-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prop-detail-features-grid li {
    font-size: 20px;
    color: #000;
    padding: 4px 0;
}

.prop-detail-map {
    margin-bottom: 30px;
}

/* Right Column */
.prop-detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prop-detail-right-actions {
    background: #F7F7F7;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Agent Card */
.prop-detail-agent {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-family: var(--uicore-primary-font-family);
    background: var(--e-global-color-uicore_white);
    border-radius: 12px;
    border: 1px solid #D3D3D3;
    overflow: hidden;
}

.prop-detail-agent-avatar {
    width: 80px;
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
}

.prop-detail-agent-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    flex: 1;
}

.prop-detail-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prop-detail-agent-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    font-size: 20px;
    font-weight: 600;
    color: #666;
}

.prop-detail-agent-info {
    flex: 1;
}

.prop-detail-agent-name {
    font-size: 20px;
    font-weight: 400;
    color: #000;
}

.prop-detail-agent-title {
    font-size: 16px;
    color: #7C7C7C;
}

.prop-detail-agent-actions {
    display: flex;
    gap: 8px;
}

.prop-detail-agent-btn {
    border: 0;
    background: #EDE8DE;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.prop-detail-agent-btn img {
    width: 24px;
    height: 24px;
}

.prop-detail-agent-btn:hover {
    background: #e2dcd0;
}

/* Action Cards */
.prop-detail-action-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #D3D3D3;
    border-radius: 12px;
    font-family: var(--uicore-primary-font-family);
    font-size: 19px;
    color: #000;
    cursor: pointer;
}

.prop-detail-action-card img {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    box-sizing: content-box;
}

.prop-detail-action-card:hover {
    border-color: #ddd;
    background: #fafafa;
}

.prop-detail-inspection {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    font-size: 22px;
}

.prop-detail-apply-now img {
    padding: 0;
    background: transparent;
}

.prop-detail-inspection:hover {
    background: var(--uicore-secondary-color);
    border-color: var(--uicore-secondary-color);
    color: var(--e-global-color-uicore_white);
}

.prop-detail-inspection-wrap {
    position: relative;
}

.prop-detail-inspection-arrow {
    transition: transform 0.3s;
    display: inline-block;
}

.prop-detail-inspection-wrap.open .prop-detail-inspection-arrow {
    transform: rotate(90deg);
}

.prop-detail-inspection-list {
    display: none;
    background: #fff;
    border: 1px solid #D3D3D3;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.prop-detail-inspection-wrap.open .prop-detail-inspection-list {
    display: block;
}

.prop-detail-inspection-wrap.open .prop-detail-inspection {
    border-radius: 12px 12px 0 0;
}

.prop-detail-inspection-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.prop-detail-inspection-item:last-child {
    border-bottom: none;
}

/* Property Management & Mailing List Blocks */
.prop-detail-pm-block,
.prop-detail-ml-block {
    padding: 30px;
    text-align: left;
    border-radius: 15px;
}

.prop-detail-pm-block {
    background: #F7F7F7;
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.prop-detail-pm-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prop-detail-pm-image {
    width: 40%;
    flex-shrink: 0;
    overflow: hidden;
}

.prop-detail-pm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prop-detail-ml-block {
    background: #F7F7F7;
}

.prop-detail-pm-block h2,
.prop-detail-ml-block h2 {
    font-size: 26px;
    font-weight: 400;
    color: #000;
    margin: 0 0 20px;
}

.prop-detail-pm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-red);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 22px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: 'Source Sans 3', Arial, sans-serif;
    width: fit-content;
}

.prop-detail-pm-link:hover {
    background: #c00500;
    color: #fff;
}

.prop-detail-ml-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prop-detail-ml-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D3D3D3;
    border-radius: 10px;
    font-size: 20px;
    outline: none;
    font-family: 'Source Sans 3', Arial, sans-serif;
    box-sizing: border-box;
    background: #fff;
}

.prop-detail-ml-form button {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Sans 3', Arial, sans-serif;
    width: fit-content;
}

.prop-detail-ml-form button:hover {
    background: #c00500;
}

/* Enquiry Form */
.prop-detail-enquiry-form {
    border-radius: 12px;
}

.prop-detail-enquiry-form h3 {
    font-size: 22px;
    font-weight: 400;
    color: #000;
    margin: 0 0 15px;
}

.prop-detail-enquiry-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prop-detail-enquiry-fields input,
.prop-detail-enquiry-fields select,
.prop-detail-enquiry-fields textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D3D3D3;
    border-radius: 10px;
    font-size: 18px;
    outline: none;
    font-family: 'Source Sans 3', Arial, sans-serif;
    box-sizing: border-box;
    background: #fff;
    color: #000;
}

.prop-detail-enquiry-fields select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
    cursor: pointer;
}

.prop-detail-enquiry-fields textarea {
    resize: vertical;
    min-height: 100px;
}

.prop-detail-enquiry-submit {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Sans 3', Arial, sans-serif;
    width: fit-content;
}

.prop-detail-enquiry-submit:hover {
    background: #c00500;
}

/* Gallery Modal */
.prop-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.prop-gallery-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-gallery-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}

.prop-gallery-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}

.prop-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
}

.prop-gallery-nav:hover {
    background: rgba(255,255,255,0.4);
}

.prop-gallery-prev { left: -60px; }
.prop-gallery-next { right: -60px; }

.prop-gallery-counter {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
}

/* Detail Responsive */
@media (max-width: 992px) {
    .prop-btn-red {
        justify-content: space-between;
    }
    .prop-detail-content-inner {
        grid-template-columns: 1fr;
    }

    .prop-detail-hero {
        height: 500px;
        border-radius: 0 0 30px 30px;
    }

    .prop-detail-hero > img {
        border-radius: 0 0 30px 30px;
    }

    .prop-hero-main img {
        border-radius: 0 0 0 30px;
    }

    .prop-hero-thumb:last-child img,
    .prop-hero-more-count {
        border-radius: 0 0 30px 0;
    }

    .prop-detail-address {
        font-size: 36px;
    }

    .prop-detail-content {
        margin-top: 60px;
        padding: 80px 20px;
        border-radius: 30px 30px 0 0;
    }
}

@media (max-width: 576px) {
    .prop-detail-hero {
        height: 350px;
        border-radius: 0;
    }

    .prop-detail-hero > img {
        border-radius: 0;
    }

    .prop-hero-grid {
        grid-template-columns: 1fr;
    }

    .prop-hero-side {
        display: none;
    }

    .prop-hero-main img {
        border-radius: 0;
    }

    .prop-hero-buttons {
        flex-wrap: nowrap;
        justify-content: center;
        width: auto;
    }

    .prop-hero-btn {
        font-size: 0;
        padding: 14px 18px;
        gap: 8px;
    }

    .prop-hero-btn span {
        display: none;
    }

    .prop-hero-btn::before {
        content: '';
        display: block;
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .prop-hero-btn::after {
        content: '';
        display: block;
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }

    #prop-btn-photos::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    }

    #prop-btn-video::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='2.18' ry='2.18'/%3E%3Cpolygon points='10 8 16 12 10 16 10 8'/%3E%3C/svg%3E");
    }

    #prop-btn-floorplan::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='12' x2='15' y2='12'/%3E%3Cline x1='15' y1='3' x2='15' y2='12'/%3E%3Cline x1='9' y1='12' x2='9' y2='21'/%3E%3C/svg%3E");
    }

    #prop-btn-vtour::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
    }

    .prop-detail-address {
        font-size: 28px;
    }

    .prop-detail-content {
        margin-top: 40px;
        padding: 60px 15px;
        border-radius: 20px 20px 0 0;
    }

    .prop-detail-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .prop-detail-meta .prop-detail-badge:nth-child(2) {
        order: -1;
    }

    .prop-detail-right-actions {
        padding: 50px 20px;
    }
    
    .prop-detail-pm-block {
        padding: 0;
    }

    .prop-detail-ml-block {
        padding: 20px;
    }

    .prop-detail-agent-name {
        font-size: 16px;
    }

    .prop-detail-agent-title {
        font-size: 13px;
    }

    .prop-detail-agent-content {
        gap: 8px;
        padding: 10px;
    }

    .prop-detail-agent-btn {
        width: 42px;
        height: 42px;
    }

    .prop-detail-agent-btn img {
        width: 20px;
        height: 20px;
    }

    .prop-detail-pm-block {
        flex-direction: row;
    }

    .prop-detail-pm-content {
        padding: 20px 10px 20px 20px;
    }

    .prop-detail-pm-content h2 {
        font-size: 20px;
    }

    .prop-detail-pm-link {
        font-size: 16px;
        padding: 10px 18px;
    }

    .prop-detail-pm-image {
        width: 45%;
    }

    .prop-gallery-prev { left: 10px; }
    .prop-gallery-next { right: 10px; }
}

/* Loading spinner */
.piaplg-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #c00;
    border-radius: 50%;
    animation: piaplg-spin 0.8s linear infinite;
}

@keyframes piaplg-spin {
    to { transform: rotate(360deg); }
}

/* Inline button spinner */
.piaplg-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: piaplg-spin 0.6s linear infinite;
}

/* ============================
   AGENT LISTINGS
   ============================ */
.piaplg-agent-listings {
    font-family: 'Source Sans 3', Arial, sans-serif;
    max-width: 1300px;
    margin: 0 auto;
}

.piaplg-agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.piaplg-agent-heading {
    font-size: 60px;
    font-weight: 400;
    color: #E10600;
    margin: 0;
    font-family: 'Source Sans 3', Arial, sans-serif;
}

.piaplg-agent-tabs {
    display: flex;
    gap: 12px;
}

.piaplg-agent-tab {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #E10600;
    background: transparent;
    color: #E10600;
}

.piaplg-agent-tab::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23E10600' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.piaplg-agent-tab--active {
    background: #E10600;
    color: #fff;
}

.piaplg-agent-tab--active::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.piaplg-agent-tab:hover:not(.piaplg-agent-tab--active) {
    background: rgba(225, 6, 0, 0.08);
}

@media (max-width: 768px) {
    .piaplg-agent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .piaplg-agent-heading {
        font-size: 32px;
    }
}
