/**
 * JBD Override Grid Styles
 * Lightweight replacement for JBD's ~500KB CSS bundle.
 * Uses Bootstrap 5 grid (already loaded by Joomla) + custom card styles.
 */

/* ── Variables ── */
:root {
    --jbd-primary: #c9a84c;
    --jbd-primary-light: #d4b95f;
    --jbd-primary-dark: #b08f3a;
    --jbd-card-bg: #fff;
    --jbd-card-border: #e5e7eb;
    --jbd-card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --jbd-card-shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --jbd-text: #1f2937;
    --jbd-text-muted: #6b7280;
    --jbd-badge-bg: #f3f4f6;
    --jbd-radius: 12px;
    --jbd-transition: 0.3s ease;
}

/* ── Filter Bar ── */
.jbd-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--jbd-card-border);
}

.jbd-filter-bar label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--jbd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.jbd-filter-bar select,
.jbd-filter-bar input[type="number"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--jbd-card-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--jbd-text);
    background: #fff;
    min-width: 120px;
    transition: border-color var(--jbd-transition);
}

.jbd-filter-bar select:focus,
.jbd-filter-bar input:focus {
    outline: none;
    border-color: var(--jbd-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.jbd-filter-count {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--jbd-text-muted);
}

.jbd-filter-reset {
    background: none;
    border: none;
    color: var(--jbd-primary);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background var(--jbd-transition);
}

.jbd-filter-reset:hover {
    background: rgba(201, 168, 76, 0.1);
}

/* ── Card Grid ── */
.jbd-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .jbd-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .jbd-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Yacht / Tour Card ── */
.jbd-card {
    background: var(--jbd-card-bg);
    border-radius: var(--jbd-radius);
    overflow: hidden;
    box-shadow: var(--jbd-card-shadow);
    transition: transform var(--jbd-transition), box-shadow var(--jbd-transition);
    position: relative;
}

.jbd-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jbd-card-shadow-hover);
}

.jbd-card[data-hidden="true"] {
    display: none;
}

.jbd-card a {
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.jbd-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
}

.jbd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jbd-card:hover .jbd-card-img img {
    transform: scale(1.05);
}

/* Price Badge */
.jbd-price-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.3;
    text-align: right;
}

.jbd-price-badge .price-label {
    display: block;
    font-size: 0.6875rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jbd-price-badge .price-value {
    font-weight: 700;
    font-size: 1rem;
}

/* Bookmark Heart */
.jbd-bookmark {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--jbd-transition), background var(--jbd-transition);
    z-index: 2;
    padding: 0;
}

.jbd-bookmark:hover {
    transform: scale(1.1);
    background: #fff;
}

.jbd-bookmark svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transition: color var(--jbd-transition);
}

.jbd-bookmark.active svg {
    color: #ef4444;
    fill: #ef4444;
}

/* Card Body */
.jbd-card-body {
    padding: 1rem 1.125rem;
}

.jbd-card-body h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--jbd-text);
    margin: 0 0 0.375rem;
    line-height: 1.3;
}

.jbd-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--jbd-text-muted);
}

.jbd-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.jbd-card-badge {
    display: inline-block;
    background: var(--jbd-badge-bg);
    color: var(--jbd-text-muted);
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Yacht Detail ── */
.jbd-detail-header {
    margin-bottom: 2rem;
}

.jbd-detail-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--jbd-text);
    margin: 0 0 0.5rem;
}

.jbd-detail-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--jbd-text-muted);
    margin-top: 0.5rem;
}

.jbd-detail-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Gallery */
.jbd-gallery-main {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--jbd-radius);
    cursor: pointer;
}

.jbd-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.jbd-gallery-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--jbd-transition);
    padding: 0;
    background: none;
}

.jbd-gallery-thumb.active,
.jbd-gallery-thumb:hover {
    border-color: var(--jbd-primary);
}

.jbd-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jbd-gallery-more {
    position: relative;
    background: rgba(0,0,0,0.5);
}
.jbd-gallery-more span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

