/**
 * Plugin: Yacht Catalog Handler — Frontend Styles
 * Description: Styles for the yacht catalog download form and yacht card tag overlays.
 * Version: 1.1.0
 * Author: 56 North
 * Note: Uses strong specificity and !important to resist theme overrides.
 */

/* Yacht Form Submit Button - Custom Design with Strong Specificity */
button.yacht-form-submit-btn,
#submitBtn.yacht-form-submit-btn {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 32px !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    border: 2px solid #b51d49 !important;
    border-width: 2px !important;
    border-style: solid !important;
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    /* Only animate visual properties, not size */
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s ease-out !important;
    box-shadow: 0 4px 12px rgba(181, 29, 73, 0.25) !important;
    overflow: hidden !important;
    text-decoration: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* Prevent size changes */
    flex-shrink: 0 !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
}

/* Hard lock: ensure the element with this id keeps size even if classes change briefly */
#submitBtn,
#submitBtn.yacht-btn-loading,
#submitBtn.yacht-btn-success,
#submitBtn.yacht-btn-error {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    padding: 0 32px !important;
}

/* Ensure submit button flex behavior in containers */
#submitBtn {
    flex-grow: 1 !important;
    flex-basis: auto !important;
    border-width: 2px !important;
    border-style: solid !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

#submitBtn:hover,
#submitBtn:focus,
#submitBtn:active {
    min-width: 220px !important;
    max-width: 220px !important;
    width: 220px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    padding: 0 32px !important;
    border-width: 2px !important;
    border-style: solid !important;
}

/* Ensure the submit section matches form width without affecting theme globally */
form#yachtForm .submit-section {
    width: 100% !important;
    display: block !important;
}

/* Inline selection chips above submit button */
#selectedYachtsInline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 10px 0 12px !important;
}

.selected-yacht-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: #111 !important;
    border: 1px solid #050505 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.selected-yacht-tag .selected-yacht-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: none !important;
    color: #d62848 !important;
    background: rgba(214, 40, 72, 0.08) !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.selected-yacht-tag .selected-yacht-remove i { color: inherit !important; }

.selected-yacht-tag .selected-yacht-remove:hover {
    background: rgba(214, 40, 72, 0.18) !important;
    color: #ff3b5c !important;
}

/* Newsletter toggle buttons ensure visual sync with radio input state */
.interactive-toggle input[type="radio"] {
    display: none !important;
}
.interactive-toggle input[type="radio"]:checked + .toggle-option {
    background: #b51d49 !important;
    border-color: #b51d49 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(181, 29, 73, 0.28) !important;
}
/* Ensure the form container can accept margin-top adjustments for alignment */
form#yachtForm,
.contact-form-container {

/* Ensure the form container can accept margin-top adjustments for alignment */
form#yachtForm,
.contact-form-container {
    display: block !important;
    transition: none !important; /* prevent theme transitions on margin */
}


/* TOP ALIGNMENT is handled dynamically in JS to adapt to different headers/layouts */

button.yacht-form-submit-btn:hover,
#submitBtn.yacht-form-submit-btn:hover {
    transform: none !important;
    box-shadow: 0 8px 20px rgba(181, 29, 73, 0.35) !important;
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%) !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    padding: 0 32px !important;
}

button.yacht-form-submit-btn:active,
#submitBtn.yacht-form-submit-btn:active {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(181, 29, 73, 0.25) !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    padding: 0 32px !important;
}

/* Loading State - Force size retention */
button.yacht-form-submit-btn.yacht-btn-loading,
#submitBtn.yacht-form-submit-btn.yacht-btn-loading {
    background: linear-gradient(135deg, #ffc107 0%, #e6ac00 100%) !important;
    border-color: #ffc107 !important;
    color: #000000 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
    /* Force size retention during loading */
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    padding: 0 32px !important;
}

button.yacht-form-submit-btn.yacht-btn-loading:hover,
#submitBtn.yacht-form-submit-btn.yacht-btn-loading:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
    min-width: 220px !important;
    min-height: 56px !important;
}

/* Success State - Force size retention */
button.yacht-form-submit-btn.yacht-btn-success,
#submitBtn.yacht-form-submit-btn.yacht-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    /* Force size retention during success */
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    padding: 0 32px !important;
}

/* Error State - Force size retention */
button.yacht-form-submit-btn.yacht-btn-error,
#submitBtn.yacht-form-submit-btn.yacht-btn-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
    /* Force size retention during error */
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    padding: 0 32px !important;
}

