.ap-hero-section {
    background: #f4f7ff;
    padding: 48px 0 0;
    font-family: "Inter", sans-serif;
}

.ap-hero-card {
    max-width: 1216px;
    min-height: 408px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e6eeff;
    border-radius: 24px;
    padding: 42px 58px 36px;
    box-shadow: 0 10px 30px rgba(31, 95, 136, 0.05);
}

.ap-hero-top {
    display: grid;
    grid-template-columns: 130px 1fr 190px;
    align-items: start;
    gap: 48px;
}

.ap-profile-wrap{
    position: relative;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    height: 158px;
    min-height: 158px;
    max-height: 158px;
    aspect-ratio: 160 / 158;
    border-radius: 50%;
    border: 4px solid #E6EEFF;
    background: linear-gradient(135deg,#4f7d92,#f39a4d);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    isolation: isolate;
    box-shadow:
        0 8px 10px -6px rgba(0,0,0,.10),
        0 20px 25px -10px rgba(0,0,0,.10);
}

.ap-profile-img{
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.ap-profile-placeholder{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}
.ap-verify-badge{
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3B82F6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    font-size: 18px;
    font-weight: 700;
    display: none;
}

.ap-agent-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.ap-agent-name-row h1 {
    margin: 0;
}

.ap-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
}
.ap-agent-info h1 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 600;
    color: #14233a;
    line-height: 1.15;
}

.ap-company {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 400;
    color: #4d5967;
}

.ap-company i {
    color: #0b5d93;
    font-size: 16px;
}

.ap-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 16px;
    color: #4d5967;
}

.ap-meta-line i {
    color: #0b5d93;
    font-size: 16px;
}

.ap-meta-line strong {
    color: #22324a;
}

.ap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.ap-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e9f0ff;
    color: #14233a;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.ap-tags-speciality {
    margin-bottom: 0;
}

.ap-actions {
    width: 190px;
    height: 178px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-btn {
    width: 190px;
    min-height: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.ap-btn i{
    flex-shrink: 0;
}

.ap-btn-primary {
    background: #2b7caf;
    color: #ffffff;
    border: 1px solid #2b7caf;
    box-shadow: 0 8px 18px rgba(43, 124, 175, .25);
}

.ap-btn-light {
    background: #ffffff;
    color: #00476c;
    border: 1px solid #2b7caf;
    padding-left: 28px;
    padding-right: 28px;
}

.ap-btn-outline {
    background: #ffffff;
    color: #00476c;
    border: 1px solid #2b7caf;  
    border-radius: 12px;       
    padding: 10px 14px;
    min-height: 42px;
    height: 42px;
    width: 190px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ap-divider {
    height: 1px;
    background: #dce7fb;
    margin: 32px 0 24px;
}

.ap-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    align-items: start;
}

.ap-stats h3 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 600;
    color: #004c7b;
}

.ap-stats > div:nth-child(2) > h3:first-child {
    display: none;
}

.ap-stats-legacy-value {
    display: none;
}

.ap-stats-dynamic-value {
    display: block;
}

.ap-stats h3 span {
    color: #ffbc0b;
    font-size: 18px;
}

.ap-stats p {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #4c5969;
}

.ap-feature-strip {
    width: 100%;
    height: 122.25px;
    margin-top: 48px;
    background: #EFF4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 80px;
}
.ap-feature-inner {
    width: 1280px;
    max-width: 100%;
    height: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}
.ap-feature-inner--locations {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}
.ap-feature-inner span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #66788b;
    font-size: 16px;
    font-weight: 500;
    opacity: 1;
}

.ap-feature-line {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.ap-feature-city-buttons,
.ap-feature-localities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.ap-feature-city-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #cfe0f7;
    background: #ffffff;
    color: #5f7a99;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.ap-feature-city-btn {
    cursor: pointer;
}

.ap-feature-city-btn.is-active {
    background: #2b7caf;
    border-color: #2b7caf;
    color: #ffffff;
}

.ap-feature-localities {
    display: block;
    overflow: hidden;
    color: #66788b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    white-space: nowrap;
}

.ap-feature-localities.is-empty {
    display: none;
}

.ap-feature-localities-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ap-feature-localities-track {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 56px;
    white-space: nowrap;
    will-change: transform;
    animation: ap-locality-marquee 120s linear infinite;
}

