/**
 * Thai Garden Services - Mobile-Specific Adjustments
 * These styles will only apply to screens under certain widths
 */

/* Tablet and Mobile Styles (for screens under 992px) */
@media (max-width: 991px) {
    /* Fix content being cropped on the right side */
    .tgs-services-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    .tgs-services-wrapper {
        width: 100%;
        padding: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .tgs-services-accordion {
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tgs-service-accordion-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .tgs-service-accordion-content {
        padding: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tgs-media-column, 
    .tgs-content-column {
        width: 100%;
        box-sizing: border-box;
    }
    
    .tgs-service-media {
        padding-top: 56.25% !important;
        width: 100%;
    }
    
    .tgs-service-details {
        padding: 1rem !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tgs-pricing-tiers {
        margin: 1rem auto !important;
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
    
    .tgs-book-now-btn {
        width: 100%;
        margin: 1rem auto !important;
        box-sizing: border-box;
    }
}

/* Tablet Styles (for screens between 768px and 992px) */
@media (max-width: 991px) and (min-width: 768px) {
    .tgs-services-wrapper {
        border-radius: 6px;
        max-width: 700px;
    }
    
    .tgs-service-tabs {
        padding: 1.25rem;
    }
    
    .tgs-services-section {
        padding: 0;
    }
    
    .tgs-services-accordion {
        padding: 1rem;
    }
}

/* Mobile Styles (for screens under 768px) */
@media (max-width: 767px) {
    .tgs-services-wrapper {
        margin: 0 auto;
        border-radius: 0;
        border: none;
        box-shadow: none;
        max-width: 100%;
        background: transparent;
    }
    
    .tgs-service-tabs {
        gap: 2rem;
        padding: 1rem 0.5rem;
        flex-wrap: wrap;
        justify-content: space-around;
        background-color: transparent;
        border-bottom: 1px solid #eee;
    }

    .tgs-tab-button {
        font-size: 1rem;
        padding: 0.5rem 0.5rem;
        /* Add touch-friendly area */
        min-height: 44px;
        min-width: 44px;
    }
    
    .tgs-services-section {
        padding: 0;
        background: transparent;
    }
    
    /* Enhance touch targets for mobile */
    .tgs-service-header {
        min-height: 54px;
    }
    
    .tgs-service-header h2 {
        font-size: 0.95rem;
    }
    
    .tgs-service-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .tgs-service-description p:first-of-type {
        font-weight: 500;
        margin-bottom: 0.4em;
    }
    
    /* Book Now Button */
    .tgs-book-now-btn {
        width: 100%;
        padding: 0.85rem;
        border-radius: 4px;
        position: relative;
        overflow: hidden;
        z-index: 1;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    
    .tgs-book-now-btn:active {
        transform: translateY(1px);
    }
}

/* Small Mobile Styles (for screens under 576px) */
@media (max-width: 575px) {
    .tgs-services-wrapper {
        padding: 0;
        border: none;
        width: 100%;
        margin: 0;
    }
    
    .tgs-services-accordion {
        padding: 5px;
    }
    
    .tgs-service-tabs {
        padding: 0.75rem 0.25rem;
    }
    
    .tgs-tab-button {
        font-size: 0.9rem;
    }
    
    .tgs-service-header h2 {
        font-size: 0.9rem;
        padding-right: 30px; /* Ensure text doesn't overlap with icon */
    }
    
    .tgs-service-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .tgs-pricing-tier {
        font-size: 0.9rem;
    }
    
    .tgs-service-header {
        padding: 8px 12px;
    }
    
    /* Ensure proper text wrapping */
    .tgs-service-description p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Extra-Small Mobile Styles (for screens under 375px) */
@media (max-width: 374px) {
    .tgs-pricing-tiers {
        max-width: 100%;
    }
    
    .tgs-pricing-tier {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .tgs-duration {
        font-size: 0.85rem;
        padding: 0;
        margin: 0;
        white-space: nowrap;
    }
    
    .tgs-price {
        font-size: 0.9rem;
    }
    
    .tgs-service-details {
        padding: 0.75rem;
    }
    
    .tgs-services-accordion {
        padding: 3px;
    }
    
    .tgs-service-header h2 {
        font-size: 0.85rem;
    }
} 