/**
 * Things To Do Page Styles
 * Matches the reference design from imaginevillarentals.com
 */

/* Main Heading */
.things-to-do-heading {
    font-size: 24px !important;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h2 img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.page-header h2:empty {
    display: none;
}

.page-header p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Tabs Styling */
.things-to-do-tabs {
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.things-to-do-tabs .tabs-title {
    margin-right: 0;
}

.things-to-do-tabs .tabs-title > a {
    font-size: 16px !important;
    color: #E5347E !important;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.things-to-do-tabs .tabs-title > a:hover {
    color: #E5347E !important;
    background-color: rgba(229, 52, 126, 0.05);
    border-bottom-color: rgba(229, 52, 126, 0.3);
}

.things-to-do-tabs .tabs-title.is-active > a {
    color: #E5347E !important;
    font-weight: 600;
    border-bottom-color: #E5347E;
    background-color: transparent;
}

.things-to-do-tabs .tabs-title > a:focus {
    color: #E5347E !important;
    outline: 2px solid rgba(229, 52, 126, 0.3);
    outline-offset: 2px;
}

/* Tabs Content */
.tabs-content {
    margin-top: 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2rem;
}

.tabs-content .tabs-panel {
    padding: 0;
    display: none;
}

.tabs-content .tabs-panel.is-active {
    display: block;
}

.tabs-content .tabs-panel p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 16px;
}

.tabs-content .tabs-panel p:last-child {
    margin-bottom: 0;
}

.tabs-content .tabs-panel img {
    width: 100%;
    max-width: 820px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.tabs-content .tabs-panel picture {
    display: block;
    margin-bottom: 1.5rem;
}

.tabs-content .tabs-panel picture img {
    margin-bottom: 0;
}

/* Responsive Styles */
@media screen and (max-width: 39.9375em) {
    .things-to-do-tabs {
        border-bottom: none;
    }
    
    .things-to-do-tabs .tabs-title {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .things-to-do-tabs .tabs-title > a {
        font-size: 16px !important;
        padding: 1rem;
        display: block;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .things-to-do-tabs .tabs-title.is-active > a {
        border-color: #E5347E;
        background-color: rgba(229, 52, 126, 0.05);
    }
    
    .tabs-content {
        padding: 1.5rem;
    }
    
    .tabs-content .tabs-panel {
        padding: 0;
    }
}

@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    .things-to-do-tabs .tabs-title > a {
        font-size: 15px !important;
        padding: 0.875rem 1.25rem;
    }
}

/* Ensure Foundation tabs work correctly */
.things-to-do-tabs[data-responsive-accordion-tabs] {
    display: block;
}

.things-to-do-tabs[data-responsive-accordion-tabs] .tabs-title {
    display: inline-block;
}

@media screen and (max-width: 39.9375em) {
    .things-to-do-tabs[data-responsive-accordion-tabs="tabs medium-accordion large-tabs"] {
        display: block;
    }
    
    .things-to-do-tabs[data-responsive-accordion-tabs="tabs medium-accordion large-tabs"] .tabs-title {
        display: block;
        width: 100%;
    }
}

