/* ==========================================================================
   TÜFEKÇİ İNŞAAT - MODERN BUTİK VİLLA TASARIMI (V2)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --tf-primary: #0a1f33;      /* Deep Navy */
  --tf-accent: #b38b4d;       /* Gold/Bronze */
  --tf-accent-light: #e6dac3;
  --tf-bg-light: #fdfdfd;
  --tf-text-dark: #1a1a1a;
  --tf-text-gray: #666666;
  
  --font-heading: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Overrides for custom components */
.tufekci-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==========================================================================
   1. HEADER (TRANSPARENT TO SOLID)
   ========================================================================== */
.header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.header.scrolled {
    position: fixed !important;
    background: var(--tf-primary) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    animation: slideDown 0.4s ease forwards;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.tufekci-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0 20px 0; /* Push down from the very top */
    transition: var(--transition);
}
.header.scrolled .tufekci-navbar {
    padding: 15px 0; /* Shrink when scrolled */
}
.tufekci-logo {
    margin-right: 50px;
    flex-shrink: 0;
}
.tufekci-logo img {
    height: 50px;
    filter: brightness(0) invert(1); /* Make logo white initially */
    transition: var(--transition);
}
.tufekci-menu {
    display: flex;
    flex: 1;
    justify-content: center; /* Center the menu items in the middle of the screen */
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tufekci-menu a {
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
}
.tufekci-menu a:hover {
    color: var(--tf-accent);
}
.tufekci-menu li {
    display: flex;
    align-items: center;
}
.tufekci-menu li:last-child a {
    background: var(--tf-accent);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
}
.tufekci-menu li:last-child a:hover {
    background: #fff;
    color: var(--tf-accent) !important;
}
.tufekci-contact-btn {
    background: var(--tf-accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.tufekci-contact-btn:hover {
    background: #fff;
    color: var(--tf-accent);
}

/* Override old header structures to hide them completely if they try to show */
.navbar-wrapper .bottombar, .navbar-wrapper .menu-wrapper, .searchbar-wrapper {
    display: none !important;
}

/* ==========================================================================
   2. HERO SLIDER
   ========================================================================== */
.carousel-wrapper {
    position: relative;
    height: 90vh !important;
    min-height: 600px;
    max-height: 1080px;
    width: 100%;
    margin-bottom: 80px;
}
.home-slider {
    height: 100%;
}
.home-slider .item {
    height: 100%;
    position: relative;
}
.home-slider .item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,31,51,0.6) 0%, rgba(10,31,51,0.2) 50%, rgba(10,31,51,0.8) 100%);
    z-index: 1;
}
.home-slider .item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* ==========================================================================
   3. HERO SEARCH (GLASSMORPHISM)
   ========================================================================== */
.tufekci-hero-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 900px;
    text-align: center;
}
.tufekci-hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    line-height: 1.2;
}
.tufekci-hero-title span {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.5rem;
    display: block;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--tf-accent);
}

.tufekci-search-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.tufekci-search-field {
    flex: 1;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.tufekci-search-field:last-of-type {
    border-right: none;
}
.tufekci-search-field input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    width: 100%;
    outline: none;
}
.tufekci-search-field input::placeholder {
    color: rgba(255,255,255,0.8);
}
.tufekci-search-btn {
    background: var(--tf-accent);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 15px 40px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.tufekci-search-btn:hover {
    background: #fff;
    color: var(--tf-accent);
}

/* Disable old search engine */
.search-engine-wrapper { display: none !important; }

/* ==========================================================================
   4. LUXURY VILLA CARDS (SPLIT LAYOUT)
   ========================================================================== */
.tufekci-section-title {
    text-align: center;
    margin-bottom: 60px;
}
.tufekci-section-title h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--tf-primary);
    margin: 0;
    font-weight: 400;
}
.tufekci-section-title p {
    font-family: var(--font-sans);
    color: var(--tf-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

.tufekci-villa-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 40px 0;
}

.tufekci-villa-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    align-items: center;
    gap: 60px;
}
.tufekci-villa-card:nth-child(even) {
    flex-direction: row-reverse;
}

.tufekci-villa-image {
    flex: 1.2;
    position: relative;
    height: 500px;
    overflow: hidden;
}
.tufekci-villa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}
.tufekci-villa-card:hover .tufekci-villa-image img {
    transform: scale(1.05);
}

