/* ==========================================================================
   Yacht Booking - Core Admin & Global Styles
   ========================================================================== */

:root {
    --yacht-primary: #000C29;
    --yacht-primary-dark: #00091d;
    --yacht-primary-light: rgba(0, 12, 41, 0.08);
    --yacht-accent: #0ea5e9;
    --yacht-accent-light: rgba(14, 165, 233, 0.1);
    --yacht-gold: #c79e5e;
    --yacht-gold-hover: #b38b4f;
    --yacht-navy: #000C29;
    --yacht-navy-hover: #00091d;
    --yacht-navy-active: #0a0f18;
    --yacht-font-family: inherit;
    --yacht-font: var(--yacht-font-family);

    /* Semantic Palette */
    --yacht-white: #ffffff;
    --yacht-black: #000000;
    --yacht-success: #22c55e;
    --yacht-success-light: #dcfce7;
    --yacht-success-dark: #166534;
    --yacht-danger: #ef4444;
    --yacht-danger-light: #fee2e2;
    --yacht-danger-dark: #991b1b;
    --yacht-danger-active: #b91c1c;
    --yacht-warning: #f59e0b;
    --yacht-warning-light: #fef3c7;
    --yacht-warning-dark: #854d0e;
    --yacht-info: #0ea5e9;
    --yacht-info-light: #e0f2fe;
    --yacht-info-dark: #1e40af;
    --yacht-star: #ffb100;
    --yacht-star-alpha: rgba(255, 177, 0, 0.3);

    /* Decorative Palette for Dashboard Gradients */
    --yacht-violet: #7c3aed;
    --yacht-violet-light: #a78bfa;
    --yacht-amber: #d97706;
    --yacht-amber-light: #fbbf24;
    --yacht-teal: #0d9488;
    --yacht-teal-light: #2dd4bf;
    --yacht-rose: #e11d48;
    --yacht-rose-light: #fb7185;
    --yacht-blue: #2563eb;
    --yacht-blue-light: #60a5fa;
    --yacht-emerald: #059669;
    --yacht-emerald-light: #34d399;
    --yacht-green: #16a34a;
    --yacht-green-light: #4ade80;

    /* Typography Scale (Major Third - 1.25 ratio) */
    --yacht-font-xs: 0.75rem;
    /* 12px */
    --yacht-font-sm: 0.875rem;
    /* 14px */
    --yacht-font-base: 1rem;
    /* 16px */
    --yacht-font-lg: 1.125rem;
    /* 18px */
    --yacht-font-xl: 1.25rem;
    /* 20px */
    --yacht-font-2xl: 1.5rem;
    /* 24px */
    --yacht-font-3xl: 1.875rem;
    /* 30px */
    --yacht-font-4xl: 2.25rem;
    /* 36px */
    --yacht-font-5xl: 3rem;
    /* 48px */
    --yacht-font-tiny: 0.6875rem;
    /* 11px */

    /* Font Weights */
    --yacht-weight-normal: 400;
    --yacht-weight-medium: 500;
    --yacht-weight-semibold: 600;
    --yacht-weight-bold: 700;

    /* Line Heights */
    --yacht-leading-tight: 1.2;
    --yacht-leading-normal: 1.5;
    --yacht-leading-relaxed: 1.75;

    /* Neutral scale */
    --yacht-bg: #f4f6f9;
    --yacht-bg-dark: #0d1217;
    --yacht-surface: #ffffff;
    --yacht-surface-soft: #f8fafc;
    --yacht-border: #e8ecf1;
    --yacht-border-light: #f1f5f9;
    --yacht-border-strong: #cbd5e1;
    --yacht-text: #0f172a;
    --yacht-text-muted: #64748b;
    --yacht-text-light: #94a3b8;

    /* Spacing & Radius */

    /* Shadows */
    --yacht-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --yacht-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --yacht-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --yacht-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --yacht-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Layout Constants */
    --yacht-sidebar-w: 260px;
    --yacht-topbar-h: 72px;

    /* Form Constants */
    --yacht-input-h: 46px;
    --yacht-input-h-sm: 38px;
}