/* Buttons */
.jbd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--jbd-primary);
    color: #fff;
}
.jbd-btn:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}
.jbd-btn-outline {
    background: transparent;
    color: var(--jbd-text);
    border: 2px solid var(--jbd-card-border);
}
.jbd-btn-outline:hover {
    border-color: var(--jbd-primary);
    color: var(--jbd-primary);
}

/* Trip List */
.jbd-trip-list {
    margin-top: 1.5rem;
}

.jbd-trip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--jbd-card-border);
    gap: 1rem;
}

.jbd-trip-row:last-child {
    border-bottom: none;
}

.jbd-trip-info {
    flex: 1;
    min-width: 0;
}

.jbd-trip-name {
    font-weight: 600;
    color: var(--jbd-text);
    font-size: 0.9375rem;
}

.jbd-trip-meta {
    font-size: 0.8125rem;
    color: var(--jbd-text-muted);
    margin-top: 0.125rem;
}

.jbd-trip-price {
    text-align: right;
    white-space: nowrap;
}

.jbd-trip-price .price-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--jbd-text);
}

.jbd-trip-price .price-label {
    font-size: 0.75rem;
    color: var(--jbd-text-muted);
}

/* ── Section Headings ── */
.jbd-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jbd-primary);
    margin-bottom: 0.25rem;
}

.jbd-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jbd-text);
    margin-bottom: 1.5rem;
}

/* ── Pagination ── */
.jbd-pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.jbd-pagination a,
.jbd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jbd-text);
    background: #fff;
    border: 1px solid var(--jbd-card-border);
    text-decoration: none;
    transition: all var(--jbd-transition);
}

.jbd-pagination a:hover {
    border-color: var(--jbd-primary);
    color: var(--jbd-primary);
}

.jbd-pagination .active {
    background: var(--jbd-primary);
    border-color: var(--jbd-primary);
    color: #fff;
}

.jbd-pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Bookmarks Badge ── */
.jbd-bookmarks-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--jbd-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0 4px;
    margin-left: 4px;
}

.jbd-bookmarks-count:empty,
.jbd-bookmarks-count[data-count="0"] {
    display: none;
}

/* ── Empty State ── */
.jbd-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--jbd-text-muted);
}

.jbd-empty svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.4;
}

.jbd-empty h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--jbd-text);
    margin-bottom: 0.5rem;
}

/* ── Breadcrumb override ── */
.jbd-breadcrumb {
    font-size: 0.875rem;
    color: var(--jbd-text-muted);
    margin-bottom: 1.5rem;
}

.jbd-breadcrumb a {
    color: var(--jbd-primary);
    text-decoration: none;
}

.jbd-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── No-JS fallback: show all cards ── */
.jbd-card { display: block; }

/* ══════════════════════════════════════
   Yacht Detail Page (.yd-*)
   ══════════════════════════════════════ */

.yd-page { padding: 2rem 0 3rem; }

/* ── Hero / Title ── */
.yd-hero { margin-bottom: 2rem; }
.yd-back { font-size: 0.875rem; color: var(--jbd-primary); text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.yd-back:hover { text-decoration: underline; }
.yd-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--jbd-text); margin: 0 0 0.375rem; line-height: 1.2; }
.yd-subtitle { font-size: 1.1rem; color: var(--jbd-text-muted); margin: 0 0 0.75rem; font-weight: 500; }
.yd-hero-desc { font-size: 0.95rem; color: #4b5563; line-height: 1.7; max-width: 760px; }

/* ── Specs Bar ── */
.yd-specs-bar {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    padding: 1.25rem 1.5rem; margin-bottom: 2rem;
    background: #f8fafc; border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.yd-spec {
    display: flex; align-items: center; gap: 0.625rem;
    min-width: 120px;
}
.yd-spec svg { width: 28px; height: 28px; color: var(--jbd-primary); flex-shrink: 0; }
.yd-spec strong { display: block; font-size: 0.95rem; color: var(--jbd-text); line-height: 1.3; }
.yd-spec span { display: block; font-size: 0.75rem; color: var(--jbd-text-muted); }

/* ── Gallery ── */
.yd-gallery { margin-bottom: 2.5rem; }
.yd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}
.yd-gallery-item {
    aspect-ratio: 4/3; overflow: hidden; border-radius: 8px;
    display: block; background: #f3f4f6;
}
.yd-gallery-item:first-child {
    grid-column: span 3; grid-row: span 2;
    border-radius: 12px;
}
.yd-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.yd-gallery-item:hover img { transform: scale(1.05); }

