/* Additional Responsive Enhancements */

/* Responsive Tables */
@media screen and (max-width: 767px) {
    .responsive-table {
        border: 0;
    }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tr {
        margin-bottom: 20px;
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
    }
    
    .responsive-table td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .responsive-table td:last-child {
        border-bottom: 0;
    }
    
    .responsive-table td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
    }
}

/* Responsive Iframe Container */
.iframe-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 20px;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Responsive Form Elements */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .coupon-section {
        display: flex;
        flex-direction: column;
    }
    
    .coupon-input {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .form-actions {
        display: flex;
        flex-direction: column;
    }
    
    .form-actions .btn {
        margin-bottom: 10px;
    }
}

/* Responsive Calendar */
@media screen and (max-width: 767px) {
    .calendar-controls {
        flex-direction: column;
    }
    
    .calendar-nav {
        margin-bottom: 15px;
    }
    
    .calendar-view {
        margin-bottom: 15px;
    }
    
    .calendar-table.list-view {
        display: block;
    }
    
    .calendar-table.list-view thead {
        display: none;
    }
    
    .calendar-table.list-view tbody {
        display: block;
    }
    
    .calendar-table.list-view tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
    }
    
    .calendar-table.list-view td {
        display: block;
        text-align: left;
        padding: 10px;
    }
    
    .calendar-table.list-view td.empty {
        display: none;
    }
    
    .calendar-table.list-view .day-number {
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .calendar-table.list-view .calendar-event {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Responsive Resource Categories */
@media screen and (max-width: 767px) {
    .resource-categories {
        flex-direction: column;
    }
    
    .resource-filter {
        margin-bottom: 15px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .filter-btn {
        margin-bottom: 5px;
    }
    
    .resource-search {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .resource-sort {
        width: 100%;
    }
}

/* Mobile Menu Animation */
.mobile-menu-toggle {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active {
    transform: rotate(90deg);
}

/* Responsive Checkout */
@media screen and (max-width: 767px) {
    .payment-methods {
        margin-top: 20px;
    }
    
    .order-summary {
        margin-top: 30px;
    }
}

/* Responsive Testimonials */
@media screen and (max-width: 767px) {
    .testimonial-slider {
        padding: 0 20px;
    }
    
    .testimonial-nav-prev,
    .testimonial-nav-next {
        width: 30px;
        height: 30px;
    }
}

/* Responsive Team Cards */
@media screen and (max-width: 767px) {
    .team-social {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Service Cards */
@media screen and (max-width: 767px) {
    .service-icon {
        margin-bottom: 15px;
    }
}

/* Responsive Footer */
@media screen and (max-width: 767px) {
    .footer-logo {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .social-icons {
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .footer h4 {
        text-align: center;
        margin-top: 20px;
    }
    
    .footer-links ul {
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* Responsive CTA Section */
@media screen and (max-width: 767px) {
    .cta-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Responsive Membership Cards */
@media screen and (max-width: 767px) {
    .membership-card {
        margin-bottom: 30px;
    }
    
    .membership-card.featured {
        transform: scale(1);
    }
}

/* Responsive Package Cards */
@media screen and (max-width: 767px) {
    .package-card {
        margin-bottom: 30px;
    }
    
    .package-card.featured {
        transform: scale(1);
    }
}

/* Responsive Success Stories */
@media screen and (max-width: 767px) {
    .success-story {
        flex-direction: column;
    }
    
    .success-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .success-content {
        width: 100%;
    }
}

/* Responsive Accordion */
@media screen and (max-width: 767px) {
    .accordion-header h3 {
        font-size: 1rem;
    }
}

/* Responsive Map */
@media screen and (max-width: 767px) {
    .map-container {
        height: 300px;
    }
}

/* Responsive Hero Section */
@media screen and (max-width: 767px) {
    .hero-small {
        min-height: 250px;
    }
}

/* Responsive Breadcrumbs */
@media screen and (max-width: 767px) {
    .breadcrumbs {
        font-size: 0.8rem;
    }
}

/* Responsive Page Title */
@media screen and (max-width: 767px) {
    .page-title {
        padding: 20px 0;
    }
}

/* Responsive Added to Cart Message */
.added-to-cart-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.added-to-cart-message i {
    margin-right: 5px;
}

/* Responsive Update Message */
.update-message {
    background-color: var(--color-success);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.update-message i {
    margin-right: 5px;
}

/* Responsive Form Success */
.form-success {
    text-align: center;
    padding: 30px;
}

.form-success i {
    font-size: 3rem;
    color: var(--color-success);
    margin-bottom: 20px;
}

.form-success h3 {
    margin-bottom: 10px;
}

/* Responsive Empty Cart */
.empty-cart {
    text-align: center;
    padding: 50px 20px;
}

.empty-cart i {
    font-size: 4rem;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 10px;
}

.empty-cart p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

/* Responsive Map Loaded */
.map-loaded {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-light);
    border-radius: 5px;
}

@media screen and (max-width: 767px) {
    .map-loaded {
        height: 300px;
    }
}
