/* Custom CSS fixes for Cruises Studio */

/* Fix 1: Show the banner slideshow on homepage */
#demo1 {
    display: block !important;
}

/* Fix 2: Position specialty labels in the center of images */
.specials li {
    position: relative;
    display: inline-block;
}

.specials li h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    margin: 0;
    background-color: rgba(46, 140, 202, 0.9);
    color: white;
    padding: 15px 10px;
    font-size: 24px;
    text-align: center;
    z-index: 10;
}

.specials li h1 a {
    color: white;
    text-decoration: none;
}

.specials li h1 a:hover {
    color: #ffeb3b;
}

/* Ensure images are responsive */
.specials li img {
    display: block;
    width: 100%;
    height: auto;
}

/* Fix 3: Header green background - Using the original .new_lf_container class */
/* The class is now added to the HTML, no CSS override needed */

/* Fix 9: Hide service links (Register, Profile, Request Information, Email a Friend) */
.lf_horizontal.lf_service {
    display: none !important;
}

/* Fix 10: SecureForm styling fixes */
.repeating-item-header h5 {
    clear: both !important;
    float: none !important;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    margin: 10px 0 !important;
}

.repeating-item-header {
    clear: both !important;
    width: 100% !important;
    display: block !important;
}

/* Fix inline-block whitespace issue for all form fields */
.secure-form {
    font-size: 0; /* Remove whitespace between inline-block elements */
}

.secure-form .form-group,
.secure-form h3,
.secure-form h4,
.secure-form p,
.secure-form label,
.secure-form .repeating-section-header {
    font-size: 1rem; /* Restore font size for form content */
}

/* Widen the form on larger screens */
@media (min-width: 1024px) {
    .secure-form {
        max-width: 1200px !important;
        margin: 0 auto;
    }

    .lf_content_box {
        max-width: 1200px !important;
    }
}

/* Fix 4: Clear and left-align h4 subheadings on destination pages */
.lf_main h4,
.tideBody h4 {
    clear: both !important;
    float: none !important;
    text-align: left !important;
    margin-left: 0 !important;
    width: 100%;
    display: block;
}

/* Fix 5: Clear and left-align h3 headings on destination pages */
.lf_main h3,
.tideBody h3,
.heading_1 {
    clear: both !important;
    float: none !important;
    text-align: left !important;
    margin-left: 0 !important;
    width: 100%;
    display: block;
}

/* Fix 6: Ensure proper text flow after floated elements */
.lf_main p,
.tideBody p {
    clear: both;
    width: 100%;
}

/* Fix 7: Ensure intro sections don't have alignment issues */
.lf_intro h1,
.lf_intro h2 {
    text-align: center !important;
}

/* Fix 8: Gallery styling improvements */
.gallery-grid {
    clear: both;
    width: 100%;
}
