/* Bauer Fiete Directory - Frontend Styles */

/* Listings Grid */
.bfd-listings-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.bfd-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bfd-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bfd-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .bfd-columns-3,
    .bfd-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bfd-columns-2,
    .bfd-columns-3,
    .bfd-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Listing Card */
.bfd-listing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.bfd-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.bfd-premium-listing {
    border: 2px solid #FFD700;
}

.bfd-premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    z-index: 10;
}

.bfd-listing-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.bfd-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bfd-listing-content {
    padding: 20px;
}

.bfd-listing-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.bfd-listing-title a {
    text-decoration: none;
    color: #333;
}

.bfd-listing-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.bfd-listing-rating {
    margin-bottom: 10px;
}

.bfd-listing-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Star Rating */
.bfd-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.bfd-star {
    font-size: 16px;
    color: #FFD700;
}

.bfd-star-empty {
    color: #ddd;
}

.bfd-star-half {
    background: linear-gradient(90deg, #FFD700 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bfd-rating-number {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

/* Buttons */
.bfd-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.bfd-button-primary {
    background: #4CAF50;
    color: #fff;
}

.bfd-button-primary:hover {
    background: #45a049;
    color: #fff;
}

/* Search Form */
.bfd-search-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.bfd-search-form {
    margin-bottom: 20px;
}

.bfd-search-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .bfd-search-row {
        grid-template-columns: 1fr;
    }
}

.bfd-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.bfd-search-field input,
.bfd-search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.bfd-search-submit {
    text-align: center;
}

/* Map */
.bfd-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.leaflet-popup-content h3 {
    margin: 0 0 10px;
}

/* Forms */
.bfd-booking-form-wrapper,
.bfd-contact-form-wrapper,
.bfd-rating-form-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.bfd-form-row {
    margin-bottom: 20px;
}

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

.bfd-form-row input[type="text"],
.bfd-form-row input[type="email"],
.bfd-form-row input[type="tel"],
.bfd-form-row input[type="date"],
.bfd-form-row input[type="number"],
.bfd-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.bfd-form-row-half {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 576px) {
    .bfd-form-row-half {
        grid-template-columns: 1fr;
    }
}

.bfd-submit-button {
    background: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bfd-submit-button:hover {
    background: #45a049;
}

.bfd-form-message {
    margin-top: 15px;
}

.bfd-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.bfd-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* Listing Details */
.bfd-listing-details {
    margin-top: 40px;
}

.bfd-info-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.bfd-info-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bfd-info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bfd-info-item .dashicons {
    color: #4CAF50;
    margin-top: 3px;
}

.bfd-always-open {
    color: #4CAF50;
    font-size: 16px;
}

.bfd-opening-hours {
    width: 100%;
    border-collapse: collapse;
}

.bfd-opening-hours td {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

/* Ratings */
.bfd-ratings-section {
    margin: 30px 0;
}

.bfd-rating-overview {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .bfd-rating-overview {
        grid-template-columns: 1fr;
    }
}

.bfd-average-rating {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bfd-rating-number-large {
    font-size: 48px;
    font-weight: bold;
    color: #333;
}

.bfd-rating-count {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.bfd-rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bfd-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bfd-rating-label {
    min-width: 40px;
}

.bfd-rating-bar-bg {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bfd-rating-bar-fill {
    height: 100%;
    background: #FFD700;
    transition: width 0.3s;
}

.bfd-ratings-list {
    margin: 30px 0;
}

.bfd-rating-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bfd-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bfd-rating-date {
    color: #666;
    font-size: 14px;
}

.bfd-rating-title {
    margin: 10px 0;
    font-size: 16px;
}

.bfd-rating-review {
    color: #666;
    line-height: 1.6;
}

.bfd-rating-author {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Star Rating Input */
.bfd-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.bfd-star-input input {
    display: none;
}

.bfd-star-input label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.bfd-star-input input:checked ~ label,
.bfd-star-input label:hover,
.bfd-star-input label:hover ~ label {
    color: #FFD700;
}

/* No Results */
.bfd-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Vendor Registration */
.bfd-vendor-registration-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bfd-vendor-registration-form h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

/* Vendor Profile */
.bfd-vendor-cover {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
    border-radius: 8px;
}

.bfd-vendor-profile {
    margin: 30px 0;
}

.bfd-vendor-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bfd-vendor-avatar {
    flex-shrink: 0;
}

.bfd-vendor-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bfd-vendor-info h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.bfd-vendor-tagline {
    color: #666;
    font-size: 18px;
    margin: 0;
}

.bfd-vendor-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 992px) {
    .bfd-vendor-content {
        grid-template-columns: 1fr;
    }
    
    .bfd-vendor-header {
        flex-direction: column;
        text-align: center;
    }
}

.bfd-vendor-main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bfd-vendor-main h2 {
    margin-top: 0;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bfd-vendor-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.bfd-vendor-contact-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bfd-vendor-contact-box h3 {
    margin-top: 0;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bfd-vendor-contact-box p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bfd-vendor-contact-box .dashicons {
    color: #4CAF50;
}

.bfd-vendor-listings {
    margin-top: 30px;
}

/* Vendor Dashboard */
.bfd-vendor-dashboard {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.bfd-dashboard-status {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bfd-status-approved {
    color: #4CAF50;
    font-weight: bold;
}

.bfd-status-pending {
    color: #FF9800;
    font-weight: bold;
}

.bfd-status-rejected {
    color: #f44336;
    font-weight: bold;
}

.bfd-dashboard-listings {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bfd-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.bfd-dashboard-table th,
.bfd-dashboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.bfd-dashboard-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.bfd-dashboard-table tr:hover {
    background: #f9f9f9;
}
