/**
 * Resort Content Expander Styles
 *
 * Styles for the resort-specific expandable content implementation
 */

/* Container for expandable content */
.resort-content-expander {
    position: relative;
    width: 100%;
}

.resort-content-text h3{
    width: 100%;
}

    /* Content text area */
.resort-content-text {
    width: 100%;
    line-height: var(--text-line-height) !important;
    color: #333;
    font-size: 14px;
    margin-bottom: 0;
}

.resort-content-text h2{
    text-align: center;
    width: 100%;
}

/* Collapsed state */
.resort-content-text.collapsed {
    overflow: hidden;
    position: relative;
}

/* Expanded state */
.resort-content-text.expanded {
    overflow: visible;
}

/* Expand/Collapse Button */
.resort-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #006ce5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 10px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.resort-expand-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.resort-expand-btn:focus {
    outline: 2px solid #006ce5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button icon */
.resort-expand-btn .expand-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Fade overlay for collapsed content */
.resort-content-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    z-index: 1;
}

/* Alternative fade colors for different backgrounds */
.resort-content-expander.dark-bg .resort-content-fade {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.resort-content-expander.gray-bg .resort-content-fade {
    background: linear-gradient(transparent, rgba(248, 249, 250, 0.9));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resort-content-text {
        font-size: 13px;
    }

    .resort-expand-btn {
        font-size: 13px;
    }

    .resort-content-fade {
        height: 50px;
    }
}

/* Animation for smooth transitions */
.resort-content-text {
    transition: max-height 0.3s ease-out;
}

/* Ensure proper spacing when button is present */
.resort-content-expander:has(.resort-expand-btn) {
    padding-bottom: 10px;
}

/* Custom styling for different content types */
.resort-content-expander.description-content .resort-content-text {
    font-size: 15px;
    /*line-height: 1.7;*/
}

.resort-content-expander.features-content .resort-content-text {
    font-size: 14px;
    line-height: 1.6;
}

.resort-content-expander.amenities-content .resort-content-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Button variations */
.resort-expand-btn.primary {
    background-color: #006ce5;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
}

.resort-expand-btn.primary:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.resort-expand-btn.outline {
    border: 1px solid #006ce5;
    padding: 6px 12px;
    border-radius: 4px;
}

.resort-expand-btn.outline:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

/* Loading state */
.resort-content-expander.loading .resort-content-text {
    opacity: 0.6;
}

.resort-content-expander.loading .resort-expand-btn {
    opacity: 0.5;
    pointer-events: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .resort-content-text,
    .resort-expand-btn .expand-icon {
        transition: none;
    }
}

/* Focus management for keyboard navigation */
.resort-expand-btn:focus-visible {
    outline: 2px solid #006ce5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .resort-expand-btn {
        border: 1px solid currentColor;
        padding: 6px 12px;
        border-radius: 4px;
    }

    .resort-content-fade {
        background: linear-gradient(transparent, var(--bg-color, white));
    }
}