/* 100% Sharp-Edged Global Reset */
* {
}

/* ── Typography Tokens (Global) ────────────────────────────────────────── */
.yacht-h1 {
    font-size: var(--yacht-font-3xl);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text);
    line-height: var(--yacht-leading-tight);
}

.yacht-h2 {
    font-size: var(--yacht-font-xl);
    font-weight: var(--yacht-weight-semibold);
    color: var(--yacht-text);
    line-height: var(--yacht-leading-tight);
}

.yacht-h3 {
    font-size: var(--yacht-font-lg);
    font-weight: var(--yacht-weight-semibold);
    color: var(--yacht-text);
    line-height: var(--yacht-leading-normal);
}

.yacht-h4 {
    font-size: var(--yacht-font-base);
    font-weight: var(--yacht-weight-semibold);
    color: var(--yacht-text);
}

.yacht-p {
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-normal);
    color: var(--yacht-text-muted);
    line-height: var(--yacht-leading-relaxed);
}

/* ── Global UI Components (Shared across Admin & Frontend) ────────────── */

.yacht-label {
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-semibold);
    color: var(--yacht-text);
    display: block;
    margin-bottom: 8px;
    /* Safe gap between label and input */
    font-family: var(--yacht-font-family, inherit);
}

.yacht-field-group {
    margin-bottom: 24px;
    width: 100%;
}

.yacht-meta {
    font-size: var(--yacht-font-xs);
    font-weight: var(--yacht-weight-normal);
    color: var(--yacht-text-muted);
    line-height: 1.4;
}

.yacht-muted-text {
    font-size: var(--yacht-font-sm);
    color: var(--yacht-text-muted);
    line-height: var(--yacht-leading-normal);
}

.yacht-card__side-title {
    font-size: var(--yacht-font-tiny);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.yacht-form-group--inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: flex-end;
}

/* Higher specificity to override WP defaults without !important */
.yacht-app .yacht-input,
.yacht-plugin-canvas .yacht-input {
    display: block;
    width: 100%;
    height: var(--yacht-input-h);
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid var(--yacht-border);
    font-size: var(--yacht-font-sm);
    font-family: inherit;
    color: var(--yacht-text);
    background: var(--yacht-surface-soft);
    outline: none;
    transition: var(--yacht-transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
    -webkit-appearance: none;
    appearance: none;
    line-height: normal;
}

/* Specific styling for select/dropdown */
.yacht-app select.yacht-input,
.yacht-plugin-canvas select.yacht-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    line-height: normal;
}

.yacht-app textarea.yacht-input,
.yacht-plugin-canvas textarea.yacht-input {
    resize: none;
    min-height: 120px;
    height: auto;
    padding: 12px 16px;
    line-height: var(--yacht-leading-relaxed);
}

.yacht-app .yacht-input--sm,
.yacht-plugin-canvas .yacht-input--sm {
    height: var(--yacht-input-h-sm);
    padding: 0 12px;
    font-size: var(--yacht-font-xs);
    line-height: var(--yacht-input-h-sm);
}

/* ── WhatsApp Booking Modal (Global Overlay) ─────────────────────────── */
#yacht-wa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 38, 60, 0.85);
    backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#yacht-wa-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

#yacht-wa-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.98);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    background: var(--yacht-surface);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#yacht-wa-modal.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.yacht-wa-modal__form-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.yacht-wa-modal__header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--yacht-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafb;
    flex-shrink: 0;
}

.yacht-wa-modal__body {
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* Gap between major sections */
}

.yacht-wa-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Gap between fields/grids within a section */
}

