/* ============================================ */
/* BASE STYLES - CRITICAL OVERFLOW FIX */
/* ============================================ */
html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    line-height: 1.6;
    padding-bottom: 180px;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

/* ============================================ */
/* CONTAINER */
/* ============================================ */
.service-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    overflow: hidden;
    width: 100%;
}

/* ============================================ */
/* BREADCRUMB */
/* ============================================ */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1e3a8a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================ */
/* SERVICE HEADER */
/* ============================================ */
.service-header {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-text {
    font-weight: 600;
    color: #1a1a1a;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

.orders-count {
    color: #666;
    font-size: 13px;
}

/* ============================================ */
/* CONTENT GRID */
/* ============================================ */
.service-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 769px) {
    .service-content-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* ============================================ */
/* IMAGE SECTION & SWIPER */
/* ============================================ */
.service-image-section {
    background: white;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.service-slider,
.swiper {
    border-radius: 12px;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
}

.swiper-wrapper {
    width: 100% !important;
}

.swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
}

.swiper-slide img,
.service-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

@media (min-width: 769px) {

    .swiper-slide img,
    .service-image {
        height: 320px;
    }
}

.swiper-pagination-bullet {
    background: #1e3a8a;
}

.swiper-button-next,
.swiper-button-prev {
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
}

/* ============================================ */
/* SERVICE DETAILS */
/* ============================================ */
.service-details {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.price-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.price-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a8a;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================ */
/* ACTION BUTTONS (In Page) */
/* ============================================ */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.btn-book-now {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 100%;
}

.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.btn-add-cart {
    background: white;
    color: #1e3a8a;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #1e3a8a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    width: 100%;
    max-width: 100%;
}

.btn-add-cart:hover {
    background: #1e3a8a;
    color: white;
}

/* ============================================ */
/* SERVICE FEATURES */
/* ============================================ */
.service-features {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: #10b981;
    font-size: 16px;
    width: 20px;
}

.feature-text {
    color: #333;
    font-size: 13px;
}

/* ============================================ */
/* DESCRIPTION SECTION */
/* ============================================ */
.description-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.description-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.description-section p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.description-section ul {
    padding-left: 20px;
}

.description-section li {
    color: #555;
    margin-bottom: 8px;
}

/* ============================================ */
/* RELATED SERVICES */
/* ============================================ */
.related-services-scroll {
    margin: 25px 0;
}

.related-services-scroll h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.services-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 8px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.services-scroll-container::-webkit-scrollbar {
    display: none;
}

.service-scroll-card {
    flex: 0 0 auto;
    width: 100px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.service-scroll-card:hover {
    transform: translateY(-3px);
}

.service-card-image {
    width: 100%;
    height: 70px;
    object-fit: cover;
    background: #f0f0f0;
}

.service-card-body {
    padding: 8px;
}

.service-card-title {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 26px;
}

.service-card-price {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 6px;
}

.service-card-info {
    display: none;
}

.service-card-rating {
    color: #ffc107;
}

.service-card-add-btn {
    width: 100%;
    padding: 6px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.service-card-add-btn:hover {
    background: #1e40af;
}

/* View All Services Card - Inside Slider */
.view-all-card {
    flex: 0 0 auto;
    width: 100px;
    height: auto;
    min-height: 140px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    color: white;
    text-decoration: none;
    padding: 15px 10px;
}

.view-all-card:hover {
    transform: translateY(-3px);
}

.view-all-card i {
    font-size: 24px;
    margin-bottom: 8px;
}

.view-all-card span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* Hide old load more button */
.load-more-container {
    display: none;
}

/* ============================================ */
.reviews-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 120px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviews-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avg-rating {
    font-weight: 700;
    color: #1e3a8a;
}

.avg-rating i {
    color: #ffc107;
    margin-right: 4px;
}

.total-reviews {
    color: #666;
    font-size: 13px;
}

.reviews-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.reviews-loading i {
    margin-right: 8px;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-reviews i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.no-reviews p {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.no-reviews span {
    font-size: 13px;
}

.review-card {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: #1a1a1a;
}

.review-date {
    color: #999;
    font-size: 12px;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 8px;
    font-size: 13px;
}

.review-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================ */
/* HIDE FLOATING CART (Proceed Button) */
/* ============================================ */
.floating-cart,
#floatingCart,
div.floating-cart {
    display: none !important;
    visibility: hidden !important;
}

/* ============================================ */
/* iOS BOOKING BAR - Glassmorphism & Animation */
/* ============================================ */
.ios-booking-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 999;
    background: transparent;
    pointer-events: none;
    /* Let clicks pass through bar area */
}

.ios-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    pointer-events: auto;
    /* Re-enable clicks on content */
}

/* Info Group (Cart + Price) - Glassmorphism with Rounded Corners */
.ios-info-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    /* Left to right rounded pill */
    padding: 8px 20px;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Cart Button - Styled as Icon inside group */
.ios-cart-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #1e3a8a;
    font-size: 22px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ios-cart-btn:active {
    transform: scale(0.9);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

/* Price Section - Remove box, keep text */
.ios-price-section {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ios-total-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ios-total-value {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
}

/* Pulse Animation */
@keyframes pulse-zoom {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(30, 58, 138, 0.35);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(30, 58, 138, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(30, 58, 138, 0.35);
    }
}

/* Book Now Button */
.ios-book-btn {
    background: #1e3a8a;
    /* Solid color for better contrast */
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.35);
    animation: pulse-zoom 2s infinite ease-in-out;
    /* 20% zoom animation */
}

.ios-book-btn i {
    font-size: 14px;
}

/* Quantity Controls in iOS Bar */
.ios-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ios-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #1e3a8a;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-qty-btn:hover {
    background: #3b82f6;
}

.ios-qty-display {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 20px;
    text-align: center;
}

/* Cart Popup */
.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-popup {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.cart-popup-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-popup-header h3 i {
    color: #1e3a8a;
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #eee;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    background: #dc2626;
    color: white;
}

.cart-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 12px;
    color: #666;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #1e3a8a;
    color: white;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-qty-btn:hover {
    background: #3b82f6;
}

.item-qty {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.item-remove-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
}

.item-remove-btn:hover {
    background: #dc2626;
    color: white;
}

.cart-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-checkout-btn:hover {
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .service-header h1 {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }

    .ios-booking-bar {
        padding: 8px 10px;
        bottom: 72px;
    }

    .ios-bar-content {
        gap: 6px;
    }

    .ios-qty-controls {
        padding: 4px 8px;
    }

    .ios-qty-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .ios-qty-display {
        font-size: 14px;
    }

    .ios-price-section {
        padding: 6px 10px;
    }

    .ios-total-label {
        font-size: 9px;
    }

    .ios-total-value {
        font-size: 14px;
    }

    .ios-cart-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .ios-book-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ============================================ */
/* SEO ARTICLE SECTION STYLES */
/* ============================================ */
.seo-article-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 32px 24px;
    margin: 32px 0;
    border: 1px solid #e2e8f0;
}

.seo-article-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3b82f6;
}

.seo-article-section section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.seo-article-section section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.seo-article-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
}

.seo-article-section p {
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.seo-article-section strong {
    color: #1e3a8a;
    font-weight: 600;
}

.seo-article-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.seo-article-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.seo-article-section ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #3b82f6;
    font-weight: bold;
}

.seo-article-section ul li strong {
    color: #1e3a8a;
}

/* Dark mode support for SEO article */
.dark-mode .seo-article-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.dark-mode .seo-article-section h2 {
    color: #93c5fd;
    border-bottom-color: #3b82f6;
}

.dark-mode .seo-article-section h3 {
    color: #60a5fa;
}

.dark-mode .seo-article-section p,
.dark-mode .seo-article-section ul li {
    color: #cbd5e1;
}

.dark-mode .seo-article-section strong {
    color: #93c5fd;
}

.dark-mode .seo-article-section section {
    border-bottom-color: #334155;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seo-article-section {
        padding: 24px 16px;
        margin: 24px 0;
    }

    .seo-article-section h2 {
        font-size: 20px;
    }

    .seo-article-section h3 {
        font-size: 16px;
    }

    .seo-article-section p,
    .seo-article-section ul li {
        font-size: 14px;
    }
}