/*
Theme Name:   Kadence Child - UK Real Estate
Template:     kadence
Author:       Real Estate Studio
Version:      2.0.0
Description:  Professional UK Real Estate Child Theme for Kadence
*/

/* =========================================
   KADENCE TOKEN ENTEGRASYONU
   ========================================= */
:root {
    --re-primary:    var(--global-palette1, #0f172a);
    --re-accent:     var(--global-palette2, #c9a96e);
    --re-success:    #10b981;
    --re-danger:     #ef4444;
    --re-text:       var(--global-palette5, #334155);
    --re-muted:      var(--global-palette6, #64748b);
    --re-border:     var(--global-palette7, #e2e8f0);
    --re-bg:         var(--global-palette8, #ffffff);
    --re-card:       var(--global-palette9, #ffffff);
    --re-radius:     12px;
    --re-radius-lg:  20px;
    --re-shadow:     0 4px 20px rgba(15, 23, 42, 0.06);
    --re-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
    --re-transition: all 0.25s ease;
}

/* =========================================
   GLOBAL
   ========================================= 
body.single-property,
body.post-type-archive-property,
body.tax-property_type,
body.tax-location {
    background: var(--re-bg);
}
*/
.re-single-wrapper,
.re-archive-wrapper {
    max-width: var(--global-content-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--global-content-edge-padding, 1.5rem);
}

/* =========================================
   ARCHIVE - HEADER & SEARCH
   ========================================= */
.re-archive-header {
    text-align: center;
    padding: 50px 0 30px;
}
.re-archive-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--re-primary);
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.re-archive-header p {
    color: var(--re-muted);
    margin: 0;
    font-size: 1.05rem;
}

.re-search-form {
    margin-bottom: 40px;
}

.search-main-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr auto auto;
    gap: 10px;
    background: var(--re-card);
    padding: 12px;
    border-radius: var(--re-radius);
    box-shadow: var(--re-shadow);
    border: 1px solid var(--re-border);
}

.input-with-icon { position: relative; }
.input-with-icon .dashicons {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--re-muted);
    font-size: 18px;
}
.input-with-icon input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px !important;
    border: 1px solid var(--re-border) !important;
    background: var(--re-bg);
    border-radius: 10px !important;
    font-size: 0.95rem;
    transition: var(--re-transition);
}
.input-with-icon input:focus {
    border-color: var(--re-primary) !important;
    background: var(--re-card) !important;
    outline: none;
}

.filter-select,
.filter-group select,
.filter-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--re-border);
    background: var(--re-card);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--re-text);
    cursor: pointer;
    transition: var(--re-transition);
}

.filter-btn {
    height: 48px;
    padding: 0 20px;
    background: var(--re-bg);
    color: var(--re-text);
    border: 1px solid var(--re-border);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--re-transition);
}
.filter-btn:hover { background: var(--re-border); }

.search-submit-btn {
    height: 48px;
    padding: 0 28px;
    background: var(--re-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--re-transition);
}
.search-submit-btn:hover { 
    background: var(--re-accent);
    transform: translateY(-1px);
}

/* Filter Panel */
.filter-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    background: var(--re-card);
    border-radius: var(--re-radius);
}
.filter-panel.active {
    max-height: 500px;
    margin-top: 12px;
    padding: 24px;
    opacity: 1;
    border: 1px solid var(--re-border);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--re-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Result count + sort */
.re-results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.re-results-meta .count {
    color: var(--re-muted);
    font-size: 0.95rem;
}
.re-results-meta .count strong { color: var(--re-primary); }

/* =========================================
   PROPERTY GRID & CARDS
   ========================================= */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.property-card {
    background: var(--re-card);
    border-radius: var(--re-radius-lg);
    overflow: hidden;
    border: 1px solid var(--re-border);
    transition: var(--re-transition);
    display: flex;
    flex-direction: column;
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--re-shadow-hover);
    border-color: transparent;
}

.card-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--re-bg);
}
.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.property-card:hover .card-image-wrap img { transform: scale(1.05); }