.yacht-wa-modal__footer {
    padding: 20px 32px;
    border-top: 1px solid var(--yacht-border-light);
    background: #fafafb;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.yacht-wa-modal__title {
    font-size: 20px;
    font-weight: 600;
    color: #11263c;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.yacht-wa-modal__subtitle {
    font-size: 13px;
    color: #5a6674;
    margin: 0;
    line-height: 1.5;
}

.yacht-wa-modal__close {
    background: transparent;
    border: none;
    color: var(--yacht-text-light);
    cursor: pointer;
    font-size: 24px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.yacht-wa-modal__close:hover {
    color: var(--yacht-text-strong);
    background: rgba(0, 0, 0, 0.05);
}

.yacht-wa-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--yacht-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    /* Reduced margin */
    padding-left: 12px;
    border-left: 3px solid #c79e5e;
}

.yacht-wa-guests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.yacht-wa-radio-box {
    position: relative;
    cursor: pointer;
    display: block;
}

.yacht-wa-radio-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.yacht-wa-radio-box span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--yacht-border-strong);
    font-size: 14px;
    font-weight: 500;
    color: #11263c;
    background: var(--yacht-surface);
    transition: all 0.2s ease;
}

.yacht-wa-radio-box input:checked~span {
    border-color: #11263c;
    background: #f8f9fa;
    box-shadow: inset 0 0 0 1px #11263c;
}

.yacht-wa-radio-box input:focus~span {
    outline: 2px solid rgba(17, 38, 60, 0.2);
    outline-offset: 2px;
}

.yacht-wa-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #c79e5e 0%, #b38b4f 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(199, 158, 94, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.yacht-wa-modal__submit:hover {
    background: linear-gradient(135deg, #b38b4f 0%, #9e7a41 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(199, 158, 94, 0.3);
}

/* Robust Flex Gap System: Zero out margins inside modal */
#yacht-wa-modal .yacht-wa-section-title,
#yacht-wa-modal .yacht-field-group,
#yacht-wa-modal .yacht-form-grid-2,
#yacht-wa-modal .yacht-label {
    margin-bottom: 0 !important;
}

#yacht-wa-modal .yacht-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Gap between label and input */
}

.yacht-input:focus {
    border-color: var(--yacht-primary);
    background: var(--yacht-surface);
    box-shadow: 0 0 0 4px var(--yacht-primary-light);
}

.yacht-app .yacht-btn,
.yacht-plugin-canvas .yacht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    font-weight: var(--yacht-weight-semibold);
    font-size: var(--yacht-font-sm);
    transition: var(--yacht-transition);
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none !important;
    line-height: normal;
    height: var(--yacht-input-h);
    box-sizing: border-box;
    white-space: nowrap;
    outline: none !important;
    user-select: none;
    width: fit-content !important;
    max-width: 100%;
    flex-shrink: 0;
}

.yacht-btn--sm {
    height: var(--yacht-input-h-sm);
    padding: 0 16px;
    font-size: var(--yacht-font-xs);
}

.yacht-btn .material-symbols-outlined {
    font-size: 20px;
    display: block;
    line-height: 1;
}

/* Primary Button */
.yacht-btn-primary {
    background: var(--yacht-primary) !important;
    color: var(--yacht-white) !important;
    border-color: var(--yacht-primary) !important;
}

.yacht-btn-primary:hover,
.yacht-btn-primary:focus {
    background: var(--yacht-primary-dark) !important;
    border-color: var(--yacht-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--yacht-shadow-sm);
}

.yacht-btn-primary:active {
    background: var(--yacht-navy) !important;
    border-color: var(--yacht-navy) !important;
    transform: translateY(0);
}

