/**
 * Domain Showcase Styles
 * 
 * Path: wp-content/themes/bridge-child/showcase/css/domain-showcase.css
 */

/* Core showcase container */
.domain-showcase-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 1000px !important;
}


.domain-showcase {
    width: 100%;
    max-width: 1400px;
    /*margin: 0 auto;*/
    padding-top: 0 !important;
    box-sizing: border-box;
}

.domain-hero-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    justify-content: center;
}

/* Hero search section */
.domain-hero {
    width: 100%;
    max-width: 1400px;
    background-color: #132361 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.5rem;
    margin: 0 1rem 1rem !important;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
    position: relative;
    
}

.heading_2 {
    color: #F8991D !important;
    font-size: 42px !important;
    line-height: 15px !important;
    padding-bottom:20px !important;
    margin: auto !important;
    white-space: nowrap !important;
}

body.domain-popup-open {
    overflow: hidden !important;
}

/*.q_slider .slider_content .search-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 800px;
    margin: 0 auto;
    z-index: 100;
    transform: none;
}*/

/*.search-container {
    position: relative !important;
    width: 95%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    background-color: transparent !important;
}*/

.search-container {
    width: 95%;
    padding: 0 0.5rem;
    margin: 0 auto;
    max-width: 800px;
}


/* Search input group - contains dropdown, input and button */
.search-input-group {
  position: relative !important;
  width: 100%;
  display: flex;
  margin: 0 auto !important;
  flex-wrap: nowrap;
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
  height: 60px; /* Maintain uniform height */
  z-index: 101;
}


.search-input-group:focus-within {
  box-shadow: 0 6px 16px rgba(55, 83, 164, 0.25);
}

/* Filter dropdown styling */
/*.search-filter-dropdown {
   position: relative;
  border-right: 1px solid #e5e7eb;
  background-color: #f8f9fa;
  height: 100%; 
  display: flex;
  align-items: center;
}

.search-filter-dropdown select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 160px;
  height: 100%;
  padding: 0 2.5rem 0 1rem;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #414042;
  cursor: pointer;
  outline: none;
}

.search-filter-dropdown::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #3753A4;
  border-bottom: 2px solid #3753A4;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.search-filter-dropdown:hover::after {
  transform: translateY(-40%) rotate(45deg);
}*/


/* Search box styling */
.search-box {
  flex: 1;
  height: 100%;
  padding: 0 1.5rem; /* Increased padding for better text display */
  font-size: 16px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
  transition: background-color 0.2s ease;
  outline: none;
}

.search-box:focus {
  outline: none;
  background-color: #ffffff;
}

/* Search button styling */
.search-button {
  min-width: 120px;
  height: 100%; /* Match parent height */
  padding: 0 1.5rem;
  background-color: #F8991D;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover:not(:disabled) {
  background-color: #3753A4;
}

.search-button:disabled {
  background-color: #D1D3D4;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Search suggestions styles */
.search-suggestions {
  position: absolute !important; /* Use fixed positioning to escape parent container limitations */
  top: auto; /* Dynamic positioning will be handled by JavaScript */
  left: auto; /* Dynamic positioning will be handled by JavaScript */
  transform: none; /* Remove transform to prevent positioning conflicts */
  width: 100%; /* Maintain width constraint from parent */
  max-width: 800px; /* Maximum width constraint */
  max-height: 250px;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 9999999 !important; /* Ensure highest possible z-index */
  display: none;
  border: 1px solid rgba(229, 231, 235, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  pointer-events: auto; /* Ensure clickability */
  margin: 0; /* Remove margins that could affect positioning */
}

.search-suggestions.active {
  display: block;
  opacity: 1;
  animation: suggestionsAppear 0.3s ease forwards;
  transform: translateY(0);
}

/* Appearance animation */
@keyframes suggestionsAppear {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern scrollbar styling */
.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 0.75rem 0.75rem 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(240, 240, 240, 0.7);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 15px;
  color: #414042;
  display: flex;
  align-items: center;
}

.suggestion-item:hover {
  background-color: rgba(55, 83, 164, 0.05);
  color: #3753A4;
  padding-left: 1.25rem; /* Subtle indent on hover */
}

/* Domain name indicator icon */
.suggestion-item::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233753A4' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.suggestion-item:hover::before {
  opacity: 1;
}

.suggestion-item:last-child {
  border-bottom: none;
}



.domainsearchpage-searchbar-heading {
    text-align: center;
    padding-top: 0px !important;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0.5rem auto;
    max-width: 800px;
    white-space: nowrap; /* Keep single line on large screens */
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}


.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.category-filters-wrapper,
.on-sale-domains-section-wrapper,
.domains-section-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    justify-content: center;
    /*margin-top: 0;
    margin-bottom: 0;*/
    padding-top: 0 !important;
}


