/* =====================================
   TRENDY PROPERTY CARD DESIGN
   ===================================== */

.property-item.homeya-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f5f8ff 100%);
    border: 1px solid #e6eaf2;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(28, 45, 90, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease;
    height: 100%;
}

.property-item.homeya-box:hover {
    transform: translateY(-7px);
    border-color: #b8c8ff;
    box-shadow: 0 16px 36px rgba(48, 67, 130, 0.16);
}

/* Image section */
.property-item .archive-top {
    position: relative;
}

.property-item .images-style {
    overflow: hidden;
    border-radius: 19px 19px 0 0;
}

.property-item .images-style img {
    display: block;
    width: 100%;
    aspect-ratio: 400 / 260;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-item:hover .images-style img {
    transform: scale(1.06);
}

/* Soft image overlay */
.property-item .images-group {
    position: relative;
    display: block;
}

.property-item .images-group::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 45, 0.12) 0%,
        transparent 35%,
        transparent 58%,
        rgba(10, 20, 45, 0.48) 100%
    );
    pointer-events: none;
    border-radius: 19px 19px 0 0;
}

/* Keep image labels above the overlay */
.property-item .images-group .top,
.property-item .images-group .bottom {
    z-index: 2;
}

/* Featured and renting badges */
.property-item .flag-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.3px;
    border: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.property-item .flag-tag.success {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669);
}

.property-item .flag-tag.primary,
.property-item .flag-tag.status-badge-renting {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

/* Commercial property label */
.property-item .flag-tag.style-2 {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    backdrop-filter: blur(8px);
}

/* Wishlist button */
.property-item .box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: #e11d48;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background 0.25s ease, color 0.25s ease,
                transform 0.25s ease;
    cursor: pointer;
}

.property-item .box-icon:hover {
    color: #ffffff;
    background: #e11d48;
    transform: scale(1.08);
}

/* Property information */
.property-item .content {
    padding: 19px 20px 16px;
}

.property-item .content .h7 {
    margin-bottom: 10px;
}

.property-item .content .h7 a {
    color: #172554;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.25s ease;
}

.property-item:hover .content .h7 a {
    color: #4f46e5;
}

/* Location */
.property-item .desc {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    color: #64748b;
    font-size: 13px;
}

.property-item .desc i {
    color: #f97316;
    font-size: 17px;
    flex-shrink: 0;
}

.property-item .desc p {
    margin: 0;
}

/* Bedrooms, bathrooms and area */
.property-item .meta-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.property-item .meta-list .item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e5eaf5;
    border-radius: 9px;
    background: linear-gradient(135deg, #f8faff, #edf3ff);
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.property-item .meta-list .item i {
    color: #6366f1;
    font-size: 16px;
}

/* Bottom agent and price section */
.property-item .archive-bottom {
    gap: 12px;
    padding: 14px 20px 18px;
    margin: 0 18px;
    border-top: 1px solid #e6eaf2;
    flex-wrap: wrap;
}

.property-item .archive-bottom > div:first-child {
    min-width: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.property-item .archive-bottom .avatar {
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.15);
    flex-shrink: 0;
}

.property-item .archive-bottom .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property price */
.property-item .archive-bottom .h6 {
    display: inline-block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Keyboard accessibility */
.property-item a:focus-visible,
.property-item button:focus-visible {
    outline: 3px solid #818cf8;
    outline-offset: 3px;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .property-item.homeya-box {
        border-radius: 15px;
    }

    .property-item .images-style,
    .property-item .images-group::after {
        border-radius: 14px 14px 0 0;
    }

    .property-item .content {
        padding: 15px 14px 13px;
    }

    .property-item .content .h7 a {
        font-size: 17px;
    }

    .property-item .meta-list {
        gap: 6px;
    }

    .property-item .meta-list .item {
        padding: 7px 8px;
        font-size: 11px;
    }

    .property-item .archive-bottom {
        padding: 12px 0 15px;
        margin: 0 14px;
    }

    .property-item .archive-bottom .h6 {
        padding: 8px 9px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .property-item.homeya-box,
    .property-item .images-style img,
    .property-item .box-icon {
        transition: none;
    }

    .property-item.homeya-box:hover,
    .property-item:hover .images-style img {
        transform: none;
    }
}


/* Vertical and horizontal gap between property items */
.property-item.homeya-box{height:94%;}


/* =====================================
   SERVICES SECTION - MODERN DESIGN
   ===================================== */

section[data-shortcode-name="services"] {
    padding: 75px 0 !important;
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%) !important;
}

section[data-shortcode-name="services"] > .container {
    position: relative;
}

/* Section heading */
section[data-shortcode-name="services"] .box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px !important;
}

section[data-shortcode-name="services"] .text-subtitle {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 30px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #4f46e5 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

section[data-shortcode-name="services"] .section-title {
    margin-top: 15px !important;
    color: #172554;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.2;
}

/* View all services button */
section[data-shortcode-name="services"] .box-title > .btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.2);
    transition: transform .3s ease, box-shadow .3s ease;
}