.tufekci-villa-details {
    flex: 1;
    padding: 60px; /* Added horizontal padding to prevent text sticking to edges */
}
.tufekci-villa-subtitle {
    font-family: var(--font-sans);
    color: var(--tf-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tufekci-villa-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--tf-primary);
    margin: 0 0 20px 0;
    font-weight: 400;
}
.tufekci-villa-price {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    color: var(--tf-text-dark);
    font-weight: 300;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 30px;
}
.tufekci-villa-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}
.tufekci-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    color: var(--tf-text-gray);
}
.tufekci-feature i {
    color: var(--tf-accent);
    font-size: 1.2rem;
}
.tufekci-actions {
    display: flex;
    gap: 20px;
}
.tufekci-btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--tf-primary);
    border: 1px solid var(--tf-primary);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
}
.tufekci-btn-primary:hover {
    background: var(--tf-primary);
    color: #fff;
}
.tufekci-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--tf-primary);
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
}
.tufekci-btn-icon:hover {
    border-color: var(--tf-accent);
    color: var(--tf-accent);
}

/* Hide old listings */
.listing.populer { display: none !important; }

/* Responsive */
@media (max-width: 991px) {
    .tufekci-hero-title { font-size: 2.5rem; }
    .tufekci-search-box {
        flex-direction: column;
        border-radius: 20px;
        background: rgba(10, 31, 51, 0.8);
    }
    .tufekci-search-field {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        width: 100%;
        padding: 15px;
    }
    .tufekci-search-btn {
        width: 100%;
        border-radius: 0 0 15px 15px;
    }
    
    .tufekci-villa-card, .tufekci-villa-card:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }
    .tufekci-villa-image {
        height: 300px;
        width: 100%;
    }
    .tufekci-villa-details {
        padding: 20px;
    }
    .tufekci-villa-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   5. TOPBAR (SOCIAL ICONS & INFO) FIXES
   ========================================================================== */
.topbar-wrapper {
    padding-top: 35px !important; /* Increased padding */
    position: relative;
    z-index: 10001; /* Ensure it stays above the header if they overlap */
}
.workingHours {
    color: rgba(255, 255, 255, 0.8) !important;
}
.topbar .login a, .topbar .login span, .topbar .login div {
    color: #fff !important;
}

/* ==========================================================================
   6. REVIEWS
   ========================================================================== */