.card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.card-favorite {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: var(--re-transition);
    z-index: 2;
}
.card-favorite:hover { background: #fff; transform: scale(1.1); }
.card-favorite .dashicons { color: var(--re-danger); font-size: 18px; }

.card-content { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--re-primary);
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--re-text);
    margin: 4px 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a { color: inherit; text-decoration: none; }
.card-location {
    font-size: 0.875rem;
    color: var(--re-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
}
.card-location .dashicons { font-size: 14px; }

.card-features {
    display: flex;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--re-border);
    margin-top: auto;
    color: var(--re-text);
    font-size: 0.875rem;
    flex-wrap: wrap;
}
.card-features span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-features .dashicons {
    font-size: 16px;
    color: var(--re-muted);
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--re-card);
    color: var(--re-text);
}
.badge.sale     { background: #dbeafe; color: #1e40af; }
.badge.rent     { background: #fef3c7; color: #92400e; }
.badge.new      { background: var(--re-accent); color: #fff; }
.badge.verified { background: #d1fae5; color: #065f46; }
.badge.featured { background: var(--re-primary); color: #fff; }
.badge.epc-a, .badge.epc-b { background: #d1fae5; color: #065f46; }
.badge.epc-c, .badge.epc-d { background: #fef3c7; color: #92400e; }
.badge.epc-e, .badge.epc-f, .badge.epc-g { background: #fee2e2; color: #991b1b; }

/* =========================================
   SINGLE PROPERTY
   ========================================= */
.re-single-container { padding: 40px 0 80px; }

.re-single-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

/* Header */
.re-property-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.re-status-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.re-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--re-primary);
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.re-location {
    color: var(--re-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    margin: 0;
}
.re-top-price {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: var(--re-primary);
    letter-spacing: -0.02em;
}
.re-top-price-label {
    font-size: 0.75rem;
    color: var(--re-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
    text-align: right;
}

/* =========================================
   GALLERY (Swiper)
   ========================================= */
.re-gallery-wrapper {
    background: var(--re-card);
    border-radius: var(--re-radius-lg);
    overflow: hidden;
    box-shadow: var(--re-shadow);
    margin-bottom: 24px;
}

.re-main-swiper {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--re-bg);
}
.re-main-swiper .swiper-slide {
    overflow: hidden;
}
.re-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.re-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.re-thumbs-swiper {
    padding: 12px;
    background: var(--re-card);
    border-top: 1px solid var(--re-border);
}
.re-thumbs-swiper .swiper-slide {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, transform 0.2s;
    border: 2px solid transparent;
}
.re-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--re-primary);
}
.re-thumbs-swiper .swiper-slide:hover { opacity: 1; }
.re-thumbs-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--re-primary) !important;
    background: rgba(255, 255, 255, 0.95);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: var(--re-transition);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #fff;
    transform: scale(1.05);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: 800;
}

/* =========================================
   QUICK FACTS BAR
   ========================================= */
.re-quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    background: var(--re-card);
    border: 1px solid var(--re-border);
    border-radius: var(--re-radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--re-shadow);
}
.q-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-right: 1px solid var(--re-border);
}
.q-item:last-child { border-right: none; }
.q-item .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--re-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.q-item .dashicons {
    font-size: 22px;
    color: var(--re-primary);
}
.q-item .label {
    font-size: 0.7rem;
    color: var(--re-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.q-item .value {
    font-size: 1.1rem;
    color: var(--re-primary);
    font-weight: 700;
    line-height: 1.2;
}

/* =========================================
   DESCRIPTION & DETAILS
   ========================================= */
.re-section {
    background: var(--re-card);
    padding: 32px;
    border-radius: var(--re-radius-lg);
    border: 1px solid var(--re-border);
    margin-bottom: 24px;
    box-shadow: var(--re-shadow);
}
.re-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--re-primary);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--re-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.re-content-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--re-text);
}
.re-content-text p:last-child { margin-bottom: 0; }

/* The_content içindeki galeriyi gizle */
.re-content-text .wp-block-gallery,
.re-content-text .gallery,
.re-content-text .wp-block-image,
.re-content-text figure.wp-block-image {
    display: none !important;
}

/* Details Table */
.re-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 24px;
}
.re-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--re-border);
    font-size: 0.95rem;
}
.re-detail-row:last-child { border-bottom: none; }
.re-detail-row .label {
    color: var(--re-muted);
    font-weight: 500;
}
.re-detail-row .value {
    color: var(--re-primary);
    font-weight: 700;
}

