/* Mobile-specific styles for Usta360 */
@media (max-width: 768px) {
  /* Hide text elements on mobile */
  .hero-home15 .title,
  .hero-home15 .text {
    display: none !important;
  }
  
  /* Make hero section full screen on mobile */
  .hero-home15 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Center the search form on mobile */
  .hero-home15 .advance-search-tab {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
  }
  
  /* Adjust search input styling for mobile */
  .hero-home15 .form-control {
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 25px;
  }
  
  /* Style search button for mobile */
  .hero-home15 .ud-btn {
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
  }
  
  /* Remove margins and padding that might interfere */
  .hero-home15 .home14-hero-content {
    text-align: center;
    width: 100%;
  }
  
  /* Ensure background covers full mobile screen 
  .hero-home15.bgc-light-yellow {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-size: cover;
    background-position: center;
  }
    */
  
  /* Make search box container relative for suggestions positioning */
  .hero-home15 .box-search {
    position: relative;
  }
}

/* Clear icon styles */
.clear-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
  transition: all 0.2s ease;
  padding: 4px;
  border-radius: 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.clear-icon:hover {
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
  transform: translateY(-50%) scale(1.1);
}

.clear-icon:active {
  transform: translateY(-50%) scale(0.95);
}

/* Search Suggestions Styling - Works on both mobile and desktop */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(34, 34, 34, 0.15);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-suggestions.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Suggestions header */
.search-suggestions h6 {
  color: #666;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 12px 16px 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: 12px 12px 0 0;
}