.tufekci-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.tufekci-review-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.reviewer-info strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--tf-primary);
}
.reviewer-info span {
    font-size: 0.9rem;
    color: #888;
}
.review-quote-icon {
    color: var(--tf-accent);
    opacity: 0.2;
    font-size: 2rem;
}
.review-body {
    flex: 1;
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}
.review-body p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.review-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-weight: 600;
    color: var(--tf-accent);
    font-size: 0.9rem;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.tufekci-footer {
    background-color: var(--tf-primary);
    color: #fff;
    padding: 80px 0 30px 0;
    margin-top: 0; /* Removed the 80px gap */
}
.tufekci-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}
.footer-col h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--tf-accent);
}
.brand-col p {
    color: rgba(255,255,255,0.7);
    margin: 20px 0;
    line-height: 1.6;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: var(--transition);
}
.footer-socials a:hover {
    background: var(--tf-accent);
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}
.contact-item i {
    color: var(--tf-accent);
    margin-top: 5px;
}
.contact-item a {
    color: rgba(255,255,255,0.7);
}
.contact-item a:hover {
    color: #fff;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 20px;
}
.ssl-cert {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #28a745;
}
@media (max-width: 991px) {
    .tufekci-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767px) {
    .tufekci-footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   8. FIXES (RESERVATION BUTTON & FAVORITES)
   ========================================================================== */

/* Match Rezervasyonlarım button color with İletişim */
.topbar .login .btn-warning, 
.topbar .login a.btn,
.topbar .login button {
    background: var(--tf-accent) !important;
    border-color: var(--tf-accent) !important;
    color: #fff !important;
    font-weight: 600;
    transition: var(--transition);
}
.topbar .login .btn-warning:hover, 
.topbar .login a.btn:hover,
.topbar .login button:hover {
    background: #fff !important;
    color: var(--tf-accent) !important;
}

/* Floating Favorites Button (Bottom Right) */
.favList, #favoriteList {
    top: auto !important;
    bottom: 90px !important; /* Positioned above WhatsApp button */
    left: auto !important;
    right: 30px !important;
    position: fixed !important;
    z-index: 10005 !important;
}
/* Hide any favList that gets cloned inside sticky headers due to transform stacking contexts */
header .favList,
.sticky-wrapper .favList,
.is-sticky .favList {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.favList ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.favList .favListBtn {
    background: #fff !important;
    color: var(--tf-accent) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1.5rem;
    transition: var(--transition);
}
.favList .favListBtn:hover {
    transform: scale(1.1);
    background: var(--tf-accent) !important;
    color: #fff !important;
}
.favList .favListBtn i.fa-angle-down {
    display: none !important; /* Hide the down arrow for a cleaner look */
}
.favList .favListBtn i.fa-heart {
    margin: 0 !important;
}
/* Favorites Dropdown opening upwards */
.favListUnder {
    position: absolute !important;
    bottom: 70px !important;
    top: auto !important;
    left: auto !important;
    right: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border: none !important;
    min-width: 320px !important;
    background: #fff !important;
    padding: 15px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease !important;
    display: none !important; /* Hidden by default */
}
/* Show on hover */
.favList:hover .favListUnder {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex !important; /* It has flex-column class */
}
.favListUnder li {
    margin-bottom: 10px;
}
.favListUnder .desc .title {
    color: var(--tf-primary) !important;
    font-weight: 600;
}
.favListUnder .desc .location {
    color: #888 !important;
    font-size: 0.85rem;
}
.favListUnder .btn-special-info {
    background: var(--tf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   9. SEARCH SELECT
   ========================================================================== */
/* Hide old select just in case */
.tufekci-select {
    display: none !important;
}

/* Custom Dropdown Styles */
.custom-select-container {
    position: relative;
    cursor: pointer;
    width: 100%;
}
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #fff;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    padding: 0;
}
.custom-select-trigger i {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}
.custom-select-container.open .custom-select-trigger i {
    transform: rotate(180deg);
}
.custom-options {
    position: absolute;
    top: 100%;
    left: -20px;
    width: calc(100% + 40px);
    margin-top: 15px;
    background: rgba(12, 25, 44, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}
.custom-select-container.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-option {
    padding: 10px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    transition: var(--transition);
}
.custom-option:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ==========================================================================
   10. CALENDAR MODAL OVERRIDES
   ========================================================================== */
#calendarModal {
    z-index: 10000 !important; /* Ensure it stays above the sticky header */
    background: rgba(12, 25, 44, 0.9) !important; /* Dark blue overlay */
    backdrop-filter: blur(5px);
}
.modalRezervationForm {
    z-index: 10010 !important; /* Must be higher than #calendarModal */
}
#calendarModal .villaCalendar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    margin: 2vh auto;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
}
#calendarModal .closeBtn {
    top: 20px !important;
    right: 20px !important;
    background: #f1f1f1 !important;
    color: #333 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 10;
}
#calendarModal .closeBtn:hover {
    background: var(--tf-accent) !important;
    color: #fff !important;
    transform: rotate(90deg);
}
#calendarModal .calendarInfo {
    background: var(--tf-primary) !important;
    color: #fff !important;
    padding: 30px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 3px solid var(--tf-accent);
}
#calendarModal .villaName {
    font-family: var(--font-serif);
    font-size: 1.8rem !important;
    color: var(--tf-accent) !important;
    margin-bottom: 5px;
}
#calendarModal .calendarTitle {
    font-size: 1rem !important;
    font-weight: 400 !important;
    letter-spacing: 2px;
    opacity: 0.8;
}
#calendarModal .calendarIcons {
    margin-top: 20px !important;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 30px;
}
#calendarModal .calendarIcons .item span {
    color: #fff !important;
    font-weight: 500;
}
#calendarModal .calendarBody {
    padding: 20px !important;
    overflow-y: auto;
    background: #fdfdfd !important;
}
/* Bulletproof Month Override */
body #calendarModal .villaCalendar .calendarBody .month,
.villaCalendar .month {
    background: #fff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
}
body #calendarModal .villaCalendar .calendarBody .month .days .day,
body #calendarModal .villaCalendar .calendarBody .month .days .dayHeader,
.villaCalendar .month .days .day {
    color: #333 !important;
}
.villaCalendar .month .title {
    color: var(--tf-primary) !important;
    font-weight: bold;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    padding: 15px 0;
}
.villaCalendar .month .days .day.orange,
.villaCalendar .month .days .day.dolu {
    background: #ff3b30 !important;
    color: #fff !important;
}
.villaCalendar .month .days .day.doluGiris,
.villaCalendar .month .days .day.half,
.villaCalendar .month .days .day.giriscikis {
    background: linear-gradient(135deg, transparent 50%, #ff3b30 50%) !important;
    color: #333 !important;
}

/* ==========================================================================
   11. SUBSIDIARIES SECTION
   ========================================================================== */
.tufekci-subsidiaries {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #eee;
}
.subsidiaries-title {
    color: var(--tf-accent);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.subsidiaries-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--tf-accent);
}
.subsidiaries-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.subsidiaries-list a {
    background: #fff;
    border: 1px solid #eaeaea;
    color: var(--tf-primary);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.subsidiaries-list a:hover {
    background: var(--tf-accent);
    color: #fff;
    border-color: var(--tf-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.etbis a img:hover {
    opacity: 1 !important;
}

/* ==========================================================================
   12. SEARCH DATEPICKER OVERRIDES
   ========================================================================== */
#ui-datepicker-div {
    background: rgba(12, 25, 44, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
    padding: 15px !important;
    color: #fff !important;
    font-family: var(--font-sans) !important;
    width: 320px !important;
    z-index: 10000 !important;
}
#ui-datepicker-div .ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    color: var(--tf-accent) !important;
    font-family: var(--font-serif) !important;
    font-size: 1.2rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
}
#ui-datepicker-div .ui-datepicker-title {
    color: var(--tf-accent) !important;
}
#ui-datepicker-div th {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 400 !important;
    padding: 10px 0 !important;
}
#ui-datepicker-div .ui-state-default, 
#ui-datepicker-div .ui-widget-content .ui-state-default {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 !important;
    margin: 2px auto !important;
    transition: var(--transition) !important;
}
#ui-datepicker-div .ui-state-hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
#ui-datepicker-div .ui-state-active {
    background: var(--tf-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}