.ap-feature-localities-track.is-static {
    width: 100%;
    display: flex;
    white-space: normal;
    animation: none;
    will-change: auto;
}

.ap-feature-localities-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.ap-feature-localities-track.is-static .ap-feature-localities-copy {
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
}

.ap-feature-locality-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(114, 145, 188, 0.24);
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(235,243,255,0.88) 100%);
    box-shadow: 0 8px 20px rgba(54, 96, 148, 0.08);
    color: #4f6788;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

@keyframes ap-locality-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-50% - 28px), 0, 0);
    }
}

.ap-feature-strip i {
    font-size: 26px;
    color: #6A95B6;
    flex-shrink: 0;
}

.ap-luxury-section {
    background: #f4f7ff;
    padding: 48px 0 64px;
    font-family: "Inter", sans-serif;
}

.ap-luxury-inner {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(460px, 540px);
    gap: 72px;
    align-items: stretch;
}

.ap-luxury-content h2 {
    margin: 0 0 36px;
    font-size: 34px;
    line-height: 1.28;
    font-weight: 600;
    color: #00476c;
}

.ap-luxury-content p {
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    color: #4d5663;
}

.ap-luxury-description p {
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    color: #4d5663;
}

.ap-luxury-description p:last-child {
    margin-bottom: 0;
}

.ap-luxury-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.ap-luxury-tags span {
    background: #dfeaff;
    color: #004b76;
    border-radius: 22px;
    padding: 8px 18px;
    font-size: 16px;
    font-weight: 500;
}

.ap-property-cards {
    display: flex;
    justify-content: stretch;
    width: 100%;
    height: 100%;
    position: relative;
}

.ap-property-cards-carousel {
    overflow: hidden;
}

.ap-property-cards-slider-wrap {
    overflow: hidden;
    min-height: 100%;
}

.ap-property-cards-slider-wrap .ap-property-card-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transform: translate3d(100%, 0, 0);
    transition: opacity 0.95s ease, transform 0.95s ease;
    will-change: transform, opacity;
}

