/* ===============================
   GLOBAL FONT
================================ */

body,
button,
input,
select,
textarea,
.homez-property-page,
.property-shortcode-wrapper {
    font-family: "Euclid Circular", sans-serif !important;
    font-weight: 400 !important;
}

/* ===============================
   GLOBAL PROPERTY STYLES
================================ */

.property-shortcode-wrapper,
.homez-property-page {
    max-width: 1620px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.property-shortcode-wrapper *,
.homez-property-page * {
    box-sizing: border-box;
}

.property-no-image {
    height: 235px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
}
.eps-gallery-main {
    position: relative;
	overflow: hidden;
}

.eps-photo-count-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: #ffffff;
    color: #1f2a44;
    border: 1px solid #d8d8e8;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.eps-photo-count-btn i {
    font-size: 16px;
}
.eps-property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #C2A47E;
    color: #fff;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
main.homez-results-area {
    background-color: #f9f4e8;
    padding: 20px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;

    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500' fill='none'%3E%3Cg stroke='%23d8cdbf' stroke-width='2' stroke-opacity='0.35'%3E%3C!-- House --%3E%3Cpath d='M40 120 L90 70 L140 120 V180 H40 Z'/%3E%3Cpath d='M75 180 V140 H105 V180'/%3E%3C!-- Building --%3E%3Crect x='220' y='60' width='70' height='130' rx='4'/%3E%3Cpath d='M235 80h10M255 80h10M235 100h10M255 100h10M235 120h10M255 120h10M235 140h10M255 140h10'/%3E%3C!-- Key --%3E%3Ccircle cx='390' cy='110' r='20'/%3E%3Cpath d='M410 110h35M435 110v10M425 110v10'/%3E%3C!-- Location Pin --%3E%3Cpath d='M110 300c0-25 20-45 45-45s45 20 45 45c0 35-45 75-45 75s-45-40-45-75z'/%3E%3Ccircle cx='155' cy='300' r='12'/%3E%3C!-- Apartment --%3E%3Crect x='250' y='250' width='90' height='140' rx='4'/%3E%3Cpath d='M270 270h12M295 270h12M270 295h12M295 295h12M270 320h12M295 320h12M270 345h12M295 345h12'/%3E%3C!-- Villa --%3E%3Cpath d='M390 320 L440 270 L490 320 V390 H390 Z'/%3E%3Cpath d='M425 390 V350 H455 V390'/%3E%3C!-- Small Icons --%3E%3Ccircle cx='60' cy='420' r='8'/%3E%3Ccircle cx='120' cy='440' r='6'/%3E%3Ccircle cx='200' cy='430' r='7'/%3E%3Cpath d='M320 440h40'/%3E%3Cpath d='M350 420h25'/%3E%3C/g%3E%3C/svg%3E");

    background-size: 500px 500px;
    background-repeat: repeat;
    background-position: center;
}

/* ===============================
   HOMEZ STYLE LISTING PAGE
================================ */

.homez-property-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 400;
    color: #111;
}

.homez-property-header p {
    color: #777;
    margin: 6px 0 25px;
    font-size: 14px;
}

.homez-property-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

/* Sidebar */

.homez-filter-sidebar {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    height: fit-content;
}

.homez-filter-group {
    margin-bottom: 20px;
}

.homez-filter-group > label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    margin-bottom: 8px;
}

.homez-filter-form input,
.homez-filter-form select {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #111;
    font-size: 14px;
}

.homez-filter-form input:focus,
.homez-filter-form select:focus {
    outline: none;
    border-color: #c2a47e;
}

.homez-radio {
    display: flex !important;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 400 !important;
    margin: 8px 0;
    color: #333;
}

.homez-radio input {
    width: auto !important;
    height: auto !important;
    margin: 0;
}

.homez-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.homez-search-btn,
.homez-reset-btn {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    text-decoration: none;
    font-size: 14px;
}

.homez-search-btn {
    border: none;
    background: #ef5b4c;
    color: #fff;
    cursor: pointer;
}

.homez-search-btn:hover {
    background: #df493a;
}

.homez-reset-btn {
    margin-top: 10px;
    background: #f6f6f6;
    color: #111;
}

/* Results */

.homez-results-area {
    min-width: 0;
}

.homez-results-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #666;
    font-size: 14px;
}

.homez-property-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.homez-property-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
	display:flex;
    flex-direction:column;
    height:100%;
}

.homez-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.homez-card-image {
    position: relative;
    overflow: hidden;
}

.homez-card-image img,
.homez-card-image .property-no-image {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
}
.homez-status-badge{
    position:absolute;
    left:14px;
    top:14px;
    background: #C2A47E;
    color:#fff;
    padding:7px 13px;
    border-radius:20px;
    font-size:12px;
    font-weight:400;
    z-index:2;
}

.homez-card-price{
    font-size:24px;
    font-weight:400;
    color:#111;
    margin-bottom:10px;
    display:flex;
    align-items:center;
    gap:4px;
}
.homez-aed-icon{
    width:28px;
    height:28px;
    object-fit:contain;
    vertical-align:-3px;
    margin-right:4px;
    filter:brightness(0);
}
.homez-image-icons{
    position:absolute;
    top:14px;
    right:14px;
    display:flex;
    gap:8px;
    z-index:2;
}