/* =========================================
   SIDEBAR (Sticky)
   ========================================= */
.re-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.re-sidebar-card {
    background: var(--re-card);
    padding: 28px;
    border-radius: var(--re-radius-lg);
    box-shadow: var(--re-shadow);
    border: 1px solid var(--re-border);
}
.re-sidebar-price {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--re-border);
}
.re-sidebar-price .label {
    color: var(--re-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.re-sidebar-price .value {
    color: var(--re-primary);
    font-size: 2rem;
    font-weight: 800;
    margin: 6px 0 0;
    letter-spacing: -0.02em;
}
.re-sidebar-heading {
    margin: 0 0 16px;
    font-size: 1rem;
    color: var(--re-primary);
    font-weight: 700;
}

.re-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: var(--re-transition);
    text-decoration: none;
}
.re-btn-primary {
    background: var(--re-primary);
    color: #fff !important;
}
.re-btn-primary:hover {
    background: var(--re-accent);
    transform: translateY(-2px);
    color: #fff !important;
}
.re-btn-wa {
    background: #25d366;
    color: #fff !important;
}
.re-btn-wa:hover {
    background: #128c7e;
    color: #fff !important;
    transform: translateY(-2px);
}
.re-btn-outline {
    background: transparent;
    color: var(--re-primary) !important;
    border: 1px solid var(--re-border);
}
.re-btn-outline:hover {
    background: var(--re-bg);
    border-color: var(--re-primary);
}

.ai-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--re-success);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--re-border);
}
.pulse {
    width: 8px;
    height: 8px;
    background: var(--re-success);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =========================================
   PAGINATION
   ========================================= */
.re-pagination-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.re-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    margin: 0 4px;
    background: var(--re-card);
    color: var(--re-text);
    border: 1px solid var(--re-border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--re-transition);
}
.re-pagination-wrap .page-numbers:hover,
.re-pagination-wrap .page-numbers.current {
    background: var(--re-primary);
    color: #fff;
    border-color: var(--re-primary);
}

/* =========================================
   NO RESULTS
   ========================================= */
.re-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--re-card);
    border-radius: var(--re-radius-lg);
    border: 1px dashed var(--re-border);
}
.re-no-results h3 {
    color: var(--re-primary);
    margin: 0 0 8px;
}
.re-no-results p {
    color: var(--re-muted);
    margin: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .re-single-wrapper { grid-template-columns: 1fr; }
    .re-sidebar { position: relative; top: 0; }
    .search-main-row {
        grid-template-columns: 1fr;
    }
    .re-property-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .re-top-price-label,
    .re-top-price { text-align: left; }
}

@media (max-width: 600px) {
    .re-section { padding: 22px; }
    .re-sidebar-card { padding: 22px; }
    .q-item { padding: 16px; }
    .re-title { font-size: 1.5rem; }
    .property-grid { grid-template-columns: 1fr; }
}

