
.tp-estate-enterprise .tpev3-filter,
.tp-estate-enterprise .tpev3-form,
.tp-estate-enterprise .tpev3-empty,
.tp-estate-enterprise .tpev3-loading{
    background:#fff;
    border:1px solid var(--tp-border);
    border-radius:30px;
    padding:24px;
    box-shadow:var(--tp-shadow);
}
.tp-estate-enterprise .tpev3-grid,
.tp-estate-enterprise .tpev3-detail-grid{display:grid;gap:20px}
.tp-estate-enterprise .tpev3-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tp-estate-enterprise .tpev3-filter input,
.tp-estate-enterprise .tpev3-filter select,
.tp-estate-enterprise .tpev3-form input,
.tp-estate-enterprise .tpev3-form textarea{
    width:100%;min-height:52px;padding:0 16px;border:1px solid var(--tp-border);border-radius:18px;background:#fff;
}
.tp-estate-enterprise .tpev3-form textarea{min-height:150px;padding:16px}
.tp-estate-enterprise .tpev3-btn,
.tp-estate-enterprise .tpev3-chip,
.tp-estate-enterprise .tpev3-ghost{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border-radius:16px;transition:transform .2s ease, box-shadow .2s ease, background .2s ease;text-decoration:none;border:none;
}
.tp-estate-enterprise .tpev3-btn{background:linear-gradient(135deg,var(--tp-accent),#d72930);color:#fff;font-weight:800;box-shadow:0 18px 40px rgba(181,22,26,.28)}
.tp-estate-enterprise .tpev3-ghost{background:#fff;color:var(--tp-text);border:1px solid var(--tp-border)}
.tp-estate-enterprise .tpev3-chip{background:#fff5f5;color:#8f1217;border:1px solid #fecaca;padding:10px 14px;font-size:14px}
.tp-estate-enterprise .tpev3-chip.is-active{background:#8f1217;color:#fff;border-color:#8f1217}
.tp-estate-enterprise .tpev3-card,
.tp-estate-enterprise .tpev3-panel,
.tp-estate-enterprise .tpev3-single-card{
    background:#fff;border-radius:30px;overflow:hidden;box-shadow:var(--tp-shadow);border:1px solid var(--tp-border)
}
.tp-estate-enterprise .tpev3-card-body,.tp-estate-enterprise .tpev3-single-card{padding:24px}
.tp-estate-enterprise .tpev3-thumb img{display:block;width:100%;height:260px;object-fit:cover}
.tp-estate-enterprise .tpev3-price{margin:12px 0 16px;color:#8f1217;font-size:1.2rem;font-weight:800}
.tp-estate-enterprise .tpev3-badges,
.tp-estate-enterprise .tpev3-card-actions,
.tp-estate-enterprise .tpev3-mini-actions{display:flex;flex-wrap:wrap;gap:12px}
.tp-estate-enterprise .tpev3-badges span,
.tp-estate-enterprise .tpev3-badge,
.tp-estate-enterprise .tpev3-code{display:inline-flex;padding:.35rem .75rem;border-radius:999px;background:#fff1f2;color:#9f1239;font-size:.82rem;font-weight:800}
.tp-estate-enterprise .tpev3-badge.is-alt{background:#fff;color:#991b1b;border:1px solid #fecaca}
.tp-estate-enterprise .tpev3-link{color:#8f1217;font-weight:800}
.tp-estate-enterprise .tpev3-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.tp-estate-enterprise .tpev3-head h1,
.tp-estate-enterprise .tpev3-head h2{margin:0}
.tp-estate-enterprise .tpev3-compare-table-wrap{overflow:auto;background:#fff;border:1px solid var(--tp-border);border-radius:20px}
.tp-estate-enterprise .tpev3-compare-table{width:100%;border-collapse:collapse;min-width:760px}
.tp-estate-enterprise .tpev3-compare-table th,
.tp-estate-enterprise .tpev3-compare-table td{border-bottom:1px solid var(--tp-border);padding:14px;text-align:right;vertical-align:top}
.tp-estate-enterprise .tpev3-compare-table thead th{background:#fff5f5;position:sticky;top:0}
.tpev3-floatbar{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:10px;z-index:9999}
.tpev3-floatbar a{display:inline-flex;align-items:center;justify-content:center;min-width:132px;padding:12px 16px;border-radius:14px;background:#8f1217;color:#fff;text-decoration:none;box-shadow:0 12px 24px rgba(39,8,12,.22)}
@media (max-width:1024px){
    .tp-estate-enterprise .tpev3-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
    .tp-estate-enterprise .tpev3-grid{grid-template-columns:1fr}
    .tp-estate-enterprise .tpev3-thumb img{height:220px}
}

/* TP_MEDIA_FIT_REPAIR_v1 START */
/* هدف: استانداردسازی نمایش عکس و ویدیو در TurkishPlanet و افزونه املاک */

:where(.property-featured-image, .entry-featured, .tpev3-gallery-slider figure, .tpev3-thumb, .tpev3-media, .entry-content figure, .property-entry figure){
    overflow:hidden;
    border-radius:24px;
}

:where(.property-featured-image img, .entry-featured img, .tpev3-main-image){
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:16 / 9;
    height:auto !important;
    max-height:min(72vh, 760px);
    object-fit:cover;
    display:block;
}

:where(.tpev3-gallery-slider){
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:14px;
}

:where(.tpev3-gallery-slider img, .gallery img, .blocks-gallery-item img, .wp-block-gallery img){
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:4 / 3;
    height:auto !important;
    max-height:420px;
    object-fit:cover;
    display:block;
}

:where(.entry-content img, .property-entry img, .wp-block-image img, .tpev3-single-card .entry-content img){
    width:auto;
    max-width:100% !important;
    height:auto !important;
    max-height:72vh;
    object-fit:contain;
    display:block;
    margin-inline:auto;
    border-radius:22px;
}

:where(.entry-content iframe, .property-entry iframe, .entry-content video, .property-entry video, .tpev3-video, .tpev3-media iframe, .tpev3-media video, .wp-video-shortcode, .wp-block-embed iframe){
    display:block;
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:16 / 9;
    height:auto !important;
    max-height:min(72vh, 760px);
    border:0;
    border-radius:24px;
    background:#000;
    overflow:hidden;
}

:where(.wp-video, .mejs-container, .mejs__container, .tpev3-media, .entry-content .wp-block-embed, .entry-content .wp-block-video){
    width:100% !important;
    max-width:100% !important;
    margin-inline:auto;
    border-radius:24px;
    overflow:hidden;
}

:where(.tpev3-thumb img){
    height:260px;
    object-fit:cover;
}

@media (max-width: 1024px){
    :where(.property-featured-image img, .entry-featured img, .tpev3-main-image, .entry-content iframe, .property-entry iframe, .entry-content video, .property-entry video, .tpev3-video, .tpev3-media iframe, .tpev3-media video){
        max-height:60vh;
    }
}

@media (max-width: 680px){
    :where(.property-featured-image img, .entry-featured img, .tpev3-main-image){
        aspect-ratio: 16 / 10;
        max-height: 44vh;
        border-radius:18px;
    }

    :where(.tpev3-gallery-slider){
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    :where(.tpev3-gallery-slider img, .gallery img, .blocks-gallery-item img, .wp-block-gallery img){
        aspect-ratio:1 / 1;
        max-height:220px;
        border-radius:16px;
    }

    :where(.entry-content iframe, .property-entry iframe, .entry-content video, .property-entry video, .tpev3-video, .tpev3-media iframe, .tpev3-media video){
        max-height:42vh;
        border-radius:18px;
    }
}
/* TP_MEDIA_FIT_REPAIR_v1 END */

/* TP PROPERTY GALLERY REPAIR START */
.tpgr-gallery-card{margin-bottom:22px;background:#fff;border:1px solid rgba(24,33,46,.08);border-radius:30px;box-shadow:var(--tp-shadow);padding:16px;overflow:hidden}
.tpgr-gallery-stage{position:relative;background:#0d0d0f;border-radius:22px;overflow:hidden;min-height:320px}
.tpgr-gallery-slide{display:none;align-items:center;justify-content:center;min-height:320px}
.tpgr-gallery-slide.is-active{display:flex}
.tpgr-gallery-slide img{display:block;width:100%;height:min(72vh,760px);object-fit:contain;background:#0d0d0f}
.tpgr-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:48px;height:48px;border:none;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tpgr-gallery-nav.is-prev{right:16px}
.tpgr-gallery-nav.is-next{left:16px}
.tpgr-gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:10px;margin-top:12px}
.tpgr-gallery-thumb{appearance:none;border:2px solid transparent;border-radius:16px;padding:0;overflow:hidden;background:#f5f5f7;cursor:pointer}
.tpgr-gallery-thumb.is-active{border-color:#c51f2f;box-shadow:0 0 0 3px rgba(197,31,47,.14)}
.tpgr-gallery-thumb img{display:block;width:100%;height:84px;object-fit:cover}
@media (max-width: 768px){
  .tpgr-gallery-card{padding:10px;border-radius:22px}
  .tpgr-gallery-stage,.tpgr-gallery-slide{min-height:220px}
  .tpgr-gallery-slide img{height:min(52vh,420px)}
  .tpgr-gallery-nav{width:42px;height:42px;font-size:26px}
  .tpgr-gallery-nav.is-prev{right:10px}
  .tpgr-gallery-nav.is-next{left:10px}
  .tpgr-gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .tpgr-gallery-thumb img{height:70px}
}
/* TP PROPERTY GALLERY REPAIR END */

/* TP_UI_VISIBILITY_REPAIR_v1 START */
/* هدف: خواناسازی مشخصات ملک در هدر و اصلاح رنگ لینک‌های فوتر */

.property-hero .property-summary-card,
.page-hero .property-summary-card{
    background:rgba(255,255,255,.98) !important;
    color:#161616 !important;
    border:1px solid rgba(22,22,22,.08) !important;
    box-shadow:0 20px 50px rgba(15,8,9,.14) !important;
}

.property-hero .property-summary-card *,
.page-hero .property-summary-card *{
    color:#161616 !important;
}

.property-hero .property-summary-card .property-specs strong,
.page-hero .property-summary-card .property-specs strong{
    color:#6b1a1f !important;
    font-weight:800 !important;
}

.property-hero .property-summary-card .property-specs span,
.page-hero .property-summary-card .property-specs span{
    color:#111111 !important;
    font-weight:700 !important;
}

.property-hero .property-summary-card .property-specs li,
.page-hero .property-summary-card .property-specs li{
    border-bottom:1px solid rgba(24,33,46,.12) !important;
}

.site-footer .footer-menu a,
.site-footer .footer-contact a,
.site-footer .footer-grid a{
    color:#ffd767 !important;
    opacity:1 !important;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-contact a:hover,
.site-footer .footer-grid a:hover{
    color:#d72830 !important;
}

.site-footer .footer-menu li,
.site-footer .footer-contact li,
.site-footer .footer-grid p,
.site-footer .footer-bottom,
.site-footer .footer-bottom p{
    color:rgba(255,255,255,.88) !important;
}

/* کمی خوانایی بهتر برای فوتر در تم فعلی */
.site-footer .footer-grid h3,
.site-footer .footer-grid h4{
    color:#ffffff !important;
}
/* TP_UI_VISIBILITY_REPAIR_v1 END */
