/* Custom Styles for UcuzToprak */

/* General Styles */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #198754;
    text-decoration: none;
}

a:hover {
    color: #146c43;
}

/* Space between sections */
.section-spacing {
    margin-top: 20px;
}

/* Modern Button Styles */
.btn-success, .bg-success {
    background-image: linear-gradient(to right, #0f9d58, #1db954) !important;
    border-color: #0f9d58 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.2);
    transition: all 0.3s ease;
}

.btn-success:hover, .bg-success:hover {
    background-image: linear-gradient(to right, #0b8c4c, #19a84c) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 157, 88, 0.3);
    color: white !important;
}

.btn-outline-success {
    color: #0f9d58;
    background-color: transparent;
    border: 2px solid #0f9d58;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: #f0fdf4;
    border-color: #0f9d58;
    color: #0b8c4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.1);
}

/* Modern Button Classes */
.modern-btn {
    background-image: linear-gradient(to right, #0f9d58, #1db954);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.2);
    transition: all 0.3s ease;
}

.modern-btn:hover {
    background-image: linear-gradient(to right, #0b8c4c, #19a84c);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 157, 88, 0.3);
    color: white;
}

.modern-btn-outline {
    color: #0f9d58;
    background-color: transparent;
    border: 2px solid #0f9d58;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-btn-outline:hover {
    background-color: #f0fdf4;
    border-color: #0f9d58;
    color: #0b8c4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.1);
}

.modern-btn-whatsapp {
    background-image: linear-gradient(to right, #25d366, #128C7E);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.modern-btn-whatsapp:hover {
    background-image: linear-gradient(to right, #1da851, #0e7269);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

.text-success {
    color: #198754 !important;
}

/* Header Styles */
.top-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    max-width: 200px;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.top-nav-item {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #444;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.top-nav-item:hover, .top-nav-item.active {
    color: #198754;
    border-bottom-color: #198754;
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 10px;
    max-width: 600px;
    margin-left: 5%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.search-box {
    background-color: #fff;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.search-input {
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 70%;
}

.search-input:focus {
    outline: none;
}

.search-button {
    background-image: linear-gradient(to right, #0f9d58, #1db954);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.2);
}

.search-button:hover {
    background-image: linear-gradient(to right, #0b8c4c, #19a84c);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 157, 88, 0.3);
}

/* Process Steps */
.process-steps {
    padding: 3rem 0;
    background-color: #fff;
}

.process-steps .step-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-steps .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-steps .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #198754;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.process-steps .step-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #198754;
}

/* City Cards */
.city-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #198754;
    border-radius: 2px;
}

.city-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.city-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.city-count {
    color: #666;
    font-size: 0.9rem;
}

/* Property Listings */
.property-section {
    padding: 3rem 0;
    background-color: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.see-all-link {
    color: #198754;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.see-all-link i {
    margin-left: 0.5rem;
}

.property-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.property-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-price {
    position: relative;
    bottom: auto;
    right: auto;
    background-color: transparent;
    color: #198754;
    padding: 0;
    font-weight: 600;
}

.card-body .property-price {
    display: inline-block;
    margin-right: 10px;
}

.property-details {
    padding: 1.5rem;
}

.property-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.3;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.property-location i {
    margin-right: 0.5rem;
    color: #198754;
}

.property-size {
    font-size: 0.9rem;
    color: #777;
}

.property-size strong {
    color: #333;
}

/* Testimonials */
.testimonial-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    height: 100%;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    padding: 0 15px;
}

.testimonial-content:before,
.testimonial-content:after {
    content: '"';
    font-size: 30px;
    color: #198754;
    position: absolute;
    opacity: 0.3;
}

.testimonial-content:before {
    top: -15px;
    left: 0;
}

.testimonial-content:after {
    bottom: -25px;
    right: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

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

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: #fff;
}

.faq-section .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-section .accordion-button {
    padding: 20px;
    font-weight: 600;
    background-color: #fff;
    color: #333;
}

.faq-section .accordion-button:not(.collapsed) {
    color: #198754;
    background-color: #fff;
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(25, 135, 84, 0.25);
}

.faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23198754'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.faq-section .accordion-body {
    padding: 20px;
    background-color: #fff;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-content {
    padding: 2rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: #198754;
    border-radius: 2px;
}

.about-text {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Newsletter */
.newsletter-section {
    padding: 3rem 0;
    background-color: #198754;
    color: white;
}

.newsletter-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-button {
    background-image: linear-gradient(to right, #0b8c4c, #146c43);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.1);
}

.newsletter-button:hover {
    background-image: linear-gradient(to right, #0a7b42, #0d4a2e);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 157, 88, 0.2);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: #333;
    color: #ccc;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-about {
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: #198754;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-contact {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 1rem;
    margin-top: 5px;
}

.footer-social {
    display: flex;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-image: linear-gradient(to right, #0f9d58, #1db954);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.2);
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Additional Styles */
.property-img {
    height: 220px;
    object-fit: cover;
}

.featured-badge {
    top: 10px;
    left: 10px;
    z-index: 1;
}

.price-badge {
    bottom: 10px;
    right: 10px;
    z-index: 1;
    background-image: linear-gradient(to right, #0f9d58, #1db954);
    color: white;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.property-spec {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.property-spec i {
    margin-right: 5px;
}

/* Fiyat gösterimi stili */
.price-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.property-price-badge {
    display: inline-block;
    background-image: linear-gradient(to right, #0f9d58, #1db954);
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Search Results Highlight */
.search-highlight {
    background-color: rgba(255, 255, 0, 0.3);
    padding: 2px;
}

/* Similar Properties Styles */
.similar-property-card {
    transition: all 0.2s ease-out;
    border: 1px solid transparent;
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden; /* Prevent flickering */
    will-change: transform; /* Optimize animations */
    position: relative;
}

.similar-property-card:hover {
    border-color: #e9ecef;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transform: translateZ(0) scale(1.01); /* Apply a very small scale */
}

.similar-property-img {
    transition: none; /* Disable transition for image */
    transform: translateZ(0); /* Hardware acceleration */
    opacity: 0; /* Start with opacity 0 */
    transition: opacity 0.2s ease-in; /* Only transition opacity */
}

.similar-property-img.img-loaded {
    opacity: 1; /* When loaded, show image */
}

.similar-property-link {
    display: block;
    text-decoration: none;
}

.hover-shadow-sm {
    transition: all 0.2s ease;
}

.hover-shadow-sm:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.transition-300 {
    transition: all 0.3s ease;
}

/* Pagination Styles */
.pagination .page-link {
    color: #0f9d58;
    border-color: #e9ecef;
    margin: 0 3px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-image: linear-gradient(to right, #0f9d58, #1db954);
    border-color: #0f9d58;
    color: white;
    box-shadow: 0 4px 8px rgba(15, 157, 88, 0.2);
}

.pagination .page-link:hover {
    background-color: #f0fdf4;
    border-color: #d1e7dd;
    color: #0b8c4c;
    transform: translateY(-2px);
    z-index: 3;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-content {
        margin: 0 15px;
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-input {
        width: 60%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .property-card {
        margin-bottom: 1rem;
    }
    
    .price-container {
        text-align: left;
        margin-top: 0;
        margin-bottom: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .property-price-badge {
        font-size: 14px;
        padding: 4px 10px;
        display: inline-block;
    }
    
    .newsletter-form {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .newsletter-input, .newsletter-button {
        border-radius: 50px;
        width: 100%;
    }
    
    .newsletter-button {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        min-height: 450px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .see-all-link {
        margin-top: 0.5rem;
    }
} 