/* Custom Service Interface Styles */

.custom-service-interface {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* margin-top: 2rem; */
}

/* Category Navigation Tabs */
.category-nav-container {
    /* margin-bottom: 2rem; */
}

.category-nav-tabs {
    display: flex;
    gap: 45px;
    justify-content: start;
    flex-wrap: wrap;
}

.category-tab {
    background: #fff;
    border: 2px solid #D2691E;
    color: #000000;
    padding: 20px 0;
    width: 355px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Futura LT';
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;

}

.category-tab:hover {
    background: #D2691E;
    color: #fff;
}

.category-tab.active {
    background: #D2691E;
    color: #fff;
    border-color: #D2691E;
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.3);
}

/* Services Grid Styles */
.services-grid-container {
    background: #fff;
}

.services-count-title, .services-count-title .count-text {
    font-family: 'Futura LT';
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    color: #1D1A1A;
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Service Card Styles */
.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.service-card-content {
    padding: 1.5rem;
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.service-card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.service-card-location i {
    color: #D2691E;
    font-size: 0.8rem;
}

.service-card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    min-height: 2.8rem;
}

.service-visit-btn {
    background: #fff;
    border: 2px solid #D2691E;
    color: #D2691E;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 120px;
}

.service-visit-btn:hover {
    background: #D2691E;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.service-card.active .service-visit-btn {
    background: #D2691E;
    color: #fff;
    border-color: #D2691E;
}

/* Category Item Styles */
.category-item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-item.active {
    background: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.category-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #007bff;
}

.category-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.category-service-count {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* No Services Message */
.no-services {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Loading Services */
.loading-services {
    grid-column: 1 / -1;
    text-align: center;
    color: #007bff;
    font-weight: 500;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-services::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.service-item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item.active {
    background: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.service-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #007bff;
}

.service-item-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.service-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.service-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.service-duration,
.service-price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-duration::before {
    content: '⏱️';
    margin-right: 0.25rem;
}

.service-price::before {
    content: '💰';
    margin-right: 0.25rem;
}

/* Service Details Styles */
.service-details-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    min-height: 400px;
    width: 100%;
}

.service-details {
    height: 100%;
}

.service-detail-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.service-title-section {
    flex: 1;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.service-meta-large {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.service-duration-large,
.service-price-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.service-duration-large::before {
    content: '⏱️';
    font-size: 1.2rem;
}

.service-price-large::before {
    content: '💰';
    font-size: 1.2rem;
}

.service-description-full {
    flex: 1;
    margin-bottom: 2rem;
}

.service-description-full p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.service-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.book-service-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.book-service-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Amelia Booking Container */
.amelia-booking-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.booking-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

.back-to-services-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-services-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.booking-content {
    min-height: 500px;
}

/* Ensure Amelia booking form is properly styled */
.booking-content .am-amelia-booking {
    width: 100%;
}

.booking-content .am-amelia-booking * {
    box-sizing: border-box;
}

/* Booking Page Container */
.booking-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.booking-page-container .booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.booking-page-container .booking-header h1 {
    margin: 0;
    color: #333;
    font-size: 2rem;
}

.booking-page-container .booking-content {
    min-height: 500px;
}

/* Amelia Booking Error States */
.am-amelia-booking-error {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.am-amelia-booking-error p {
    margin-bottom: 1rem;
    color: #6c757d;
}

.am-amelia-booking-error .btn {
    margin-top: 1rem;
}

.am-amelia-booking-container {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.am-amelia-booking-container h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Iframe Container for Amelia Booking */
.am-amelia-booking-iframe-container {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.am-amelia-booking-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Pre-rendered Booking Forms */
.pre-rendered-booking-forms {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.pre-rendered-booking-forms .booking-form {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-service-interface {
        gap: 1rem;
    }
    
    .category-nav-container {
        padding: 1rem;
    }
    
    .category-nav-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-tab {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid-container {
        padding: 1rem;
    }
    
    .services-count-title {
        /* font-size: 1rem;
        margin-bottom: 1.5rem; */
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon-large {
        align-self: center;
    }
    
    .service-meta-large {
        justify-content: center;
    }
    
    .service-details-container {
        padding: 1rem;
    }
}

/* Animation for smooth transitions */
.service-details {
    transition: opacity 0.3s ease;
}

.service-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state */
.service-details.loading {
    opacity: 0.6;
    pointer-events: none;
}

.service-details.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.page-visit-us .amelia-wrapper .title {
    font-family: 'Quicksand';
    font-weight: 700;
    font-size: 60px;
    line-height: 100%;
    margin-bottom: 30px;
}

body.page-visit-us .amelia-wrapper .description,
body.page-visit-us .amelia-wrapper .description > * {
    font-family: 'Futura LT';
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
}

body.page-visit-us .amelia-wrapper .orange-color{
    color: #DE670F !important;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors .orange-color{
    color: #D4AD4C !important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .orange-color{
    color: #8E9876 !important;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors .category-tab {
    background: #1E2A40 !important;
    color: #D4AD4C !important;
    border-color: #1E2A40 !important;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors .category-tab.active {
    background: #D4AD4C !important;
    color: #FFFFFF !important;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors .category-tab:hover {
    background: #D4AD4C !important;
    color: #FFFFFF !important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .category-tab {
    background: #8E9877 !important;
    color: #ffffff !important;
    border-color: #8E9877 !important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .category-tab.active {
    background: #D4AD4C !important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .category-tab:hover {
    background: #D4AD4C !important;
}



body.page-visit-us .amelia-wrapper .am-category-headline {
    display: none !important;
}

body.page-visit-us .amelia-wrapper .am-category-service-wrapper {
    row-gap: 40px !important;
}

body.page-visit-us .amelia-wrapper .am-category-service-wrapper .el-col-lg-12 {
    width: 33.33333% !important;
}

body.page-visit-us .amelia-wrapper .am-category-service  {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 100px !important;
    padding-bottom: 40px !important;
}


body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-hover {
    opacity: 1 !important;
    background: none !important;
}

body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-hover .am-category-service-title {
    display: none !important;
}

body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-hover .el-button--default {
    margin-right: 0 !important;
    right: 50px !important;
    left: auto !important;
    top: 270px !important;
    bottom: auto !important;
    transform: none !important;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    background-color: #ffffff !important;
    border-color: #DE670F !important;
    pointer-events: auto;
}

body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-hover .el-button--default span {
    color: #1D1A1A !important;
    font-weight: 600 !important;
}

body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-hover .el-button--default:hover {
    background-color: #DE670F !important;
}
body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-hover .el-button--default:hover span {
    color: #FFFFFF !important;
}


body.page-visit-us .amelia-wrapper.category-residences-services-seniors .am-category-service .am-category-service-hover .el-button--default {
    border-color: #1E2A40 !important;
    background-color: #1E2A40 !important;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors .am-category-service .am-category-service-hover .el-button--default span {
    color: #D4AD4C !important;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors .am-category-service .am-category-service-hover .el-button--default:hover {
    background-color: #D4AD4C !important;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors .am-category-service .am-category-service-hover .el-button--default:hover span {
    color: #FFFFFF !important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .am-category-service .am-category-service-hover .el-button--default {
    background-color: #8E9877 !important;
    border-color: #8E9877 !important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .am-category-service .am-category-service-hover .el-button--default span {
    color: #FFFFFF !important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .am-category-service .am-category-service-hover .el-button--default:hover {
    background-color: #D4AD4C !important;
    border-color: #D4AD4C !important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .am-category-service .am-category-service-hover .el-button--default:hover span {
    color: #FFFFFF !important;
}


body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-image {
    height: 220px !important;
}

body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info {
    padding-top: 50px !important;
    padding-bottom: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    font-family: 'Quicksand';
    font-weight: 500;
    font-size: 26px;
    line-height: 100%;

}

body.page-visit-us .amelia-wrapper #am-category .am-category-service:hover {
    box-shadow: unset !important;
    border-color: #DE670F;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors #am-category .am-category-service:hover {
    box-shadow: unset !important;
    border-color: #D4AD4C;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages #am-category .am-category-service:hover {
    box-shadow: unset !important;
    border-color: #D4AD4C;
}


body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info .am-category-service-title,
body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info .am-category-service-title span {
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: break-word !important;
    width: 59% !important;
    color: #DE670F !important;
    font-weight: 600 !important;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info .am-category-service-title span {
    width: fit-content !important;
    font-size: 18px !important;
    line-height: 100%;

}



body.page-visit-us .amelia-wrapper.category-residences-services-seniors .am-category-service .am-category-service-info .am-category-service-title,
body.page-visit-us .amelia-wrapper.category-residences-services-seniors .am-category-service .am-category-service-info .am-category-service-title span {
    color: #D4AD4C !important;
}
body.page-visit-us .amelia-wrapper.category-habitats-partages .am-category-service .am-category-service-info .am-category-service-title,
body.page-visit-us .amelia-wrapper.category-habitats-partages .am-category-service .am-category-service-info .am-category-service-title span {
    color: #8E9877 !important;
}



/* Injected description under Amelia card title */
body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info  .am-category-service-desc {
    margin-top: 20px;
    font-family: 'Futura LT';
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    text-decoration: none;
    color: #1D1A1A;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 90% !important;
}
body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info  .am-category-service-desc .desc-icon{
    flex: 0 0 auto;
    line-height: 0;
}
body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info  .am-category-service-desc .desc-content{
    font-weight: 600;
    flex: 1 1 auto;
    text-decoration: underline;
}

body.page-visit-us .amelia-wrapper.category-residences-services-seniors .amelia-app-booking #amelia-booking-wrap .am-step-booking-catalog .am-form-catalogForm-calendarDateTimeForm.am-select-date {
    background: linear-gradient(90deg, #1E2A40 0%, #D4AD4C 100%)!important;
}

body.page-visit-us .amelia-wrapper.category-habitats-partages .amelia-app-booking #amelia-booking-wrap .am-step-booking-catalog .am-form-catalogForm-calendarDateTimeForm.am-select-date {
    background: linear-gradient(90deg, #8E9877 0%, #D4AD4C 100%)!important;
}


@media (max-width: 768px) {

    body.page-visit-us .visit-header {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    body.page-visit-us .visit-main {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    body.page-visit-us .amelia-wrapper .am-category-service-wrapper .el-col-lg-12 {
        width: 100% !important;
    }

    body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-hover .el-button--default {
        top: 240px !important;
        right: 20px !important;
        padding: 10px 20px !important;
        cursor: pointer;
    }

    body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info {
        padding: 20px !important;
        width: 90% !important;
    }


    body.page-visit-us .amelia-wrapper .title {
        margin-bottom: 10px;
    }

    body.page-visit-us .amelia-wrapper .description,
    body.page-visit-us .amelia-wrapper .description > * {
        font-size: 16px;
        line-height: 22px;
    }

    body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info  .am-category-service-title {
        width: 70% !important;
    }

    body.page-visit-us .amelia-wrapper .am-category-service .am-category-service-info  .am-category-service-desc {
        width: 100% !important;
    }


}