/* Button Text Styling */
.yacht-btn-text {
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

button.yacht-form-submit-btn .yacht-btn-text,
#submitBtn.yacht-form-submit-btn .yacht-btn-text {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Button Icon Styling */
.yacht-btn-icon {
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Loading Progress Bar */
.yacht-loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 0 0 6px 6px;
}

.yacht-loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007cba 0%, #0056b3 100%);
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.yacht-loading-bar.yacht-progress-success .yacht-loading-progress {
    background: linear-gradient(90deg, #28a745 0%, #1e7e34 100%);
    width: 100% !important;
}

.yacht-loading-bar.yacht-progress-error .yacht-loading-progress {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
    width: 100% !important;
}

/* Response Messages Area */
.yacht-form-response-area {
    margin-top: 20px;
    display: none;
}

.yacht-response-alert {
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    animation: yachtSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yacht-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.yacht-alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.yacht-response-alert .yacht-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Animations */
@keyframes yachtSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner animation */
.yacht-fa-spin {
    animation: yachtSpin 1s linear infinite;
}

@keyframes yachtSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Disabled button state override */
button.yacht-form-submit-btn:disabled,
#submitBtn.yacht-form-submit-btn:disabled {
    cursor: not-allowed !important;
    opacity: 1 !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 56px !important;
    max-height: 56px !important;
    height: 56px !important;
    padding: 0 32px !important;
}

/* Anti-Override Protection - Prevent theme styles from affecting button */
button#submitBtn,
#submitBtn,
.yacht-form-submit-btn {
    font-family: inherit !important;
    line-height: normal !important;
    vertical-align: baseline !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    margin: 0 !important;
    /* Prevent flex/grid containers from shrinking button */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* Prevent positioning issues */
    position: relative !important;
    z-index: 1 !important;
}

/* Form input focus styling */
.yacht-form-input:focus {
    box-shadow: 0 0 0 3px rgba(181, 29, 73, 0.2);
    border-color: #b51d49;
    outline: none;
}

/* Mobile responsive adjustments - Maintain consistent sizing */
@media (max-width: 768px) {
    .yacht-response-alert {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .yacht-loading-bar {
        height: 3px;
    }
    
    .yacht-btn-text {
        font-size: 14px;
    }
    
    .yacht-btn-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .yacht-success-menu {
        padding: 16px !important;
    }
    
    .yacht-success-menu h3 {
        font-size: 18px !important;
    }
    
    .yacht-navigation-menu {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .yacht-nav-item {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* SUCCESS MENU STYLES - Interactive post-submission navigation */
/* Yacht Success Container - Replaces entire form after submission */
.yacht-success-container {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.yacht-success-container.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.yacht-success-menu {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.yacht-success-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(163, 26, 66, 0.2);
}

.yacht-success-icon {
    font-size: 64px;
    color: #A31A42 !important;
    margin-bottom: 16px;
    animation: yachtSuccessIconBounce 0.8s ease-out;
}

.yacht-success-menu h3 {
    color: #A31A42 !important;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yacht-success-subtitle {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.yacht-navigation-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 12px !important;
    margin-top: 24px;
}

/* Center navigation button if only one button is present */
.yacht-navigation-menu:has(.yacht-nav-item:first-child:last-child) {
    display: flex !important;
    justify-content: center !important;
    gap: 0 !important;
}

.yacht-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.yacht-nav-item:hover,
.yacht-nav-item:focus,
.yacht-nav-item:active,
.yacht-nav-item * {
    text-decoration: none !important;
}

.yacht-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.yacht-nav-item:hover::before {
    left: 100%;
}

.yacht-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #b51d49;
    color: #b51d49;
}

.yacht-nav-item.back-button {
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%);
    border-color: #b51d49;
    color: #ffffff;
}

.yacht-nav-item.back-button:hover {
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(181, 29, 73, 0.3);
}

.yacht-nav-item.blog-button {
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%);
    border-color: #b51d49;
    color: #ffffff;
}

.yacht-nav-item.blog-button:hover {
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(181, 29, 73, 0.3);
}

.yacht-nav-item.facebook-button {
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%);
    border-color: #b51d49;
    color: #ffffff;
}

.yacht-nav-item.facebook-button:hover {
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(181, 29, 73, 0.3);
}

.yacht-nav-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Animations for success menu */
@keyframes yachtSuccessSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes yachtSuccessIconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================================
   YACHT CARD TAG OVERLAY
   Move any tag/badge elements to top-left over the image
   without changing markup. Works with WPCode-generated cards.
   ========================================================== */

/* Ensure card and image wrappers can host absolutely positioned overlays */
.yacht-card { position: relative !important; }
.yacht-card .yacht-image,
.yacht-card .yacht-image-container { position: relative !important; z-index: 1 !important; }

.yacht-card .yacht-category,
.yacht-card .selected-yacht-tag,
.yacht-card .card-tag,
.yacht-card .badge,
.yacht-card .tag {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 5 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px; /* subtle extra padding */
    background: rgba(163, 26, 66, 0.95) !important; /* 56 North primary tone */
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* If multiple tags exist within the card, stack/wrap them nicely */
.yacht-card .tag-group,
.yacht-card .yacht-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Make sure overlays sit above image overlays but below any modal elements */
.yacht-card .yacht-overlay { z-index: 2 !important; position: relative !important; }

/* Optional: refine the category chip look if present */
.yacht-card .yacht-category { text-transform: uppercase; letter-spacing: 0.4px; }

/* Maintain usability on small screens */
@media (max-width: 600px) {
    .yacht-card .yacht-category,
    .yacht-card .selected-yacht-tag,
    .yacht-card .card-tag,
    .yacht-card .badge,
    .yacht-card .tag,
    .yacht-card .tag-group,
    .yacht-card .yacht-tags {
        top: 8px;
        left: 8px;
        gap: 6px;
    padding: 6px 10px;
        font-size: 11px;
    }
}

/* Grid heading wrapper spacing and stability */
.yacht-grid-header {
    display: flow-root; /* avoid margin-collapsing with grid */
    margin-bottom: 12px;
}

/* =============================
   Yacht card selection visuals
   ============================= */
.yacht-card { 
    position: relative; 
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.yacht-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

.yacht-card .selection-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(181, 29, 73, 0.4) !important;
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 2px solid #ffffff !important;
    font-size: 14px !important;
}

.yacht-card.selected .selection-badge {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.yacht-card.selected {
    outline: 3px solid #b51d49 !important;
    outline-offset: -3px !important;
    box-shadow: 0 8px 24px rgba(181, 29, 73, 0.25) !important;
    transform: translateY(-1px) !important;
}

.yacht-card.selected .yacht-image { 
    filter: saturate(1.1) brightness(0.95) !important; 
}

/* Hover effect for cards */
.yacht-card:not(.selected):hover {
    outline: 2px solid rgba(181, 29, 73, 0.3) !important;
    outline-offset: -2px !important;
}

.yacht-card:not(.selected):hover .selection-badge {
    opacity: 0.6 !important;
    transform: scale(0.9) !important;
    background: linear-gradient(135deg, rgba(181, 29, 73, 0.7) 0%, rgba(181, 29, 73, 0.7) 100%) !important;
}

/* =============================
   Full-screen success overlay
   ============================= */
/* (overlay removed; success replaces grid + form) */
.yacht-success-hero { display: grid; gap: 18px; }
.yacht-success-hero h3 { font-size: 28px; margin: 0; color: #b51d49; }
.yacht-success-hero p { margin: 0; color: #444; }
.yacht-success-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }

/* Blog section */
.yacht-blog-section { margin-top: 28px; text-align: left; }
.yacht-blog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.yacht-blog-title { font-size: 20px; color: #1f2330; margin: 0; }
.yacht-blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.yacht-blog-card { display: grid; grid-template-rows: 180px auto; gap: 0; background: #fff; border: 1px solid #e7e8ef; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); text-decoration: none; }
.yacht-blog-media { height: 100%; overflow: hidden; background: #f4f6fa; }
.yacht-blog-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.yacht-blog-content { padding: 12px 14px; }
.yacht-blog-card h4 { font-size: 16px; margin: 0 0 6px; color: #111; }
.yacht-blog-meta { font-size: 12px; color: #777; margin-bottom: 6px; }
.yacht-blog-excerpt { font-size: 14px; color: #444; }
.yacht-blog-read { display: inline-block; margin-top: 8px; color: #b51d49; font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
  .yacht-success-actions { grid-template-columns: 1fr; }
  .yacht-blog-list { grid-template-columns: 1fr; }
  .yacht-success-icon { font-size: 52px; }
}

/* Force full-width success layout inside page-specific grid wrappers */
.yacht-success-full {
  display: block !important;
  grid-template-columns: 1fr !important;
}

/* Try to hide common right sidebars while success is shown */
body.yacht-success-active .sidebar,
body.yacht-success-active .widget-area,
body.yacht-success-active .mcb-sidebar,
body.yacht-success-active .column-right,
body.yacht-success-active aside[class*="sidebar"],
body.yacht-success-active [class*="sidebar"] {
  display: none !important;
}

/* Center and enlarge back button with text label */
.yacht-success-actions { display:flex; align-items:center; justify-content: center; margin: 16px 0 32px; }
.yacht-success-menu .yacht-nav-item.back-button {
  width: 72px; height: 72px; border-radius: 999px;
  background: linear-gradient(135deg, #b51d49 0%, #b51d49 100%) !important;
  border: none !important; color: #fff !important;
  box-shadow: 0 10px 24px rgba(181, 29, 73, 0.22) !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  padding: 0 !important;
}
.yacht-success-menu .yacht-nav-item.back-button .yacht-nav-icon { color: #fff !important; font-size: 20px; }

/* More spacing below blog list before social icon */
.yacht-social-actions { display: flex; justify-content: center; margin-top: 28px; }
.yacht-social-button { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #e7e8ef; background: #fff; color: #4267B2; box-shadow: 0 4px 12px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.yacht-social-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.yacht-social-button i { font-size: 18px; }

/* make sure any older back-button styles are overridden above */

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Facebook under blog — centered small square */
.yacht-social-actions { display: flex; justify-content: center; margin-top: 18px; }
.yacht-social-button { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #e7e8ef; background: #fff; color: #4267B2; box-shadow: 0 4px 12px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.yacht-social-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.yacht-social-button i { font-size: 18px; }
