/**
 * Bodrum Tesisat & Termal Kameralı Su Kaçağı Tespiti
 * Repairer Teması Özelleştirme & Tipanel CMS Standart Stilleri
 */

/* Türkçe Başlık ve Harf Koruma (CSS capitalize Türkçe İ/ı harflerini bozmaz) */
h1, h2, h3, h4, h5, h6,
.gt-section-title,
.gt-section-sub-title,
.gt-button,
header#gt-header .gt-bottom-header .navbar .navbar-nav li a,
header#gt-header .gt-bottom-header .navbar .navbar-nav li .sub-menu li a,
.gt-service-title,
.gt-breadcrumb .gt-breadcrumb-title h1 {
    text-transform: none !important;
}

body {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
}

/* Header & Logo */
header#gt-header .gt-bottom-header .navbar .navbar-brand img {
    height: 52px;
    max-height: 56px;
    width: auto;
}

header#gt-header .gt-bottom-header .navbar .navbar-nav > li > a {
    font-weight: 600;
    font-size: 16px;
    color: #111827 !important;
    position: relative;
    transition: color 0.2s ease;
}

header#gt-header .gt-bottom-header .navbar .navbar-nav > li:hover > a,
header#gt-header .gt-bottom-header .navbar .navbar-nav > li > a:hover {
    color: #ed1d24 !important;
}

/* Madde 24: Aktif Sayfa / Kategori Başlığı Kalın (800) ve Kırmızı Vurgulu */
header#gt-header .gt-bottom-header .navbar .navbar-nav > li.active > a,
header#gt-header .gt-bottom-header .navbar .navbar-nav > li.current-menu-item > a,
header#gt-header .gt-bottom-header .navbar .navbar-nav > li > a.active {
    font-weight: 800 !important;
    color: #ed1d24 !important;
}

@media (min-width: 992px) {
    header#gt-header .gt-bottom-header .navbar .navbar-nav > li.active > a::after,
    header#gt-header .gt-bottom-header .navbar .navbar-nav > li.current-menu-item > a::after,
    header#gt-header .gt-bottom-header .navbar .navbar-nav > li > a.active::after {
        content: '';
        position: absolute;
        bottom: 22px;
        left: 0;
        right: 0;
        height: 3px;
        background: #ed1d24;
        border-radius: 2px;
    }
}

/* Dropdown Menü (25 Hizmet ve 19 Semt İçin Kaydırılabilir ve Ferah) */
header#gt-header .gt-bottom-header .navbar .navbar-nav li:hover > .sub-menu {
    width: 310px !important;
    max-height: 460px;
    overflow-y: auto;
    border-top: 3px solid #ed1d24;
    z-index: 9999;
}

header#gt-header .gt-bottom-header .navbar .navbar-nav li .sub-menu li a {
    font-size: 14.5px !important;
    font-weight: 500;
    padding: 9px 18px !important;
    color: #1f2937 !important;
}

header#gt-header .gt-bottom-header .navbar .navbar-nav li .sub-menu li.active > a,
header#gt-header .gt-bottom-header .navbar .navbar-nav li .sub-menu li.current-menu-item > a,
header#gt-header .gt-bottom-header .navbar .navbar-nav li .sub-menu li > a.active {
    font-weight: 800 !important;
    color: #ed1d24 !important;
    background-color: #fef2f2 !important;
    border-left: 3px solid #ed1d24 !important;
    padding-left: 16px !important;
}

@media (max-width: 991px) {
    header#gt-header .gt-bottom-header .navbar .navbar-nav li.active > a,
    header#gt-header .gt-bottom-header .navbar .navbar-nav li > a.active {
        font-weight: 800 !important;
        color: #ed1d24 !important;
    }
    header#gt-header .gt-bottom-header .navbar .navbar-nav li .sub-menu {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* Breadcrumb Banner Boyut & Okunabilirlik */
.gt-breadcrumb {
    padding: 75px 0 65px !important;
}
.gt-breadcrumb .gt-breadcrumb-title h1 {
    font-size: 36px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px;
    font-weight: 700;
    color: #ffffff !important;
}

/* Acil Çağrı Banner Başlığı (Parlak Beyaz) */
.facilities .gt-section-title,
.emergency-cta-title {
    color: #ffffff !important;
}

/* Hizmet Kartları */
.bodrum-service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.bodrum-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    border-color: #ed1d24;
}
.bodrum-service-card .card-img-box {
    position: relative;
    height: 215px;
    overflow: hidden;
    background: #111827;
}
.bodrum-service-card .card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.bodrum-service-card:hover .card-img-box img {
    transform: scale(1.06);
}
.bodrum-service-card .card-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bodrum-service-card h3 {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}
.bodrum-service-card h3 a {
    color: #111827;
    text-decoration: none;
}
.bodrum-service-card h3 a:hover {
    color: #ed1d24;
}
.bodrum-service-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 16px;
    flex: 1;
}
.bodrum-service-card .card-footer-row {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bodrum-service-card .read-more-link {
    font-weight: 700;
    font-size: 14px;
    color: #ed1d24;
    text-decoration: none;
}
.bodrum-service-card .read-more-link:hover {
    color: #000000;
}

/* Sayfa Meta Bilgisi (Tarih & Görüntülenme - Madde 22) */
.sayfa-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #475569;
}
.sayfa-meta-bar i {
    color: #ed1d24;
    margin-right: 5px;
}