/* ── Sections ── */
.yd-section { margin-bottom: 2.5rem; }
.yd-section-label {
    font-size: 1.25rem; font-weight: 700; color: var(--jbd-text);
    margin-bottom: 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--jbd-primary);
    display: inline-block;
}
.yd-section-sub { font-size: 0.875rem; color: var(--jbd-text-muted); margin-bottom: 1.25rem; }
.yd-description { font-size: 0.95rem; color: #374151; line-height: 1.8; }
.yd-description p { margin-bottom: 1rem; }

/* ── Pricing Tables ── */
.yd-price-section { margin-bottom: 1.75rem; }
.yd-price-section h3 {
    font-size: 1.05rem; font-weight: 600; color: var(--jbd-text);
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.yd-price-dur {
    font-size: 0.75rem; font-weight: 500;
    color: var(--jbd-primary); background: rgba(201,168,76,0.1);
    padding: 2px 10px; border-radius: 9999px;
}
.yd-price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yd-price-table {
    width: 100%; border-collapse: collapse; font-size: 0.875rem;
    min-width: 600px;
}
.yd-price-table thead th {
    text-align: left; padding: 0.625rem 0.75rem;
    font-weight: 600; font-size: 0.8125rem;
    color: var(--jbd-text-muted); border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase; letter-spacing: 0.03em;
    white-space: nowrap;
}
.yd-price-table thead th span {
    display: block; font-size: 0.6875rem; font-weight: 400;
    text-transform: none; letter-spacing: 0; color: #9ca3af;
}
.yd-price-table tbody td {
    padding: 0.75rem; border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.yd-price-table tbody tr:last-child td { border-bottom: none; }
.yd-price-table tbody tr:hover { background: #fafbfc; }

.yd-dest-cell strong { display: block; font-weight: 600; color: var(--jbd-text); }
.yd-hours {
    font-size: 0.75rem; color: var(--jbd-text-muted);
    background: #f3f4f6; padding: 1px 6px; border-radius: 4px;
    display: inline-block; margin-top: 2px;
}

.yd-price-cell strong { display: block; font-weight: 700; color: var(--jbd-text); }
.yd-price-cell span { display: block; font-size: 0.75rem; color: var(--jbd-text-muted); }
.yd-price-cell.yd-current { background: rgba(201,168,76,0.06); }
.yd-price-cell.yd-current strong { color: var(--jbd-primary-dark); }
.yd-na { color: #d1d5db; }

.yd-pax-cell { white-space: nowrap; font-weight: 500; }
.yd-pax-cell span { display: block; font-size: 0.75rem; color: var(--jbd-text-muted); font-weight: 400; }

.yd-note { font-size: 0.8125rem; color: var(--jbd-text-muted); margin-top: 0.75rem; font-style: italic; }

/* ── Inclusions ── */
.yd-inclusions {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.yd-incl-group h4 {
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--jbd-primary);
    margin-bottom: 0.5rem;
}
.yd-incl-group ul { list-style: none; padding: 0; margin: 0; }
.yd-incl-group li {
    padding: 0.25rem 0 0.25rem 1.25rem; font-size: 0.875rem;
    color: #374151; position: relative;
}
.yd-incl-group li::before {
    content: '✓'; position: absolute; left: 0;
    color: #22c55e; font-weight: 700;
}
.yd-not-included li::before { content: '✗'; color: #ef4444; }

/* ── Testimonial ── */
.yd-testimonial {
    background: #f8fafc; border-left: 4px solid var(--jbd-primary);
    border-radius: 0 12px 12px 0; padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.yd-testimonial p { font-size: 1.05rem; font-style: italic; color: #374151; line-height: 1.7; margin: 0; }
.yd-testimonial cite { display: block; margin-top: 0.75rem; font-size: 0.875rem; color: var(--jbd-text-muted); font-style: normal; }

/* ── Cancellation ── */
.yd-cancel-text { font-size: 0.875rem; color: #4b5563; line-height: 1.7; }
.yd-cancel-text p { margin-bottom: 0.75rem; }

/* ── CTA Block ── */
.yd-cta {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    border-radius: 16px; padding: 2.5rem; text-align: center;
    margin-bottom: 2.5rem;
}
.yd-cta h2 { color: #fff; font-size: 1.5rem; margin: 0 0 0.5rem; }
.yd-cta p { color: #bae6fd; font-size: 0.95rem; margin: 0 0 1.5rem; }
.yd-cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.yd-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: 9999px;
    font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.3s ease;
}
.yd-btn-primary { background: var(--jbd-primary); color: #fff; box-shadow: 0 4px 12px rgba(201,168,76,0.3); }
.yd-btn-primary:hover { background: var(--jbd-primary-dark); transform: translateY(-2px); color: #fff; }
.yd-btn-wa { background: #25d366; color: #fff; }
.yd-btn-wa:hover { background: #20bd5a; transform: translateY(-2px); color: #fff; }
.yd-btn-wa svg { width: 20px; height: 20px; }
.yd-btn-outline {
    background: transparent; color: var(--jbd-text);
    border: 2px solid var(--jbd-card-border);
}
.yd-btn-outline:hover { border-color: var(--jbd-primary); color: var(--jbd-primary); }

/* ── Detail Responsive ── */
@media (max-width: 768px) {
    .yd-page { padding: 1.25rem 0 2rem; }
    .yd-hero { margin-bottom: 1.25rem; }
    .yd-hero h1 { font-size: 1.5rem; }
    .yd-subtitle { font-size: .95rem; }
    .yd-hero-desc { font-size: .875rem; line-height: 1.6; }
    .yd-back { font-size: .8125rem; margin-bottom: .75rem; }

    /* Specs: 2-col grid */
    .yd-specs-bar { gap: .75rem; padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; }
    .yd-spec { min-width: 0; }
    .yd-spec svg { width: 22px; height: 22px; }
    .yd-spec strong { font-size: .875rem; }

    /* Gallery: 2 cols, hero image full width */
    .yd-gallery { margin-bottom: 1.5rem; }
    .yd-gallery-grid { grid-template-columns: 1fr 1fr; gap: .375rem; }
    .yd-gallery-item:first-child { grid-column: span 2; grid-row: span 1; border-radius: 10px; }
    .yd-gallery-item { border-radius: 6px; }

    /* Sections */
    .yd-section { margin-bottom: 1.75rem; }
    .yd-section-label { font-size: 1.1rem; }
    .yd-description { font-size: .875rem; line-height: 1.7; }

    /* Pricing: card layout instead of table */
    .yd-price-table { min-width: 0; }
    .yd-price-table thead { display: none; }
    .yd-price-table tbody tr {
        display: block; padding: .875rem; margin-bottom: .75rem;
        background: #f9fafb; border-radius: 10px;
        border: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
    }
    .yd-price-table tbody tr:hover { background: #f9fafb; }
    .yd-price-table tbody td {
        display: block; padding: .25rem 0; border-bottom: none;
        text-align: left;
    }
    .yd-dest-cell { margin-bottom: .375rem; }
    .yd-dest-cell strong { font-size: .95rem; }
    .yd-price-cell { display: flex !important; justify-content: space-between; align-items: baseline; gap: .5rem; }
    .yd-price-cell::before {
        font-size: .75rem; color: var(--jbd-text-muted); font-weight: 500;
        min-width: 70px; flex-shrink: 0;
    }
    .yd-price-cell:nth-of-type(2)::before { content: 'Low:'; }
    .yd-price-cell:nth-of-type(3)::before { content: 'Regular:'; }
    .yd-price-cell:nth-of-type(4)::before { content: 'Peak:'; }
    .yd-price-cell strong { font-size: .9rem; }
    .yd-price-cell span { font-size: .7rem; }
    .yd-price-cell.yd-current { background: rgba(201,168,76,0.08); border-radius: 6px; padding: .25rem .5rem !important; }
    .yd-pax-cell { padding-top: .375rem !important; border-top: 1px solid #e5e7eb; margin-top: .25rem; font-size: .8125rem; }
    .yd-pax-cell::before { content: 'Guests: '; font-weight: 400; color: var(--jbd-text-muted); }

    /* Inclusions */
    .yd-inclusions { grid-template-columns: 1fr; gap: 1rem; }
    .yd-incl-group li { font-size: .8125rem; }

    /* Testimonial */
    .yd-testimonial { padding: 1rem 1.125rem; margin-bottom: 1.75rem; }
    .yd-testimonial p { font-size: .925rem; }

    /* CTA */
    .yd-cta { padding: 1.5rem 1rem; border-radius: 12px; margin-bottom: 1.75rem; }
    .yd-cta h2 { font-size: 1.25rem; }
    .yd-cta p { font-size: .875rem; }
    .yd-cta-buttons { flex-direction: column; align-items: center; }
    .yd-btn { width: 100%; max-width: 280px; justify-content: center; padding: .875rem 1.5rem; min-height: 48px; }
    .yd-btn-wa svg { width: 20px; height: 20px; }
}

@media (max-width: 380px) {
    .yd-hero h1 { font-size: 1.35rem; }
    .yd-specs-bar { grid-template-columns: 1fr; gap: .625rem; }
    .yd-gallery-grid { gap: .25rem; }
}

/* ═══════════════════════════════════════ */
/* ── Cost Calculator ──                  */
/* ═══════════════════════════════════════ */
.calc {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
    margin: 3rem 0 2rem;
    border: 1px solid #e2e8f0;
}
.calc-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    padding: 2rem 2rem 1.75rem;
    text-align: center;
}
.calc-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .375rem;
}
.calc-header p {
    color: #bae6fd;
    font-size: .9rem;
    margin: 0;
}
.calc-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
}
.calc-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.calc-field {
    display: flex;
    flex-direction: column;
    gap: .375rem;
}
.calc-field > label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: .3px;
}
.calc-field > label svg {
    width: 16px;
    height: 16px;
    color: #0ea5e9;
    flex-shrink: 0;
}
.calc-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: .8rem;
}
.calc-select, .calc-input {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}
.calc-select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 1rem center; padding-right: 2.5rem; }
.calc-select:focus, .calc-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.calc-row {
    display: flex;
    gap: 1rem;
}
.calc-half { flex: 1; }
input[type=number].calc-input {
    -moz-appearance: textfield;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}
input[type=number].calc-input::-webkit-inner-spin-button,
input[type=number].calc-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 32px;
}

/* Pax stepper */
.calc-pax-wrap {
    display: flex;
    gap: 1.5rem;
}
.calc-stepper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .625rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.calc-stepper-label {
    font-size: .85rem;
    font-weight: 500;
    color: #475569;
}
.calc-stepper-label .calc-hint { display: block; margin-top: 1px; }
.calc-stepper-ctrl {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.calc-step-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}
.calc-step-btn:hover:not(:disabled) {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}
.calc-step-btn:disabled {
    opacity: .25;
    cursor: not-allowed;
}
.calc-step-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    min-width: 28px;
    text-align: center;
}
.calc-pax-counter {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    margin-top: .5rem;
    flex-wrap: wrap;
}
.calc-pax-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}
.calc-pax-fill {
    height: 100%;
    background: #0ea5e9;
    border-radius: 3px;
    transition: width .3s ease, background .3s;
}
.calc-pax-fill.calc-pax-full {
    background: #f59e0b;
}

/* Season badge */
.calc-season-badge {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    width: fit-content;
    letter-spacing: .3px;
    margin-top: 2px;
}
.calc-season-low  { background: #ecfdf5; color: #059669; }
.calc-season-reg  { background: #eff6ff; color: #2563eb; }
.calc-season-peak { background: #fef3c7; color: #d97706; }

/* Included transport badge */
.calc-included-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 500;
    color: #059669;
    background: #ecfdf5;
    padding: .625rem 1rem;
    border-radius: 10px;
    border: 1px solid #d1fae5;
}
.calc-included-badge svg { width: 16px; height: 16px; }

/* Checkbox list */
.calc-checks {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.calc-check {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .625rem 1rem;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    font-size: .88rem;
    color: #334155;
}
.calc-check:hover { border-color: #bae6fd; background: #f0f9ff; }
.calc-check input { display: none; }
.calc-check-box {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: all .2s;
}
.calc-check input:checked ~ .calc-check-box {
    background: #0ea5e9;
    border-color: #0ea5e9;
}
.calc-check input:checked ~ .calc-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.calc-check em {
    margin-left: auto;
    font-style: normal;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    font-size: .82rem;
}

/* ── Summary Panel ── */
.calc-summary {
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 2rem;
    position: relative;
}
.calc-summary-inner {
    position: sticky;
    top: 100px;
}
.calc-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #e2e8f0;
}
.calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.25rem;
}
.calc-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: .85rem;
    color: #475569;
    gap: .5rem;
}
.calc-line span:first-child {
    flex: 1;
    min-width: 0;
}
.calc-line span:last-child {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}
.calc-line-sub {
    font-size: .78rem;
    color: #94a3b8;
    padding-left: .5rem;
}
.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid #0ea5e9;
    margin-bottom: .25rem;
}
.calc-total span:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.calc-total span:last-child {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0284c7;
}
.calc-total-note {
    font-size: .75rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    text-align: right;
}

/* Buttons */
.calc-actions {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}
.calc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all .25s;
    min-height: 48px;
}
.calc-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.calc-btn-wa {
    background: #25d366;
    color: #fff;
}
.calc-btn-wa:not(:disabled):hover {
    background: #20bd5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,211,102,.3);
}
.calc-btn-copy {
    background: #fff;
    color: #334155;
    border: 2px solid #e2e8f0;
}
.calc-btn-copy:not(:disabled):hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    background: #f0f9ff;
}
.calc-copied {
    text-align: center;
    font-size: .82rem;
    color: #059669;
    font-weight: 500;
    margin-top: .5rem;
    padding: .375rem;
    background: #ecfdf5;
    border-radius: 6px;
}

/* ── Calculator Responsive ── */
@media (max-width: 900px) {
    .calc-body {
        grid-template-columns: 1fr;
    }
    .calc-summary {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}
@media (max-width: 768px) {
    .calc { margin: 2rem 0 1.5rem; border-radius: 14px; }
    .calc-header { padding: 1.5rem 1.25rem 1.25rem; }
    .calc-header h2 { font-size: 1.25rem; }
    .calc-form { padding: 1.25rem; gap: 1rem; }
    .calc-summary { padding: 1.25rem; }
    .calc-row { flex-direction: row; gap: .75rem; }
    .calc-check { padding: .5rem .75rem; font-size: .82rem; }
    .calc-total span:last-child { font-size: 1.25rem; }
    .calc-pax-wrap { gap: .75rem; }
    .calc-stepper { padding: .5rem .75rem; }
    .calc-step-btn { width: 32px; height: 32px; font-size: 1rem; }
    .calc-step-val { font-size: 1.1rem; min-width: 24px; }
}
@media (max-width: 380px) {
    .calc-form { padding: 1rem; }
    .calc-summary { padding: 1rem; }
    .calc-select, .calc-input { padding: .625rem .75rem; font-size: .85rem; }
}