.ap-property-cards-slider-wrap .ap-property-card-slider.is-active {
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.ap-property-cards-slider-wrap .ap-property-card-slider.is-next {
    z-index: 1;
    opacity: 0;
    transform: translate3d(100%, 0, 0);
}

.ap-property-cards-slider-wrap .ap-property-card-slider.is-entering {
    z-index: 3;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.ap-property-cards-slider-wrap .ap-property-card-slider.is-leaving {
    z-index: 2;
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
}

.ap-property-cards-slider-wrap .ap-property-card {
    display: block !important;
}

.ap-property-carousel-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ap-property-carousel-track {
    width: max-content;
    display: flex;
    align-items: stretch;
    animation: ap-property-conveyor 42s linear infinite;
    will-change: transform;
}

.ap-property-carousel-set {
    display: flex;
    align-items: stretch;
    gap: 28px;
    padding-right: 28px;
}

.ap-property-card {
    background: #fff;
    border: 1px solid #e3ecf8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(31, 95, 136, 0.08);
    width: 100%;
    min-height: 100%;
}

.ap-property-card-marquee {
    flex: 0 0 560px;
    width: 560px;
    min-height: 100%;
}

.ap-property-card-slider {
    position: relative;
    z-index: 1;
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.ap-property-slide {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.95s ease, transform 0.95s ease;
    position: relative;
    z-index: 1;
}

.ap-property-slide.ap-property-slide-clone {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translate3d(100%, 0, 0);
    opacity: 1;
    z-index: 2;
}

.ap-property-slide.is-leaving {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
}

.ap-property-slide.is-resetting {
    transition: none !important;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.ap-property-slide.ap-property-slide-clone.is-entering {
    transform: translate3d(0, 0, 0);
}

.ap-property-cards .ap-property-card:nth-child(n+2):not(.ap-property-card-clone) {
    display: none;
}

.ap-property-cards-carousel .ap-property-card:nth-child(n+2):not(.ap-property-card-clone) {
    display: block;
}

@keyframes ap-property-conveyor {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.ap-property-title-row strong {
    display: none;
}

.ap-property-title-row .ap-property-price-dynamic {
    display: inline-block;
}

.ap-property-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.ap-property-img img,
.ap-property-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-property-img span {
    position: absolute;
    top: 22px;
    left: 20px;
    background: #ffffff;
    color: #2b7caf;
    border: 1.5px solid #2b7caf;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 800;
}

.ap-property-body {
    padding: 18px 18px 22px;
}

.ap-time {
    color: #8aa0bb;
    font-size: 14px;
    margin-bottom: 14px;
}

.ap-property-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ap-property-title-row h3 {
    margin: 0;
    color: #243044;
    font-size: 24px;
    font-weight: 600;
}

.ap-property-title-row strong {
    color: #2b7caf;
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.ap-property-body p {
    margin: 12px 0 0;
    color: #71819a;
    font-size: 16px;
    font-weight: 400;
}

.ap-property-body p i {
    margin-right: 8px;
}

.ap-property-status {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #e4ebf5;
    text-align: center;
    color: #46546a;
    font-size: 16px;
    font-weight: 700;
}

.ap-solutions-section {
    background: #f4f7ff;
    padding: 52px 0 80px;
    font-family: "Inter", sans-serif;
}

.ap-solutions-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.ap-section-heading {
    text-align: center;
    margin-bottom: 68px;
}

.ap-section-heading h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
    color: #00476c;
}

.ap-section-heading span {
    display: block;
    width: 82px;
    height: 6px;
    background: #ee8339;
    border-radius: 20px;
    margin: 26px auto 0;
}

.ap-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ap-solution-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    min-height: 240px;
    box-shadow: 0 2px 10px rgba(31, 95, 136, 0.05);
}

.ap-solution-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.ap-solution-icon i {
    font-size: 24px;
}

.ap-solution-blue {
    background: #e7eef4;
    color: #1f628d;
}

.ap-solution-orange {
    background: #fff0e6;
    color: #ee8339;
}

.ap-solution-card h3 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    color: #14233a;
}

.ap-solution-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    color: #4d5663;
}

.ap-solution-card a {
    color: #1f628d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ap-solution-card a i {
    font-size: 15px;
}

.ap-portfolio-section {
    background: #f4f7ff;
    padding: 18px 0 72px;
    font-family: "Inter", sans-serif;
}

#pd-agent-profile-feedback-slot {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 0 0;
    background: #f4f7ff;
}

#pd-agent-profile-feedback-slot .pd-feedback-profile-inline {
    max-width: 1320px;
    margin: 0 auto !important;
}

.ap-portfolio-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.ap-portfolio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 70px;
}

.ap-portfolio-head h2 {
    margin: 0 0 22px;
    font-size: 34px;
    font-weight: 600;
    color: #00476c;
}

.ap-portfolio-head p {
    margin: 0;
    max-width: 500px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
    color: #4d5663;
}

.ap-portfolio-tabs {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ap-portfolio-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ap-portfolio-select-wrap::before {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    top: 10px;
    color: #6a7b92;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
}

.ap-portfolio-select-wrap::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-10%);
    color: #2b7caf;
    pointer-events: none;
    font-size: 13px;
}

.ap-portfolio-select {
    min-width: 170px;
    height: 58px;
    padding: 18px 46px 0 20px;
    border-radius: 999px;
    border: 1px solid #c7d0df;
    background: #fff;
    color: #2b7caf;
    font-size: 16px;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: none;
}

.ap-portfolio-select:focus {
    outline: none;
    border-color: #2b7caf;
    box-shadow: 0 0 0 4px rgba(43, 124, 175, 0.14);
}

.ap-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1224px;
    margin: 0 auto;
    justify-items: center;
}

.ap-rent-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 40, 80, 0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 376px;
}

