/* Frontend Text Cutting Issues Fixes */

/* Ana sayfa dropdown text cutting fixes */
.home-banner .banner-filter-form .select2-container--default .select2-selection--single {
    height: 60px !important;
    min-height: 60px !important;
}

.home-banner .banner-filter-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 58px !important;
    padding: 0 15px !important;
    font-size: 16px !important;
}

.home-banner .banner-filter-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 58px !important;
    top: 1px !important;
}

.home-banner .banner-filter-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: -2px !important;
    top: 50% !important;
}

/* Select2 dropdown options text cutting fixes */
.select2-results__option {
    padding: 12px 15px !important;
    line-height: 1.4 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

.select2-results__option--highlighted {
    background-color: #007bff !important;
    color: white !important;
}

/* Form control height fixes for ana sayfa */
.home-banner .banner-filter-form .form-control {
    height: 60px !important;
    line-height: 58px !important;
    padding: 0 18px !important;
    font-size: 16px !important;
}

.home-banner .banner-filter-form .form-group label {
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Footer links text cutting fixes */
.footer-links ul li a,
.footer-links .list-group-item,
.footer .footer-links a {
    line-height: 1.6 !important;
    padding: 8px 0 !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
}

.footer-links ul li,
.footer .footer-links li {
    margin-bottom: 6px !important;
    line-height: 1.6 !important;
}

.footer-links .list-group-item {
    border: none !important;
    padding: 8px 0 !important;
    background: transparent !important;
}

/* Additional fixes for Turkish characters */
.select2-selection__rendered,
.form-control,
.footer-links a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Grid responsive fixes */
.home-banner .banner-filter-form .grid {
    gap: 15px !important;
}

.home-banner .banner-filter-form .grid .grid-item {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .home-banner .banner-filter-form .form-control {
        height: 50px !important;
        line-height: 48px !important;
        font-size: 14px !important;
    }
    
    .home-banner .banner-filter-form .select2-container--default .select2-selection--single {
        height: 50px !important;
        min-height: 50px !important;
    }
    
    .home-banner .banner-filter-form .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 48px !important;
        font-size: 14px !important;
    }
    
    .home-banner .banner-filter-form .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 48px !important;
    }
    
    /* Mobile sticky header logo fixes */
    .header-area .main-responsive-nav .logo img,
    .header-area .navbar-brand img {
        max-height: 35px !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    .header-area .main-responsive-nav .logo {
        max-width: 120px !important;
        overflow: hidden !important;
    }
    
    .header-area .navbar-brand {
        max-width: 120px !important;
        overflow: hidden !important;
        padding: 5px 0 !important;
    }
    
    /* Ensure header has enough height for logo */
    .header-area .main-responsive-nav {
        min-height: 50px !important;
        padding: 8px 0 !important;
    }
    
    .header-area .main-navbar {
        min-height: 50px !important;
        padding: 8px 0 !important;
    }
}

/* Extra small mobile devices (phones) */
@media (max-width: 480px) {
    .header-area .main-responsive-nav .logo img,
    .header-area .navbar-brand img {
        max-height: 30px !important;
    }
    
    .header-area .main-responsive-nav .logo,
    .header-area .navbar-brand {
        max-width: 100px !important;
    }
    
    .header-area .main-responsive-nav {
        min-height: 45px !important;
        padding: 5px 0 !important;
    }
    
    .header-area .main-navbar {
        min-height: 45px !important;
        padding: 5px 0 !important;
    }
}

/* Fix z-index issues */
.select2-dropdown {
    z-index: 9999 !important;
}

.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

/* Hide profile icons from property cards - Enhanced rules */
.product-default .author,
.product-default .product-details .author,
.product-default .product-details .d-flex .author {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Hide profile icons from property listings */
.property-item .author,
.property-card .author,
.property-list .author {
    display: none !important;
}

/* Hide all author links and spans */
.product-default a[href*="agent.details"],
.product-default a[href*="vendor.details"],
.product-default .author a,
.product-default .author span,
.product-default .author img {
    display: none !important;
}

/* Comprehensive author hiding - covering all possible class names and structures */
.product-default .product-details .author,
.product-default .product-details .d-flex .author,
.product-default .product-details .align-items-center .author,
.product-default .product-details div[class*="author"],
[class*="product-default"] .author,
[class*="product-default"] [class*="author"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Move product category to the left side in property cards */
.product-default .product-details .d-flex.align-items-center {
    justify-content: flex-start !important;
}

.product-default .product-category {
    order: -1 !important;
    margin-right: auto !important;
}

/* Hide only the user section below price in property details page */
.product-price + a .user,
.product-price + a .user-img,
.product-price + a .user-info,
.col-md-4 .product-price ~ a .user {
    display: none !important;
    visibility: hidden !important;
}

/* Hide the entire link that contains the user section below price */
.col-md-4 .product-price ~ a[href*="agent.details"],
.col-md-4 .product-price ~ a[href*="vendor.details"] {
    display: none !important;
}

/* Video gallery styling */
.video-gallery-item {
    position: relative;
    cursor: pointer;
}

.video-play-overlay,
.video-thumb-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-thumb-overlay {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.video-play-overlay:hover,
.video-thumb-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Blog Title Font Size Adjustments */
/* Blog details page - main title */
.blog-description .item-single .content h3.title {
    font-size: 1.75rem !important; /* Reduced from default */
    line-height: 1.4 !important;
}

/* Blog listing page - card titles */
.blog-area .card h3.card-title {
    font-size: 1.35rem !important; /* Reduced from default */
    line-height: 1.4 !important;
}

.blog-area .card h3.card-title a {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Recent posts - sidebar titles */
.sidebar-widget-area .widget-post article h6 {
    font-size: 0.95rem !important; /* Reduced from default */
    line-height: 1.4 !important;
}

.sidebar-widget-area .widget-post article h6 a {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Responsive adjustments for blog titles */
@media (max-width: 768px) {
    .blog-description .item-single .content h3.title {
        font-size: 1.5rem !important;
    }

    .blog-area .card h3.card-title {
        font-size: 1.2rem !important;
    }

    .sidebar-widget-area .widget-post article h6 {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .blog-description .item-single .content h3.title {
        font-size: 1.35rem !important;
    }

    .blog-area .card h3.card-title {
        font-size: 1.1rem !important;
    }

    .sidebar-widget-area .widget-post article h6 {
        font-size: 0.85rem !important;
    }
}