/* Domains section wrapper and content */
.on-sale-domains-section-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-top: 0.5rem !important;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    justify-content: center;
    
    }

.on-sale-domains-section {
    width: 100%;
    max-width: 1400px;
    /*margin: 1rem auto;*/
    padding: 0 2rem;
    box-sizing: border-box;
    
}
.domains-section {
    width: 100%;
    max-width: 1400px;
    padding: 1rem 2rem;
    box-sizing: border-box;
    margin: 0;
}
.category-filters {
    width: 100%;
    max-width: 1400px;
    padding: 0rem 0rem !important;
    box-sizing: border-box;
    }

/* Category filters */
.category-filters {
    margin: 1rem 0 !important;
}

.filter-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    box-sizing: border-box;
}

.filter-button {
    padding: 0.75rem 1rem;
    background-color: #D1D3D4 !important;
    color: #414042 !important;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-button:hover,
.filter-button.active,
.filter-button.selected {
    background-color: #3753A4 !important;
    color: #ffffff !important;
}

.more-menu-container {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    max-width: 300px !important;
    background: #FEF5E8;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: none;
    padding: 0.5rem;
}

.more-menu-item {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.more-menu-item:hover,
.more-menu-item.selected {
    background-color: #f0f0f0;
    color: #3753A4;
}


/* Featured domains grid */
.featured-domains {
    margin: 3rem 0;
}

.domains-grid
 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); /* Reduced from 280px */
    gap: 1rem; /* Reduced from 1.5rem */
    width: 100%;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

.domains-grid.loading {
    opacity: 0.6;
}

/* On-sale grid specific styles */
 .on-sale-domains-grid {
    display: flex;
    width: 100%;
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, min-height 0.3s ease-in-out;
    min-height: 230px; /* Set explicit minimum height */
    position: relative; /* Proper positioning context */
}

/* Empty state styling for on-sale domains section */
.on-sale-domains-grid.empty-state {
    border: none;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.no-results-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem;
    /*box-sizing: border-box;*/
}

.no-results {
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap; 
    width: 100%; 
}

.no-results p {
    margin: 0;
    padding: 0;
}

.no-results-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(55, 83, 164, 0.1);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.no-results-icon:before {
    content: "!";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3753A4;
    font-weight: 700;
    font-size: 20px;
}



/*.domains-grid > *
 {
    max-width: 320px !important; /* Match the minmax value plus padding
    margin: 0 auto;
    width: 100%;
} */

/* Slick Carousel Customization */
.on-sale-domains-grid.reinitializing {
    min-height: 230px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    transition: opacity 0.25s ease, background-color 0.25s ease;
}

/* Replace loading text with subtle animation */
.on-sale-domains-grid.reinitializing:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(55, 83, 164, 0.15);
    border-top-color: #3753A4;
    border-radius: 50%;
    animation: carousel-loader-spin 0.8s infinite ease-in-out;
    z-index: 5;
}

