/*
Theme Name:   Flatsome Child - Dick Zaal
Theme URI:    https://dickzaalyachtdesign.nl
Description:  Child theme for Dick Zaal Yacht Design
Author:       Digizaal
Template:     flatsome
Version:      1.1.0
Text Domain:  flatsome-child
*/

/* ── Header: hidden completely ────────────────────────────────────────── */

#header { display: none !important; }

/* ── Footer menu ──────────────────────────────────────────────────────── */

.absolute-footer { display: none !important; }

.footer-menu-wrap {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.footer-menu-wrap .footer-nav {
    display: inline-flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-menu-wrap .footer-nav li a {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .15s;
}

.footer-menu-wrap .footer-nav li a:hover,
.footer-menu-wrap .footer-nav li.current-menu-item a {
    color: #0e4c7b;
}

.footer-menu-wrap .footer-copy {
    margin-top: 8px;
    font-size: 11px;
    color: #bbb;
}

/* ── Yacht Design Archive ─────────────────────────────────────────────── */

/* Section nav — matches old site tab style */
.dzyd-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 16px 0 0;
    border-bottom: 2px solid #ddd;
}

.dzyd-snav-tab {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
    border-radius: 3px 3px 0 0;
    background: none;
    transition: color .15s, background .15s;
}

.dzyd-snav-tab:hover { color: #201d56; background: #f0f2f8; }

.dzyd-snav-tab.active {
    color: #201d56;
    background: #fff;
    border-color: #ddd;
    border-bottom-color: #fff;
}

.dzyd-snav-tab.empty { color: #bbb; }
.dzyd-snav-tab.empty:hover { color: #999; }

/* Section intro text */
.dzyd-section-intro {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    max-width: 780px;
    margin: 16px 0 4px;
    padding: 14px 16px;
    background: #f8f9fc;
    border-left: 3px solid #0e4c7b;
    border-radius: 0 3px 3px 0;
}

/* Keel filter row */
.dzyd-keel-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.dzyd-keel-label {
    font-size: 12px;
    color: #999;
    margin-right: 4px;
}

.dzyd-keel-tab {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    transition: all .15s;
}

.dzyd-keel-tab:hover,
.dzyd-keel-tab.active {
    background: #0e4c7b;
    border-color: #0e4c7b;
    color: #fff;
}

/* Grid: 4 columns */
.dzyd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 900px)  { .dzyd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .dzyd-grid { grid-template-columns: 1fr; } }

/* Card: image left + specs right (horizontal layout) */
.dzyd-card {
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s;
}

.dzyd-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.1); }

.dzyd-card > a {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Left: thumbnail */
.dzyd-card-img {
    flex: 0 0 90px;
    width: 90px;
    background: #f5f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dzyd-card-img img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
}

.dzyd-no-img {
    width: 90px;
    height: 90px;
    background: #eee;
    display: block;
}

/* Right: name + specs */
.dzyd-card-info {
    flex: 1;
    padding: 8px 10px;
    min-width: 0;
}

.dzyd-card-title {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dzyd-card-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1px 6px;
    margin: 0;
    font-size: 11px;
}

.dzyd-card-dl dt {
    color: #aaa;
    font-weight: normal;
    white-space: nowrap;
}

.dzyd-card-dl dd {
    margin: 0;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Pagination ───────────────────────────────────────────────────────── */

.dzyd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 32px;
}

.dzyd-pagination a,
.dzyd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}

.dzyd-pagination a:hover {
    background: #0e4c7b;
    border-color: #0e4c7b;
    color: #fff;
}

.dzyd-pagination span.current {
    background: #0e4c7b;
    border-color: #0e4c7b;
    color: #fff;
    font-weight: 700;
}

.dzyd-pagination span.dots {
    border-color: transparent;
    background: none;
}

/* ── Single Yacht Design ──────────────────────────────────────────────── */

/* Main image: full, uncropped, natural dimensions */
.dzyd-main-image {
    background: #f5f7f8;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.dzyd-main-image a { display: block; }

.dzyd-main-image img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.dzyd-no-image {
    padding: 60px 20px;
    color: #bbb;
    font-size: 14px;
    text-align: center;
}

.dzyd-specs-box {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px 24px;
}

.dzyd-specs-box h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin: 0 0 16px;
}

.dzyd-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dzyd-specs-table tr + tr td {
    border-top: 1px solid #eee;
}

.dzyd-specs-table td {
    padding: 7px 0;
    vertical-align: top;
}

.dzyd-specs-table td:first-child {
    color: #888;
    width: 48%;
    padding-right: 10px;
}

.dzyd-specs-table td:last-child {
    font-weight: 600;
    color: #201d56;
}

/* ── Gallery grid (below main image) ─────────────────────────────────── */

.dzyd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 768px) { .dzyd-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .dzyd-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.dzyd-gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 3px;
    background: #f5f7f8;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dzyd-gallery-grid img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity .2s;
}

.dzyd-gallery-grid a:hover img { opacity: .85; }

/* ── YouTube ──────────────────────────────────────────────────────────── */

.dzyd-youtube {
    margin-top: 40px;
}

.dzyd-youtube .embed-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.dzyd-youtube .embed-responsive iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ── Gallery lightbox ─────────────────────────────────────────────────── */

#dzyd-lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#dzyd-lb.dzyd-lb-open { display: flex; }

#dzyd-lb-stage {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dzyd-lb-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

#dzyd-lb-close,
#dzyd-lb-prev,
#dzyd-lb-next {
    position: fixed;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 100000;
}

#dzyd-lb-close:hover,
#dzyd-lb-prev:hover,
#dzyd-lb-next:hover { background: rgba(255,255,255,.28); }

#dzyd-lb-close { top: 18px; right: 18px; font-size: 28px; }
#dzyd-lb-prev  { left: 18px; top: 50%; transform: translateY(-50%); font-size: 32px; }
#dzyd-lb-next  { right: 18px; top: 50%; transform: translateY(-50%); font-size: 32px; }

/* ── Back link ────────────────────────────────────────────────────────── */

.dzyd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    margin-bottom: 24px;
    display: block;
}

.dzyd-back-link:hover { color: #0e4c7b; }

/* ── Section heading ─────────────────────────────────────────────────── */

.dzyd-section-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin: 40px 0 14px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}
