/* ================= GLOBAL ================= */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* ================= TOP HEADER ================= */
.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.logo {
    height: 50px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-actions span {
    font-weight: 500;
    color: #333;
}

/* ================= NAVBAR ================= */
.navbar {
    background: #0d6efd;
    position: sticky;
    top: 70px;
    z-index: 9998;
}

.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 12px 18px;
    transition: background 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(255,255,255,0.18);
    border-radius: 6px;
}

.navbar .dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ================= FILTER CARD ================= */
.filter-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    position: sticky;
    top: 140px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    display: block;
}

/* ================= LOCATION FILTER (MINISTORE STYLE) ================= */
.location-box {
    max-height: 110px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px;
    background: #fafafa;
}

.location-list td {
    padding: 4px 8px;
    font-size: 14px;
    white-space: nowrap;
}

.location-list input[type=checkbox] {
    margin-right: 6px;
    vertical-align: middle;
}

.location-list span:hover {
    background: #eee;
    border-radius: 4px;
    padding: 2px 4px;
}

.location-list input {
    margin: 0;
}

/* ================= SORT BAR (CENTER) ================= */
.sort-bar {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    margin-bottom: 18px;
}

.sort-item {
    flex: 1;
}

.sort-item label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

/* ================= PROPERTY CARD ================= */
.property-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    margin-bottom: 22px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info {
    padding: 20px;
}

.property-info h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #0d6efd;
}

.property-info p {
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

/* ================= RIGHT BANNER ================= */
.banner-img {
    height: 480px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.12);
}

/* ================= FOOTER ================= */
.footer {
    background: #111;
    color: #ccc;
    padding: 40px 0;
    margin-top: 40px;
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer p,
.footer div {
    font-size: 14px;
}
/* ================= FOOTER LINKS FIX ================= */


/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .top-actions {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }

    .navbar {
        top: 60px;
    }

    .filter-card {
        position: relative;
        top: auto;
        margin-bottom: 20px;
    }

    .sort-bar {
        flex-direction: column;
    }

    .property-card {
        grid-template-columns: 1fr;
    }

    .property-img img {
        height: 220px;
    }

    .banner-img {
        height: 260px;
    }
}

/* ===== 5 COLUMN GRID ===== */
.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 991px) {
    .col-lg-2-4 {
        width: 33.3333%; /* 3 per row tablet */
    }
}

@media (max-width: 575px) {
    .col-lg-2-4 {
        width: 50%; /* 2 per row mobile */
    }
}

/* ===== AMENITY CARD ===== */
.amenity-card {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 12px 8px;
    background: #fff;
    transition: 0.2s;
}

.amenity-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.amenity-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.amenity-name {
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

.amenity-distance {
    font-size: 13px;
    color: #666;
}


/* ===== Face Area ===== */
/* ===== FACE WISE PLOT DIAGRAM ===== */
/* ===== FACE WISE RECTANGULAR PLOT (FINAL FIX) ===== */

.plot-wrapper {
    position: relative;
    max-width: 520px;
    height: 320px;
    margin: 40px auto;
}

/* RECTANGLE */
.plot-shape {
    position: absolute;
    top: 80px;
    bottom: 80px;
    left: 110px;
    right: 110px;
    background: #f2f3f5;
    border: 3px solid #000;
    z-index: 1;
}

/* LABELS */
.plot-label {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    z-index: 2; /* ?? VERY IMPORTANT */
}

.plot-label span {
    display: block;
    font-size: 13px;
    margin-top: 4px;
}

/* POSITIONS */
.plot-label.north {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.plot-label.south {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.plot-label.west {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.plot-label.east {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ROAD === */
.road-line {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.road-line span {
    width: 36px;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

/* ================= MOBILE ONLY FIX ================= */
@media (max-width: 767px) {

    .face-svg-wrapper {
        width: 100%;
        overflow-x: hidden;
    }

    .face-svg-wrapper svg {
        max-width: 100%;
        height: auto;
        display: block;
    }
}


/* Similar project property details page === */
.similar-scroll {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.similar-card {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding: 8px 4px;
}

.similar-card img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.similar-info .title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.similar-info .price {
    font-size: 12px;
    color: #555;
}

.similar-info .view-link {
    font-size: 12px;
    color: #0d6efd;
    text-decoration: none;
}

/* ===== MOBILE VIEW: MOVE MORE PROPERTIES TO BOTTOM ===== */
@media (max-width: 767px) {

    .property-details-row {
        display: flex;
        flex-direction: column;
    }

    .property-details-row > div:nth-child(1) {
        order: 2; /* More Properties goes bottom */
    }

    .property-details-row > div:nth-child(2) {
        order: 1; /* Main content comes first */
    }

    .more-properties {
        margin-top: 20px;
    }
}
/* ===== DESKTOP (LIST VIEW) ===== */
.similar-slider {
    display: block;
}

.similar-slide {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.similar-slide img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.slide-info .title {
    font-size: 13px;
    font-weight: 600;
}

.slide-info .price {
    font-size: 13px;
    color: #0d6efd;
}

.slide-info .view-link {
    font-size: 12px;
    text-decoration: none;
}


/* ===== MOBILE ONLY: SLIDER MODE ===== */
@media (max-width: 767px) {

    .similar-slider {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }

    .similar-slide {
        flex: 0 0 85%;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        scroll-snap-align: start;
        display: block;
    }

    .similar-slide img {
        width: 100%;
        height: 160px;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .slide-info .title {
        font-size: 14px;
    }
}


/* ===== TOP ACTIONS ===== */
.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.call-us-link {
    text-decoration: none;
    color: #198754;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.call-us-link i {
    font-size: 16px;
}

/* ===== MOBILE ONLY ===== */
@media (max-width: 767px) {

    .call-text {
        display: none;   /* sirf icon dikhe */
    }

    .call-us-link i {
        font-size: 20px;
    }
}

/* ===== Map view ===== */

#map {
    height: 520px;
    border-radius: 8px;
}

.amenity-side {
    height: 520px;
}

.amenity-list-scroll {
    max-height: 470px;
    overflow-y: auto;
}

.amenity-row {
    display: flex;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.amenity-row:hover {
    background: #f5f8ff;
}

.amenity-row img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.amenity-row .name {
    font-size: 14px;
    font-weight: 600;
}

.amenity-row .dist {
    font-size: 12px;
    color: #666;
}