@keyframes slick-loader-spin {
     0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.on-sale-domains-grid.transitioning {
    pointer-events: none; /* Prevent interaction during transition */
    min-height: 280px;
    background-color: rgba(248, 250, 252, 0.6);
    transition: opacity 0.3s ease, background-color 0.3s ease, min-height 0.3s ease;
}


/* Domain card styles in carousel */
.on-sale-domains-grid.slick-initialized {
    opacity: 1 !important;
    display: block !important;
    padding-bottom: 10px;
    width: 100%;
    min-height: auto; /* Let content determine height once initialized */
    transition: opacity 0.3s ease-in-out;
}

.on-sale-domains-grid .slick-track {
    display: flex !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 230px; /* Explicit minimum height */
    padding-top: 15px;
    align-items: stretch;
}

.on-sale-domains-grid .domain-card {
    width: 100% !important;
    margin: 0 !important;
    flex: 1;
    display: flex !important;
    /*min-height: 330px !important;*/
}

/* Individual Slide Styling */
.on-sale-domains-grid .slick-slide {
    height: auto !important; /* Use auto height instead of inherit */
    margin: 0 10px; 
    display: flex !important;
    box-sizing: border-box !important; /* Ensure consistent box model */
}

/* Ensure full card visibility */
.on-sale-domains-grid .slick-slide > div {
    width: 100%;
    display: flex !important;
}

/* Navigation Arrows */
.on-sale-domains-grid .slick-arrow {
    width: 40px;
    height: 40px;
    background: #3753A4;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.2s ease;
}

.on-sale-domains-grid .slick-prev {
    left: -50px; /* Positioned outside content area */
}

.on-sale-domains-grid .slick-next {
    right: -50px; /* Positioned outside content area */
}

.on-sale-domains-grid .slick-arrow:before {
    font-size: 20px;
    opacity: 1;
}

/* Navigation Dots */
/*.on-sale-domains-grid .slick-dots {
    display: none !important;
    bottom: -30px !important;
}

.on-sale-domains-grid .slick-dots li button:before {
    display: none !important;
    font-size: 10px;
    color: #3753A4;
    opacity: 0.5;
}

.on-sale-domains-grid .slick-dots li.slick-active button:before {
    display: none !important;
    color: #F8991D;
    opacity: 1;
}*/

.domain-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    width: 100%; /* Match card width directly */
    max-width: 280px;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden; /* Prevent content overflow */
    transition: transform 0.25s ease;
}

.domain-card-link:hover {
    transform: translateY(-4px);
}

.domain-card-link:hover .domain-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.domain-card {
    display: flex !important;
    flex-direction: column !important;
    background: rgba(0, 152, 221, 0.05) !important; /* Adjust opacity */
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0.4rem !important;
    min-height: auto !important;
    width: 100% !important; /* Fill parent width */
    height: 100%; /* Fill parent height */
    position: relative;
    box-sizing: border-box !important;

}

.domain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.domain-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.domain-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Adjustments for cards without images */
.domain-card-no-image {
    min-height: auto !important;
    padding-top: 0.75rem !important;
}

.domain-card-no-image .domain-card-content {
    /*min-height: 100px;*/
    display: flex;
    flex-direction: column;
}

.domain-card-no-image .domain-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}


.domain-card:hover .domain-image {
    transform: scale(1.05);
}

/* Content section */
.domain-card-content {
    padding: 0.25rem 0.35rem !important;
    /*flex: 1;*/
    display: flex;
    flex-direction: column;
    position: relative;
    /*min-height: 120px;*/
}

.domain-name {
    font-size: 1.1rem; /* Standardize size */
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    word-break: break-word;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Base tooltip icon styling */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    position: relative;
    top: -2px; /* Superscript effect */
    cursor: help;
    transition: all 0.2s ease;
}

/* Premium domain tooltip styling */
.tooltip-icon.premium {
    background-color: #FFD657;
    color: #414042;
}

/* Desirable domain tooltip styling */
.tooltip-icon.desirable {
    background-color: #6DCFF6;
    color: #132361;
}

/* Tooltip content container */
.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px); /* Move tooltip upward */
    background-color: #333;
    color: white;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100 !important; /* Extremely high z-index to overcome all stacking contexts */
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform-style: preserve-3d; /* Create new stacking context */
    will-change: transform, opacity; /* Optimize rendering performance */
}

.domain-card-content,
.domain-name,
.domain-card,
.domain-card-link {
    overflow: visible !important; /* Override any hidden overflow */
}

/* Tooltip arrow */
.tooltip-content:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Tooltip hover behavior */
.tooltip-icon:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}



