/* Hero Section */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.contact-icon-large {
    margin-bottom: 1.5rem;
}

.icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    position: relative;
}

.icon-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-inner i {
    font-size: 28px;
    color: #007bff;
}

.contact-details {
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Business Ads Container */
.business-ads-container {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

.business-ads-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #007bff !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3 !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d !important;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    font-weight: 600;
    padding: 0 0.5rem;
}

/* Search and Sort Section */
.search-sort-section {
    margin-bottom: 2rem;
}

.search-sort-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

.search-box .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-box .input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.search-box .form-control {
    border: none;
    background: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.search-box .form-control:focus {
    outline: none;
    background: #ffffff;
    box-shadow: none;
}

.search-box .btn-search {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box .btn-search:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
}

.sort-box .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.sort-box .form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    background: #ffffff;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.filter-group .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.filter-group .form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    background: #ffffff;
}

/* Pagination Section */
.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.page-number:hover {
    border-color: #007bff;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.page-number.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
}

.pagination-controls .btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-controls .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Business Grid Container */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

/* Business Card */
.business-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

/* Business Card Image */
.business-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.business-card:hover .business-card-image {
    transform: scale(1.03);
}

/* Business Card Content */
.business-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

/* Business Card Category Badge */
.business-card-category {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Business Card Title */
.business-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Business Card Description */
.business-card-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5em;
}

/* Business Card Meta Information */
.business-card-meta {
    margin-bottom: 1.25rem;
    flex: 1;
}

.business-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

.business-meta-item:last-child {
    margin-bottom: 0;
}

.business-meta-item i {
    color: #007bff;
    width: 18px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.business-meta-item span {
    flex: 1;
    word-wrap: break-word;
}

/* Business Card Footer */
.business-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

/* Business Rating */
.business-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-stars {
    color: #ffc107;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.business-rating-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* View Details Button */
.business-view-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.business-view-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.business-view-btn:active {
    transform: translateY(0);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .business-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .search-sort-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .pagination-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 250px;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .icon-ring {
        width: 70px;
        height: 70px;
    }
    
    .icon-inner {
        width: 50px;
        height: 50px;
    }
    
    .icon-inner i {
        font-size: 24px;
    }
    
    .business-ads-container {
        padding: 1.5rem 0;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .business-card {
        border-radius: 12px;
    }
    
    .business-card-content {
        padding: 1.25rem;
    }
    
    .business-card-title {
        font-size: 1.2rem;
    }
    
    .business-card-description {
        font-size: 0.9rem;
    }
    
    .business-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .business-view-btn {
        width: 100%;
        text-align: center;
    }
    
    .filter-section {
        padding: 1.25rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pagination-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 220px;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-subtitle {
        font-size: 0.95rem;
    }
    
    .icon-ring {
        width: 60px;
        height: 60px;
    }
    
    .icon-inner {
        width: 45px;
        height: 45px;
    }
    
    .icon-inner i {
        font-size: 20px;
    }
    
    .business-ads-container {
        padding: 1rem 0;
    }
    
    .breadcrumb-nav {
        margin-bottom: 1.5rem;
    }
    
    .search-sort-section {
        margin-bottom: 1.5rem;
    }
    
    .filter-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .business-grid {
        padding: 0;
        gap: 1.25rem;
    }
    
    .business-card-content {
        padding: 1rem;
    }
    
    .business-card-title {
        font-size: 1.1rem;
    }
    
    .business-card-description {
        font-size: 0.85rem;
        min-height: 3.5em;
    }
    
    .business-meta-item {
        font-size: 0.85rem;
    }
    
    .pagination-section {
        padding: 1.25rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .pagination-controls .btn {
        width: 100%;
    }
    
    .pagination-pages {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-number {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-width: 36px;
    }
}