/* Suggestions list container */
.search-suggestions .box-suggestions {
  padding: 0;
  margin: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.search-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-suggestions li {
  margin: 0;
  padding: 0;
}

/* Hide li elements that contain hidden items */
.search-suggestions li.hidden-item {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

.search-suggestions .info-product {
  margin: 0;
  padding: 0;
}

.search-suggestions .item_title {
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 0;
  transition: all 0.2s ease;
  color: #222222;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  user-select: none;
  display: block;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  position: relative;
}

/* Hide items that are not visible */
.search-suggestions .item_title[style*="display: none"] {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

.search-suggestions .item_title:hover {
  background-color: rgba(251, 247, 237, 0.6);
  color: #222222;
  transform: translateX(4px);
}

.search-suggestions .item_title:active {
  background-color: rgba(245, 240, 230, 0.8);
  transform: scale(0.98);
}

/* Add subtle border between items */
.search-suggestions li:not(:last-child) .item_title {
  border-bottom: 1px solid #f5f5f5;
}

/* Remove border from last item */
.search-suggestions li:last-child .item_title {
  border-bottom: none;
}

/* Hide suggestions when no results */
.search-suggestions h6[style*="display: none"],
.search-suggestions .box-suggestions[style*="display: none"] {
  display: none !important;
}

/* Empty state styling */
.search-suggestions:not(.show) {
  display: none !important;
}

/* Desktop search suggestions */
@media (min-width: 769px) {
  .search-suggestions {
    max-height: 380px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 12px 35px rgba(34, 34, 34, 0.2);
  }
  
  .search-suggestions h6 {
    font-size: 11px;
    padding: 10px 18px 6px 18px;
  }
  
  .search-suggestions .item_title {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
  }
  
  .search-suggestions .item_title:hover {
    transform: translateX(6px);
  }
}

/* Mobile search suggestions */
@media (max-width: 768px) {
  .search-suggestions {
    max-height: 280px;
    border-radius: 10px;
    margin-top: 6px;
    box-shadow: 0 6px 20px rgba(34, 34, 34, 0.12);
  }
  
  .search-suggestions h6 {
    font-size: 11px;
    padding: 14px 20px 10px 20px;
  }
  
  .search-suggestions .item_title {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
  }
  
  .search-suggestions .item_title:hover {
    transform: translateX(3px);
  }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
  .hero-home15 .advance-search-tab {
    max-width: 95%;
    padding: 20px 15px;
  }
  
  .hero-home15 .form-control {
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .hero-home15 .ud-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
} 

/* Kartların eşit boyutta olması için */
.listing-style1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px; /* Minimum yükseklik */
}

/* Kart içeriğini flex container yapma */
.listing-style1 .list-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

/* Başlık alanını sabit tutma */
.listing-style1 .list-title {
  flex-shrink: 0;
  min-height: 48px; /* Başlık için minimum yükseklik */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Açıklama metnini esnek yapma */
.listing-style1 .list-text {
  flex-shrink: 0;
  min-height: 20px;
}

/* Review meta alanını sabit tutma */
.listing-style1 .review-meta {
  flex-shrink: 0;
  min-height: 30px;
}

/* Alt kısım (profil bilgisi) için */
.listing-style1 .list-meta {
  margin-top: auto; /* Alt kısma yapıştırma */
  flex-shrink: 0;
  min-height: 50px;
}

/* Kartların grid container'ında eşit yükseklik */
.col-sm-6.col-xl-4 {
  display: flex;
  flex-direction: column;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
  .listing-style1 {
    min-height: 350px;
  }
  
  .listing-style1 .list-title {
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .listing-style1 {
    min-height: 320px;
  }
}

/* Mobile Scroll Down Indicator - Oval Style */
.mobile-scroll-indicator {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .mobile-scroll-indicator {
    display: block;
  }
}

.mobile-scroll-indicator-icon {
  width: 40px;
  height: 60px;

  border: 2px solid rgba(34, 34, 34, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 15px rgba(34, 34, 34, 0.1),
    0 2px 8px rgba(251, 247, 237, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.mobile-scroll-indicator-icon:hover {
  transform: scale(1.05);
  box-shadow: 
    0 6px 20px rgba(34, 34, 34, 0.15),
    0 3px 12px rgba(251, 247, 237, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(34, 34, 34, 0.3);
}

/* Moving circle inside oval */
.mobile-scroll-indicator-icon::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #222222;
  border-radius: 50%;
  animation: move-up-down 2s ease-in-out infinite;
  box-shadow: 0 2px 4px rgba(34, 34, 34, 0.3);
}

/* Up and down movement animation */
@keyframes move-up-down {
  0%, 100% {
    transform: translateY(8px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Performance optimized hover effects */
.mobile-scroll-indicator-icon:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Accessibility improvements */
.mobile-scroll-indicator-icon:focus {
  outline: 2px solid rgba(34, 34, 34, 0.3);
  outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .mobile-scroll-indicator-icon::before {
    animation: none;
    transform: translateY(0);
  }
  
  .mobile-scroll-indicator-icon:hover {
    transform: none;
  }
}

/* Auto-hide when user scrolls down */
.mobile-scroll-indicator.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(15px);
  pointer-events: none;
  transition: all 0.4s ease;
}

/* Checkbox styling for phone contact permission */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-check-input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 3px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #222222;
  border-color: #222222;
}

.form-check-input:focus {
  box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.2);
  outline: none;
}

.form-check-label {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
  margin: 0;
  flex: 1;
}

.form-check-label:hover {
  color: #333;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .form-check {
    gap: 6px;
  }
  
  .form-check-input {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }
  
  .form-check-label {
    font-size: 12px;
  }
  
  /* Mobile input positioning - move search form up aggressively */
  .hero-home15 .home14-hero-content {
    padding-top: 5px;
  }
  
  .hero-home15 .home14-hero-content .text {
    margin-bottom: 5px !important;
    font-size: 13px;
    line-height: 1.3;
  }
  
  .hero-home15 .home14-hero-content .title {
    margin-bottom: 8px !important;
    font-size: 22px;
    line-height: 1.2;
  }
  
  .hero-home15 .advance-search-tab {
    margin-top: 0px !important;
    padding: 6px !important;
  }
  
  /* Reduce hero section padding on mobile more aggressively */
  .hero-home15 {
    padding-top: 15px !important;
    padding-bottom: 20px !important;
  }
  
  /* Remove extra spacing from responsive divs */
  .hero-home15 .d-block.d-md-none {
    display: none !important;
  }
  
  /* Make search form more compact on mobile */
  .hero-home15 .advance-search-field {
    margin-bottom: 3px !important;
  }
  
  .hero-home15 .form-control {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .hero-home15 .ud-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  /* Reduce header bottom margin on mobile */
  .header-nav {
    margin-bottom: 0 !important;
  }
  
  /* Make hero section start immediately after header */
  .hero-home15 {
    margin-top: -21% !important;
  }
  
  /* Additional aggressive spacing reduction */
  .hero-home15 .container {
    padding-top: 0 !important;
  }
  
  .hero-home15 .row {
    margin-top: 0 !important;
  }
  
  .hero-home15 .col-xl-6 {
    padding-top: 0 !important;
  }
  
  /* Make title even more compact on mobile */
  .hero-home15 .title {
    font-size: 20px !important;
    margin-bottom: 5px !important;
    line-height: 1.1 !important;
  }
  
  /* Make mobile text even more compact */
  .hero-home15 .text.d-block.d-md-none {
    font-size: 12px !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
  }
}