/* İçerik Gövdesi */
.bodrum-article-body h2 {
    font-size: 24px;
    line-height: 1.35;
    margin-top: 26px;
    margin-bottom: 12px;
    color: #0f172a;
}
.bodrum-article-body h3 {
    font-size: 20px;
    line-height: 1.35;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1e293b;
}
.bodrum-article-body p {
    margin-bottom: 16px;
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
}
.bodrum-article-body ul {
    margin-bottom: 18px;
    padding-left: 22px;
}
.bodrum-article-body ul li {
    margin-bottom: 8px;
    color: #334155;
}

/* Etiketler (Sayfa Altı ve Sidebar) */
.content-tags-area {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}
.page-tag-badge,
.sidebar-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    margin: 0 6px 8px 0;
    background: #f4f4f4;
    color: #111827;
    border: 1px solid #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.page-tag-badge:hover,
.sidebar-tag-badge:hover {
    background: #ed1d24;
    color: #ffffff !important;
    border-color: #ed1d24;
    text-decoration: none;
}

/* Sidebar Menü Listesi */
.bodrum-sidebar-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
    max-height: 460px;
    overflow-y: auto;
}
.bodrum-sidebar-list li {
    list-style: none !important;
    margin-bottom: 6px !important;
}
.bodrum-sidebar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px !important;
    background: #f8fafc;
    color: #1f2937 !important;
    font-size: 14.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.bodrum-sidebar-list li a::before {
    display: none !important;
}
.bodrum-sidebar-list li a:hover {
    background: #fef2f2;
    color: #ed1d24 !important;
    border-left-color: #ed1d24;
}
.bodrum-sidebar-list li a.is-current {
    background: #ed1d24 !important;
    color: #ffffff !important;
    font-weight: 700;
    border-left-color: #000000;
}

/* Galeri Kartları & Zoom Overlay */
.gallery-card {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}
.gallery-card .gallery-popup-link {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
}
.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-card:hover img {
    transform: scale(1.07);
}
.gallery-card .gallery-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.gallery-card:hover .gallery-zoom-overlay {
    opacity: 1;
}
.gallery-card .gallery-zoom-btn {
    width: 52px;
    height: 52px;
    background: #ed1d24;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.gallery-card .gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.45) 65%, transparent);
    color: #ffffff;
    pointer-events: none;
}

/* Pagination (Madde 18: Sayfa Başına 9 İçerik) */
.bodrum-pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 18px 24px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.bodrum-pagination-wrap .pagination {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bodrum-pagination-wrap .pagination li {
    list-style: none !important;
}
.bodrum-pagination-wrap .pagination .page-link {
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 !important;
}
.bodrum-pagination-wrap .pagination .page-link:hover {
    background: #ed1d24;
    border-color: #ed1d24;
    color: #ffffff;
}
.bodrum-pagination-wrap .pagination .page-item.active .page-link {
    background: #ed1d24;
    border-color: #ed1d24;
    color: #ffffff;
}
.bodrum-pagination-wrap .pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background: #f9fafb;
}

/* İletişim Formu Düzeltmeleri (Bootstrap 4 + Repairer uyumu) */
.bodrum-contact-form input,
.bodrum-contact-form select,
.bodrum-contact-form textarea {
    float: none !important;
    width: 100% !important;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 12px 15px;
    height: auto;
    line-height: 1.5;
}
.bodrum-contact-form input:focus,
.bodrum-contact-form select:focus,
.bodrum-contact-form textarea:focus {
    border-color: #ed1d24;
    background: #ffffff;
    box-shadow: none;
}

/* Footer Logo & Linkler */
.bodrum-footer-logo {
    max-height: 54px;
    width: auto;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}
.footer-see-all {
    color: #ed1d24 !important;
    font-weight: 700 !important;
}
.footer-see-all:hover {
    color: #ffffff !important;
}

/* Masaüstü Sağ Alt Sabit WhatsApp Destek (ChatLab AI üstünde) */
.desktop-whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 99980;
}
.desktop-whatsapp-float a {
    display: inline-block;
    line-height: 0;
}
.desktop-whatsapp-float img {
    height: 54px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.28));
    transition: transform 0.25s ease;
}
.desktop-whatsapp-float:hover img {
    transform: scale(1.06) translateY(-2px);
}
@media (max-width: 991px) {
    .desktop-whatsapp-float {
        display: none !important;
    }
}

/* Mobil Sabit Alt Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.16);
    display: none;
    z-index: 99990;
    padding: 10px 14px;
}
@media (max-width: 991px) {
    .mobile-sticky-bar {
        display: flex;
        gap: 10px;
    }
    body {
        padding-bottom: 66px;
    }
}
.mobile-sticky-bar a {
    flex: 1;
    text-align: center;
    padding: 11px 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff !important;
}
.mobile-sticky-bar .btn-m-call {
    background: #ed1d24;
}
.mobile-sticky-bar .btn-m-wa {
    background: #25D366;
}

/* Bodrum Semt Chip Linkleri */
.bodrum-bolge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    margin: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.bodrum-bolge-chip i {
    color: #ed1d24;
}
.bodrum-bolge-chip:hover {
    background: #ed1d24;
    border-color: #ed1d24;
    color: #ffffff !important;
}
.bodrum-bolge-chip:hover i {
    color: #ffffff;
}