#ui-datepicker-div .ui-datepicker-prev, 
#ui-datepicker-div .ui-datepicker-next {
    cursor: pointer !important;
    transition: var(--transition) !important;
}
#ui-datepicker-div .ui-datepicker-prev:hover, 
#ui-datepicker-div .ui-datepicker-next:hover {
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
}
#ui-datepicker-div .ui-datepicker-unselectable .ui-state-default {
    color: rgba(255, 255, 255, 0.2) !important;
    background: transparent !important; /* Remove diagonal lines if they come from bg */
}
#ui-datepicker-div .ui-datepicker-prev span, 
#ui-datepicker-div .ui-datepicker-next span {
    filter: invert(1) !important;
}

/* ==========================================================================
   13. SLEEK TOPBAR & RESERVATIONS BUTTON
   ========================================================================== */
.sleek-topbar {
    background: rgba(12, 25, 44, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1005;
}
.sleek-topbar #login_btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}
.sleek-topbar #login_btn i {
    color: var(--tf-accent);
    margin: 0 8px; /* Fixed spacing on both sides */
}
.sleek-topbar #login_btn a {
    background: var(--tf-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 5px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    margin-left: 20px;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
}
.sleek-topbar #login_btn a:hover {
    background: #fff !important;
    color: var(--tf-accent) !important;
}
.sleek-topbar #login_btn a i {
    color: inherit !important;
    margin-left: 8px !important;
}
.topbar-socials {
    display: flex;
    gap: 8px;
}
.topbar-socials a {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-right: 0 !important;
    transition: var(--transition) !important;
}
.topbar-socials a:hover {
    background: var(--tf-accent) !important;
    color: #fff !important;
    border-color: var(--tf-accent) !important;
    transform: translateY(-2px);
}
.topbar-socials a i {
    margin: 0 !important;
}

/* Push header down slightly to accommodate topbar */
.header {
    padding-top: 35px; /* Adjust based on topbar height */
    transition: padding-top 0.3s ease;
}

/* Hide topbar when scrolling/sticky */
.is-sticky .sleek-topbar,
.sticky-wrapper.is-sticky .sleek-topbar,
header.scrolled .sleek-topbar {
    display: none !important;
}
.is-sticky header.header,
.sticky-wrapper.is-sticky header.header,
header.scrolled {
    height: auto !important;
    padding: 25px 0 !important;
}
.is-sticky .tufekci-navbar,
.sticky-wrapper.is-sticky .tufekci-navbar,
header.scrolled .tufekci-navbar {
    width: 100% !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   14. SCROLL DOWN INDICATOR
   ========================================================================== */
.scroll-down-indicator {
    margin: 60px auto 0; /* Position below the search form */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.7);
    z-index: 10;
    animation: fadeIn 2s ease-in-out;
}
.scroll-down-indicator p {
    font-size: 0.85rem;
    font-family: var(--font-sans);
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.scroll-down-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 20px;
    position: relative;
}
.scroll-down-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--tf-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}
/* ==========================================================================
   13. HEADER SOCIAL ICONS & SUBSIDIARY LOGOS
   ========================================================================== */