.card-favorite.is-fav { background: var(--re-danger); }
.card-favorite.is-fav .dashicons { color: #fff; }


/* =========================================
   HEADER FIX - İç sayfalarda menü/logo görünür yap
   ========================================= */
body.non-transparent-header .main-navigation .primary-menu-container > ul > li.menu-item > a,
body.non-transparent-header .main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a {
    color: var(--global-palette3, #282828) !important;
}

body.non-transparent-header .main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
    color: var(--global-palette1, #D86C97) !important;
}

body.non-transparent-header .site-branding img.custom-logo {
    filter: brightness(0) saturate(100%) !important;
}

body.non-transparent-header .mobile-toggle-open-container .menu-toggle-open {
    color: var(--global-palette3, #282828) !important;
}

body.non-transparent-header #masthead {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    background: #ffffff;
}

/* =========================================
   PROPERTIES HERO BANNER
   ========================================= */
.re-hero-banner {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 40px 0;
    margin-top: -1px; /* Header ile yapışsın */
    padding: 100px 20px 60px;
    text-align: center;
}

.re-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.re-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff;
}

.re-hero-content h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.re-hero-content p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

/* Eski archive header'ı gizle (artık hero kullanıyoruz) */
.re-archive-header { display: none !important; }

/* Properties archive için transparent header aktif */
body.post-type-archive-property #masthead {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
    box-shadow: none !important;
}

/* Header üzerindeki menü/logo BEYAZ olsun (hero üzerinde) */
body.post-type-archive-property .main-navigation .primary-menu-container > ul > li.menu-item > a {
    color: #ffffff !important;
}

body.post-type-archive-property .main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
    color: var(--global-palette1, #D86C97) !important;
}

/* Logo'yu beyaz tut (filter'ı kaldır) */
body.post-type-archive-property .site-branding img.custom-logo {
    filter: none !important;
}

/* Mobile menü ikonu */
body.post-type-archive-property .mobile-toggle-open-container .menu-toggle-open {
    color: #ffffff !important;
}

