/* ============================================
   Home Page Styles - Premium Hero Buttons
   ============================================ */

/* ============================================
   Hero Category Cards — Expanding Accordion
   ============================================ */

.hero-cat-section {
    padding: 48px 0 80px;
    background: #fff;
}

/* ---- Grid: yatay flex accordion ---- */
.hero-cat-grid {
    display: flex;
    height: 400px;
    gap: 3px;
    background: #1a1a1a;
}

/* ---- Her kart ---- */
.hero-cat-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    text-decoration: none;
    background: #0d0d0d;
    cursor: pointer;
    transition: flex 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: seçilen genişler, diğerleri daralır */
.hero-cat-grid:hover .hero-cat-card:not(:hover) {
    flex: 0.32;
}

.hero-cat-card:hover {
    flex: 3.5;
}

/* ---- Arka plan görseli ---- */
.hero-cat-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.75s ease;
    will-change: transform;
}

.hero-cat-card:hover .hero-cat-image {
    transform: scale(1.05);
}

/* ---- Karartma katmanı ---- */
.hero-cat-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.52);
    transition: background 0.6s ease;
}

/* Diğerleri daha da kararır */
.hero-cat-grid:hover .hero-cat-card:not(:hover) .hero-cat-overlay {
    background: rgba(0, 0, 0, 0.72);
}

/* Seçili aydınlanır */
.hero-cat-card:hover .hero-cat-overlay {
    background: rgba(0, 0, 0, 0.28);
}

/* ---- Dar durum: dikey kategori etiketi ---- */
.hero-cat-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-cat-card:hover .hero-cat-label {
    opacity: 0;
}

.hero-cat-label-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* ---- Genişlemiş durum: alt içerik ---- */
.hero-cat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    transform: translateY(14px);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
        opacity   0.45s ease 0.15s;
    pointer-events: none;
}

.hero-cat-card:hover .hero-cat-content {
    transform: translateY(0);
    opacity: 1;
}

/* Gradient altta legibility için */
.hero-cat-content::before {
    content: '';
    position: absolute;
    inset: -60px 0 0 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    z-index: -1;
}

.hero-cat-title {
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
    display: block;
}

.hero-cat-sub {
    display: block;
    margin-top: 7px;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.hero-cat-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-cat-card:hover .hero-cat-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-cat-grid {
        height: 320px;
    }

    .hero-cat-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Mobilde 2 satır, 2 sütun grid'e geç */
    .hero-cat-section {
        padding: 32px 0 56px;
    }

    .hero-cat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 3px;
    }

    .hero-cat-card {
        height: 200px;
        flex: none;
    }

    /* Mobilde dikey etiket yerine altta yatay göster */
    .hero-cat-label {
        align-items: flex-end;
        justify-content: flex-start;
        padding: 0 0 18px 20px;
    }

    .hero-cat-label-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.6rem;
        letter-spacing: 0.18em;
    }

    .hero-cat-content {
        padding: 16px 20px;
        transform: none;
        opacity: 1;
        transition: none;
    }

    .hero-cat-title {
        font-size: 1rem;
    }

    .hero-cat-label {
        opacity: 0;
    }

    .hero-cat-btn {
        display: none;
    }
}

/* Hero Explore Button - Compact Style (Original Colors) */
.hero-explore-btn {
    background-color: var(--secondary-color) !important;
    color: #0b3d34 !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-explore-btn:hover {
    background-color: var(--a-hover-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 200, 58, 0.4);
}

/* Hero Publish Button - Compact Outline Style (Original Colors) */
.hero-publish-btn {
    background: transparent !important;
    color: white !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-publish-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Featured Section Scroll Padding */
#featured-portfolios {
    scroll-margin-top: 100px;
}

