/**
 * Public styles for Business Directory Pro
 */

/* General Styles */
.bdp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bdp-section {
    margin-bottom: 40px;
}

.bdp-section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bdp-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.bdp-button:hover {
    background-color: #135e96;
    color: #fff;
}

.bdp-button.secondary {
    background-color: #f0f0f1;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.bdp-button.secondary:hover {
    background-color: #e5e5e5;
    color: #2c3338;
}

.bdp-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.bdp-form-group {
    flex: 1;
    min-width: 200px;
}

.bdp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.bdp-form-group input[type="text"],
.bdp-form-group input[type="email"],
.bdp-form-group input[type="tel"],
.bdp-form-group input[type="number"],
.bdp-form-group input[type="url"],
.bdp-form-group input[type="password"],
.bdp-form-group textarea,
.bdp-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bdp-form-group textarea {
    min-height: 100px;
}

.bdp-form-submit {
    margin-top: 20px;
}

.bdp-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.bdp-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bdp-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bdp-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Directory Listing */
.bdp-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bdp-directory-filters {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.bdp-directory-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.bdp-directory-filters .bdp-form-group {
    margin-bottom: 0;
}

.bdp-business-card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    background-color: #fff;
}

.bdp-business-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bdp-business-card.featured {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bdp-business-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.bdp-business-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bdp-business-card:hover .bdp-business-card-image img {
    transform: scale(1.05);
}

.bdp-business-card-content {
    padding: 15px;
}

.bdp-business-card-title {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.bdp-business-card-title a {
    color: #333;
    text-decoration: none;
}

.bdp-business-card-title a:hover {
    color: #2271b1;
}

.bdp-business-card-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.bdp-business-card-meta span {
    display: block;
    margin-bottom: 5px;
}

.bdp-business-card-meta i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.bdp-business-card-description {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
}

.bdp-business-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.bdp-business-card-categories {
    font-size: 12px;
    color: #666;
}

.bdp-business-card-categories a {
    color: #666;
    text-decoration: none;
}

.bdp-business-card-categories a:hover {
    color: #2271b1;
}

.bdp-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffd700;
    color: #333;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 1;
}

/* Single Business */
.bdp-business-single {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.bdp-business-main {
    order: 1;
}

.bdp-business-sidebar {
    order: 2;
}

.bdp-business-header {
    margin-bottom: 30px;
}

.bdp-business-title {
    font-size: 32px;
    margin: 0 0 10px 0;
}

.bdp-business-tagline {
    font-size: 18px;
    color: #666;
    margin: 0 0 20px 0;
}

.bdp-business-image {
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.bdp-business-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bdp-business-description {
    margin-bottom: 30px;
}

.bdp-business-section {
    margin-bottom: 30px;
}

.bdp-business-section-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bdp-business-info {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.bdp-business-info-item {
    margin-bottom: 15px;
}

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

.bdp-business-info-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.bdp-business-info-value {
    color: #555;
}

.bdp-business-hours {
    margin-bottom: 30px;
}

.bdp-business-hours-day {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.bdp-business-hours-day:last-child {
    border-bottom: none;
}

.bdp-business-hours-label {
    font-weight: 600;
}

.bdp-business-hours-value {
    color: #555;
}

.bdp-business-hours-closed {
    color: #dc3545;
}

.bdp-business-social {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.bdp-business-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: #f0f0f1;
    color: #2c3338;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.bdp-business-social a:hover {
    background-color: #2271b1;
    color: #fff;
}

.bdp-business-map {
    height: 300px;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

/* Contact Form */
.bdp-contact-form {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.bdp-contact-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.bdp-contact-form-container {
    margin-bottom: 0;
}

.bdp-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.bdp-form-message.bdp-success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bdp-form-message.bdp-error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Packages */
.bdp-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bdp-package {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.bdp-package:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bdp-package.featured {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bdp-package-header {
    padding: 20px;
    background-color: #f9f9f9;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.bdp-package-title {
    font-size: 20px;
    margin: 0 0 10px 0;
}

.bdp-package-price {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 5px;
}

.bdp-package-duration {
    font-size: 14px;
    color: #666;
}

.bdp-package-content {
    padding: 20px;
    flex-grow: 1;
}

.bdp-package-description {
    margin-bottom: 20px;
    color: #555;
}

.bdp-package-features {
    margin-bottom: 20px;
}

.bdp-package-features-title, .bdp-package-limits-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bdp-package-features-list, .bdp-package-limits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.bdp-package-features-list li, .bdp-package-limits-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.bdp-package-features-list li:before {
    content: "✓";
    color: #46b450;
    margin-right: 10px;
    font-weight: bold;
}

.bdp-package-features-list li.unavailable {
    color: #999;
}

.bdp-package-features-list li.unavailable:before {
    content: "✕";
    color: #dc3545;
}

.bdp-package-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Registration Form */
.bdp-registration-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bdp-registration-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.bdp-registration-form p {
    margin-bottom: 20px;
}

.bdp-registration-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.bdp-registration-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #f0f0f1;
    color: #2c3338;
    position: relative;
}

.bdp-registration-step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 2px;
    background-color: #f0f0f1;
    z-index: 1;
}

.bdp-registration-step.active {
    background-color: #2271b1;
    color: #fff;
}

.bdp-registration-step.active:not(:last-child):after {
    background-color: #2271b1;
}

.bdp-registration-step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #fff;
    color: #2c3338;
    border-radius: 50%;
    margin-right: 5px;
}

.bdp-registration-step.active .bdp-registration-step-number {
    background-color: #fff;
    color: #2271b1;
}

.bdp-registration-form-step {
    display: none;
}

.bdp-registration-form-step.active {
    display: block;
}

.bdp-registration-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Business Dashboard */
.bdp-dashboard {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.bdp-dashboard-header {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.bdp-dashboard-title {
    margin: 0;
    font-size: 24px;
}

.bdp-dashboard-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.bdp-dashboard-tab {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.bdp-dashboard-tab:hover {
    background-color: #f9f9f9;
}

.bdp-dashboard-tab.active {
    border-bottom-color: #2271b1;
    font-weight: 600;
}

.bdp-dashboard-content {
    padding: 20px;
}

.bdp-dashboard-section {
    display: none;
}

.bdp-dashboard-section.active {
    display: block;
}

.bdp-dashboard-section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bdp-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bdp-dashboard-card {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.bdp-dashboard-card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.bdp-dashboard-card-value {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 10px;
}

.bdp-dashboard-card-limit {
    font-size: 12px;
    color: #666;
}

.bdp-limit-progress {
    height: 6px;
    background-color: #e5e5e5;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.bdp-limit-bar {
    height: 100%;
    background-color: #2271b1;
    border-radius: 3px;
}

.bdp-limit-text {
    font-size: 12px;
    color: #666;
}

.bdp-dashboard-chart {
    height: 300px;
    margin-bottom: 30px;
}

.bdp-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.bdp-dashboard-table th,
.bdp-dashboard-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.bdp-dashboard-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.bdp-dashboard-table tr:hover {
    background-color: #f5f5f5;
}

.bdp-dashboard-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.bdp-dashboard-filters label {
    margin-right: 5px;
}

.bdp-business-list {
    margin-bottom: 30px;
}

.bdp-business-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.bdp-business-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bdp-business-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.bdp-business-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bdp-business-item-content {
    flex-grow: 1;
}

.bdp-business-item-title {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.bdp-business-item-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.bdp-business-item-actions {
    display: flex;
    gap: 10px;
}

/* Subscription info */
.bdp-subscription-info {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.bdp-subscription-header {
    margin-bottom: 20px;
}

.bdp-subscription-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.bdp-subscription-details {
    margin-bottom: 20px;
}

.bdp-subscription-details p {
    margin-bottom: 10px;
}

.bdp-subscription-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    background-color: #46b450;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.bdp-subscription-features,
.bdp-subscription-limits {
    margin-bottom: 20px;
}

.bdp-subscription-features h4,
.bdp-subscription-limits h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.bdp-subscription-features ul,
.bdp-subscription-limits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bdp-subscription-features li,
.bdp-subscription-limits li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.bdp-subscription-features li:last-child,
.bdp-subscription-limits li:last-child {
    border-bottom: none;
}

.bdp-subscription-actions {
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .bdp-business-single {
        grid-template-columns: 1fr;
    }
    
    .bdp-business-main {
        order: 2;
    }
    
    .bdp-business-sidebar {
        order: 1;
    }
    
    .bdp-dashboard-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .bdp-dashboard-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .bdp-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .bdp-form-group {
        min-width: 100%;
    }
    
    .bdp-directory-filters form {
        flex-direction: column;
    }
    
    .bdp-packages {
        grid-template-columns: 1fr;
    }
    
    .bdp-dashboard-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .bdp-dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .bdp-dashboard-tab {
        flex: 1;
        min-width: 50%;
        text-align: center;
    }
}