.ap-rent-img {
    height: 250px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.ap-rent-img img,
.ap-rent-img video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap-rent-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.ap-heart {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #8c8c8c;
    font-size: 18px;
}

.ap-rent-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ap-rent-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ap-rent-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.ap-rent-price-inline {
    color: #ef8738;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
}

.ap-rent-code {
    margin-top: -4px;
    width: fit-content;
    padding: 7px 10px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ap-rent-code--overlay {
    position: absolute;
    left: 14px;
    bottom: 14px;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.98);
    color: #4b5563;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    appearance: none;
}

.ap-rent-card--media-hover:hover .ap-rent-code--overlay {
    opacity: 1;
    transform: translateY(0);
}

.ap-rent-code--overlay.is-copied {
    background: #ef8738;
    border-color: #ef8738;
    color: #fff;
}

.ap-rent-card--media-hover:hover .pd-generic-video-controls {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ap-rent-body p {
    margin: 0;
    color: #777;
    font-size: 15px;
    font-weight: 400;
}

.ap-rent-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

.ap-rent-info span {
    background: #fafafa;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    padding: 5px 8px;
    color: #555;
    font-size: 13px;
}

.ap-rent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.ap-rent-footer span {
    color: #999;
    font-size: 14px;
}

.ap-rent-footer a {
    color: #e76322;
    font-size: 15px;
    text-decoration: none;
}

.ap-portfolio-empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #e3ecf8;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    margin: 24px auto 0;
    padding: 32px 24px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    box-shadow: 0 10px 28px rgba(15, 40, 80, 0.08);
}

.ap-portfolio-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.ap-portfolio-page {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #c7d0df;
    background: #fff;
    color: #3f4651;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
}

.ap-portfolio-page.active {
    background: #2b7caf;
    border-color: #2b7caf;
    color: #fff;
}


.ap-reviews-section {
    background: #f4f7ff;
    padding: 56px 0 80px;
    font-family: "Inter", sans-serif;
}

.ap-reviews-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.ap-reviews-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    margin-bottom: 110px;
}

.ap-reviews-title {
    text-align: center;
}

.ap-reviews-title h2 {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 600;
    color: #00476c;
}

.ap-review-stars {
    color: #964f00;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.ap-reviews-title p {
    margin: 0;
    color: #4d5663;
    font-size: 17px;
    font-weight: 400;
}

.ap-review-btn {
    justify-self: end;
    background: #ef7f32;
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    padding: 16px 34px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(239, 127, 50, 0.25);
}

.ap-review-slider {
    max-width: 1460px;
    margin: 0 auto;
}

.ap-review-viewport {
    overflow: hidden;
    width: 100%;
}

.ap-review-grid {
    display: flex;
    gap: 42px;
    transition: transform 0.7s ease;
    will-change: transform;
}

.ap-review-card {
    background: #fff;
    border-radius: 18px;
    padding: 34px 36px;
    min-height: 250px;
    box-shadow: 0 3px 10px rgba(31, 95, 136, 0.05);
    min-width: calc((100% - 84px) / 3);
    flex: 0 0 calc((100% - 84px) / 3);
}

.ap-review-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.ap-review-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c9d6ea;
    transition: transform .2s ease, background .2s ease;
}

.ap-review-dot.is-active {
    background: #2b7caf;
    transform: scale(1.2);
}

.ap-card-stars {
    color: #ef7f32;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ap-review-card p {
    margin: 0 0 30px;
    color: #3f4651;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 400;
    font-style: italic;
}

