.business-search-results-wrapper {
    display: flex;
}

.business-listings-column {
    width: 33.33%;
    padding: 20px;
    overflow-y: auto;
    height: 100vh;
    /* background: linear-gradient(180deg, #f8f9fa 0%, #e8eaf6 50%, #e3f2fd 100%); */
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.business-listings-column::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    /* background: linear-gradient(180deg,
        transparent 0%,
        rgba(33, 150, 243, 0.2) 20%,
        rgba(33, 150, 243, 0.3) 50%,
        rgba(33, 150, 243, 0.2) 80%,
        transparent 100%
    ); */
}

/* Custom scrollbar for listings column */
.business-listings-column::-webkit-scrollbar {
    width: 10px;
}

.business-listings-column::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f8f9fa 0%, #e8eaf6 100%);
    border-radius: 10px;
}

.business-listings-column::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #64b5f6 0%, #2196F3 100%);
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

.business-listings-column::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
}

.business-map-column {
    width: 66.67%;
    height: 100vh;
    position: sticky;
    top: 0;
    background-color: #bbdefb;
}

#business-map {
    overflow: hidden;
}

/* Enhanced search form styling to match login form */
.directory-search-form-wrapper {
    margin-bottom: 30px;
}

.directory-search-form {
    background: #bbdefb;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #a1cff5;
    transition: all 0.3s ease;
}

.directory-search-form:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.directory-search-form .search-fields {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Increased spacing to match login form */
}

.directory-search-form .form-group {
    margin-bottom: 0; /* Remove default margin since we use gap */
}

.directory-search-form select {
    width: 100%;
    padding: 8px;
    border: 0px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    color: #202124;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202124' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.directory-search-form select:hover {
    background: #fff;
    border-color: #589df7;
}

.directory-search-form select:focus {
    outline: none;
    border-color: #589df7;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.directory-search-form .search-button {
    padding: 10px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.directory-search-form .search-button:hover {
    background: #e7f1ff!important;
    box-shadow: 0 4px 10px 0 rgba(172, 172, 172, 0.808)!important;
}

.directory-search-form .search-button:active {
    background: #0b3d91;
}

/* Business Card Styles - Glassmorphism Design */
.business-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

/* Business Header Styles */
.business-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0px;
}

.business-thumbnail {
    /* width: 60px;
    height: 60px;
    border-radius: 12px; */
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.business-thumbnail.placeholder {
   /* background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2)); */
    display: flex;
    align-items: center;
    justify-content: center;
/* border: 2px solid rgba(255, 255, 255, 0.3); */
}

.placeholder-icon {
    font-size: 24px;
    opacity: 0.8;
}

.placeholder-icon-img {
   /* width: 60px;
    height: 60px;*/
    object-fit: contain;
}

.business-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover .business-image {
    transform: scale(1.1);
}

.business-title-section {
    flex: 1;
}

.business-category {
    display: inline-block;
    background: rgba(52, 152, 219, 0.2);
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8em;
    font-weight: 500;
    margin-top: 4px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Business Details Styles */
.business-details {
    margin: 16px 0;
}

.business-address,
.business-phone,
.business-hours {
    align-items: center;
    gap: 8px;
    padding: 4px 0px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #5d6d7e;
    font-size: 0.7em;
    line-height: 1.5;
}

.business-address:hover,
.business-phone:hover,
.business-hours:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.detail-icon {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Business Actions Styles */
.business-actions {
    margin-top: 20px;
    text-align: center;
}

.view-business-btn {
    display: inline-block;
    padding: 5px 10px;
    /* background: linear-gradient(135deg, #3498db, #9b59b6); */
    background: #bbdefb;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none!important;
    border-radius: 25px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 12px;
    text-shadow: 0.8px 0.8px #c7c7c7;
}

.view-business-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-business-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.view-business-btn:hover::before {
    left: 100%;
}

.view-business-btn:active {
    transform: translateY(0);
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0.8;
}

.business-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.business-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.2s ease;
}

.business-listings-column {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  background: #bbdefb;

  /* Firefox basic fallback */
  scrollbar-width: thin;
  scrollbar-color: #4285F4 #bbdefb;
}

/* Chrome, Edge, Safari */
.business-listings-column::-webkit-scrollbar {
  width: 10px;
}

.business-listings-column::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 10px;
}

/* Animated Google AI–inspired gradient thumb */
.business-listings-column::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: linear-gradient(
    45deg,
    #4285F4, /* Blue */
    #EA4335, /* Red */
    #FBBC05, /* Yellow */
    #34A853, /* Green */
    #A142F4  /* Purple */
  );
  background-size: 400% 400%;
  animation: aiGradientMove 5s linear infinite;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.business-listings-column::-webkit-scrollbar-thumb:hover {
  box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* Animation for moving gradient */
@keyframes aiGradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}




.business-info {
    position: relative;
    z-index: 2;
}

.business-name {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
}

.business-name a {
    color: #2c3e50;
    text-decoration: none!important;
    transition: color 0.3s ease;
    position: relative;
}

.business-name a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    /* background: linear-gradient(90deg, #3498db, #9b59b6);
    transition: width 0.3s ease;*/
}