/* Search form'un üst boşluğu */
body.post-type-archive-property .re-search-form {
    margin-top: -50px;
    position: relative;
    z-index: 5;
    max-width: var(--global-content-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* =========================================
   COMPACT PREMIUM SEARCH BAR
   ========================================= */
.cs-form {
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.compact-search {
    background: var(--re-card, #fff);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(216, 108, 151, 0.12);
    overflow: hidden;
    border: 1px solid rgba(216, 108, 151, 0.08);
    max-width: var(--global-content-width, 1200px);
    margin: 0 auto;
}

/* Tabs */
.cs-tabs {
    display: flex;
    padding: 0 12px;
    background: var(--re-bg, #f8fafc);
    border-bottom: 1px solid var(--re-border, #e2e8f0);
    overflow-x: auto;
    scrollbar-width: none;
}
.cs-tabs::-webkit-scrollbar { display: none; }

.cs-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--re-muted, #94a3b8);
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cs-tab:hover { color: var(--re-text, #4a5568); }
.cs-tab.active { color: var(--global-palette1, #D86C97); }
.cs-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--global-palette1, #D86C97);
    border-radius: 3px 3px 0 0;
}
.cs-tab svg { width: 16px; height: 16px; }

/* Main row */
.cs-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr auto auto;
    gap: 0;
    padding: 8px;
    align-items: stretch;
}

.cs-field {
    position: relative;
    padding: 10px 18px;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: text;
}
.cs-field:hover { background: var(--re-bg, #f8fafc); }
.cs-field + .cs-field { 
    border-left: 1px solid var(--re-border, #e2e8f0); 
    border-radius: 0; 
}

.cs-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--re-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.cs-label svg { 
    width: 11px; 
    height: 11px; 
    color: var(--global-palette1, #D86C97);
}

.cs-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    color: var(--re-primary, #1a1a2e) !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}
.cs-input::placeholder { 
    color: var(--re-muted, #94a3b8); 
    font-weight: 400; 
}

select.cs-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right center !important;
    padding-right: 16px !important;
}

/* Filter button */
.cs-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--re-border, #e2e8f0);
    cursor: pointer;
    color: var(--re-text, #4a5568);
    font-weight: 600;
    font-size: 0.75rem;
    gap: 4px;
    transition: color 0.2s;
}
.cs-filter-btn:hover { color: var(--global-palette1, #D86C97); }
.cs-filter-btn svg { width: 16px; height: 16px; }

/* Submit */
.cs-submit {
    background: linear-gradient(135deg, var(--global-palette1, #D86C97), #b85077);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 0 28px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(216, 108, 151, 0.35);
    height: auto !important;
    margin-left: 4px;
}
.cs-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(216, 108, 151, 0.45);
}
.cs-submit svg { width: 16px; height: 16px; }

/* Chips */
.cs-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--re-bg, #f8fafc);
    border-top: 1px solid var(--re-border, #e2e8f0);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}
.cs-chips::-webkit-scrollbar { height: 4px; }
.cs-chips::-webkit-scrollbar-thumb { background: var(--re-border, #e2e8f0); border-radius: 2px; }

.cs-chips-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--re-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-right: 4px;
}

.cs-chip {
    padding: 6px 14px;
    background: var(--re-card, #fff);
    border: 1.5px solid var(--re-border, #e2e8f0);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--re-text, #4a5568);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    user-select: none;
    font-family: inherit;
}
.cs-chip:hover { 
    border-color: var(--global-palette1, #D86C97); 
    color: var(--global-palette1, #D86C97); 
}
.cs-chip.active {
    background: var(--global-palette1, #D86C97);
    border-color: var(--global-palette1, #D86C97);
    color: #fff;
}

/* Advanced Filters Panel */
.cs-filter-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    border-top: 1px solid var(--re-border, #e2e8f0);
}
.cs-filter-panel.active {
    max-height: 400px;
    padding: 24px;
    opacity: 1;
}
.cs-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.cs-filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--re-muted, #94a3b8);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cs-filter-group input,
.cs-filter-group select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--re-border, #e2e8f0);
    background: var(--re-card, #fff);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--re-text, #4a5568);
}

/* ESKİ search form gizleyelim, çakışmasın */
.re-search-form { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
    .cs-row { grid-template-columns: 1fr 1fr; gap: 4px; }
    .cs-row > .cs-submit { grid-column: 1 / -1; margin: 4px 0 0; padding: 14px !important; justify-content: center; }
    .cs-row > .cs-filter-btn { grid-column: 1 / -1; padding: 10px; flex-direction: row; }
    .cs-field + .cs-field { border-left: none; }
}
@media (max-width: 600px) {
    .cs-row { grid-template-columns: 1fr; }
    .cs-tab { padding: 10px 14px; font-size: 0.75rem; }
}

/* =========================================
   PROPERTY CARD - PREMIUM IYILEŞTIRMELER
   ========================================= */

/* Card image overlay'i */
.card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.property-card:hover .card-image-wrap::after {
    opacity: 1;
}

/* =========================================
   ALWAYS-VISIBLE CTA - PRODUCTION READY
   ========================================= */

/* Eski hover-reveal CTA'yı sil — bu kalıcı */
.card-cta-btn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 13px 18px;
    background: var(--global-palette1, #D86C97);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(216, 108, 151, 0.25);
    letter-spacing: 0.01em;
}

.card-cta-btn:hover {
    background: #b85077;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 108, 151, 0.4);
}

.card-cta-btn:active {
    transform: translateY(0);
}

.card-cta-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.card-cta-btn:hover svg {
    transform: translateX(4px);
}

/* Görsel overlay'i sil (artık gerekmiyor) */
.card-image-wrap::after { display: none !important; }

/* Görsel zoom efekti kalsın - güzel */
.property-card:hover .card-image-wrap img {
    transform: scale(1.06);
}
.card-image-wrap img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Card hover */
.property-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.property-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(216, 108, 151, 0.15) !important;
}

/* Fiyat vurgusu */
.card-price {
    font-size: 1.7rem !important;
    color: #D86C97 !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800 !important;
}

/* Card favorite icon */
.card-favorite {
    background: #fff !important;
    color: #94a3b8 !important;
}
.card-favorite.is-fav {
    color: #ef4444 !important;
}
.card-favorite .dashicons {
    color: inherit !important;
}

/* Card features (özellikler) */
.card-features {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    margin: 14px -22px 0 !important;
    padding: 14px 22px !important;
    border-top: 1px solid var(--re-border, #e2e8f0) !important;
}

/* Lokasyon ikon rengi */
.card-location .dashicons { color: var(--global-palette1, #D86C97) !important; }

/* =========================================
   MAP & LIST SPLIT VIEW (Sotheby's Style)
   ========================================= */
.re-archive-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.re-split-container {
    display: flex;
    min-height: calc(100vh - 100px);
    background: #fff;
}

.re-list-side {
    width: 60%;
    padding: 24px;
    background: #fff;
    overflow-y: auto;
}

.re-map-side {
    width: 40%;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
    border-left: 1px solid #e2e8f0;
}

#re-map-canvas {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}

/* Sotheby's Style Map Controls (Top Center) */
.re-map-top-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.re-map-top-controls button {
    background: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    border-right: 1px solid #f1f5f9;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.re-map-top-controls button:last-child {
    border-right: none;
}

.re-map-top-controls button:hover {
    background: #f8fafc;
}

/* Sticky Bottom Controls (Always Visible) */
.re-sticky-controls {
    position: fixed;
    bottom: 30px;
    right: 100px; /* Shifted left to avoid overlap with Live Chat bubble */
    z-index: 1100;
    display: flex;
    gap: 12px;
}

.re-btn-save-search, .re-btn-view-toggle {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 14px 28px;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 140px;
    justify-content: center;
}

.re-btn-save-search {
    background: #0f172a;
    color: #fff;
    border: none;
}

.re-btn-save-search:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.re-btn-view-toggle:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Full Width List View Mode */
body.re-view-mode-list .re-map-side {
    display: none;
}

body.re-view-mode-list .re-list-side {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 20px;
}

body.re-view-mode-list .property-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

/* Hide mobile switcher when desktop sticky controls are active */
@media (min-width: 1025px) {
    .re-view-switcher { display: none !important; }
}

/* Marker Styling */
.re-map-price-badge {
    background: #fff;
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.re-map-marker:hover .re-map-price-badge {
    background: #D86C97;
    color: #fff;
    border-color: #D86C97;
    transform: scale(1.1);
}

.re-map-popup-card {
    width: 200px;
}
.re-map-popup-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.re-map-popup-card .content {
    padding: 12px;
}
.re-map-popup-card .price {
    display: block;
    font-weight: 800;
    font-size: 16px;
    color: #D86C97;
    margin-bottom: 4px;
}
.re-map-popup-card h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .re-split-container { flex-direction: column; }
    .re-list-side { width: 100% !important; height: auto; border-right: none; display: block !important; }
    .re-map-side { display: none !important; }
    .re-view-switcher { display: none !important; }
    .re-sticky-controls { display: none !important; }
    
    body.re-map-active .re-map-side { display: none !important; }
    body.re-map-active .re-list-side { display: block !important; }
}

/* =========================================
   MODAL STYLES (Lead Generation)
   ========================================= */
.re-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.re-modal.active { display: flex; }

.re-modal-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.re-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 28px; color: #94a3b8;
    cursor: pointer;
}

.re-modal-header { margin-bottom: 24px; text-align: center; }
.re-modal-header h3 { margin: 0 0 8px; color: #0f172a; font-weight: 800; }
.re-modal-header p { margin: 0; color: #64748b; font-size: 14px; }

.re-form-group { margin-bottom: 20px; }
.re-form-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #0f172a; margin-bottom: 6px; }
.re-form-group input { 
    width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 10px; 
    font-size: 15px; transition: border-color 0.2s;
}
/* Intl-Tel-Input Fix */
.iti { width: 100%; }
.iti__country-list { z-index: 3000; }

.re-form-group input:focus { border-color: #D86C97; outline: none; }

.re-form-privacy { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 15px; }

#re-lead-success { text-align: center; padding: 20px 0; }
.success-icon { 
    width: 60px; height: 60px; background: #10b981; color: #fff; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 30px; margin: 0 auto 20px; 
}