/* estate-api-plugin.css */

/* محتوای کلی صفحه: RTL را در فایل PHP با style> اضافه کردیم */

/* باکس اصلی */


@font-face {
    font-family: IRANYekan;
    src: url(https://realtorpanel.melkradar.com/IRANYekanFN.d5be949a654d5e11.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: IRANYekan;
    src: url(https://realtorpanel.melkradar.com/IRANYekanFN-Thin.331e3939d87ca795.ttf) format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: IRANYekan;
    src: url(https://realtorpanel.melkradar.com/IRANYekanFN-Black.a673a037ef75ba69.ttf) format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: IRANYekan;
    src: url(https://realtorpanel.melkradar.com/IRANYekanFN-Bold.771241c5e7395798.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: IRANYekan;
    src: url(https://realtorpanel.melkradar.com/IRANYekanFN-ExtraBold.eb69e92c82a1f1f3.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: IRANYekan;
    src: url(https://realtorpanel.melkradar.com/IRANYekanFN-Light.ab8737a3ee8df874.ttf) format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: IRANYekan;
    src: url(https://realtorpanel.melkradar.com/IRANYekanFN-Medium.7a9fade7c33beccd.ttf) format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}


* {
    
    font-family: IRANYekan;
}

.main-container {
  margin: 0px auto;
  background: #f9f9f9;
  min-height: 400px;
  width: 100%;
  padding:0px;
  
  max-width:1000px;
}
@media (max-width: 768px) {
  .main-container {
    width: 95%;
  }
}

.img-length {
        position: absolute;
    top: 0;
    color: white;
    left: 0;
    width: 100%;
    aspect-ratio: 1;
    background: #161718ab;
    display: flex
;
    justify-content: center;
    align-items: center;
}

.img-section{
        width: 20%;
    position: relative;
}

img.img-preview {
    width: 100%;
    aspect-ratio: 1;
}
.first-row {
    display:flex;
    justify-content: space-between;
}
/* نوار بالا (داخل باکس) */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00bfff;
    color: #fff;
    padding: 10px;
}
.top-bar-right {
  font-weight: bold;
  font-size: 16px;
}
.top-bar-left {
  /* دکمه فیلتر سمت چپ */
  width:30%;
}
.filter-btn {
  background: #fff;
  color: #0073AA;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  width:100%;
}
.filter-btn:hover {
  opacity: 0.8;
}

/* لیست آگهی‌ها */
.estate-list {
  padding: 10px;
  
}

.item-box{
    width: 80%;
    background: #ffe9c0 !important;
    padding: 5%;
    margin-bottom: 3%;
    border-radius: 15px;
    padding: 5%;
    margin-bottom: 3%;
}

/* کارت آگهی */
.estate-item {
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 15px;
    display: flex
;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.estate-item:hover {
  background: #f1f1f1;
}

.id-line{
        font-size: 12px;
    color: gray;
}
.estate-item .header-line {
    width:100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-size: 15px;
    background: #ffaf22;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 45px;
    align-items: center;
    color: white;
}

.summary-line {
    font-size: 14px;
    font-weight: lighter;
    color: #162b32;
}

.amenities-line {
    font-weight: 800;
    font-size: 12px;
    color: gray;
}

.titles-row {
        display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.title-line {
    font-weight:1000;
}

.estate-item .id-line,
.estate-item .title-line,
.estate-item .amenities-line,
.estate-item .summary-line {
  margin-bottom: 4px;
}
.estate-item .price-line {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 15px;
    color: gray;
}

/* لودینگ */
.estate-loading {
  text-align: center;
  font-weight: bold;
  padding: 10px;
}

/* پاپ‌آپ */
.popup-overlay {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.popup-content {
    background: #f5f5f5;
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    border-radius: 50px;
}
/* امکان اسکرول عمودی در پاپ‌آپ اگر زیاد شد */
.popup-scrollable {
  max-height: 80vh;
  overflow-y: auto;
}
.adver_type{
    display: flex;
    justify-content: space-around;
    flex-wrap:wrap;
}
strong {
    color:#9dabb6;
}
.popup-close {
    position: absolute;
    top: 13px;
    left: 15px;
    font-size: 41px;
    cursor: pointer;
    color: gray;
}

::-webkit-scrollbar {
  width: 5px;
}

input {
    width: 45%;
    height: 40px;
    border: 1px solid lightgray;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #00bfff; 
  border-radius: 10px;
}
#filter-popup > div > h3 {
        font-weight: bold;
    color: #00bfff;
}
input[type='checkbox'] {
        width: 18px;
    height: 18px;
    margin-left: 17px;
    cursor: pointer;
    background-color: gray;
}

.adver_type > label {
    width: 48%;
    text-align: center;
    background: white;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid lightgray;
    border-radius: 10px;
    margin-bottom: 5px;
    cursor:pointer;
}
.adver_type > label:hover {
    background:#00bfff;
    color: white;
}
/* دکمه فیلتر */
.apply-filter-btn {
    background: #00bfff;
    color: #fff;
    border: 1px solid blue;
    padding: 8px 16px;
    cursor: pointer;
    width: 100%;
    font-size: larger;
    border-radius: 50px;
}
.apply-filter-btn:hover {
  background: #006799;
}

/* اسلایدر ساده برای تصاویر */
.slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  background:#ffe9c0 ;
}
.slider-image {
  display: none;
  text-align: center;
  height:50%;
}
.slider-image > img {
    height:100%;
}
.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
}
.slider-arrows span {
  cursor: pointer;
  background: rgba(0,0,0,0.3);
  color: #fff;
  padding: 6px 12px;
  margin: 0 10px;
  border-radius: 4px;
}
.slider-arrows .prev {
  float: left;
}
.slider-arrows .next {
  float: right;
}
