:root {
    --primary-color: #1da1f2;
    --secondary-color: #e91e63;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
    --gradient-start: #06B6D4;
    --gradient-end: #32668B;
    --container-bg: #f0f2f5;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #f0f2f5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.containerT {
    margin-top:20px!important;
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-sizing: border-box;
}


.btn-outline-light {
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    /* margin-left: 280px;  <-- BUNU SİLİN */
    margin-left: 0;      /* <-- Bunu 0 yapın */
    margin-top: 2px;
    margin-bottom: 15px;
    /* Eğer containerT flex ise ve alt alta durmaları gerekiyorsa: */
    width: 100%;
}

.property-main {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    grid-template-rows: auto auto;
    grid-column-gap: 30px;
    width: 100%;
    margin-top: 15px;
    position: relative;
}

.gallery-column {
    grid-column: 1 / 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    margin-bottom: 0;
}

.details-column {
    grid-column: 2 / 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    margin-bottom: 0;
}

.agent-column {
    grid-column: 3 / 4;
    grid-row: 1;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.price-section {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gallery-section {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.main-image {
    height: 400px;
    position: relative;
    margin: 0;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partner-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 12px;
    gap: 10px;
    border: 1px solid #E5E7EB;
}

.partner-item img {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.partner-info {
    flex: 1;
    min-width: 0;
}

.partner-info h4 {
    font-size: 15px;
    margin: 0 0 2px 0;
    font-weight: 600;
    color: #333;
}

.partner-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.partner-location {
    text-align: right;
    min-width: 120px;
    flex-shrink: 0;
}

.partner-location span {
    color: #E91E63;
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.partner-location p {
    font-size: 13px;
    color: #333;
    margin: 0;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

.gallery-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.gallery-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thumbnail-gallery {
    position: relative;
    background: white;
    padding: 10px 0;
    margin: 0;
}

.thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 40px;
    margin: 0;
    scrollbar-width: none;
}

.thumbnail-gallery img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-gallery img.active {
    border-color: var(--primary-color);
}

.thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.thumbnail-nav.prev { left: 6px; }
.thumbnail-nav.next { right: 6px; }

.photo-count {
    position: absolute;
    right: 10px;
    bottom: -25px;
    font-size: 12px;
    color: #666;
}

.social-section {
    padding: 20px;
    border-radius: 12px;
}

.social-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E7EB;
}

.social-media-buttons {
    display: flex;
    gap: 10px;
}

.social-media-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.social-media-btn:hover {
    transform: scale(1.05);
}

.social-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 14px;
}

.stat i {
    font-size: 16px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-buttons .action-btn {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    text-align: left;
    border: none;
    background: #ffffff;
    color: #4B5563;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-buttons .action-btn:hover {
    background: #E5E7EB;
    color: #1F2937;
}

.action-buttons .action-btn i {
    font-size: 16px;
    width: auto;
}

.facebook { background: #1877F2; }
.messenger { background: #0099FF; }
.instagram { background: #E4405F; }
.whatsapp { background: #25D366; }
.twitter { background: #1DA1F2; }

.property-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.info-grid {
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    font-size: 14px;
}

.info-item:nth-child(odd) {
    background: var(--light-gray);
}

.info-item:nth-child(even) {
    background: white;
}

.info-item .label {
    color: var(--text-color);
    font-weight: 500;
}

.info-item .value {
    color: var(--text-color);
}

.agent-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #000;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 40px;
    z-index: 1;
}

.agent-info {
    text-align: center;
    margin-bottom: 20px;
}

.agent-badge {
    display: inline-block;
    background: #DB2777;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.agent-info h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
}

.agent-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.agent-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-phone,
.btn-message {
    width: 100%;
    padding: 12px;
    background: #94A3B8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profile-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.profile-link i {
    font-size: 12px;
}

.view-profile {
    color: #3B82F6;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.commission-box {
    border: 2px solid #E91E63;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.commission-box:last-of-type {
    margin-bottom: 20px;
}

.commission-icon {
    position: absolute;
    left: 120px;
    top: 50px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
}

.commission-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E5E7EB;
}

.commission-item {
    background: white;
    border: 1px solid #DB2777;
    border-radius: 25px;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.document-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.doc-link {
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.doc-link:first-child {
    color: #DB2777;
}

.doc-link:last-child {
    color: #0EA5E9;
}

.doc-link i {
    font-size: 12px;
}

.partners-section {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.partners-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.partners-header i {
    color: #0f75bc;
    font-size: 24px;
}

.partners-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.partner-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    gap: 10px;
    border: 1px solid #E5E7EB;
}

.partner-item img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.partner-info {
    flex: 1;
    text-align: left;
}

.partner-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #333;
}

.partner-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.partner-badge {
    text-align: right;
    min-width: 140px;
}

.partner-badge span {
    color: #DB2777;
    font-size: 12px;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.partner-badge p {
    font-size: 12px;
    color: #333;
    margin: 0;
}

.property-h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    margin-left: 0;
}

.property-h2 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    margin-left: 0;
}

.portfolio-btn {
    padding: 8px 16px;
    background: rgba(219, 39, 119, 1);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    margin-top: 0;
    width: 100%;
}

.similar-listings {
    background: #F3F4F6;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.similar-listings h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.similar-listings h3::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('../assets/images/handshake-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.similar-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.similar-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--light-gray);
    border-radius: 4px;
    cursor: pointer;
}

.similar-item img {
    width: 70px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.similar-info h4 {
    font-size: 12px;
    line-height: 1.3;
    margin: 0 0 5px 0;
    color: #333;
}

.similar-info p {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.app-download {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.app-download p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.app-btn img {
    height: 35px;
}

.info-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.info-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 12px;
}

@media (max-width: 1200px) {
    .containerT {
        max-width: 100%;
        padding: 15px 20px;
    }

    .property-main {
        grid-template-columns: 1.2fr 1.2fr 1fr;
        grid-column-gap: 15px;
    }

    .tabs-sidebar-container {
        grid-template-columns: 2.4fr 1fr;
        grid-gap: 15px;
    }

    .agent-column,
    .sidebar-content {
        max-width: 100%;
    }

    .property-title {
          /* margin-left: 30px; <-- BUNU SİLİN veya 0 YAPIN */
          margin-left: 0;
      }

    .portfolio-btn {
        margin-top: 20px;
    }

    .property-h1 {
        font-size: 22px;
    }

    .property-h2 {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .property-main {
        display: block !important;
        width: 100%;
    }

    .gallery-column,
    .details-column,
    .agent-column,
    .tabs-sidebar-container {
        display: block !important;
        width: 100%;
        margin-bottom: 20px;
        grid-column: unset;
        grid-row: unset;
    }

    .tabs-sidebar-container {
        margin-bottom: 0;
        margin-top: 0;
    }

    .property-tabs,
    .sidebar-content {
        display: block !important;
        width: 100%;
        margin-bottom: 20px;
        grid-column: unset;
    }
    .sidebar-content {
        margin-bottom: 0;
    }

    .tab-buttons {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 20px;
    }
    .tab-btn {
        width: auto;
        text-align: center;
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
    }



    .action-buttons { flex-direction: column; gap: 8px; }
    .action-btn { width: 100%; }
    .social-media-buttons { justify-content: center; }
    .portfolio-btn { margin-top: 15px; }
    .partner-item { padding: 10px; }
    .partner-badge { min-width: 110px; }
    .map-container { height: 300px; }
}

@media (max-width: 768px) {
    .agent-card {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px;
        text-align: left;
        margin-bottom: 20px;
    }

    .agent-card .agent-header {
        display: contents;
    }

    .agent-card .logo-container {
        width: 50px;
        height: 50px;
        margin: 0;
        flex-shrink: 0;
    }

    .agent-card .agent-photo {
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    .agent-card .premium-badge {
        display: none;
    }

    .agent-card .agent-info {
        margin-bottom: 0;
        flex-grow: 1;
    }

    .agent-card .agent-info .agent-badge {
        padding: 3px 8px;
        font-size: 10px;
        margin-bottom: 4px;
    }

    .agent-card .agent-info h3 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .agent-card .agent-info p {
        display: none;
    }

    .agent-card .agent-actions,
    .agent-card .profile-link,
    .agent-card .commission-info,
    .agent-card .document-links {
        display: none;
    }

    .partner-item { flex-wrap: wrap; }
    .partner-location { width: 100%; text-align: left; margin-top: 5px; }
    .property-cards { grid-template-columns: 1fr; }
    .social-section .social-top { flex-direction: column; gap: 10px; align-items: flex-start; }
    .detail-group h4 { font-size: 14px; }
    .conversation-body { flex-direction: column; }
    .message-actions { margin-top: 10px; justify-content: flex-start; }
    .sender-info { margin-bottom: 10px; }
    .property-h1 { font-size: 20px; }
    .property-h2 { font-size: 13px; }
    .main-image { height: 300px; }
    .portfolio-btn { margin-top: 10px; font-size: 14px; }
    .app-buttons { flex-direction: column; }
    .app-store-btn, .play-store-btn { max-width: 180px; }
    .partner-badge { width: 100%; text-align: left; margin-top: 5px; }
    .commission-item { padding: 10px; font-size: 13px; }
    .document-links { flex-direction: column; gap: 10px; align-items: flex-start; }
    .map-container { height: 300px; }
}

@media (max-width: 576px) {
    .property-title {
        font-size: 14px;
        /* margin-left: 10px; <-- BUNU SİLİN veya 0 YAPIN */
        margin-left: 0;
    }

    .property-h1 {
        font-size: 18px;
    }

    .property-h2 {
        font-size: 12px;
    }

    .thumbnail-gallery img {
        width: 80px;
        height: 60px;
    }

    .info-item {
        padding: 8px;
    }

    .main-image {
        height: 250px;
    }

    .gallery-controls {
        bottom: 10px;
        right: 10px;
    }

    .gallery-btn {
        width: 35px;
        height: 35px;
    }

    .favorite-btn {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }

    .partner-item img {
        width: 50px;
        height: 40px;
    }

    .agent-photo {
        width: 80px;
        height: 80px;
    }

    .premium-badge {
        width: 25px;
        height: 25px;
    }

    .agent-actions {
        flex-direction: column;
    }

    .detail-header span {
        font-size: 14px;
    }

    .checkbox-item span {
        font-size: 13px;
    }

    .app-download-section {
        padding: 15px;
    }

    .app-download-section p {
        font-size: 14px;
    }

    .app-store-btn img,
    .play-store-btn img {
        max-height: 35px;
    }

    .banner-content h2 {
        font-size: 18px;
    }

    .modal-content {
        width: 90%;
    }

    .property-tabs {
        margin-top: 20px !important;
        margin-left: 0;
        padding: 15px;
    }

    .tab-buttons {
        padding: 0 10px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .map-container { height: 250px; }
}


@media (max-width: 576px) {
    /* Kapsayıcıyı kaydırmaya kapatıp tam genişliğe yayıyoruz */
    .tab-buttons {
        display: flex;
        width: 100%;
        gap: 5px; /* Butonlar arası boşluk çok az olsun */
        overflow: hidden; /* Kaydırmayı engelle */
        flex-wrap: nowrap; /* Asla alt satıra geçmesin */
        margin-bottom: 15px;
    }

    /* Butonları küçültüp ortalıyoruz */
    .tab-btn {
        flex: 1; /* Mevcut alanı 4 butona eşit paylaştır */
        padding: 8px 2px !important; /* Yan boşlukları neredeyse sıfırladık */
        font-size: 11px !important; /* Yazı boyutu minimal ama okunabilir */
        font-weight: 600;
        white-space: normal; /* Uzun kelimeler gerekirse (örn: İlan Detay) sıkışsın */
        line-height: 1.1; /* Satır aralığını daralt */
        height: 36px; /* Sabit ve zarif bir yükseklik */
        border-radius: 6px; /* Köşeleri biraz daha yumuşat */

        /* İçerik hizalama */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-width: 0; /* İçeriğin taşmasını engeller, kutuyu zorla küçültür */
    }
}

@media (max-width: 375px) {
    .main-image {
        height: 220px;
    }

    .social-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .property-h1 {
        font-size: 16px;
    }

    .property-h2 {
        font-size: 11px;
    }

    .thumbnail-gallery {
        padding: 5px 0;
    }

    .thumbnails {
        padding: 0 30px;
    }

    .thumbnail-gallery img {
        width: 70px;
        height: 50px;
    }

    .map-container {
        height: 300px;
    }

    .app-download-section {
        padding: 10px;
    }

    .app-store-btn img,
    .play-store-btn img {
        max-height: 30px;
    }

    .app-store-btn,
    .play-store-btn {
        max-width: 140px;
    }
}

.tabs-sidebar-container {
    grid-column: 1 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    grid-gap: 30px;
    width: 100%;
    margin-top: 30px;
    justify-content: space-between;
}

.property-tabs {
    grid-column: 1 / 2;
    width: 100%;
    border-radius: 8px;
    padding: 20px 25px;
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-content {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    min-height: 400px;
    transition: min-height 0.3s ease;
    padding-top: 10px;
}

.sidebar-content {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
    min-width: 280px;
}

.tab-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
}

.tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #94A3B8 !important;
    border: 2px solid #94A3B8 !important;
}

.tab-btn:disabled:hover {
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

.tab-btn.active {
    opacity: 1;
    transform: scale(1.02);
}

.tab-btn:nth-child(1) {
    background-color: #475569;
    border: 2px solid #475569;
}

.tab-btn:nth-child(2) {
    background-color: #0F766E;
    border: 2px solid #0F766E;
}

.tab-btn:nth-child(3) {
    background-color: #0EA5E9;
    border: 2px solid #0EA5E9;
}

.tab-btn:nth-child(4) {
    background-color: #0F172A;
    border: 2px solid #0F172A;
}

.tab-btn:hover {
    opacity: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.property-description {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.property-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.property-details {
    background: #F3F4F6;
    border-radius: 8px;
    margin-top: 20px;
    padding: 20px;
}

.detail-section {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-header i {
    color: #475569;
    font-size: 20px;
}

.detail-header span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.detail-content {
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.detail-group {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

.detail-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.detail-group h4::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.detail-group.open h4::after {
    transform: rotate(180deg);
}

.checkbox-group {
    display: none;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-group.open .checkbox-group {
    display: flex;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    background: #F3F4F6;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #E5E7EB;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background: white;
}

.checkbox-item input[type="checkbox"]:checked {
    background: linear-gradient(0deg, #DB2777 0%, #A21CAF 100%);
    border: none;
}

.checkbox-item:nth-child(2) input[type="checkbox"]:checked {
    background: linear-gradient(0deg, #DB2777 0%, #A21CAF 100%);
    border: none;
}

.checkbox-item:nth-child(3) input[type="checkbox"]:checked {
    background: linear-gradient(0deg, #DB2777 0%, #A21CAF 100%);
    border: none;
}

.checkbox-item:nth-child(4) input[type="checkbox"]:checked {
    background: linear-gradient(0deg, #DB2777 0%, #A21CAF 100%);
    border: none;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item span {
    font-size: 14px;
    color: #333;
}

.similar-properties {
    border-radius: 12px;
    background: white;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.similar-properties h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.property-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.property-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.property-card .favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.property-card img {
  width: 100%;
  height: 120px; /* Yüksekliği sabitledik ki hizalar bozulmasın */
  object-fit: cover; /* Resim orantısını koruyarak kutuya sığdırır */
}

.property-card .card-content {
    padding: 10px;
}

.property-card h4 {
  font-size: 13px;
  margin: 0 0 5px 0;
  line-height: 1.3;
  color: #333;
  font-weight: 600;
}

.property-card .price {
  font-size: 14px;
  color: #e91e63; /* Fiyat rengi */
  font-weight: 700;
  margin: 0;
}

.app-download-section {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.app-download-section p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.app-store-btn img,
.play-store-btn img {
    height: 40px;
    object-fit: contain;
}


@media (max-width: 768px) {
  .property-cards {
      display: grid;
      /* 2 sütun olmaya zorla (repeat(2, 1fr)) */
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px; /* İlanlar arasındaki boşluk */
      width: 100%;
  }

  /* Kart içindeki yazıların mobilde taşmaması için küçük ayar */
  .property-card h4 {
      font-size: 11px; /* Başlığı biraz küçült */
      white-space: nowrap; /* Alt satıra geçmesin */
      overflow: hidden;
      text-overflow: ellipsis; /* Sığmazsa ... koy */
  }

  .property-card img {
      height: 100px; /* Resim yüksekliğini dengele */
  }
}

.banner-ad {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.banner-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.banner-content h2 {
    color: white;
    font-size: 32px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.9) 0%, rgba(220, 38, 38, 0.4) 100%);
    z-index: 1;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.profile-link {
    margin-top: 15px;
}

.security-recommendations {
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.security-icon {
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.security-icon i {
    font-size: 24px;
    color: #6B7280;
}

.security-recommendations h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 15px 0;
}

.security-content {
    margin-bottom: 15px;
}

.security-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    margin: 0 0 10px 0;
}

.security-footer {
    text-align: right;
}

.read-more {
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.read-more:hover {
    color: #111827;
}

.read-more i {
    font-size: 12px;
    transition: transform 0.2s;
}

.read-more:hover i {
    transform: translateX(3px);
}

.tab-content {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    min-height: 400px;
    transition: min-height 0.3s ease;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

#location.tab-pane {
    height: 100%;
}

.location-tab {
    width: 100%;
    height: 100%;
}

.location-tab .property-description {
    margin-bottom: 20px;
}

.qa-tab {
    padding: 20px;
}

.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.conversation-item {
    background: white;
    border: 1px solid #DB2777;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.conversation-header {
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #E5E7EB;
}

.conversation-meta {
    display: flex;
    gap: 20px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
}

.conversation-body {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sender-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sender-photo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.sender-details {
    display: flex;
    flex-direction: column;
}

.sender-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.sender-details p {
    margin: 2px 0;
    font-size: 14px;
    color: #111827;
}

.sender-details span {
    font-size: 13px;
    color: #6B7280;
}

.message-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
    margin: 0 20px;
}

.message-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #E5E7EB;
    color: #1F2937;
}

.action-btn i {
    font-size: 16px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.agreement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.agreement-modal .modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.agreement-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #F3F4F6;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content i {
    color: #6B7280;
    font-size: 24px;
}

.header-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agreement-modal .modal-body {
    padding: 24px;
}

.agreement-description {
    font-size: 15px;
    color: #4B5563;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 12px;
    margin-bottom: 24px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background: white;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: #DB2777;
    border-color: #DB2777;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 15px;
    color: #111827;
}

.duration-section {
    margin-bottom: 24px;
}

.duration-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.duration-btn {
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    color: #4B5563;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.duration-btn:hover {
    border-color: #DB2777;
    color: #DB2777;
}

.duration-btn.selected {
    background: white;
    color: #DB2777;
    border: 2px solid #DB2777;
}

.message-section {
    margin-bottom: 24px;
}

.message-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.message-section textarea {
    width: 100%;
    height: 120px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    resize: none;
    font-size: 15px;
    color: #4B5563;
    background: #F9FAFB;
}

.message-section textarea::placeholder {
    color: #9CA3AF;
}

.submit-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.submit-btn {
    width: 30%;
    padding: 16px;
    background: #DB2777;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background: #BE185D;
}

/* ==========================================================================
1. OFİS LOKASYON KARTI (SAĞ KOLON)
Harita, ofis sayısı ve detay linkini içeren sağ sütun kartı.
========================================================================== */
.office-locations-card {
background-color: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
border: 1px solid #f0f0f0;
font-family: 'Montserrat', sans-serif;
}

.office-card-title {
font-size: 16px;
font-weight: 700;
color: #007385;
margin-bottom: 15px;
margin-top: 0;
}

.office-map-area {
width: 100%;
height: 300px;
border-radius: 8px;
overflow: hidden;
margin-bottom: 15px;
border: 1px solid #ddd;
z-index: 1; /* Harita kütüphanelerinin taşmasını önlemek için temel katman */
position: relative;
}

.office-desc {
font-size: 14px;
color: #333;
line-height: 1.5;
margin-bottom: 15px;
}

.office-count-info {
font-size: 15px;
font-weight: 700;
color: #007385;
margin-bottom: 20px;
}

.office-detail-link {
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: #666;
text-decoration: none;
transition: color 0.3s ease;
}

.office-detail-link:hover {
color: #007385;
}

.office-detail-link i {
font-size: 12px;
margin-left: 5px;
}

/* ==========================================================================
2. GÜVENLİK KARTI TASARIMI (SAĞ KOLON)
Harita kartının altındaki güvenlik uyarılarını içeren alan.
========================================================================== */
.security-card-custom {
background-color: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
border: 1px solid #f0f0f0;
font-family: 'Montserrat', sans-serif;
margin-top: 20px; /* Üstteki harita kartından boşluk bırakır */
}

.security-header-row {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
}

/* İkon için gri yuvarlak arka plan */
.sec-icon-circle {
width: 45px;
height: 45px;
background-color: #e0e0e0;
color: #777;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
flex-shrink: 0;
}

.security-header-row h3 {
margin: 0;
font-size: 16px;
font-weight: 700;
color: #000;
}

.security-body-text p {
font-size: 12px;
color: #333;
line-height: 1.6;
margin-bottom: 15px;
text-align: left;
}

.security-footer-link {
text-align: right;
margin-top: 10px;
}

.security-footer-link a {
font-size: 12px;
color: #777;
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}

.security-footer-link a:hover {
color: #000;
}

.security-footer-link a i {
font-size: 10px;
margin-left: 3px;
}

/* ==========================================================================
3. MODAL (DIALOG) GENEL YAPISI
Emlak ofislerini listeleyen açılır pencere.
========================================================================== */
.real-estate-dialog {
border: none;
border-radius: 16px;
padding: 0;
width: 90%;
max-width: 700px;
position: fixed;
inset: 0;
margin: auto;
z-index: 99999 !important; /* Sayfadaki en üst katman (Header ve haritaların üstü) */
background: #fff;
box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* Modal sadece [open] attribute'u eklendiğinde görünür */
.real-estate-dialog[open] {
display: flex;
flex-direction: column;
max-height: 90vh;
}

/* Modal arkasındaki karartma (backdrop) */
.real-estate-dialog::backdrop {
background-color: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(2px);
z-index: 99998;
}

.dialog-container {
display: flex;
flex-direction: column;
height: 100%;
padding: 25px;
font-family: 'Montserrat', sans-serif;
overflow: hidden;
}

.dialog-header {
flex-shrink: 0;
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}

.dialog-header h2 {
margin: 0 0 5px 0;
font-size: 20px;
color: #333;
}

.dialog-subtitle {
margin: 0;
font-size: 14px;
color: #666;
}

.close-dialog {
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: #999;
transition: color 0.3s;
}

.close-dialog:hover {
color: #e74c3c;
}

/* Modal İçerik Alanı (Scroll Edilebilir Kısım) */
.dialog-content {
overflow-y: auto;
padding-top: 20px;
flex-grow: 1;
padding-right: 5px;
scrollbar-width: thin;
scrollbar-color: #007385 #f0f0f0;
}

.dialog-content::-webkit-scrollbar {
width: 6px;
}
.dialog-content::-webkit-scrollbar-track {
background: #f0f0f0;
}
.dialog-content::-webkit-scrollbar-thumb {
background-color: #007385;
border-radius: 10px;
}

.dialog-divider {
border: 0;
border-top: 1px solid #eee;
margin: 20px 0;
}

/* ==========================================================================
4. FİLTRE VE FORM ALANLARI
Modal içindeki il, ilçe, mahalle seçim alanları.
========================================================================== */
.location-filters {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
align-items: end;
}

/* Select2 konteynerinin grid yapısında taşmasını önler */
.location-filters .select2-container {
width: 100% !important;
max-width: 100%;
}

.filter-group label {
display: block;
font-size: 12px;
font-weight: 600;
margin-bottom: 5px;
color: #555;
}

.search-button {
width: 100%;
padding: 12px;
background-color: #007385;
color: white;
border: none;
border-radius: 10px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s;
height: 45px; /* Select2 input yüksekliği ile eşitlendi */
}

.search-button:hover {
background-color: #005f6e;
}

/* ==========================================================================
5. SELECT2 ÖZELLEŞTİRME (TEMA)
Varsayılan Select2 görünümünü site temasına uyarlar.
========================================================================== */
.select2-container--default .select2-selection--single {
background-color: #f8f9fa;
border: 1px solid #e0e0e0;
border-radius: 10px;
height: 45px;
display: flex;
align-items: center;
outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
color: #444;
padding-left: 15px;
padding-right: 50px !important; /* Temizle (X) butonu için sağdan boşluk */
font-size: 14px;
font-weight: 500;
font-family: 'Montserrat', sans-serif;
width: 100%;
line-height: normal;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
height: 43px;
right: 10px;
z-index: 1;
}

.select2-container--default.select2-container--focus .select2-selection--single {
border-color: #007385;
box-shadow: 0 0 0 3px rgba(0, 115, 133, 0.1);
}

/* Select2 Temizle (X) Butonu */
.select2-container--default .select2-selection--single .select2-selection__clear {
height: 100%;
margin-right: 30px;
position: absolute;
right: 0;
top: 0;
display: flex;
align-items: center;
color: #e74c3c;
font-weight: bold;
font-size: 16px;
z-index: 10;
padding-left: 10px;
cursor: pointer;
}

/* Açılan Dropdown Menü */
.select2-dropdown {
border-radius: 10px;
border: 1px solid #e0e0e0;
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
overflow: hidden;
z-index: 100000; /* Modal içinde görünmesi için yüksek z-index */
}

.select2-search--dropdown .select2-search__field {
border-radius: 6px;
border: 1px solid #ddd;
padding: 8px;
outline: none;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
background-color: #007385;
color: white;
}

/* ==========================================================================
6. ARAMA SONUÇLARI (KARTLAR)
Modal içindeki emlak ofisi listeleme kartları.
========================================================================== */
.search-results {
display: flex;
flex-direction: column;
gap: 12px;
align-items: center;
}

.office-result-card {
display: flex;
align-items: center;
background: #fff;
border: 1px solid #eaeaea;
border-radius: 10px;
padding: 12px 15px;
transition: all 0.2s ease;
width: 100%;
max-width: 550px;
}

.office-result-card:hover {
border-color: #007385;
box-shadow: 0 4px 12px rgba(0, 115, 133, 0.1);
transform: translateY(-2px);
}

.office-logo-wrapper {
position: relative;
width: 60px;
height: 60px;
flex-shrink: 0;
margin-right: 15px;
}

.office-logo-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
border: 2px solid #f0f0f0;
}

.verified-badge {
position: absolute;
bottom: 0;
right: 0;
color: #007385;
background: #fff;
border-radius: 50%;
font-size: 16px;
}

.office-info-content {
flex-grow: 1;
}

.office-name {
margin: 0 0 5px 0;
font-size: 16px;
color: #2c3e50;
font-weight: 700;
}

.office-meta {
display: flex;
gap: 15px;
font-size: 13px;
color: #666;
margin-bottom: 5px;
}

.office-meta i {
color: #007385;
margin-right: 4px;
}

.office-rating {
font-size: 12px;
color: #f1c40f;
}

.visit-office-btn {
display: inline-flex;
align-items: center;
padding: 8px 16px;
background-color: #fff;
color: #007385;
border: 1px solid #007385;
border-radius: 20px;
text-decoration: none;
font-size: 13px;
font-weight: 600;
transition: all 0.3s;
white-space: nowrap;
}

.visit-office-btn:hover {
background-color: #007385;
color: #fff;
}

.visit-office-btn i {
margin-left: 5px;
}

/* ==========================================================================
7. GALERİ VE LIGHTBOX (BÜYÜTME)
İlan detay sayfasındaki galeri ve tam ekran resim görüntüleme stilleri.
========================================================================== */
/* Favori Butonu Animasyonu */
.favorite-btn.active i {
font-weight: 900;
color: #6b7280;
transform: scale(1.1);
}
.favorite-btn i {
transition: all 0.2s ease;
}

/* Thumbnail Aktiflik Durumu */
.thumbnails img {
cursor: pointer;
opacity: 0.6;
transition: all 0.3s ease;
border: 2px solid transparent;
border-radius: 4px;
}
.thumbnails img.active, .thumbnails img:hover {
opacity: 1;
border-color: #007385;
}

/* Lightbox Modal Yapısı */
.lightbox-modal {
display: none;
position: fixed;
z-index: 200000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.95);
backdrop-filter: blur(5px);
flex-direction: column;
align-items: center;
justify-content: center;
}

.lightbox-modal[open] {
display: flex;
}

/* Lightbox Resim İçeriği */
.lightbox-content {
max-width: 90%;
max-height: 80vh;
object-fit: contain;
border-radius: 4px;
box-shadow: 0 0 30px rgba(0,0,0,0.5);
animation: zoomEffect 0.3s ease-out;
}

@keyframes zoomEffect {
from { transform: scale(0.9); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}

/* Lightbox Kapatma Butonu */
.close-lightbox {
position: absolute;
top: 20px;
right: 20px;
width: 40px;
height: 40px;
background: rgba(255,255,255,0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 24px;
cursor: pointer;
transition: all 0.3s;
z-index: 200002;
}

.close-lightbox:hover {
background: rgba(255,255,255,0.3);
transform: rotate(90deg);
}

/* Lightbox Navigasyon Okları */
.lightbox-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.1);
color: white;
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
font-size: 20px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
z-index: 200001;
outline: none;
}

.lightbox-nav:hover {
background: #007385;
color: #fff;
}

.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

.lightbox-caption {
position: absolute;
bottom: 30px;
color: #aaa;
font-size: 14px;
background: rgba(0,0,0,0.5);
padding: 5px 15px;
border-radius: 20px;
}

/* ==========================================================================
8. BİLDİRİM (TOAST MESSAGE)
Link kopyalandığında çıkan siyah bildirim kutusu.
========================================================================== */
#shareToast {
visibility: hidden;
min-width: 250px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 50px;
padding: 16px;
position: fixed;
z-index: 999999;
left: 50%;
bottom: 30px;
transform: translateX(-50%);
font-size: 14px;
font-family: 'Montserrat', sans-serif;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
opacity: 0;
transition: opacity 0.3s, bottom 0.3s;
}

#shareToast.show {
visibility: visible;
opacity: 1;
bottom: 50px;
}

/* ==========================================================================
9. MOBİL UYUMLULUK (RESPONSIVE)
Tablet ve Mobil cihazlar için özel düzenlemeler.
========================================================================== */
@media (max-width: 768px) {
/* Modal Tam Ekran Yerleşimi */
.real-estate-dialog {
    width: 95% !important;
    max-width: 95% !important;
    height: 90vh;
}

.dialog-container {
    padding: 15px;
}

/* Filtreleri alt alta sırala */
.location-filters {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
}

.filter-group {
    width: 100%;
}

.search-btn-group {
    width: 100%;
    margin-top: 5px;
}

/* Kart Yapısı Mobilde Dikey */
.office-result-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
    max-width: 100%;
}

.office-logo-wrapper {
    margin-right: 15px;
    margin-bottom: 0;
}

.office-info-content {
    flex: 1;
    min-width: 150px;
}

.office-action-btn {
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.visit-office-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
}

/* Lightbox (Büyütme) Mobil Ergonomisi */
.lightbox-content {
    max-width: 100%;
    max-height: 70vh;
    width: 100%;
}

/* Okları alta taşıyarak parmakla erişimi kolaylaştır */
.lightbox-nav {
    top: auto;
    bottom: 50px;
    transform: none;
    background: rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.lightbox-nav.prev {
    left: 20%;
}

.lightbox-nav.next {
    right: 20%;
    left: auto;
}

.lightbox-caption {
    bottom: 120px;
}

.close-lightbox {
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    width: 44px;
    height: 44px;
}
}


/* Başlık ve İkonu Yan Yana Tutan Kapsayıcı */
.property-header-row {
    display: flex;             /* İçindekileri yan yana dizer */
    align-items: center;       /* Dikeyde ortalar (ikon yukarı kaçmaz) */
    width: 100%;               /* Satırın tamamını kaplar */
    gap: 10px;                 /* Başlık ile İkon arasına 10px boşluk bırakır */
    margin-bottom: 5px;        /* Fiyatın üzerine binmemesi için alt boşluk */
}

/* Mevcut Başlık Ayarlarınızın Üzerine Yazılacaklar */
.property-title {
    margin: 0 !important;      /* Eski marginleri sıfırla */
    width: auto !important;    /* Tam genişliği iptal et, sadece yazı kadar yer kaplasın */

    /* Eğer başlık çok uzunsa ve ikonun sıkışmasını istemiyorsanız: */
    flex-shrink: 1;            /* Başlık gerekirse küçülsün */
}

/* Tooltip Kapsayıcısı */
.info-tooltip-wrapper {
    flex-shrink: 0;            /* Başlık ne kadar uzun olursa olsun ikonu ASLA ezmesin/küçültmesin */
    position: relative;
    display: inline-flex;      /* Block yerine inline-flex */
    cursor: pointer;
    z-index: 100;
}

/* --- İKON TASARIMI (Aynı) --- */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #ffc107;
    color: #333;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    font-family: sans-serif;
    font-style: normal;
}

/* --- TOOLTIP GİZLİ/AÇIK AYARLARI (Aynı) --- */
.tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;

    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Küçük ok işareti */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Görünür yapma */
.info-tooltip-wrapper:hover .tooltip-content,
.info-tooltip-wrapper:focus-within .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* MOBİL DÜZELTMESİ */
@media (max-width: 576px) {
    /* Mobilde ikon çok sağdaysa balon ekran dışına taşmasın */
    .tooltip-content {
        left: auto;
        right: -10px;
        transform: translateX(0) translateY(10px);
    }
    .info-tooltip-wrapper:hover .tooltip-content {
         transform: translateX(0) translateY(0);
    }
    .tooltip-content::after {
        left: auto;
        right: 15px;
    }
}


/* =========================================
   1. FLOATING VIDEO BUTONU (MODERN & ESTETİK)
   ========================================= */

.video-trigger-container {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 30;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-trigger-container:hover {
    transform: scale(1.1); /* Üzerine gelince hafif büyüme */
}

/* Butonun Kendisi */
.video-btn-floating {
    width: 55px;
    height: 55px;
    /* Modern Gradient: Kırmızıdan koyu kırmızıya */
    background: linear-gradient(135deg, #ff4b45 0%, #d4141a 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Parlama Efekti */
    box-shadow: 0 0 20px rgba(229, 45, 39, 0.6);
    position: relative;
    z-index: 2;
    animation: floatingObj 3s ease-in-out infinite;
}

/* Play İkonu */
.video-btn-floating i {
    font-size: 22px;
    margin-left: 4px; /* Optik dengeleme */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Butonun altındaki 'Video' yazısı (Opsiyonel: İstemezsen display:none yap) */
.video-btn-floating .btn-text {
    display: none; /* Modern tasarımda ikona odaklanmak daha şık */
}

/* Etrafa yayılan dalga animasyonu */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(229, 45, 39, 0.3);
    top: 0;
    left: 0;
    z-index: 1;
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes floatingObj {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* =========================================
   2. VIDEO MODAL (PREMIUM GÖRÜNÜM)
   ========================================= */

.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Çok koyu arka plan */
    backdrop-filter: blur(10px); /* Arka planı bulanıklaştır */
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInModal 0.4s forwards; /* Açılış animasyonu */
}

@keyframes fadeInModal {
    to { opacity: 1; }
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: transparent;
    border-radius: 12px;
    /* Modal açılırken hafif zoom yapsın */
    transform: scale(0.9);
    animation: zoomInContent 0.4s forwards 0.1s;
}

@keyframes zoomInContent {
    to { transform: scale(1); }
}

.video-wrapper {
    width: 100%;
    height: auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Aspect Ratio koruma (16:9 için modern yöntem) */
    aspect-ratio: 16 / 9;
    max-height: 80vh;
}

#mainVideoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================
   3. KAPAT BUTONU & OKLAR (NAVİGASYON)
   ========================================= */

/* Kapat Butonu - Sağ üstte şık bir daire */
.close-video {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-video:hover {
    background: rgba(229, 45, 39, 0.8); /* Kırmızıya dön */
    transform: rotate(90deg); /* Hover'da dönme efekti */
    border-color: transparent;
}

/* İleri/Geri Okları */
.vid-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
    outline: none;
}

.vid-nav i {
    font-size: 18px;
}

.vid-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: translateY(-50%) scale(1.1); /* Büyüme efekti */
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* Masaüstünde okların konumu */
.vid-nav.prev { left: -70px; }
.vid-nav.next { right: -70px; }


/* =========================================
   4. MOBİL UYUMLULUK (RESPONSIVE)
   ========================================= */

@media (max-width: 900px) {
    /* Tablet ve Mobilde oklar içeri girsin */
    .vid-nav.prev { left: -10px; background: rgba(0,0,0,0.6); }
    .vid-nav.next { right: -10px; background: rgba(0,0,0,0.6); }

    .video-modal-content {
        width: 95%;
    }

    .close-video {
        top: -45px;
        right: 10px; /* Mobilde biraz daha içeride */
    }
}

@media (max-width: 576px) {
    /* Küçük mobilde buton boyutu */
    .video-btn-floating { width: 35px; height: 35px; }
    .video-btn-floating i { font-size: 18px; }

    /* Okları biraz küçült */
    .vid-nav { width: 30px; height: 30px; }

    .video-wrapper {
        aspect-ratio: auto; /* Mobilde oran zorlamasını kaldırabiliriz */
        min-height: 250px;
    }
}




/* Ev İkonu İçin Stil */
.custom-home-marker {
    background-color: #e74c3c; /* Kırmızı renk */
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px; /* Yükseklik ile aynı olmalı */
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border: 2px solid #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Üçgen ucu (Opsiyonel, pin görünümü için) */
.custom-home-marker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #e74c3c transparent transparent transparent;
}

/* --- Damla Şeklinde Pin Tasarımı --- */

/* 1. Leaflet varsayılanını temizle */
.leaflet-div-icon.seffaf-ikon {
    background: transparent !important;
    border: none !important;
}

/* 2. Dış Çerçeve (Damla Şekli) */
.ofis-pin-govde {
    width: 52px;
    height: 52px;
    background-color: #ffffff; /* Beyaz Çerçeve Rengi */

    /* SOL ÜST, SAĞ ÜST, SAĞ ALT yuvarlak; SOL ALT sivri */
    border-radius: 50% 50% 50% 0;

    /* Şekli 45 derece ters çevirip sivri ucun aşağı bakmasını sağla */
    transform: rotate(-45deg);

    /* Gölgelendirme */
    box-shadow: 10px 10px 10px rgba(0,0,0,0.3);

    /* İçeriği (Resmi) ortala */
    display: flex;
    align-items: center;
    justify-content: center;
}


.ofis-pin-resim {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    transform: rotate(45deg);
    border: 1px solid #f0f0f0;

    /* BU SATIR ÇOK ÖNEMLİ: Tıklamayı engelle ki tıklama ana gövdeye geçsin */
    pointer-events: none;
}