.ap-review-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ap-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ap-avatar-blue { background: #1f628d; }
.ap-avatar-orange { background: #ff8f43; }
.ap-avatar-brown { background: #946000; }

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

.ap-avatar__initial {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.ap-review-user h4 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #14233a;
    font-weight: 600;
}

.ap-review-user small {
    color: #3f4651;
    font-size: 13px;
    letter-spacing: 2px;
}

.ap-review-card--empty {
    min-width: 100%;
    flex: 0 0 100%;
    text-align: center;
}

.ap-review-feedback {
    max-width: 560px;
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.ap-review-feedback.is-success {
    background: #e9f8ef;
    color: #166534;
    border: 1px solid #b7e4c7;
}

.ap-review-feedback.is-error {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #fecdd3;
}

.ap-review-modal[hidden] {
    display: none;
}

.ap-review-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ap-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    animation: ap-review-backdrop-fade 0.28s ease;
}

.ap-review-modal__dialog {
    position: relative;
    width: min(92vw, 560px);
    margin: 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    border: 1px solid #dbe7f5;
    overflow: hidden;
    animation: ap-review-modal-enter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

.ap-review-modal__content {
    padding: 34px 32px 30px;
}

.ap-review-modal__content h3 {
    margin: 0 0 10px;
    color: #0f3557;
    font-size: 28px;
    font-weight: 700;
}

.ap-review-modal__content p {
    margin: 0 0 22px;
    color: #526072;
    font-size: 15px;
}

.ap-review-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f3f7fd;
    color: #204f77;
    font-size: 18px;
}

.ap-review-modal__stars {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.ap-review-modal__star {
    border: none;
    background: transparent;
    color: #c8d3e0;
    font-size: 34px;
    line-height: 1;
    padding: 0;
}

.ap-review-modal__star.is-active {
    color: #ef7f32;
}

.ap-review-modal__textarea {
    width: 100%;
    min-height: 140px;
    border: 1px solid #d6e1ef;
    border-radius: 18px;
    padding: 16px 18px;
    resize: vertical;
    font-size: 15px;
    color: #223042;
    outline: none;
}

.ap-review-modal__textarea:focus {
    border-color: #2b7caf;
    box-shadow: 0 0 0 4px rgba(43, 124, 175, 0.12);
}

.ap-review-modal__error {
    margin-top: 12px;
    color: #b42318;
    font-size: 14px;
    font-weight: 500;
}

.ap-review-modal__submit {
    margin-top: 20px;
    min-width: 160px;
    border: none;
    border-radius: 999px;
    background: #ef7f32;
    color: #fff;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(239, 127, 50, 0.24);
}

.ap-review-modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

body.ap-review-modal-open {
    overflow: hidden;
}

@keyframes ap-review-backdrop-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ap-review-modal-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* CONTACT CTA */

.ap-contact-section{
    background:#f4f7ff;
    padding:0 0 90px;
    font-family:"Inter", sans-serif;
}

.ap-contact-card{
    max-width:1540px;
    margin:0 auto;
    background:#fff;
    border-radius:30px;
    overflow:hidden;
    display:grid;
    grid-template-columns:1fr 1fr;
}

.ap-contact-left{
    padding:50px 60px;
}

.ap-contact-left h2{
    margin:0 0 38px;
    font-size:44px;
    line-height:1.05;
    font-weight:600;
    color:#1d5f8f;
}

.ap-contact-left p{
    max-width:520px;
    margin:0 0 54px;
    font-size:18px;
    line-height:1.6;
    font-weight:400;
    color:#495566;
}

.ap-contact-properties{
    display:flex;
    flex-direction:column;
    gap:14px;
    max-height:320px;
    overflow:auto;
    padding-right:10px;
}

.ap-contact-property-link{
    display:block;
    padding:10px 14px;
    border-radius:10px;
    background:#f5f8ff;
    border:1px solid #e1ebfb;
    color:#1f4f78;
    text-decoration:none;
    font-size:14px;
    font-weight:400;
    line-height:1.45;
    transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}

.ap-contact-property-link:hover{
    background:#ebf3ff;
    border-color:#c8daf7;
    color:#0f456d;
    transform:translateX(4px);
}

.ap-contact-property-link.is-disabled{
    color:#6c7a8a;
    cursor:default;
}

.ap-contact-empty{
    margin:0;
    font-size:18px;
    line-height:1.6;
    color:#495566;
}

.ap-office{
    display:flex;
    align-items:center;
    gap:22px;
    margin-bottom:60px;
}

.ap-office-icon{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#edf3f9;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#2c6f9d;
    font-size:24px;
}

.ap-office h4{
    margin:0;
    color:#1d5f8f;
    font-size:24px;
    font-weight:600;
}

.ap-office span{
    font-size:18px;
    font-weight:700;
    color:#263445;
}

.ap-contact-btn{
    width:100%;
    height:66px;
    background:#327cad;
    color:#fff;
    border-radius:16px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:18px;
    font-weight:700;
}

.ap-contact-right{
    position: relative;
    min-height: 480px;
    background: linear-gradient(180deg,#bfd5e7 0%,#5d89a8 100%);
    overflow: hidden;
}

.ap-contact-right > #pd-section-map{
    height:100%;
}

.ap-contact-right .map-container{
    height:100% !important;
    min-height:480px;
    border:none !important;
    border-radius:0;
    box-shadow:none;
}

.ap-contact-right .pd-map-wrap{
    min-height:480px;
}

.ap-contact-right img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ap-agent-floating{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:#fff;
    border-radius:18px;
    padding:16px 22px;
    display:flex;
    align-items:center;
    gap:14px;
    width:360px;
    min-width:360px;
    box-shadow:0 14px 30px rgba(0,0,0,.12);
}

.ap-agent-floating img{
    width:48px;
    height:48px;
    border-radius:50%;
}

.ap-agent-floating h4{
    margin:0 0 4px;
    font-size:18px;
    font-weight:600;
}

.ap-agent-floating p{
    margin:0;
    font-size:14px;
    font-weight:400;
    color:#5d6978;
}

@media(max-width:992px){

    .ap-contact-card{
        width:calc(100% - 32px);
        grid-template-columns:1fr;
    }

    .ap-contact-left{
        padding:40px 24px;
    }

    .ap-contact-left h2{
        font-size:42px;
    }

    .ap-contact-left p{
        font-size:18px;
    }

    .ap-contact-right{
        min-height:420px;
    }

    .ap-agent-floating{
        min-width:300px;
    }

    .ap-portfolio-inner {
        width: calc(100% - 32px);
    }

    .ap-portfolio-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .ap-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .ap-solutions-inner {
        width: calc(100% - 32px);
    }

    .ap-solutions-grid {
        grid-template-columns: 1fr;
    }


    .ap-luxury-inner {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ap-property-cards {
        grid-template-columns: 1fr;
    }

    .ap-hero-card{
        width:calc(100% - 32px);
        padding:28px 22px;
    }

    .ap-hero-top{
    display:grid !important;
    grid-template-columns:110px 1fr !important;
    gap:16px !important;
    align-items:center !important;
    text-align:left !important;
}
    .ap-profile-wrap{
    width:100px !important;
    min-width:100px !important;
    max-width:100px !important;
    height:100px !important;
    min-height:100px !important;
    max-height:100px !important;
    margin:0 !important;
}
.ap-agent-info{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start !important;
}

.ap-agent-name-row,
.ap-company,
.ap-tags{
    justify-content:flex-start !important;
    text-align:left !important;
}

.ap-agent-info h1{
    font-size:24px !important;
    margin-bottom:10px !important;
}

.ap-company{
    margin:0 0 10px !important;
}

.ap-tags{
    gap:8px !important;
}

    .ap-company,
    .ap-tags{
    justify-content:flex-start !important;
}

    .ap-actions{
    grid-column:1 / -1;
    display:grid !important;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    width:100% !important;
    max-width:360px !important;
    margin:20px auto 0 !important;
    height:auto !important;
}
.ap-actions .ap-btn,
.ap-actions .ap-btn-primary,
.ap-actions .ap-btn-light,
.ap-actions .ap-btn-outline{
    width:100% !important;
    min-width:0 !important;
    height:42px !important;
    min-height:42px !important;
    font-size:12px !important;
    padding:8px 10px !important;
}

    .ap-stats{
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

    .ap-feature-strip{
    height:auto !important;
    padding:20px 16px !important;
}

    .ap-feature-line{
        flex-direction:column;
        gap:8px;
    }

    .ap-feature-label{
        min-width:0;
    }


    .ap-agent-info h1{
        font-size:28px;
    }

    .ap-company{
        font-size:14px;
    }

    .ap-tags span{
        font-size:13px;
    }

    .ap-stats{
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:10px !important;
}

.ap-stats h3{
    font-size:22px !important;
}

.ap-stats p{
    font-size:9px !important;
    letter-spacing:0.5px !important;
}
}

.ap-portfolio-pagination-wrap{
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.ap-portfolio-pagination-wrap .properties-pagination{
    width: 100%;
    max-width: 1200px;
}

.ap-chat-soon-modal[hidden] {
    display: none !important;
}

.ap-chat-soon-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ap-chat-soon-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.ap-chat-soon-modal__dialog {
    position: relative;
    width: min(100%, 660px);
    background: #fff;
    border-radius: 22px;
    padding: 28px 30px 22px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.24);
    animation: ap-chat-soon-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ap-chat-soon-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #8b9099;
    font-size: 22px;
    line-height: 1;
    padding: 4px;
}

.ap-chat-soon-modal__header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ap-chat-soon-modal__logo {
    width: 94px;
    max-width: 100%;
    height: auto;
}

.ap-chat-soon-modal__heading h3 {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 700;
    color: #212934;
}

.ap-chat-soon-modal__heading p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.ap-chat-soon-modal__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    margin: 22px auto 28px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #f7b500;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.ap-chat-soon-modal__body {
    text-align: center;
}

.ap-chat-soon-modal__body h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #2f3640;
}

.ap-chat-soon-modal__body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

.ap-chat-soon-modal__okay {
    display: block;
    min-width: 108px;
    margin: 28px auto 0;
    padding: 11px 28px;
    border: 1px solid #9ca3af;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    font-size: 17px;
    font-weight: 500;
}

body.ap-chat-soon-modal-open {
    overflow: hidden;
}

@keyframes ap-chat-soon-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767px) {
    .ap-chat-soon-modal__dialog {
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .ap-chat-soon-modal__header {
        gap: 14px;
        align-items: flex-start;
    }

    .ap-chat-soon-modal__logo {
        width: 72px;
    }

    .ap-chat-soon-modal__heading h3 {
        font-size: 24px;
    }

    .ap-chat-soon-modal__body h4 {
        font-size: 16px;
    }

    .ap-chat-soon-modal__body p {
        font-size: 14px;
    }
}
@media(max-width:992px){
  .ap-feature-city-buttons{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:10px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .ap-feature-city-buttons::-webkit-scrollbar{
    display:none;
  }

  .ap-feature-city-btn{
    flex:0 0 auto !important;
    white-space:nowrap !important;
  }
}
@media (max-width: 600px) {

  .ap-luxury-section {
    padding: 32px 0 44px !important;
  }

  .ap-luxury-inner {
    width: calc(100% - 28px) !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .ap-luxury-content h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 18px !important;
  }

  .ap-luxury-content p,
  .ap-luxury-description p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }

  .ap-property-cards {
    width: 100% !important;
    display: block !important;
    min-height: auto !important;
  }

  .ap-property-card,
  .ap-property-card-marquee,
  .ap-property-card-slider {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    min-height: auto !important;
  }

  .ap-property-img {
    height: 210px !important;
  }

  .ap-property-body {
    padding: 16px !important;
  }

  .ap-property-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .ap-property-title-row h3 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  .ap-property-body p,
  .ap-property-status {
    font-size: 14px !important;
  }
}
@media (max-width: 600px) {
  .ap-reviews-section {
    padding: 36px 0 50px !important;
  }

  .ap-reviews-inner {
    width: calc(100% - 28px) !important;
    margin: 0 auto !important;
  }

  .ap-reviews-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
    margin-bottom: 40px !important;
  }

  .ap-reviews-title h2 {
    font-size: 30px !important;
    line-height: 1.2 !important;
    margin-bottom: 14px !important;
  }

  .ap-review-stars {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .ap-reviews-title p {
    font-size: 15px !important;
    line-height: 1.45 !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  .ap-review-btn {
    align-self: center !important;
    padding: 12px 24px !important;
    border-radius: 22px !important;
    font-size: 14px !important;
  }

  .ap-review-card {
    min-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 34px 20px !important;
    min-height: 190px !important;
    text-align: center !important;
  }

  .ap-card-stars {
    font-size: 17px !important;
    margin-bottom: 18px !important;
  }

  .ap-review-card p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }
}
@media (max-width: 600px) {

  .ap-contact-section{
    padding:0 0 40px !important;
  }

  .ap-contact-card{
    width:calc(100% - 24px) !important;
    border-radius:22px !important;
  }

  .ap-contact-left{
    padding:28px 18px !important;
  }

  .ap-contact-left h2{
    font-size:28px !important;
    line-height:1.15 !important;
    margin-bottom:24px !important;
  }

  .ap-contact-properties{
    gap:12px !important;
    max-height:205px !important;
    overflow-y:auto !important;
    padding-right:0 !important;
  }

  .ap-contact-property-link{
    padding:10px 14px !important;
    font-size:14px !important;
    font-weight:400 !important;
    line-height:1.4 !important;
    border-radius:10px !important;
  }

  .ap-contact-right{
    min-height:280px !important;
  }

  .ap-contact-btn{
    height:52px !important;
    font-size:16px !important;
  }
}
@media (max-width: 600px) {
  .ap-contact-right {
    min-height: 430px !important;
    height: 430px !important;
    border-radius: 0 0 22px 22px !important;
    overflow: hidden !important;
  }

  .ap-contact-right > #pd-section-map,
  .ap-contact-right .map-container,
  .ap-contact-right .pd-map-wrap {
    height: 100% !important;
    min-height: 430px !important;
    border-radius: 0 0 22px 22px !important;
  }

  .ap-contact-right .gm-style {
    height: 100% !important;
  }
}
@media (max-width: 600px) {

  .ap-solutions-section{
    padding:32px 0 40px !important;
  }

  .ap-solutions-inner{
    width:calc(100% - 24px) !important;
    margin:0 auto !important;
  }

  .ap-section-heading{
    margin-bottom:28px !important;
  }

  .ap-section-heading h2{
    font-size:28px !important;
    line-height:1.2 !important;
  }

  .ap-section-heading span{
    margin-top:16px !important;
  }

  .ap-solutions-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .ap-solution-card{
    min-height:auto !important;
    padding:24px 20px !important;
    border-radius:18px !important;

    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    text-align:center !important;
}

  .ap-solution-icon{
    width:54px !important;
    height:54px !important;
    margin:0 auto 18px !important;
}

  .ap-solution-icon i{
    font-size:20px !important;
  }

  .ap-solution-card h3{
    font-size:18px !important;
    line-height:1.3 !important;
    margin:0 0 12px !important;
    text-align:center !important;
}
  .ap-solution-card p{
    font-size:15px !important;
    line-height:1.6 !important;
    margin:0 !important;
    text-align:center !important;
    max-width:100% !important;
}
}
@media (min-width: 601px) and (max-width: 992px) {
  .ap-actions {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 190px !important;
    max-width: 190px !important;
    gap: 10px !important;
    margin: 0 !important;
    height: auto !important;
  }

  .ap-actions .ap-btn,
  .ap-actions .ap-btn-primary,
  .ap-actions .ap-btn-light,
  .ap-actions .ap-btn-outline {
    width: 190px !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
  }
}
/* ==========================
   TABLET ONLY (601px - 992px)
========================== */
@media (min-width: 601px) and (max-width: 992px) {

  .ap-solutions-section {
    padding: 48px 0 60px;
  }

  .ap-solutions-inner {
    width: calc(100% - 48px);
    margin: 0 auto;
  }

  .ap-section-heading {
    margin-bottom: 42px;
  }

  .ap-section-heading h2 {
    font-size: 28px !important;
  }

  .ap-portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .ap-portfolio-head h2 {
    font-size: 28px !important;
  }

  .ap-contact-properties {
    max-height: 210px !important;
    overflow-y: auto !important;
  }

  /* 3 cards in one line horizontally */
  .ap-solutions-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .ap-solution-card:last-child {
    grid-column: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .ap-solution-card {
    min-height: auto !important;
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  .ap-solution-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 16px !important;
  }

  .ap-solution-card h3 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .ap-solution-card p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .ap-property-cards-slider-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    height: auto !important;
    min-height: auto !important;
  }
  .ap-property-cards-slider-wrap .ap-property-card {
    min-height: auto !important;
  }
  .ap-property-cards-slider-wrap .ap-property-card-slider {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    z-index: 1 !important;
    min-height: auto !important;
  }
}

/* MIDDLE SCREEN SIZES / IPAD LANDSCAPE LAYOUT IMPROVEMENTS */
@media (max-width: 1400px) {
  .ap-hero-card {
      margin-left: 24px !important;
      margin-right: 24px !important;
      width: auto !important;
  }
  .ap-luxury-inner {
      padding-left: 24px !important;
      padding-right: 24px !important;
      width: auto !important;
  }
  .ap-portfolio-inner {
      padding-left: 24px !important;
      padding-right: 24px !important;
      width: auto !important;
  }
  .ap-solutions-inner {
      padding-left: 24px !important;
      padding-right: 24px !important;
      width: auto !important;
  }
  .ap-contact-card {
      margin-left: 24px !important;
      margin-right: 24px !important;
      width: auto !important;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .ap-luxury-inner {
      grid-template-columns: 1fr 400px !important;
      gap: 40px !important;
  }
}