/* Secondary Button - Enhanced Borders */
.yacht-btn-secondary {
    background: var(--yacht-white) !important;
    color: var(--yacht-text) !important;
    border: 1.5px solid var(--yacht-border-strong) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.yacht-btn-secondary:hover,
.yacht-btn-secondary:focus {
    background: var(--yacht-surface-soft) !important;
    color: var(--yacht-primary) !important;
    border-color: var(--yacht-primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--yacht-shadow-sm);
}

.yacht-btn-secondary:active {
    background: var(--yacht-border-light) !important;
    border-color: var(--yacht-primary) !important;
    color: var(--yacht-primary) !important;
    transform: translateY(0);
}

/* Danger Button */
.yacht-btn-danger {
    background: var(--yacht-danger) !important;
    color: var(--yacht-white) !important;
    border-color: var(--yacht-danger) !important;
}

.yacht-btn-danger:hover,
.yacht-btn-danger:focus {
    background: var(--yacht-danger-dark) !important;
    border-color: var(--yacht-danger-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.yacht-btn-danger:active {
    background: var(--yacht-danger-active) !important;
    border-color: var(--yacht-danger-active) !important;
    transform: translateY(0);
}

.yacht-btn-outline-danger {
    background: transparent !important;
    color: var(--yacht-danger) !important;
    border: 1.5px solid var(--yacht-danger-light) !important;
}

.yacht-btn-outline-danger:hover,
.yacht-btn-outline-danger:focus {
    background: var(--yacht-danger-light) !important;
    border-color: var(--yacht-danger) !important;
}

/* Button Utilities */
.yacht-btn--full {
    width: 100% !important;
    display: flex !important;
}

.yacht-btn--center {
    justify-content: center !important;
}

/* Action Buttons (Table/In-line icon buttons) */
.yacht-table__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--yacht-white) !important;
    border: 1.5px solid var(--yacht-border-strong) !important;
    color: var(--yacht-text-muted) !important;
    transition: var(--yacht-transition);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.yacht-table__action-btn .material-symbols-outlined {
    font-size: 18px;
}

.yacht-table__action-btn:hover,
.yacht-table__action-btn:focus {
    background: var(--yacht-primary-light) !important;
    color: var(--yacht-primary) !important;
    border-color: var(--yacht-primary) !important;
    transform: translateY(-1px);
}

.yacht-table__action-btn:active {
    transform: translateY(0);
}

.yacht-table__action-btn--danger:hover,
.yacht-table__action-btn--danger:focus {
    background: var(--yacht-danger-light) !important;
    color: var(--yacht-danger) !important;
    border-color: var(--yacht-danger) !important;
}

.yacht-table__action-btn--success:hover,
.yacht-table__action-btn--success:focus {
    background: var(--yacht-success-light) !important;
    color: var(--yacht-success) !important;
    border-color: var(--yacht-success) !important;
}

/* Premium Border Utility */
.yacht-card-dotted {
    background: var(--yacht-surface);
    border: 2px dotted var(--yacht-border-strong);
    padding: 32px;
    transition: var(--yacht-transition);
}

.yacht-card-dotted:hover {
    border-color: var(--yacht-primary-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
}

/* ── Dashboard Components ────────────────────────────────────────────── */

/* Metric/Stat Cards (Vibrant/Premium) */
.yacht-stat-card {
    position: relative;
    padding: 24px;
    color: var(--yacht-white) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 140px;
    box-shadow: var(--yacht-shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none !important;
}

.yacht-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yacht-shadow-lg);
}

.yacht-stat-card--teal {
    background: linear-gradient(135deg, var(--yacht-teal-light), var(--yacht-teal)) !important;
}

.yacht-stat-card--blue {
    background: linear-gradient(135deg, var(--yacht-blue-light), var(--yacht-blue)) !important;
}

.yacht-stat-card--violet {
    background: linear-gradient(135deg, var(--yacht-violet-light), var(--yacht-violet)) !important;
}

.yacht-stat-card--rose {
    background: linear-gradient(135deg, var(--yacht-rose-light), var(--yacht-rose)) !important;
}

.yacht-stat-card--amber {
    background: linear-gradient(135deg, var(--yacht-amber-light), var(--yacht-amber)) !important;
}

.yacht-stat-card__blob {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.yacht-stat-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.yacht-stat-card__icon-wrap {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.yacht-stat-card__icon-wrap .material-symbols-outlined {
    font-size: 20px;
    color: var(--yacht-white);
    font-variation-settings: 'FILL' 1;
}

.yacht-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}

.yacht-stat-card__value {
    font-size: var(--yacht-font-3xl);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-white);
    line-height: 1.1;
    display: block;
}

.yacht-stat-card__label {
    font-size: var(--yacht-font-xs);
    font-weight: var(--yacht-weight-semibold);
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin: 0;
}

/* Quick Actions */
.yacht-quick-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px !important;
    background: var(--yacht-surface);
    border: 1.5px solid var(--yacht-border-light);
    text-decoration: none !important;
    transition: var(--yacht-transition);
}

.yacht-quick-action:hover {
    border-color: var(--yacht-primary);
    transform: translateX(4px);
    box-shadow: var(--yacht-shadow-sm);
}

.yacht-quick-action__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yacht-quick-action__icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--yacht-white);
}