.domain-price {
    color: #3753A4 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Original price with strike-through */
.original-price {
    text-decoration: line-through;
    color: #777 !important;
    opacity: 0.8;
    font-weight: 400;
    margin-right: 0.25rem;
}

/* Discounted price with emphasis */
.discount-price {
    color: #F8991D !important;
    font-weight: 800 !important;
}

/* Discount badge styling */
.discount-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #F8991D;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: rotate(3deg);
}

.discount-badge::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,8L15.5,11.5L11.5,15.5L8,12M7.5,10.5A1.5,1.5 0 0,1 6,9A1.5,1.5 0 0,1 7.5,7.5A1.5,1.5 0 0,1 9,9A1.5,1.5 0 0,1 7.5,10.5M16.5,16.5A1.5,1.5 0 0,1 15,15A1.5,1.5 0 0,1 16.5,13.5A1.5,1.5 0 0,1 18,15A1.5,1.5 0 0,1 16.5,16.5Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
    vertical-align: -2px;
}

.domain-category {
    /*display: inline-block;*/
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    /*margin-bottom: 0.75rem;*/
}

.domain-category:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.category-premium {
    display: none !important;
    /*background-color: #FFD657 !important;
    color: #414042 !important;*/
}

/* Premium domain background */
.domain-card:has(.category-premium) {
    background: rgba(255, 214, 87, 0.1) !important; /* Light golden background */
    /*border-color: #FFD700; /* Gold border */
}


.category-desirable {
    display: none !important;
    /*background-color: #6DCFF6 !important;
    color: #132361 !important;*/
}

/* Desirable domain background */
.domain-card:has(.category-desirable) {
    background: rgba(0, 152, 221, 0.1) !important; 
    /*border-color: #00FF7F; /* Green border */
}

.on-sale-badge {
    display: none;
    
    }

.on-sale-badge:empty {
    display: none;
    margin: 0;
}

/*.domain-card:not([data-on-sale="true"]) .domain-category {
    margin-bottom: 0rem; /* Creates space for buy button */
/*}

/* Cards with sale badge maintain original spacing */
/*.domain-card[data-on-sale="true"] .domain-category {
    margin-bottom: 0.75rem;
}*/

/* Buy Now button */
/*.buy-now-button {
    position: absolute !important;
    bottom: 0.08rem !important;
    right: 0.08rem !important;
    padding: 0.5rem 1rem !important;
    background-color: #F8991D !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(10px);
    z-index: 2;
}

.domain-card:hover .buy-now-button {
    opacity: 1;
    transform: translateY(0);
}

.buy-now-button:hover {
    background-color: #3753a4 !important;
}/*


/* Domain Popup Styles */
.domain-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.domain-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.domain-popup {
    display: none !important;
	/*background-color: white;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;*/
}

.domain-popup-overlay.active .domain-popup {
    transform: translateY(0);
}

.domain-popup-header {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.domain-popup-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #777;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.domain-popup-close:hover {
    color: #333;
    background-color: #f5f5f5;
}

.domain-popup-content {
    padding: 1.5rem;
    text-align: center;
}

