/* W Service Shortcodes Styles */

/* Service List Styles */
.w-service-list-wrapper {
    margin: 20px 0;
}

.w-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.w-service-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.w-service-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.w-service-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.w-service-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.w-service-price {
    color: #e74c3c;
    font-weight: bold;
}

.w-service-duration {
    color: #666;
}

.w-service-description {
    color: #555;
    line-height: 1.5;
}

/* Service Grid Styles */
.w-service-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.w-service-grid-1-cols { grid-template-columns: 1fr; }
.w-service-grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.w-service-grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.w-service-grid-4-cols { grid-template-columns: repeat(4, 1fr); }
.w-service-grid-5-cols { grid-template-columns: repeat(5, 1fr); }
.w-service-grid-6-cols { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
    .w-service-grid-3-cols,
    .w-service-grid-4-cols,
    .w-service-grid-5-cols,
    .w-service-grid-6-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .w-service-grid {
        grid-template-columns: 1fr !important;
    }
}

.w-service-grid-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease;
}

.w-service-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.w-service-grid-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.w-service-grid-item .price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
    margin: 5px 0;
}

.w-service-grid-item .category {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Service Detail Styles */
.w-service-detail {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.w-service-detail .w-service-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.w-service-detail .w-service-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.w-service-detail .w-service-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.w-service-detail .w-service-categories {
    background: #e8f4fd;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #2980b9;
}

.w-service-booking {
    text-align: center;
    margin-top: 25px;
}

.w-service-book-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.w-service-book-btn:hover {
    background: #2980b9;
}

/* Service Search Styles */
.w-service-search-form {
    margin: 20px 0;
}

.w-service-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.w-service-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

.w-service-category-filter {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    min-width: 150px;
}

.w-service-search-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.w-service-search-btn:hover {
    background: #229954;
}

.w-service-search-results {
    margin-top: 20px;
}

/* Service Categories Styles */
.w-service-categories {
    margin: 20px 0;
}

.w-service-categories-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.w-service-categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.w-service-categories-list li:last-child {
    border-bottom: none;
}

.w-service-categories-list a {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

.w-service-categories-list a:hover {
    color: #2980b9;
}

.w-service-categories-list .count {
    color: #666;
    font-size: 0.9em;
}

.w-service-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.w-service-category-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease;
}

.w-service-category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.w-service-category-item h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.w-service-category-item .count {
    color: #e74c3c;
    font-weight: bold;
}

/* Service Popular Styles */
.w-service-popular {
    margin: 20px 0;
}

.w-service-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.w-service-popular-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: background 0.3s ease;
}

.w-service-popular-item:hover {
    background: #f8f9fa;
}

.w-service-popular-item h4 {
    margin: 0;
    flex: 1;
    color: #2c3e50;
}

.w-service-popular-item .w-service-price {
    margin: 0 15px;
    color: #e74c3c;
    font-weight: bold;
}

.w-service-popular-item .w-service-popularity {
    color: #27ae60;
    font-size: 0.9em;
}

/* Error and No Results Styles */
.w-service-error,
.w-service-no-results {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.w-service-no-results {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .w-service-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .w-service-search-input,
    .w-service-category-filter,
    .w-service-search-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .w-service-detail {
        padding: 20px;
    }
    
    .w-service-detail .w-service-title {
        font-size: 1.5em;
    }
    
    .w-service-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .w-service-popular-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Service Accordion Layout Styles */
.w-service-accordion {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.w-service-accordion-category {
    border-bottom: 1px solid #e0e0e0;
}

.w-service-accordion-category:last-child {
    border-bottom: none;
}

.w-service-accordion-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
}

.w-service-accordion-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.w-service-accordion-header.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.w-service-accordion-title {
    flex: 1;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.w-service-accordion-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    margin-right: 10px;
}

.w-service-accordion-header.active .w-service-accordion-count {
    background: rgba(255, 255, 255, 0.3);
}

.w-service-accordion-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.w-service-accordion-header.active .w-service-accordion-icon {
    transform: rotate(180deg);
}

.w-service-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.w-service-accordion-content.active {
    max-height: 2000px; /* Đủ lớn để chứa nội dung */
}

.w-service-accordion-services {
    padding: 0;
}

.w-service-accordion-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background 0.2s ease;
}

.w-service-accordion-item:last-child {
    border-bottom: none;
}

.w-service-accordion-item:hover {
    background: #f8f9fa;
}

.w-service-accordion-item-content {
    flex: 1;
}

.w-service-accordion-item-title {
    margin: 0 0 5px 0;
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.w-service-accordion-item-description {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
}

.w-service-accordion-item-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.w-service-accordion-item-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.05em;
}

.w-service-accordion-item-duration {
    color: #6c757d;
    font-size: 0.9em;
}

.w-service-accordion-item-actions {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.w-service-accordion-book-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.w-service-accordion-book-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Responsive cho accordion */
@media (max-width: 768px) {
    .w-service-accordion-header {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .w-service-accordion-item {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .w-service-accordion-item-actions {
        margin-left: 0;
        margin-top: 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .w-service-accordion-item-meta {
        margin-bottom: 8px;
    }
    
    .w-service-accordion-book-btn {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .w-service-accordion-header {
        padding: 10px 12px;
    }
    
    .w-service-accordion-item {
        padding: 10px 12px;
    }
    
    .w-service-accordion-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}