.yacht-quick-action__icon--teal {
    background: linear-gradient(135deg, var(--yacht-teal), var(--yacht-teal-light));
}

.yacht-quick-action__icon--blue {
    background: linear-gradient(135deg, var(--yacht-blue), var(--yacht-blue-light));
}

.yacht-quick-action__icon--rose {
    background: linear-gradient(135deg, var(--yacht-rose), var(--yacht-rose-light));
}

.yacht-quick-action__icon--amber {
    background: linear-gradient(135deg, var(--yacht-amber), var(--yacht-amber-light));
}

.yacht-quick-action__icon--violet {
    background: linear-gradient(135deg, var(--yacht-violet), var(--yacht-violet-light));
}

.yacht-quick-action__title {
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text);
    margin: 0;
    line-height: 1.2;
}

.yacht-quick-action__text {
    font-size: var(--yacht-font-xs);
    color: var(--yacht-text-muted);
    margin-top: 2px;
}

.yacht-quick-action__arrow {
    margin-left: auto;
    color: var(--yacht-text-light);
    font-size: 20px !important;
}

.yacht-quick-action:hover .yacht-quick-action__arrow {
    color: var(--yacht-primary);
}

/* Status Badges */
.yacht-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    font-size: var(--yacht-font-tiny);
    font-weight: var(--yacht-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.yacht-status-badge__dot {
    width: 6px;
    height: 6px;
}

.yacht-status-badge--new {
    background: var(--yacht-info-light);
    color: var(--yacht-info-dark);
}

.yacht-status-badge--new .yacht-status-badge__dot {
    background: var(--yacht-info);
}

.yacht-status-badge--success {
    background: var(--yacht-success-light);
    color: var(--yacht-success-dark);
}

.yacht-status-badge--success .yacht-status-badge__dot {
    background: var(--yacht-success);
}

/* ── Meta Boxes (Admin Side) ───────────────────────────────────────────── */
.yacht-meta-container .meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.yacht-meta-container .meta-field {
    flex: 1;
}

.yacht-meta-container label,
.yacht-repeater-section label,
.yacht-location-container label,
.yacht-media-container label,
.yacht-team-container label {
    display: block;
    font-weight: var(--yacht-weight-semibold);
    margin-bottom: 5px;
    color: var(--yacht-primary);
}

.yacht-meta-container input,
.yacht-meta-container select,
.yacht-repeater-section textarea,
.yacht-repeater-section input,
.yacht-location-container input,
.yacht-media-container input,
.yacht-team-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--yacht-border);
    font-family: inherit;
    color: var(--yacht-text);
}

/* Legacy size-input replaced by .yacht-input--sm and .yacht-form-grid */

.yacht-repeater-section {
    padding: 15px 0;
}

.repeater-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.repeater-table th,
.repeater-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--yacht-border-light);
}

