/**
 * Public styles for Yellow Directory plugin
 */

/* General Styles */
.yellow-directory-search-form,
.yellow-directory-listing,
.yellow-single-business {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 2px solid #ffde59;
    padding-bottom: 10px;
}

.section-title i {
    margin-right: 10px;
    color: #ffde59;
}

/* Search Form Styles */
.yellow-directory-search-form {
    background: linear-gradient(135deg, #ec1c24 0%, #ec1c24 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.yellow-search-container {
    position: relative;
    z-index: 2;
}

.yellow-search-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

.yellow-directory-search-form:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.yellow-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.yellow-search-field {
    position: relative;
}

.yellow-search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yellow-search-field input,
.yellow-search-field select {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.yellow-search-field input:focus,
.yellow-search-field select:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.yellow-search-submit.full-width {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.yellow-search-submit button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(to right, #333 0%, #555 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.yellow-search-submit button i {
    margin-right: 10px;
    font-size: 18px;
}

.yellow-search-submit button:hover {
    background: linear-gradient(to right, #444 0%, #666 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Directory Listing Styles */
.yellow-directory-listing {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

/* Directory Header */
.yellow-directory-header,
.yellow-directory-search-summary {
    margin-bottom: 30px;
}

.yellow-summary-header,
.yellow-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.yellow-summary-header h2,
.yellow-directory-header h2 {
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.yellow-summary-header h2 i {
    color: #ffde59;
}

.yellow-results-count {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.yellow-results-count span {
    font-weight: 700;
    color: #333;
}

/* Active Filters */
.yellow-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.yellow-filter-tag {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 6px 8px 6px 15px;
    border-radius: 100px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.yellow-filter-tag span {
    margin-right: 8px;
}

.yellow-filter-tag a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.yellow-filter-tag a:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.yellow-clear-all-filters {
    margin-left: 10px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.yellow-clear-all-filters:hover {
    background: #e5e5e5;
    color: #333;
}

/* Directory Businesses */
.yellow-directory-businesses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.yellow-directory-business {
    background: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.yellow-directory-business:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.yellow-directory-business.is-featured {
    border-color: #ffde59;
}

.yellow-featured-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffde59;
    color: #333;
    font-size: 12px;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.yellow-business-content {
    padding: 15px;
    display: flex;
    gap: 15px;
}

.yellow-business-logo {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yellow-business-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

.yellow-business-info {
    flex: 1;
    min-width: 0;
}

.yellow-business-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.yellow-business-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yellow-business-title a:hover {
    color: #0073aa;
}

.yellow-business-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.yellow-business-category i {
    margin-right: 5px;
    color: #0073aa;
}

.yellow-business-excerpt {
	font-size: 14px;
	color: #666;
	margin-bottom: 12px;
	line-height: 1.5;
	display: none;
}

.yellow-business-contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.yellow-contact-item {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.yellow-contact-item i {
    color: #0073aa;
    margin-right: 5px;
    min-width: 14px;
    text-align: center;
}

.yellow-contact-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yellow-contact-item a:hover {
    color: #0073aa;
}

/* Business Actions */
.yellow-business-actions {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 15px;
    gap: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.yellow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #0073aa;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.yellow-btn:hover {
    background-color: #005f8d;
}

.yellow-btn i {
    margin-right: 5px;
}

/* No Results */
.yellow-directory-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.yellow-no-results-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 222, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.yellow-no-results-icon i {
    font-size: 30px;
    color: #ffde59;
}

.yellow-directory-no-results h3 {
    margin: 0 0 15px;
    font-size: 22px;
}

.yellow-directory-no-results p {
    max-width: 500px;
    margin: 0 0 10px;
    color: #666;
}

.yellow-no-results-actions {
    margin-top: 25px;
}

.yellow-clear-btn {
    background: #ffde59;
    color: #333;
    padding: 10px 20px;
}

.yellow-clear-btn:hover {
    background: #ffd326;
}

/* Pagination */
.yellow-directory-pagination {
    margin-top: 40px;
    text-align: center;
}

.yellow-directory-pagination a,
.yellow-directory-pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: none;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.yellow-directory-pagination a:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.yellow-directory-pagination .current {
    background: linear-gradient(135deg, #ffde59 0%, #ffcc00 100%);
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Single Business Page - Modern Styles */
.yellow-single-business {
    padding: 20px 0;
}

.yellow-business-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header Area with Cover Image */
.yellow-business-header {
    position: relative;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.yellow-business-header-content {
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.yellow-business-logo {
	width: 100%;
	height: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-right: 20px;
	border: 4px solid #fff;
}

.yellow-business-title-area {
    flex: 1;
    padding-bottom: 10px;
}

.yellow-business-title {
	color: #fff;
	margin: 30px 0 10px 0;
	font-size: 28px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.yellow-featured-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 222, 89, 0.9);
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.yellow-featured-badge i {
    margin-right: 5px;
    color: #333;
}

.yellow-business-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yellow-business-categories,
.yellow-business-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yellow-business-category, .yellow-business-location {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	padding: 4px 12px;
	border-radius: 50px;
	font-size: 13px;
	display: flex;
	align-items: center;
	backdrop-filter: blur(5px);
	display: none;
}

.yellow-business-category a,
.yellow-business-location a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.yellow-business-category a:hover,
.yellow-business-location a:hover {
    opacity: 0.8;
}

/* Main Content Area */
.yellow-business-content {
	display: block;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	padding: 30px;
}

.yellow-business-main {
    padding-top: 20px;
}

.yellow-business-description {
    margin-bottom: 40px;
}

/* Business Branches */
.yellow-business-branches {
    margin-bottom: 40px;
}

.yellow-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.yellow-branch-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.yellow-branch-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.yellow-branch-name {
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.yellow-branch-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yellow-branch-address,
.yellow-branch-phone,
.yellow-branch-email {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #666;
}

.yellow-branch-address i,
.yellow-branch-phone i,
.yellow-branch-email i {
    color: #ffde59;
    width: 20px;
    margin-right: 10px;
    margin-top: 3px;
}

.yellow-branch-phone a,
.yellow-branch-email a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yellow-branch-phone a:hover,
.yellow-branch-email a:hover {
    color: #ffde59;
}

/* Sidebar */
.yellow-business-sidebar {
    border-left: 1px solid #f0f0f0;
    padding-left: 30px;
    padding-top: 20px;
}

.yellow-business-contact-info,
.yellow-business-hours,
.yellow-business-social {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.yellow-business-contact {
    display: flex;
    margin-bottom: 15px;
}

.yellow-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.yellow-icon i {
    color: #ffde59;
    font-size: 16px;
}

.yellow-contact-details {
    flex: 1;
}

.yellow-contact-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.yellow-contact-value {
    display: block;
    color: #333;
    font-size: 15px;
}

.yellow-contact-value a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yellow-contact-value a:hover {
    color: #ffde59;
}

.yellow-hours-content {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* Social Links */
.yellow-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.yellow-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.yellow-facebook {
    background: #3b5998;
}

.yellow-twitter {
    background: #1da1f2;
}

.yellow-instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.yellow-linkedin {
    background: #0077b5;
}

.yellow-youtube {
    background: #ff0000;
}

.yellow-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Back Button */
.yellow-back-button {
    background: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
}

.yellow-back-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 992px) {
    .yellow-business-content {
        grid-template-columns: 1fr;
    }
    
    .yellow-business-sidebar {
        border-left: none;
        padding-left: 0;
        margin-top: 0;
        border-top: 1px solid #f0f0f0;
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .yellow-business-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .yellow-business-logo {
        margin-right: 0;
        margin-bottom: 15px;
        transform: translateY(15px);
    }
    
    .yellow-business-title-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }
    
    .yellow-business-taxonomies {
        justify-content: center;
    }
    
    .yellow-directory-businesses {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .yellow-business-header {
        height: 250px;
    }
    
    .yellow-branches-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .yellow-directory-businesses {
        grid-template-columns: 1fr;
    }
    
    .yellow-search-fields {
        grid-template-columns: 1fr;
    }
    
    .yellow-search-submit.full-width {
        grid-column: 1;
    }
    
    .yellow-active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .yellow-clear-all-filters {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .yellow-business-content {
        padding: 15px;
    }
}