.domain-popup-title {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.domain-popup-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.domain-popup-button {
    padding: 0.75rem 2rem;
    background-color: #F8991D;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.domain-popup-button:hover {
    background-color: #e98200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.domain-popup-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* Section headers */
.section-header {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 0 0.1rem 0 !important;
    padding: 0;
    box-sizing: border-box;
    overflow: visible; /* Important to allow the ribbon to overflow */
}

.section-title {
    color: #132361;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem !important;
    text-align: left;
    position: relative; /* For positioning context */
    padding-right: 150px; /* Make space for the ribbon */
}

.section-title .subtitle {
    display: block;
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #132361;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 20px;
    transform: rotate(3deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}


/* Sale badge styling */
.sale-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #FF4B4B;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Suggested domains section styling */
.suggested-domains-section-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-top: 0 !important;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    justify-content: center;
    padding-top: 0 !important;
}

.suggested-domains-section {
    width: 100%;
    max-width: 1400px;
    padding: 1rem 2rem;
    box-sizing: border-box;
    margin: 0;
}

.suggested-domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); /* Reduced from 280px */
    gap: 1rem; /* Reduced from 1.5rem */
    width: 100%;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

/* Not Found Domain section styling */
.not-found-domain-section-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-top: 0 !important;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    justify-content: center;
    padding-top: 0 !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.not-found-domain-section {
    width: 100%;
    max-width: 1400px;
    padding: 1rem 2rem;
    box-sizing: border-box;
    margin: 0;
}

.not-found-domain-content {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

/* Load More Button Container */
.load-more-container,
.buttons-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
    padding: 0.5rem;
}

/* Load More Button Styling */
.load-more-button {
    padding: 0.75rem 2rem;
    background-color: #3753A4;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.load-more-button:hover {
    background-color: #2B428A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.load-more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.load-more-button:disabled {
    background-color: #94A3D0;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Loading State Animation */
.load-more-button:disabled:after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin-left: 0.75rem;
    vertical-align: -0.2rem;
    animation: load-more-spinner 0.8s linear infinite;
}

/* Loading Animation Keyframes */
@keyframes load-more-spinner {
    to { transform: rotate(360deg); }
}

/* Search Domain Button Styling */
.search-domain-button {
    padding: 0.75rem 2rem;
    background-color: #F8991D;
    color: white !important;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
}

.search-domain-button:hover {
    background-color: #e98200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-domain-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* On-sale card specific styles */
/*.domain-card.on-sale {
    border-color: #FF4B4B;
    box-shadow: 0 2px 8px rgba(255, 75, 75, 0.1);
}

.domain-card.on-sale:hover {
    box-shadow: 0 4px 12px rgba(255, 75, 75, 0.2);
}

/* Notice styling */
.notice {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.notice-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/**
 * Enhanced Responsive Styles for Domain Showcase
 * 
 * Provides optimized responsive behavior with a focus on slider elements,
 * navigation components, and search functionality across all device sizes.
 */

/* XL Screens: Improved scaling for large viewports */
@media screen and (min-width: 1600px) {
    /* Increase container max-width for better use of screen real estate */
    .domain-showcase,
    .domain-hero,
    .category-filters,
    .on-sale-domains-section,
    .domains-section,
    .suggested-domains-section,
    .not-found-domain-section {
        max-width: 85vw !important;
    }
    
    /* Maintain slider arrow positioning on extra-large screens */
    .on-sale-domains-grid .slick-prev {
        left: -60px; 
    }
    
    .on-sale-domains-grid .slick-next {
        right: -60px;
    }

    .domains-grid,
    .suggested-domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    /* Adjust filter grid columns to fill available space */
    .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.25rem;
    }
}

/* Large Screens: Fixed navigation arrows and slider components */
@media screen and (max-width: 1445px) and (min-width: 1201px) {
    /* Critical fix: Properly position slider arrows to prevent cutoff */
    .on-sale-domains-grid .slick-prev {
        left: -30px;
    }
    
    .on-sale-domains-grid .slick-next {
        right: -30px;
    }
    
    /* Ensure slider title scales appropriately */
    .q_slide_title {
        font-size: 60px !important;
        line-height: 55px !important;
        white-space: nowrap !important;
    }
    
    /* Adjust container padding for better spacing */
    .on-sale-domains-section,
    .domains-section,
    .suggested-domains-section,
    .not-found-domain-section {
        padding: 1rem 3rem !important;
    }
    
    /* Optimize domain card for this screen size */
    .domain-card {
        width: 300px !important;
    }
}

/* Medium Screens: Tablet landscape and small desktops */
@media screen and (max-width: 1200px) {
    /* Slider title size adjustment */
    .q_slide_title {
        font-size: 50px !important;
        line-height: 50px !important;
        white-space: nowrap !important;
    }
    
    /* Improve arrows visibility and positioning */
    .on-sale-domains-grid .slick-prev {
        left: -25px;
        width: 35px;
        height: 35px;
    }
    
    .on-sale-domains-grid .slick-next {
        right: -25px;
        width: 35px;
        height: 35px;
    }
    
    .on-sale-domains-grid .slick-arrow:before {
        font-size: 18px;
    }
    
    /* Create compact domain card with maintained readability */
    .domain-card {
        width: 280px !important;
        min-height: auto !important;
    }

    .tooltip-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    /* More efficient padding on section containers */
    .on-sale-domains-section,
    .domains-section,
    .suggested-domains-section,
    .not-found-domain-section {
        padding: 0.75rem 2rem !important;
    }
}

/* Tablet Portrait */
@media screen and (max-width: 992px) {
    /* Slider title size adjustment */
    .q_slide_title {
        font-size: 40px !important;
        line-height: 40px !important;
        white-space: nowrap !important;
    }
    
    /* Adjust slick arrows for better visibility */
    .on-sale-domains-grid .slick-prev {
        left: -20px;
    }
    
    .on-sale-domains-grid .slick-next {
        right: -20px;
    }
    
    /* Reduce padding on cards */
    .domain-card {
        padding: 0.75rem !important;
        min-height: auto !important;
    }
    
    /* Optimize filter grid for better touch targets */
    .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
}

/* Mobile Landscape */
@media screen and (max-width: 768px) {
    .search-container {
        width: auto;
        height: auto;
    }

    .search-input-group {
    height: auto; /* Allow height to adjust based on content */
    flex-direction: column;
  }
  
  .search-filter-dropdown {
    width: 100%;
    height: 50px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .search-filter-dropdown select {
   width: 100%;
    text-align: center;
    padding: 0 1rem 0 1rem;
  }
  
  .search-filter-dropdown::after {
    right: 20px;
  }
  
  .search-box {
    padding: 10px;
    width: 100%;
    height: 60px !important;
  }
  
  .search-button {
    padding: 10px;
    width: 100%;
    height: 40px !important;
    border-radius: 0 0 0.75rem 0.75rem;
  }
  
  .search-suggestions {
    top: 150px; /* Adjusted for the stacked layout */
  }


  .section-title {
        padding-right: 120px; /* Smaller space on mobile */
    }
    
    .section-title .subtitle {
        font-size: 0.7rem;
        padding: 4px 15px;
        top: -5px;
        right: -5px;
    }

    .domainsearchpage-searchbar-heading {
        white-space: normal !important;
    }
    /* Slider title for mobile viewing */
    .q_slide_title {
        font-size: 36px !important;
        line-height: 38px !important;
        margin-bottom: 1rem !important;
        white-space: nowrap !important;
    }
    
    /* Compact search layout */
    .search-container {
        max-width: 100%;
        gap: 1rem;
    }
    
    /* Position arrows for touch targets */
    .on-sale-domains-grid .slick-prev {
        left: -15px;
        width: 30px;
        height: 30px;
    }
    
    .on-sale-domains-grid .slick-next {
        right: -15px;
        width: 30px;
        height: 30px;
    }
    
    .on-sale-domains-grid .slick-arrow:before {
        font-size: 14px;
    }
    
    .domains-grid,
    .suggested-domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.875rem;
    }

    /* Optimize card for readability */
    .domain-card {
        min-height: auto !important;
        width: auto !important;
    }
    
    /* Reduce domain name font size */
    .domain-name {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .tooltip-icon {
        width: 13px;
        height: 13px;
        font-size: 8px;
    }
    
    /* Button size optimization */
    /*.buy-now-button {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }*/
    
    .search-domain-button,
    .load-more-button {
        width: 80%;
        max-width: 250px;
    }
    
    .load-more-container,
    .buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    /* Critical: Ensure filter buttons are accessible */
    .filter-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Mobile Portrait */
@media screen and (max-width: 576px) {

    .heading_2 {
    color: #F8991D !important;
    font-size: 22px !important;
    white-space: nowrap !important;
    line-height: 0 !important;
    padding-bottom: 0 !important;
}
    .domainsearchpage-searchbar-heading {
        white-space: normal !important;
        font-size: 12px;
        padding-top: 0 !important;
        /*line-height: 1.4;*/
        max-width: 95%;
    }
    /* Maximize horizontal space */
    /*.domain-showcase,
    .domain-hero,
    .category-filters,
    .domains-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }*/
    
          
  .search-suggestions {
    display: none !important;
    top: 138px;
  }
    
    .on-sale-domains-grid.empty-state {
        min-height: 120px;
    }
    
    .no-results {
        font-size: 0.875rem;
        flex-direction: column; 
        max-width: 400px;
        flex-wrap: wrap;
    }
    
    .no-results-icon {
        width: 30px;
        height: 30px;
    }
    
    .no-results-icon:before {
        font-size: 16px;
    }

    
    /* Optimize section titles */
    .section-title {
        font-size: 1.5rem;
    }

    .domains-grid,
    .suggested-domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    
    /* Card size adjustments */
    .domain-card {
        width: auto !important;
        min-height: auto !important;
        padding: 0.3rem !important;
    }

    .domain-card-content {
        padding: 0.2rem !important;
    }

    .domain-popup {
        width: 95%;
        max-width: 350px;
    }

    .domain-popup-title {
        font-size: 1.1rem;
    }

    .domain-popup-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Touch-friendly filter buttons */
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* Position arrows for small screens */
    .on-sale-domains-grid .slick-prev {
        left: -10px;
    }
    
    .on-sale-domains-grid .slick-next {
        right: -10px;
    }

    .domain-name {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }
    
    .domain-price {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    
    /* Hide tooltips on very small screens to prevent clutter */
    /*.tooltip-icon {
        display: none;
    }*/
    
    /* Hide discount badges on small screens */
    .discount-badge {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    
       
    .section-title {
        padding-right: 100px; /* Even smaller space on very small devices */
    }
    
    .section-title .subtitle {
        font-size: 0.65rem;
        padding: 3px 12px;
    }

    .search-box {
    height: 26px;
    font-size: 16px;
  } 
    .search-button {
    height: 16px;
    font-size: 12px;
  }
  
    .domainsearchpage-searchbar-heading {
        font-size: 12px;
        line-height: 0 !important;
        padding-top: 0 !important;
        white-space: normal !important;
    }
  

  .search-suggestions {
    display: none !important;
    top: 132px;
  }

   .not-found-domain-section {
        padding: 0.75rem 1.5rem;
    }

    .load-more-container,
    .buttons-container {
         margin: 1.5rem 0 1rem;
    }

    .search-domain-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        width: 80%;
        max-width: 200px;
    }

    .load-more-button {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
        width: 80%;
        max-width: 200px;
    }
}

/* Very Small Devices */
@media screen and (max-width: 360px) {
    
    .domainsearchpage-searchbar-heading {
        font-size: 12px;
        padding-top: 0 !important;
        white-space: normal !important;
        overflow: hidden !important;
    }
    /* Ultra-compact slider title */
    .q_slide_title {
        font-size: 24px !important;
        line-height: 28px !important;
        white-space: nowrap !important;
    }
    
    /* Maximize search input area */
    .search-container {
        padding: 0 1rem 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        /*width: 100%;*/
        transform: scale(0.9);
    }

    .search-input-group {
        max-width: 100%;
        margin: 0 auto !important;  /* Changed to auto horizontal margins */
        display: flex;              /* Ensure flex display is maintained */
        justify-content: center;    /* Additional centering support */
        left: 0;                    /* Reset any potential left positioning */
        right: 0;                   /* Reset any potential right positioning */
        position: relative !important; /* Ensure proper positioning context */
    }
    
    .search-box {
        height: 20px;
        font-size: 14px;
    } 
    .search-button {
        height: 15px;
        font-size: 12px;
    }
    
  /*.domains-grid,
    .suggested-domains-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }*/
    
    .domain-name {
        font-size: 0.85rem;
    }  
    

}

/* Fix for Slick Carousel Reinitialization */


.on-sale-domains-grid .domain-card {
    width: 100% !important;
    
    margin: 0 auto !important;
}

.on-sale-domains-grid.reinitializing {
    min-height: 330px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

.on-sale-domains-grid.reinitializing:after {
    content: "";
    color: #3753A4;
    font-size: 1rem;
}

/* Prevent card overlap during transitions */
.on-sale-domains-grid.slick-initialized .domain-card {
    margin: 0 auto !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    max-width: auto !important;

}