.icon-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-input-wrap .material-symbols-outlined {
    font-size: 24px;
    color: var(--yacht-primary);
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.gallery-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid var(--yacht-border);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery-item {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--yacht-danger);
    color: var(--yacht-white);
    cursor: pointer;
    padding: 2px;
}

.flex-input {
    display: flex;
    gap: 10px;
}

hr {
    border: 0;
    border-top: 1px solid var(--yacht-border-light);
    margin: 20px 0;
}

/* ── Input Groups (Prefix/Suffix) ───────────────────────────────────────── */
.yacht-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.yacht-input-group__prefix {
    position: absolute;
    left: 16px;
    font-size: var(--yacht-font-xs);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text-muted);
    pointer-events: none;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.yacht-app .yacht-input--prefixed,
.yacht-plugin-canvas .yacht-input--prefixed {
    padding-left: 52px !important;
    /* Extra space for the prefix */
}

/* Ensure focus state doesn't hide prefix */
.yacht-input--prefixed:focus {
    background: var(--yacht-white);
}

/* ── Spacing & Layout Utilities ────────────────────────────────────────── */
.yacht-u-p-12 {
    padding: 12px !important;
}

.yacht-u-p-16 {
    padding: 16px !important;
}

.yacht-u-p-20 {
    padding: 20px !important;
}

.yacht-u-p-24 {
    padding: 24px !important;
}

.yacht-u-p-32 {
    padding: 32px !important;
}

.yacht-u-mt-4 {
    margin-top: 4px !important;
}

.yacht-u-mt-8 {
    margin-top: 8px !important;
}

.yacht-u-mt-12 {
    margin-top: 12px !important;
}

.yacht-u-mt-16 {
    margin-top: 16px !important;
}

.yacht-u-mt-24 {
    margin-top: 24px !important;
}

.yacht-u-mt-32 {
    margin-top: 32px !important;
}

.yacht-u-mb-8 {
    margin-bottom: 8px !important;
}

.yacht-u-mb-12 {
    margin-bottom: 12px !important;
}

.yacht-u-mb-16 {
    margin-bottom: 16px !important;
}

.yacht-u-mb-24 {
    margin-bottom: 24px !important;
}

.yacht-u-mb-32 {
    margin-bottom: 32px !important;
}

.yacht-u-flex {
    display: flex !important;
}

.yacht-u-flex-1 {
    flex: 1 !important;
}

.yacht-u-flex-column {
    flex-direction: column !important;
}

.yacht-u-flex-center {
    align-items: center !important;
}

.yacht-u-flex-between {
    justify-content: space-between !important;
}

.yacht-u-gap-8 {
    gap: 8px !important;
}

.yacht-u-gap-12 {
    gap: 12px !important;
}

.yacht-u-gap-16 {
    gap: 16px !important;
}

.yacht-u-gap-24 {
    gap: 24px !important;
}

.yacht-u-mt-auto {
    margin-top: auto !important;
}

.yacht-u-w-full {
    width: 100% !important;
}

.yacht-u-text-center {
    text-align: center !important;
}

.yacht-u-text-right {
    text-align: right !important;
}

.yacht-u-font-bold {
    font-weight: var(--yacht-weight-bold) !important;
}

.yacht-u-opacity-10 {
    opacity: 0.1 !important;
}

.yacht-u-opacity-20 {
    opacity: 0.2 !important;
}

.yacht-u-opacity-70 {
    opacity: 0.7 !important;
}

.yacht-u-grid-span-2 {
    grid-column: span 2 !important;
}

/* Response Grid Utilities */
.yacht-u-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
}

