/* Custom styles */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Hero background and overlay */
#anasayfa.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#anasayfa.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    /* subtle dark overlay for text readability */
    background: linear-gradient(rgba(10, 15, 25, 0.45), rgba(10, 15, 25, 0.45));
    pointer-events: none;
    z-index: 0;
}

/* Make sure hero content sits above the overlay */
#anasayfa .container,
#anasayfa .text-center {
    position: relative;
    z-index: 1;
}

/* Property card styles */
.emlak-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emlak-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.emlak-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.emlak-card .etiket {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.emlak-card .etiket.satilik {
    background-color: #34D399;
    color: white;
}

.emlak-card .etiket.kiralik {
    background-color: #60A5FA;
    color: white;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom form styles */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    transform: translateY(-24px) scale(0.8);
    color: #3B82F6;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    transition: all 0.2s ease;
    pointer-events: none;
    color: #6B7280;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #34D399;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

/* Info cards (Neden Kuzey Kıbrıs) */
.info-card {
    background: rgba(255, 255, 255, 0.1); /* Daha belirgin cam efekti */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

.info-card .icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .info-card { padding: 1.25rem; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366; /* WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Language Selector Styles */
#language-selector {
    display: flex;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    overflow: hidden;
}

.lang-box {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-right: 1px solid #d1d5db; /* Add separator */
}

#language-selector .lang-box:last-child {
    border-right: none; /* Remove separator from last button */
}

.lang-box:hover {
    background-color: #f3f4f6; /* gray-100 */
}

.lang-box.selected {
    background-color: #3b82f6; /* blue-500 */
    color: white;
    font-weight: 600;
}