/**
 * MSB Extensions main stylesheet
 */

/* Common styles */
.msb-container {
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Barbers styles */
.msb-barbers {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.msb-barbers-layout-grid {
    display: flex;
    flex-wrap: wrap;
}

.msb-barbers-layout-list .msb-barber {
    width: 100%;
    margin-bottom: 30px;
}

.msb-barbers-columns-2 .msb-barber {
    width: calc(50% - 30px);
    margin: 0 15px 30px;
}

.msb-barbers-columns-3 .msb-barber {
    width: calc(33.33% - 30px);
    margin: 0 15px 30px;
}

.msb-barbers-columns-4 .msb-barber {
    width: calc(25% - 30px);
    margin: 0 15px 30px;
}

.msb-barber {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.msb-barber:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.msb-barber-image {
    position: relative;
    overflow: hidden;
}

.msb-barber-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.msb-barber:hover .msb-barber-image img {
    transform: scale(1.05);
}

.msb-barber-no-image {
    background: #f5f5f5;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msb-barber-no-image .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #ccc;
}

.msb-barber-content {
    padding: 20px;
}

.msb-barber-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.msb-barber-title a {
    text-decoration: none;
    color: #333;
}

.msb-barber-position {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.msb-barber-excerpt {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.msb-barber-specializations {
    margin-bottom: 15px;
}

.msb-barber-specialization {
    display: inline-block;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    color: #555;
}

.msb-barber-footer {
    text-align: right;
}

.msb-barber-more {
    display: inline-block;
    padding: 8px 15px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.msb-barber-more:hover {
    background: #555;
    color: #fff;
}

/* Single barber styles */
.msb-single-barber {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.msb-single-barber-header {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
}

.msb-single-barber-image {
    width: 250px;
    margin-right: 30px;
}

.msb-single-barber-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.msb-single-barber-info {
    flex: 1;
}

.msb-single-barber-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.msb-single-barber-position {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.msb-single-barber-specializations {
    margin-bottom: 20px;
}

.msb-single-barber-specialization {
    display: inline-block;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    color: #555;
}

.msb-single-barber-details {
    margin-bottom: 20px;
}

.msb-single-barber-experience,
.msb-single-barber-phone,
.msb-single-barber-email {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.msb-detail-label {
    font-weight: 600;
    margin-right: 5px;
}

.msb-single-barber-social {
    margin-top: 20px;
}

.msb-social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.msb-social-link:hover {
    background: #e0e0e0;
}

.msb-facebook:hover {
    background: #3b5998;
    color: #fff;
}

.msb-instagram:hover {
    background: #e1306c;
    color: #fff;
}

.msb-twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.msb-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.msb-single-barber-content {
    padding: 0 30px 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* Services styles */
.msb-services {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.msb-services-layout-grid {
    display: flex;
    flex-wrap: wrap;
}

.msb-services-layout-list .msb-service {
    width: 100%;
    margin-bottom: 30px;
}

.msb-services-columns-2 .msb-service {
    width: calc(50% - 30px);
    margin: 0 15px 30px;
}

.msb-services-columns-3 .msb-service {
    width: calc(33.33% - 30px);
    margin: 0 15px 30px;
}

.msb-services-columns-4 .msb-service {
    width: calc(25% - 30px);
    margin: 0 15px 30px;
}

.msb-service {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.msb-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.msb-service-image {
    position: relative;
    overflow: hidden;
}

.msb-service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.msb-service:hover .msb-service-image img {
    transform: scale(1.05);
}

.msb-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 600;
}

.msb-service-content {
    padding: 20px;
}

.msb-service-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.msb-service-title a {
    text-decoration: none;
    color: #333;
}

.msb-service-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.msb-service-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.msb-service-duration {
    font-size: 14px;
    color: #666;
}

.msb-service-excerpt {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.msb-service-footer {
    text-align: right;
}

.msb-service-more {
    display: inline-block;
    padding: 8px 15px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.msb-service-more:hover {
    background: #555;
    color: #fff;
}

/* Single service styles */
.msb-single-service {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.msb-single-service-image {
    position: relative;
}

.msb-single-service-image img {
    width: 100%;
    height: auto;
    display: block;
}

.msb-single-service-header {
    padding: 30px 30px 20px;
}

.msb-single-service-title {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.msb-single-service-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.msb-single-service-price,
.msb-single-service-duration,
.msb-single-service-categories {
    margin-right: 30px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.msb-meta-label {
    font-weight: 600;
    margin-right: 5px;
}

.msb-single-service-content {
    padding: 0 30px 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.msb-single-service-booking {
    padding: 0 30px 30px;
    text-align: center;
}

.msb-booking-button {
    display: inline-block;
    padding: 12px 25px;
    background: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.msb-booking-button:hover {
    background: #ff5252;
    color: #fff;
}

/* Price list styles */
.msb-price-list {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 30px;
}

.msb-price-list-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.msb-price-list-item:last-child {
    border-bottom: none;
}

.msb-price-list-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.msb-price-list-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.msb-price-list-title a {
    text-decoration: none;
    color: #333;
}

.msb-price-list-featured-icon {
    margin-left: 10px;
    color: #ff6b6b;
}

.msb-price-list-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.msb-price-list-description {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.msb-price-list-duration {
    font-size: 14px;
    color: #666;
}

/* Opening hours styles */
.msb-opening-hours {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 30px;
}

.msb-opening-hours-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.msb-opening-hours-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.msb-opening-hours-item:last-child {
    border-bottom: none;
}

.msb-day {
    font-weight: 600;
    color: #333;
}

.msb-hours {
    color: #555;
}

/* Contact info styles */
.msb-contact-info {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 30px;
}

.msb-contact-info-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.msb-contact-info-details {
    margin-bottom: 30px;
}

.msb-contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.msb-contact-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #555;
}

.msb-contact-text {
    font-size: 16px;
    color: #555;
}

.msb-contact-text a {
    color: #555;
    text-decoration: none;
}

.msb-contact-text a:hover {
    color: #333;
}

.msb-contact-map {
    border-radius: 5px;
    overflow: hidden;
}

/* Booking form styles */
.msb-booking-form {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 30px;
}

.msb-booking-form-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

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

.msb-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.msb-form-row label .required {
    color: #ff6b6b;
}

.msb-form-row input[type="text"],
.msb-form-row input[type="email"],
.msb-form-row input[type="tel"],
.msb-form-row input[type="date"],
.msb-form-row select,
.msb-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
    color: #555;
}

.msb-form-row input[type="text"]:focus,
.msb-form-row input[type="email"]:focus,
.msb-form-row input[type="tel"]:focus,
.msb-form-row input[type="date"]:focus,
.msb-form-row select:focus,
.msb-form-row textarea:focus {
    border-color: #aaa;
    outline: none;
}

.msb-form-submit {
    text-align: center;
}

.msb-booking-submit {
    display: inline-block;
    padding: 12px 25px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.msb-booking-submit:hover {
    background: #ff5252;
}

.msb-booking-response {
    margin-top: 20px;
    text-align: center;
}

.msb-loading,
.msb-success,
.msb-error {
    padding: 10px 15px;
    border-radius: 3px;
    font-size: 16px;
}

.msb-loading {
    background: #f5f5f5;
    color: #555;
}

.msb-success {
    background: #e3f9e5;
    color: #1b8a2a;
}

.msb-error {
    background: #ffebee;
    color: #c62828;
}

/* Testimonials styles */
.msb-testimonials {
    margin-bottom: 30px;
}

.msb-testimonials-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.msb-testimonials-layout-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.msb-testimonials-columns-2 .msb-testimonial {
    width: calc(50% - 30px);
    margin: 0 15px 30px;
}

.msb-testimonials-columns-3 .msb-testimonial {
    width: calc(33.33% - 30px);
    margin: 0 15px 30px;
}

.msb-testimonial {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.msb-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.msb-testimonial-content {
    margin-bottom: 20px;
}

.msb-testimonial-content blockquote {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
}

.msb-testimonial-content blockquote:before {
    content: '\201C';
    font-size: 30px;
    color: #ddd;
    margin-right: 5px;
}

.msb-testimonial-content blockquote:after {
    content: '\201D';
    font-size: 30px;
    color: #ddd;
    margin-left: 5px;
}

.msb-testimonial-author {
    display: flex;
    align-items: center;
}

.msb-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.msb-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msb-testimonial-info {
    flex: 1;
}

.msb-testimonial-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.msb-testimonial-position {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.msb-testimonial-rating {
    color: #ffb900;
}

.msb-star {
    margin-right: 2px;
}

/* Gallery styles */
.msb-gallery {
    margin-bottom: 30px;
}

.msb-gallery-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.msb-gallery-items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.msb-gallery-columns-2 .msb-gallery-item {
    width: calc(50% - 20px);
    margin: 0 10px 20px;
}

.msb-gallery-columns-3 .msb-gallery-item {
    width: calc(33.33% - 20px);
    margin: 0 10px 20px;
}

.msb-gallery-columns-4 .msb-gallery-item {
    width: calc(25% - 20px);
    margin: 0 10px 20px;
}

.msb-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.msb-gallery-link {
    display: block;
}

.msb-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.msb-gallery-item:hover .msb-gallery-image {
    transform: scale(1.05);
}

/* Responsive styles */
@media (max-width: 991px) {
    .msb-barbers-columns-3 .msb-barber,
    .msb-barbers-columns-4 .msb-barber,
    .msb-services-columns-3 .msb-service,
    .msb-services-columns-4 .msb-service,
    .msb-testimonials-columns-3 .msb-testimonial,
    .msb-gallery-columns-3 .msb-gallery-item,
    .msb-gallery-columns-4 .msb-gallery-item {
        width: calc(50% - 30px);
    }
    
    .msb-single-barber-header {
        flex-direction: column;
    }
    
    .msb-single-barber-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .msb-barbers-columns-2 .msb-barber,
    .msb-barbers-columns-3 .msb-barber,
    .msb-barbers-columns-4 .msb-barber,
    .msb-services-columns-2 .msb-service,
    .msb-services-columns-3 .msb-service,
    .msb-services-columns-4 .msb-service,
    .msb-testimonials-columns-2 .msb-testimonial,
    .msb-testimonials-columns-3 .msb-testimonial,
    .msb-gallery-columns-2 .msb-gallery-item,
    .msb-gallery-columns-3 .msb-gallery-item,
    .msb-gallery-columns-4 .msb-gallery-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