/* Responsive Buttons */
@media (max-width: 767px) {
    .hero-explore-btn,
    .hero-publish-btn {
        padding: 10px 24px !important;
        font-size: 14px !important;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-luxury-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-explore-btn i,
    .hero-publish-btn i {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .hero-explore-btn,
    .hero-publish-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* ============================================
   Seller Logo Styles
   ============================================ */

.post-footer-right .seller-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    padding: 2px;
    background: white;
}

.post-footer-right .seller-name {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.post-footer-right .seller-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
}

/* ============================================
   Partner Card Link Styles - Logo tam görünsün, oval
   ============================================ */

/* realestate-element.css'deki object-fit:cover override - logo yuvarlak çerçevede */
.luxury-partners-section .luxury-partner-img .agents-profile {
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.luxury-partners-section .luxury-partner-img .agents-profile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px;
}

a.re-agents-post-item.luxury-partner-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
}

a.re-agents-post-item.luxury-partner-card .re-agents-post-details {
    padding: 0;
}

a.re-agents-post-item.luxury-partner-card .re-agent-name h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

a.re-agents-post-item.luxury-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

a.re-agents-post-item.luxury-partner-card .luxury-partner-name h4 {
    color: inherit;
    transition: color 0.3s ease;
}

a.re-agents-post-item.luxury-partner-card:hover .re-agent-name h4 {
    color: var(--primary-color);
}

a.re-agents-post-item.luxury-partner-card .re-agent-location {
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
    max-height: 36px;
    line-height: 1.4;
    font-size: 13px;
}

.empty-partners-message {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Partner Card Portfolio Count */
.re-agent-portfolio-count {
    margin-top: 8px;
    text-align: center;
}

.portfolio-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.portfolio-count-badge i {
    color: var(--primary-color);
    font-size: 10px;
}

/* Partner Card View Button */
.re-agent-action {
    margin-top: 8px;
    text-align: center;
}

.btn-view-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-partner i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

a.re-agents-post-item.luxury-partner-card:hover .btn-view-partner {
    background: var(--primary-dark-color, #0a3630);
}

a.re-agents-post-item.luxury-partner-card:hover .btn-view-partner i {
    transform: translateX(3px);
}

/* Logo-only partner grid */
.luxury-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 60px;
    padding: 20px 0 10px;
}

.luxury-logo-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.luxury-logo-item img {
    width: 140px;
    /* height: 110px; */
    object-fit: cover;
    /* border-radius: 50%; */
    /* border: 1px solid #e0e0e0; */
    /* background: #fff; */
    filter: grayscale(100%);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.luxury-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.luxury-logo-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.luxury-logo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
}

.luxury-logo-item:hover .luxury-logo-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== INSTAGRAM SECTION ===== */
.sadece-instagram-section {
    background: #fff;
}
.instagram-section-head .instagram-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #DAB668;
    margin-bottom: 12px;
}
.instagram-section-head .instagram-title {
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
}
.instagram-section-head .instagram-follow {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}
.instagram-section-head .instagram-follow:hover {
    color: #DAB668;
}
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Instagram Swiper */
.instagram-swiper-wrap {
    position: relative;
}
.instagram-swiper {
    overflow: hidden;
}
.instagram-swiper .swiper-slide {
    height: auto;
}
.instagram-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    font-size: 14px;
}
.instagram-nav:hover {
    background: #1a1a1a;
    color: #DAB668;
    transform: translateY(-50%) scale(1.05);
}
.instagram-nav--prev { left: -8px; }
.instagram-nav--next { right: -8px; }
.instagram-nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 767.98px) {
    .instagram-nav { width: 36px; height: 36px; font-size: 12px; }
    .instagram-nav--prev { left: 4px; }
    .instagram-nav--next { right: 4px; }
}
.instagram-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f4f4;
}
.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.instagram-item:hover img {
    transform: scale(1.06);
}
.instagram-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
}
.instagram-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.6));
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.instagram-overlay i {
    font-size: 28px;
}
.instagram-overlay .instagram-caption {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    max-width: 90%;
}
.instagram-item:hover .instagram-overlay {
    opacity: 1;
}
@media (max-width: 992px) {
    .instagram-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
    .instagram-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.instagram-empty {
    max-width: 520px;
    margin: 20px auto 0;
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(135deg, #fdfbf6 0%, #f7f2e6 100%);
    border: 1px dashed #e3d7bf;
    border-radius: 16px;
}
.instagram-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
}
.instagram-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.instagram-empty-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 22px;
    line-height: 1.55;
}
.instagram-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 40px;
    transition: background 0.25s ease, transform 0.2s ease;
}
.instagram-empty-btn:hover {
    background: #DAB668;
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   Kurumsal Markaların Yanındayız — Features grid
   ============================================================ */
.kurumsal-feature-row { row-gap: 28px; }

.kurumsal-feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    height: 100%;
    padding: 4px 0;
}

.kurumsal-feature__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 50%;
    background: #f6efe1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kurumsal-feature__icon img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.kurumsal-feature__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.kurumsal-feature__title {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.kurumsal-feature__text {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #6c7280;
}

@media (max-width: 991.98px) {
    .kurumsal-feature { gap: 16px; }
}