.homez-image-icons a{
    width:34px;
    height:34px;
    border-radius:50%;
    background:#fff;
    color:#111;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:15px;
    box-shadow:0 4px 12px rgba(0,0,0,0.18);
}

.homez-card-image{
    position:relative;
    overflow:hidden;
}

.homez-card-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,0.45);
    color:#fff;
    font-size:22px;
    /*line-height:1;*/
    cursor:pointer;
    z-index:6;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
}

.homez-card-prev{
    left:12px;
}

.homez-card-next{
    right:12px;
}

.homez-card-arrow:hover{
    background:rgba(0,0,0,0.75);
}

.homez-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef5b4c;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 400;
    z-index: 2;
}

.homez-price-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #fff;
    color: #111;
    padding: 7px 11px;
    border-radius: 6px;
    font-weight: 400;
    font-size: 13px;
    z-index: 2;
}

.homez-card-content {
    padding: 18px;
	display:flex;
    flex-direction:column;
    flex-grow:1;
}

.homez-card-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
}

.homez-card-content h3 a {
    color: #111;
    text-decoration: none;
}

.homez-card-content h3 a:hover {
    color: #C2A47E;
}

.homez-card-location {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px;
}

.homez-card-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
    border-top:1px solid #eee;
    margin-top:20px;
}

.homez-card-footer {
    border-top: 1px solid #eee;
    padding-top: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.homez-card-icons {
    display: flex;
    gap: 10px;
}

.homez-card-icons a {
    width: 30px;
    height: 30px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    background: #fff;
}

.homez-card-icons a:hover {
    background: #ef5b4c;
    color: #fff;
    border-color: #ef5b4c;
}

.homez-card-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
    border-top:1px solid #eee;
    margin-top:20px;
}

.homez-card-meta span{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    color:#555;
}

.homez-card-meta i{
    color:#000;
    font-size:14px;
}

/* Pagination */

.property-pagination,
.homez-pagination {
    margin-top: 35px;
    text-align: center;
}

.property-pagination .page-numbers,
.homez-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 4px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #111;
    text-decoration: none;
    font-weight: 400;
}

.property-pagination .current,
.homez-pagination .current {
    background: #ef5b4c;
    color: #fff;
}

/* ===============================
   SINGLE PROPERTY PAGE
================================ */

.property-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.property-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.property-price {
    font-size: 30px;
    font-weight: 400;
    color: #00897b;
    margin-bottom: 25px;
}

.property-main-image-wrap img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 25px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.property-box {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.property-actions {
    display: flex;
    gap: 12px;
    margin: 25px 0;
}

.property-whatsapp,
.property-call,
.property-inquiry-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 8px;
    background: #00897b;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    border: none;
}

.property-call {
    background: #111;
}

.property-content,
.property-map-box,
.property-video-box,
.property-agent-box,
.property-amenities-box,
.property-inquiry-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-top: 25px;
}

.property-map-box iframe,
.property-video-wrap iframe {
    border-radius: 12px;
    overflow: hidden;
}

.property-amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.property-amenity-item {
    background: #f8f8f8;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
}

.property-agent-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.property-agent-image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
}

.property-form-row {
    margin-bottom: 15px;
}

.property-form-row input,
.property-form-row textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.property-inquiry-success {
    background: #e8f8ee;
    border-left: 4px solid #00897b;
    padding: 12px;
    margin-bottom: 15px;
}

.property-inquiry-error {
    background: #fff0f0;
    border-left: 4px solid #d63638;
    padding: 12px;
    margin-bottom: 15px;
}

/* ===============================
   OFFPLAN CARDS
================================ */

.offplan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.offplan-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.offplan-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.offplan-no-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
}

.offplan-content {
    padding: 22px;
}

.offplan-title {
    margin: 0 0 12px;
    font-size: 22px;
}

.offplan-title a {
    text-decoration: none;
    color: #111;
}

.offplan-developer {
    color: #0f766e;
    font-weight: 400;
    margin-bottom: 10px;
}

.offplan-location {
    margin-bottom: 10px;
}

.offplan-price {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
}

.offplan-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
    .homez-property-layout {
        grid-template-columns: 1fr;
    }

    .homez-property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offplan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.homez-card-meta i {
    color: #C2A47E;
    margin-right: 5px;
}

@media (max-width: 767px) {
    .homez-property-page,
    .property-container {
        padding: 0 15px;
    }

    .homez-property-header h1 {
        font-size: 28px;
    }

    .homez-property-grid {
        grid-template-columns: 1fr;
    }

    .homez-card-image img,
    .homez-card-image .property-no-image {
        height: 220px;
    }

    .property-title {
        font-size: 28px;
    }

    .property-price {
        font-size: 24px;
    }

    .property-grid,
    .property-amenities-grid,
    .offplan-grid {
        grid-template-columns: 1fr;
    }

    .property-actions {
        flex-direction: column;
    }

    .property-agent-card {
        flex-direction: column;
        align-items: flex-start;
    }
}