.social-media-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}
.social-media-wrapper ul li a {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 0 !important;
}
.social-media-wrapper ul li a:hover {
    background: var(--tf-accent) !important;
    color: #fff !important;
    border-color: var(--tf-accent) !important;
    transform: translateY(-2px);
}
.social-media-wrapper ul li a i {
    font-size: 14px;
    margin: 0 !important;
}
.topbar-wrapper {
    background: var(--tf-primary) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    height: auto !important;
    min-height: 50px !important;
    padding: 5px 0 !important;
    display: flex;
    align-items: center;
}
.topbar {
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    width: 100%;
}
.topbar .login {
    display: flex;
    align-items: center;
}
.subsidiaries-list a img {
    height: 35px;
    object-fit: contain;
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.6;
}
.subsidiaries-list a:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   15. MOBILE RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    .header, .tufekci-container {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    /* Header Navbar Reset */
    .tufekci-navbar {
        display: flex !important;
        flex-direction: row !important;
        padding: 15px 15px !important; /* Bring logo and menu to the very top, add horizontal padding */
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    .tufekci-logo {
        margin: 0 !important;
        flex: 0 0 auto !important;
    }
    .iconBtn.menuBtn {
        margin: 0 !important;
        flex: 0 0 auto !important;
    }
    .header {
        padding-top: 0 !important;
    }
    
    /* Hero Slider & Search */
    .carousel-wrapper,
    .home-slider, 
    .home-slider .owl-carousel, 
    .home-slider .owl-stage-outer, 
    .home-slider .owl-stage, 
    .home-slider .owl-item,
    .home-slider .item {
        height: 600px !important; /* Increased height to give breathing room */
        min-height: 600px !important;
        max-height: 600px !important;
        margin-bottom: 0 !important;
    }
    .home-slider .item img {
        height: 100% !important;
        min-height: auto !important;
        object-fit: cover !important;
    }
    .tufekci-hero-content {
        top: 55% !important; /* Push down to clear the logo */
        width: 92% !important; /* Left and right margins */
        max-width: 400px !important;
    }
    .tufekci-hero-subtitle {
        display: none !important; /* Hide redundant VİLLADAYIZ text on mobile */
    }
    .tufekci-hero-title {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
    }
    .tufekci-hero-title span {
        display: none !important; /* The actual tag containing the redundant text */
    }
    .tufekci-search-box {
        padding: 15px !important;
        width: 100% !important;
    }
    
    /* Sleek Topbar */
    .sleek-topbar {
        display: none !important;
    }
    
    /* Whatsapp & Fav Buttons */
    #whatsappPanelIletisim, .whatsapp-text {
        position: fixed !important;
        bottom: 15px !important;
        right: 15px !important;
        z-index: 9999 !important;
    }
    .favList, #favoriteList {
        bottom: 15px !important; /* Align to the same bottom line */
        left: 15px !important; /* Move to the left side */
        right: auto !important; /* Override the default right position */
        transform: scale(0.9);
    }
    /* Make sure the favorite dropdown opens properly from the left */
    .favList .favListUnder {
        right: auto !important;
        left: 0 !important;
    }
    
    /* Villa Detail Card Buttons */
    .tufekci-card-footer {
        flex-wrap: nowrap !important;
        gap: 5px !important;
    }
    .tufekci-card-footer .tufekci-btn-outline {
        flex-grow: 1; /* Make the view button fill available space */
        min-width: 0;
        font-size: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tufekci-card-footer .tufekci-btn-outline::after {
        content: "İNCELE";
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .tufekci-card-actions .action-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Reviews CSS Scroll Snap Slider */
    .tufekci-reviews-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .tufekci-reviews-grid::-webkit-scrollbar {
        height: 6px;
    }
    .tufekci-reviews-grid::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
        border-radius: 4px;
    }
    .tufekci-reviews-grid::-webkit-scrollbar-thumb {
        background: var(--tf-accent);
        border-radius: 4px;
    }
    .tufekci-review-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        scroll-snap-align: center;
        flex-shrink: 0;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
}
.tufekci-select {
    display: none !important;
}

/* Force Mobile Menu to Right Side */
#rspMenu {
    left: auto !important;
    right: -350px !important;
    width: 300px !important;
    max-width: 100vw !important;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
#rspMenu.active {
    right: 0 !important;
    left: auto !important;
}