.yacht-u-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.yacht-u-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    .yacht-u-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 900px) {

    .yacht-u-grid-3,
    .yacht-u-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .yacht-u-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Dashboard Chart Container */
.yacht-chart-container {
    height: 160px;
    position: relative;
    margin-top: 12px;
}

/* Desktop Grid for Detail Views (70/30 split) */
@media (min-width: 992px) {
    .yacht-grid-detail {
        display: grid !important;
        grid-template-columns: 1fr 340px !important;
        gap: 24px !important;
    }
}

/* --------------------------------------------------------------------------
   Bespoke Support Card
   -------------------------------------------------------------------------- */
.yacht-support-card {
    background: var(--yacht-primary);
    box-shadow: var(--yacht-shadow-lg);
    overflow: hidden;
    color: var(--yacht-white);
}

.yacht-support-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yacht-support-card__icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yacht-support-card__icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--yacht-white);
}

.yacht-support-card__title {
    font-size: var(--yacht-font-lg) !important;
    font-weight: var(--yacht-weight-bold);
    margin: 0 0 2px 0 !important;
    color: var(--yacht-white);
    line-height: 1.2 !important;
}

.yacht-support-card__subtitle {
    font-size: var(--yacht-font-sm) !important;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 !important;
    line-height: 1.4 !important;
}

.yacht-support-card__body {
    padding: 24px !important;
}

.yacht-support-card__body p {
    font-size: var(--yacht-font-sm) !important;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px 0 !important;
    line-height: 1.5 !important;
}

.yacht-support-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--yacht-white);
    color: var(--yacht-primary);
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-medium);
    text-decoration: none;
    transition: var(--yacht-transition);
}

.yacht-support-card__btn .material-symbols-outlined {
    font-size: 18px;
}

.yacht-support-card__btn:hover {
    background: var(--yacht-border-light);
    transform: translateY(-1px);
}

.yacht-support-card__btn:focus,
.yacht-support-card__btn:active {
    outline: none;
    transform: translateY(0);
}


.yacht-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
    /* Fix for rows touching in modals */
}

@media (max-width: 600px) {
    .yacht-form-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


.yacht-promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 12, 41, 0.85);
    backdrop-filter: blur(12px);
    z-index: 999998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.yacht-promo-overlay.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.yacht-promo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 900px;
    background: var(--yacht-primary);
    color: var(--yacht-white);
    z-index: 999999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: var(--yacht-shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.yacht-promo-popup.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.yacht-promo-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0;
    color: var(--yacht-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--yacht-transition);
}

.yacht-promo-popup__close:hover {
    background: var(--yacht-white);
    color: var(--yacht-primary);
    transform: rotate(90deg);
}

.yacht-promo-popup__content {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
}

@media screen and (min-width: 769px) {
    .yacht-promo-popup__content {
        grid-template-columns: 1fr 1fr;
        min-height: 500px;
        align-items: stretch;
    }
}

.yacht-promo-popup__image {
    width: 100%;
    height: 100%;
    background: var(--yacht-black);
    position: relative;
    overflow: hidden;
}

.yacht-promo-popup__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.85);
}

.yacht-promo-popup__body {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--yacht-primary);
    position: relative;
    height: 100%;
    gap: 32px;
}

.yacht-promo-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

.yacht-promo-popup__title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    color: var(--yacht-white);
}

.yacht-promo-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.yacht-promo-timer__item {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

.yacht-promo-timer__val {
    display: block;
    font-size: var(--yacht-font-xl);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-white);
}

.yacht-promo-timer__label {
    display: block;
    font-size: var(--yacht-font-tiny);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.yacht-promo-cta {
    background: var(--yacht-white) !important;
    color: var(--yacht-primary) !important;
    font-weight: var(--yacht-weight-bold) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 18px 24px;
    transition: var(--yacht-transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: auto;
}

.yacht-promo-cta:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--yacht-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 480px) {
    .yacht-promo-popup {
        width: 85% !important;
    }
    .yacht-promo-popup__body {
        padding: 20px;
    }
    .yacht-promo-popup__title {
        font-size: var(--yacht-font-xl);
    }
}