section[data-shortcode-name="services"] .box-title > .btn-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
}

/* Services grid */
section[data-shortcode-name="services"] .wrap-service {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px !important;
    margin-bottom: 55px !important;
}

/* Individual service card */
section[data-shortcode-name="services"] .box-service {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 30px 25px;
    overflow: hidden;
    border: 1px solid #e5eaf5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(30, 50, 100, 0.07);
    transition: transform .35s ease, box-shadow .35s ease,
                border-color .35s ease;
}

/* Decorative corner */
section[data-shortcode-name="services"] .box-service::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #a855f7);
    opacity: .9;
}

/* Card hover */
section[data-shortcode-name="services"] .box-service:hover {
    transform: translateY(-8px);
    border-color: #c7d2fe;
    box-shadow: 0 18px 38px rgba(45, 60, 120, 0.14);
}

/* Icon background */
section[data-shortcode-name="services"] .box-service .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    min-height: 92px;
    margin-bottom: 23px;
    border-radius: 22px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    transition: transform .35s ease, border-radius .35s ease;
}

section[data-shortcode-name="services"] .box-service:nth-child(2) .icon-box {
    background: linear-gradient(135deg, #cffafe, #dbeafe);
}

section[data-shortcode-name="services"] .box-service:nth-child(3) .icon-box {
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

section[data-shortcode-name="services"] .box-service:hover .icon-box {
    transform: scale(1.06) rotate(-3deg);
    border-radius: 27px;
}

/* Service icon image */
section[data-shortcode-name="services"] .box-service .icon-box img {
    display: block;
    width: 65px;
    height: 65px;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain;
}

/* Card content */
section[data-shortcode-name="services"] .box-service .content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

section[data-shortcode-name="services"] .box-service .title {
    margin: 0 0 14px;
    color: #172554;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.35;
    transition: color .25s ease;
}

section[data-shortcode-name="services"] .box-service:hover .title {
    color: #4f46e5;
}

section[data-shortcode-name="services"] .box-service .description {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.85;
}

/* Learn More link */
section[data-shortcode-name="services"] .box-service .btn-view.style-1 {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    padding: 10px 0;
    color: #4f46e5 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

section[data-shortcode-name="services"] .box-service .btn-view.style-1 svg {
    transition: transform .25s ease;
}

section[data-shortcode-name="services"] .box-service:hover .btn-view.style-1 svg {
    transform: translateX(5px);
}

/* =====================================
   COUNTER BOXES
   ===================================== */

section[data-shortcode-name="services"] .wrap-counter {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px !important;
    margin-top: 10px !important;
}

section[data-shortcode-name="services"] .counter-box {
    padding: 26px 18px;
    text-align: center;
    border: 1px solid #e5eaf5;
    border-radius: 17px;
    background: linear-gradient(145deg, #ffffff, #f1f5ff);
    box-shadow: 0 5px 18px rgba(30, 50, 100, 0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

section[data-shortcode-name="services"] .counter-box:nth-child(2) {
    background: linear-gradient(145deg, #ffffff, #ecfeff);
}

section[data-shortcode-name="services"] .counter-box:nth-child(3) {
    background: linear-gradient(145deg, #ffffff, #f5f3ff);
}

section[data-shortcode-name="services"] .counter-box:nth-child(4) {
    background: linear-gradient(145deg, #ffffff, #fff7ed);
}

section[data-shortcode-name="services"] .counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(30, 50, 100, 0.12);
}

section[data-shortcode-name="services"] .counter-box .number {
    color: #4f46e5;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
}

section[data-shortcode-name="services"] .counter-box:nth-child(2) .number {
    color: #0891b2;
}

section[data-shortcode-name="services"] .counter-box:nth-child(3) .number {
    color: #7c3aed;
}

section[data-shortcode-name="services"] .counter-box:nth-child(4) .number {
    color: #ea580c;
}

section[data-shortcode-name="services"] .counter-box .title-count {
    margin-top: 9px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    line-height: 1.6;
}

/* =====================================
   TABLET
   ===================================== */

@media (max-width: 991px) {
    section[data-shortcode-name="services"] {
        padding: 55px 0 !important;
    }

    section[data-shortcode-name="services"] .wrap-service {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px !important;
        margin-bottom: 40px !important;
    }

    section[data-shortcode-name="services"] .wrap-counter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 575px) {
    section[data-shortcode-name="services"] {
        padding: 40px 0 !important;
    }

    section[data-shortcode-name="services"] .box-title {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 25px !important;
    }

    section[data-shortcode-name="services"] .section-title {
        font-size: 29px;
    }

    section[data-shortcode-name="services"] .wrap-service {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px !important;
        margin-bottom: 35px !important;
    }

    section[data-shortcode-name="services"] .box-service {
        padding: 25px 22px;
        border-radius: 16px;
    }

    section[data-shortcode-name="services"] .box-service .title {
        font-size: 19px;
    }

    section[data-shortcode-name="services"] .wrap-counter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }

    section[data-shortcode-name="services"] .counter-box {
        padding: 20px 10px;
    }

    section[data-shortcode-name="services"] .counter-box .number {
        font-size: 29px;
    }

    section[data-shortcode-name="services"] .counter-box .title-count {
        font-size: 10px;
        letter-spacing: .3px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    section[data-shortcode-name="services"] *,
    section[data-shortcode-name="services"] *::before,
    section[data-shortcode-name="services"] *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* Services heading and button alignment */
section[data-shortcode-name="services"] .box-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100%;
}

section[data-shortcode-name="services"] .box-title .box-left {
    flex: 1;
    min-width: 0;
}

/* View All Properties button */
section[data-shortcode-name="services"] .box-title > a.btn-view {
    position: static !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 10px !important;

    width: auto !important;
    height: auto !important;
    min-height: 46px;
    margin: 0 !important;
    padding: 12px 20px !important;

    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.22);
    transition: all 0.25s ease !important;
}

section[data-shortcode-name="services"] .box-title > a.btn-view .text {
    display: inline !important;
    color: #ffffff !important;
    line-height: inherit !important;
}

section[data-shortcode-name="services"] .box-title > a.btn-view svg {
    display: block !important;
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin: 0 !important;
    color: #ffffff !important;
    stroke: currentColor !important;
}

section[data-shortcode-name="services"] .box-title > a.btn-view:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4338ca, #6d28d9) !important;
    box-shadow: 0 9px 22px rgba(79, 70, 229, 0.3);
}

/* Mobile alignment */
@media (max-width: 575px) {
    section[data-shortcode-name="services"] .box-title {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    section[data-shortcode-name="services"] .box-title > a.btn-view {
        align-self: flex-start !important;
        margin-top: 5px !important;
        white-space: normal !important;
    }
}

.flat-recommended{padding-bottom:0px;}
.flat-property-v2{padding-bottom:0px;}