/* ==========================================================================
   Fibi Emlak Danışmanlık - İlan Detay Ek Stilleri
   (Galeri, Danışman İletişim Butonları, Mobil Sabit Alt Çubuk, Top Details, Zengin Metin)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Gelişmiş Galeri Stilleri
   -------------------------------------------------------------------------- */
.listing-gallery {
    position: relative;
    margin-bottom: 30px;
}

.listing-gallery .carousel-inner {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background-color: #0b0f19;
}

.listing-gallery .single-item-carousel {
    position: relative;
    z-index: 1;
}

.listing-gallery .single-item-carousel .image-box {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.listing-gallery .single-item-carousel .image-box a.lightbox-image {
    display: block;
    cursor: pointer;
}

.listing-gallery .single-item-carousel .image-box img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

@media (max-width: 991px) {
    .listing-gallery .single-item-carousel .image-box img {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .listing-gallery .single-item-carousel .image-box img {
        height: 280px;
    }
}

/* Galeri Rozeti (Sağ Alt) */
.listing-gallery .listing-gallery-count {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 4;
    background: rgba(17, 24, 39, 0.75);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
}

.listing-gallery .listing-gallery-count i {
    font-size: 13px;
    color: #ffffff;
}

/* Galeri Tam Ekran Butonu (Sağ Üst) */
.listing-gallery .listing-gallery-fullscreen {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(17, 24, 39, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    outline: none;
}

.listing-gallery .listing-gallery-fullscreen:hover {
    background-color: #2dbe6c;
    color: #ffffff;
    transform: scale(1.06);
}

/* Küçük Resim Şeridi (Thumbs) */
.listing-gallery .listing-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin: 12px 0 0 0;
    padding: 4px 2px 8px 2px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.listing-gallery .listing-gallery-thumbs::-webkit-scrollbar {
    height: 5px;
}

.listing-gallery .listing-gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.listing-gallery .listing-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.listing-gallery .listing-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.listing-gallery .listing-gallery-thumbs li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.listing-gallery .listing-gallery-thumbs button {
    display: block;
    padding: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.75;
}

.listing-gallery .listing-gallery-thumbs button:hover {
    opacity: 1;
}

.listing-gallery .listing-gallery-thumbs button.is-active {
    border-color: #2dbe6c;
    opacity: 1;
    box-shadow: 0 0 0 1px #2dbe6c;
}

.listing-gallery .listing-gallery-thumbs button img {
    width: 90px;
    height: 64px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

@media (max-width: 767px) {
    .listing-gallery .listing-gallery-thumbs button img {
        width: 75px;
        height: 52px;
    }
}

/* --------------------------------------------------------------------------
   2. Danışman Sidebar İletişim Butonları (.author-widget)
   -------------------------------------------------------------------------- */
.property-sidebar .author-widget .author-box {
    margin-bottom: 0;
    padding-bottom: 0;
}

.property-sidebar .author-widget .author-box:before,
.property-sidebar .author-widget .author-box:after {
    display: none;
}

.author-widget .agent-contact-buttons {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.author-widget .agent-contact-buttons a {
    flex: 1 1 0;
    width: 0;
    min-height: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    line-height: 1;
}

.author-widget .agent-contact-buttons a.btn-contact-call {
    background-color: #ffffff;
    border: 1px solid #2dbe6c;
    color: #2dbe6c !important;
}

.author-widget .agent-contact-buttons a.btn-contact-call:hover {
    background-color: #2dbe6c;
    border-color: #2dbe6c;
    color: #ffffff !important;
}

.author-widget .agent-contact-buttons a.btn-contact-whatsapp {
    background-color: #25d366;
    border: 1px solid #25d366;
    color: #ffffff !important;
}

.author-widget .agent-contact-buttons a.btn-contact-whatsapp:hover {
    background-color: #20bd5a;
    border-color: #20bd5a;
    color: #ffffff !important;
}

.author-widget .agent-contact-buttons a i {
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   3. Mobil Sabit Alt Çubuk (Sticky Bottom Bar)
   -------------------------------------------------------------------------- */
.listing-mobile-contact-bar {
    display: none;
}

@media (max-width: 767px) {
    .listing-mobile-contact-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 56px;
        background: #ffffff;
        box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.12);
        z-index: 999;
        align-items: stretch;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid #eef0f3;
    }

    .listing-mobile-contact-bar .mobile-bar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        color: #495057;
        transition: background-color 0.2s ease, color 0.2s ease;
        border-right: 1px solid #f1f3f5;
        padding: 4px 0;
    }

    .listing-mobile-contact-bar .mobile-bar-item:last-child {
        border-right: none;
    }

    .listing-mobile-contact-bar .mobile-bar-item i {
        font-size: 17px;
        margin-bottom: 2px;
    }

    .listing-mobile-contact-bar .mobile-bar-item--call i {
        color: #2dbe6c;
    }

    .listing-mobile-contact-bar .mobile-bar-item--whatsapp i {
        color: #25d366;
    }

    .listing-mobile-contact-bar .mobile-bar-item--appointment i {
        color: #1e293b;
    }

    .listing-mobile-contact-bar .mobile-bar-item:active,
    .listing-mobile-contact-bar .mobile-bar-item:hover {
        background-color: #f8fafc;
        color: #111827;
    }

    /* Mobil çubuk sayfada varken alt içerik ve scroll-top ayarı */
    body.has-mobile-contact-bar .footer-bottom {
        padding-bottom: calc(37px + 64px + env(safe-area-inset-bottom));
    }

    body.has-mobile-contact-bar .scroll-top {
        bottom: 80px !important;
    }
}

/* --------------------------------------------------------------------------
   4. Kredi Taksit Hesaplayıcı (Sidebar Widget)
   -------------------------------------------------------------------------- */
.loan-calculator.sidebar-widget {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.loan-calculator .widget-title {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f3;
}

.loan-calculator .widget-title h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.loan-calculator .form-group {
    margin-bottom: 18px;
}

.loan-calculator .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.loan-calculator select.loan-select {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    font-size: 15px;
    color: #222;
    outline: none;
    transition: border-color 0.2s ease;
}

.loan-calculator select.loan-select:focus {
    border-color: #2dbe6c;
    outline: none;
}

.loan-calculator select.loan-select option:disabled {
    color: #b5b5b5;
}

.loan-calculator .down-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.loan-calculator .down-payment-header label {
    margin-bottom: 0;
}

.loan-calculator .down-payment-badge {
    font-size: 13px;
    font-weight: 600;
    color: #2dbe6c;
    background: rgba(45, 190, 108, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.loan-calculator input[type="range"].loan-range {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    accent-color: #2dbe6c;
    cursor: pointer;
    margin: 6px 0;
}

.loan-calculator .range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.loan-calculator .loan-results-box {
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 16px;
    margin-top: 22px;
    margin-bottom: 16px;
}

.loan-calculator .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13px;
}

.loan-calculator .result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.loan-calculator .result-item:first-child {
    padding-top: 0;
}

.loan-calculator .result-item .result-label {
    color: #64748b;
    font-weight: 500;
}

.loan-calculator .result-item .result-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

.loan-calculator .result-item.highlight {
    background: #ffffff;
    margin: 8px -10px;
    padding: 12px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.loan-calculator .result-item.highlight .result-label {
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

.loan-calculator .result-item.highlight .result-value {
    color: #2dbe6c;
    font-size: 22px;
    font-weight: 700;
}

.loan-calculator .loan-disclaimer {
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
    padding-top: 4px;
}

.loan-calculator .loan-disclaimer i {
    color: #2dbe6c;
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   5. İlan Detay Başlık Bandı Kısa Başlık
   -------------------------------------------------------------------------- */
.page-title.page-title--listing .page-title-heading {
    position: relative;
    display: block;
    font-size: 36px;
    line-height: 1.25;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .page-title.page-title--listing .page-title-heading {
        font-size: 26px;
    }
}

/* --------------------------------------------------------------------------
   6. İlan Detay Başlık Kartı (.top-details) Modern Flex Düzeni
   -------------------------------------------------------------------------- */
.property-details .top-details {
    position: relative;
    width: 100%;
    padding: 28px 30px;
    margin-bottom: 30px;
    border-bottom: none;
    background-color: #ffffff;
    box-shadow: 0 10px 30px 0px rgb(0 0 0 / 10%);
    border-radius: 10px;
}

.property-details .top-details .listing-detail-title {
    font-size: 30px;
    line-height: 38px;
    font-weight: 500;
    color: #2d2929;
    margin-bottom: 20px;
    width: 100%;
    word-break: break-word;
}

.property-details .top-details .listing-status-badge--inline {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #f94c4c;
    color: #ffffff;
}

.property-details .top-details .top-details-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    width: 100%;
}

/* Danışman kutusu (sol taraf) */
.property-details .top-details .author-box {
    position: relative;
    padding-left: 52px;
    padding-right: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.property-details .top-details .author-box:before {
    display: none !important; /* Dikey ayırıcı çizgiyi gizle */
}

.property-details .top-details .author-box .author-thumb {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
}

.property-details .top-details .author-box .author-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.property-details .top-details .author-box h6 {
    font-size: 15px;
    line-height: 40px;
    font-weight: 500;
    color: #2d2929;
    margin: 0;
}

/* Sağ grup: Rozetler + Fiyat + Aksiyon butonları */
.property-details .top-details .top-details-right-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.property-details .top-details .category {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-details .top-details .category li {
    display: inline-block;
    float: none;
    margin: 0 !important;
}

.property-details .top-details .category li a {
    display: inline-block;
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    padding: 0 14px;
    border-radius: 3px;
    line-height: 26px;
    text-align: center;
    text-transform: uppercase;
}

.property-details .top-details .category li:first-child a {
    background-color: #f2b241;
}

.property-details .top-details .category li:last-child a {
    background-color: #7360ff;
}

.property-details .top-details .price-box {
    margin: 0;
}

.property-details .top-details .price-box h3 {
    font-size: 24px;
    line-height: 26px;
    font-weight: 500;
    color: #2dbe6c;
    margin: 0;
    white-space: nowrap;
}

.property-details .top-details .price-box .price-period {
    font-size: 15px;
    font-weight: 500;
    color: #93959e;
}

.property-details .top-details .price-box .deposit-text {
    font-size: 12px;
    color: #93959e;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

/* Aksiyon butonları (Paylaş / Karşılaştır / Yazdır vb.) */
.property-details .top-details .other-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-details .top-details .other-option li {
    display: inline-block;
    float: none;
    margin: 0 !important;
}

.property-details .top-details .other-option li a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #e5e7ec;
    border-radius: 3px;
    font-size: 20px;
    color: #989aa3;
    text-align: center;
    transition: all 0.3s ease;
}

.property-details .top-details .other-option li a:hover {
    background-color: #2dbe6c;
    border-color: #2dbe6c;
    color: #ffffff;
}

/* Mobilde (<768px) öğeler alt alta, sola hizalı, boşluklar küçük */
@media (max-width: 767px) {
    .property-details .top-details {
        padding: 20px 16px;
    }

    .property-details .top-details .listing-detail-title {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 14px;
    }

    .property-details .top-details .top-details-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .property-details .top-details .top-details-right-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .property-details .top-details .price-box h3 {
        font-size: 20px;
        line-height: 24px;
    }
}

/* --------------------------------------------------------------------------
   7. Zengin Metin İlan Açıklaması (.discription-box .text)
   -------------------------------------------------------------------------- */
.property-details-content .discription-box .text ul,
.property-details-content .discription-box .text ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.property-details-content .discription-box .text ul {
    list-style: disc;
}

.property-details-content .discription-box .text ol {
    list-style: decimal;
}

.property-details-content .discription-box .text li {
    margin-bottom: 6px;
    line-height: 26px;
    color: #93959e;
}

.property-details-content .discription-box .text h4,
.property-details-content .discription-box .text h5,
.property-details-content .discription-box .text h6 {
    margin: 20px 0 10px 0;
    font-weight: 500;
    color: #2d2929;
}

.property-details-content .discription-box .text a {
    color: #2dbe6c;
    text-decoration: underline;
}

.property-details-content .discription-box .text a:hover {
    color: #26a85f;
}

.property-details-content .discription-box .text blockquote {
    border-left: 3px solid #2dbe6c;
    padding-left: 16px;
    margin: 16px 0;
    color: #64748b;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   8. Randevu Formu Mobil İyileştirmeleri
   -------------------------------------------------------------------------- */
.fibi-appointment-form input[type=text],
.fibi-appointment-form input[type=email],
.fibi-appointment-form input[type=tel],
.fibi-appointment-form input[type=time],
.fibi-appointment-form textarea {
    font-size: 16px;
}

.fibi-appointment-form #datepicker,
.fibi-appointment-form #timeInput {
    height: 48px;
    line-height: 48px;
    padding: 0 36px 0 0;
    width: 100%;
    text-indent: 0;
}

.fibi-appointment-form .form-group {
    position: relative;
}

.fibi-appointment-form .form-group i.far {
    position: absolute;
    right: 4px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.fibi-appointment-form input[type=text]:not(#datepicker),
.fibi-appointment-form input[type=email],
.fibi-appointment-form input[type=tel] {
    min-height: 48px;
}