.business-name a:hover {
    color: #3498db;
}

.business-name a:hover::after {
    width: 100%;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.stars {
    color: #f39c12;
    font-size: 1.1em;
    font-weight: bold;
}

.rating {
    font-weight: 600;
    color: #34495e;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

.review-count {
    color: #7f8c8d;
    font-size: 0.9em;
}


/* Card hover effects with pseudo-elements */
.business-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.business-card:hover::after {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Focus states for accessibility */
.business-card:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Loading animation for cards */
.business-card.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

/* Google Logo Styles */
.business-card-google-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.business-card-google-logo:hover {
    opacity: 0.9;
}

.business-card-google-logo img {
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Pagination Styles */
.business-directory-pagination {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
}

.business-directory-pagination .page-numbers {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.business-directory-pagination .page-numbers:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.business-directory-pagination .page-numbers.current {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.business-directory-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.business-directory-pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

/* Hierarchical Search Form Styles for Listing-Search */
.hierarchical-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.hierarchical-dropdowns select {
    flex: 1;
    min-width: 200px;
    height: 48px;
    padding: 0 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.hierarchical-dropdowns select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.hierarchical-dropdowns select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Validation Error Styling */
.search-validation-error {
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(255,107,107,0.2);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .business-search-results-wrapper {
        flex-direction: column;
    }
    
    .business-listings-column,
    .business-map-column {
        width: 100%;
        height: auto;
    }
    
    .business-map-column {
        height: 400px;
        position: relative;
    }
    
    .directory-search-form {
        padding: 20px;
    }
    
    .directory-search-form .search-fields {
        gap: 12px;
    }
    
    .business-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .business-name {
        font-size: 0.8em;
    }
    
    .business-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Mobile adjustments for pagination */
    .business-directory-pagination {
        padding: 15px 0;
    }

    .business-directory-pagination .page-numbers {
        padding: 6px 12px;
        margin: 0 2px;
        font-size: 0.9em;
    }

    /* Mobile adjustments for Google logo */
    .business-card-google-logo {
        bottom: 10px;
        right: 10px;
    }

    .business-card-google-logo img {
        width: 28px;
        height: auto;
    }

    /* Mobile adjustments for hierarchical dropdowns */
    .hierarchical-dropdowns {
        flex-direction: column;
        gap: 8px;
    }
    
    .hierarchical-dropdowns select {
        min-width: 100%;
    }
}

/* Featured Business Badges */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 10;
    animation: featuredPulse 2s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        transform: scale(1.02);
    }
}

.featured-badge .featured-icon {
    font-size: 16px;
    animation: starRotate 3s linear infinite;
}

@keyframes starRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.featured-badge .featured-text {
    letter-spacing: 0.5px;
}

.featured-badge .featured-tier {
    margin-left: 4px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Tier-specific badge colors */
.featured-badge.featured-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.5);
}

.featured-badge.featured-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.featured-badge.featured-diamond {
    background: linear-gradient(135deg, #B9F2FF 0%, #00C9FF 100%);
    box-shadow: 0 4px 12px rgba(0, 201, 255, 0.5);
}

/* Featured business card highlight */
.business-card.featured-business {
    border: 2px solid #667eea;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    position: relative;
}

.business-card.featured-business::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.business-card.featured-business:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
}

@media (max-width: 768px) {
    .featured-badge {
        top: 8px;
        right: 8px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .featured-badge .featured-icon {
        font-size: 14px;
    }

    .featured-badge .featured-tier {
        display: none;
    }
}
