/* ============================================
   GARAGEBOX NEDERLAND — DETAIL PAGINA v2.5
   Plugin: garagebox-beheer
   Mobile-first · Colors: #01386A (navy) · #FF6310 (orange)
   Matched to overzicht.css design system
   ============================================ */

/* ── Reset & Container Overrides (same as overzicht) ── */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    background-color: #01386A !important;
}

.ct-container-full {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100% !important;
}

.entry-content.is-layout-constrained {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.entry-content.is-layout-constrained>* {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ── Footer override (same as overzicht) ── */
footer.ct-footer,
.ct-footer {
    background: #01386A !important;
    border-top: none !important;
}

.ct-footer,
.ct-footer a,
.ct-footer .ct-footer-copyright,
.ct-footer p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.ct-footer a:hover {
    color: #FF6310 !important;
}

/* ── Base ── */
.gbn-detail *,
.gbn-detail *::before,
.gbn-detail *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gbn-detail {
    font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2D3748;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   BACK BAR
   ═══════════════════════════════════════ */
.gbn-back-bar {
    background: #01386A;
    width: 100% !important;
    padding: 12px 20px;
}

.gbn-back-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.gbn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.gbn-back-link:hover {
    color: #FF6310 !important;
    text-decoration: none !important;
}

.gbn-back-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.gbn-back-link:hover svg {
    transform: translateX(-3px);
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.gbn-hero-section {
    background: #01386A;
    width: 100% !important;
    position: relative;
    overflow: hidden;
    padding: 0 20px 28px;
}

.gbn-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 99, 16, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gbn-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* Hero header — full-width above gallery+sidebar */
.gbn-hero-header {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Gallery + Sidebar container */
.gbn-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gbn-d-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #FF6310 !important;
    margin: 0 !important;
    font-family: inherit;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gbn-d-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0 0 0 !important;
    font-weight: 400;
}

.gbn-d-address svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.gbn-d-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 4px 0 0 0;
    max-width: 640px;
}

/* ═══════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════ */
.gbn-gallery {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gbn-gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #0a1f35;
}

.gbn-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gbn-gallery-slide {
    flex: 0 0 100%;
    height: 100%;
}

.gbn-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gbn-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #01386A;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gbn-gallery:hover .gbn-gallery-nav,
.gbn-gallery-viewport:focus-within .gbn-gallery-nav {
    opacity: 1;
}

.gbn-gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gbn-gallery-nav svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.gbn-gallery-prev {
    left: 14px;
}

.gbn-gallery-next {
    right: 14px;
}

/* Image counter */
.gbn-gallery-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
}

/* Thumbnail strip */
.gbn-gallery-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gbn-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gbn-gallery-thumb {
    flex: 0 0 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    background: none;
    opacity: 0.5;
}

.gbn-gallery-thumb:hover {
    opacity: 0.8;
}

.gbn-gallery-thumb.active {
    border-color: #FF6310;
    opacity: 1;
}

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

/* ═══════════════════════════════════════
   SIDEBAR CARD
   ═══════════════════════════════════════ */
.gbn-hero-sidebar {
    width: 100%;
}

.gbn-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Status badge */
.gbn-d-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    align-self: flex-start;
}

.gbn-d-badge--beschikbaar {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.gbn-d-badge--verhuurd {
    background: rgba(255, 99, 16, 0.1);
    color: #FF6310;
}

/* Verhuurd notice (replaces pricing when rented) */
.gbn-d-verhuurd-notice {
    padding: 16px 0;
}

.gbn-d-verhuurd-notice p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4A5568;
    margin: 0 0 8px 0;
}

.gbn-d-verhuurd-notice p:first-child {
    font-weight: 600;
    color: #01386A;
    margin-bottom: 6px;
}

.gbn-d-verhuurd-notice p:last-child {
    margin-bottom: 0;
}

/* Pricing */
.gbn-d-pricing h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #01386A;
    margin: 0 0 8px 0;
    font-family: inherit;
}

.gbn-d-pricing h3 span {
    font-weight: 400;
    font-size: 0.82em;
    color: #718096;
}

.gbn-d-price-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gbn-d-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #EDF2F7;
}

.gbn-d-price-row:last-child {
    border-bottom: none;
}

.gbn-d-price-label {
    font-size: 0.92rem;
    color: #4A5568;
}

.gbn-d-price-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #01386A;
}

/* Admin costs note */
.gbn-d-admin-note {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.5;
    padding: 8px 12px;
    background: #F7FAFC;
    border-radius: 8px;
    border-left: 3px solid #FF6310;
    margin: 0;
}

/* Quick specs */
.gbn-d-quick-specs {
    display: flex;
    gap: 12px;
}

.gbn-d-quick-spec {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #F7FAFC;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #01386A;
}

.gbn-d-quick-spec svg {
    width: 18px;
    height: 18px;
    fill: #FF6310;
    flex-shrink: 0;
}

/* Button */
.gbn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FF6310;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.gbn-btn:hover {
    background: #e55a0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 99, 16, 0.3);
    color: #fff !important;
    text-decoration: none !important;
}

.gbn-btn--full {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* ═══════════════════════════════════════
   GENERIC SECTION STYLES
   ═══════════════════════════════════════ */
.gbn-section {
    width: 100% !important;
    position: relative;
}

.gbn-section--white {
    background: #fff;
}

.gbn-section--light {
    background: #F5F7FA;
}

.gbn-section--navy {
    background: #01386A;
}

.gbn-section--dark {
    background: #01386A;
}

.gbn-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px;
}

.gbn-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #01386A;
    margin: 0 0 20px 0 !important;
    text-align: center;
    font-family: inherit;
    letter-spacing: -0.02em;
}

.gbn-section-title--accent {
    color: #FF6310 !important;
}

.gbn-section-title--white {
    color: #fff !important;
    text-align: left;
}

.gbn-section-title svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    vertical-align: -4px;
    margin-right: 8px;
}

.gbn-section-text {
    font-size: 1.05rem;
    color: #4A5568;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.gbn-section-text--centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
}

.gbn-section-text--white {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    max-width: none;
}

/* ═══════════════════════════════════════
   DE BOX — Side-by-side on desktop
   ═══════════════════════════════════════ */
.gbn-box-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gbn-box-image {
    text-align: center;
}

.gbn-box-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.gbn-box-highlights {
    flex: 1;
}

.gbn-box-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.gbn-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #F7FAFC;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid #EDF2F7;
}

.gbn-feature-card:hover {
    background: #EDF2F7;
    border-color: #E2E8F0;
    transform: translateX(4px);
}

.gbn-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 99, 16, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.gbn-feature-icon svg {
    width: 18px;
    height: 18px;
    fill: #FF6310;
}

.gbn-feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2D3748;
}

/* ═══════════════════════════════════════
   HET COMPLEX — Image Grid
   ═══════════════════════════════════════ */
.gbn-complex-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.gbn-complex-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #0a1f35;
}

.gbn-complex-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gbn-complex-item:hover img {
    transform: scale(1.08);
}

.gbn-complex-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 16px;
    background: linear-gradient(0deg, rgba(1, 56, 106, 0.85) 0%, rgba(1, 56, 106, 0.2) 50%, transparent 100%);
}

.gbn-complex-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   BEREIKBAARHEID — Clean white section
   ═══════════════════════════════════════ */
.gbn-section--bereikbaar .gbn-section-title svg {
    fill: #FF6310;
}

.gbn-location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gbn-location-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(1, 56, 106, 0.10);
}

.gbn-location-card img {
    width: 100%;
    height: auto;
    display: block;
}

.gbn-location-map {
    min-height: 280px;
}

.gbn-location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: none;
    display: block;
}

.gbn-location-address-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 24px;
    color: #4A5568;
    font-size: 1rem;
    font-weight: 500;
}

.gbn-location-address-bar svg {
    width: 18px;
    height: 18px;
    fill: #FF6310;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   CONTACT — Form wrap
   ═══════════════════════════════════════ */
.gbn-contact-inner {
    text-align: center;
}

.gbn-contact-header {
    max-width: 600px;
    margin: 0 auto 32px;
}

.gbn-contact-header .gbn-section-title--white {
    text-align: center;
}

.gbn-contact-header .gbn-section-text--white {
    text-align: center;
}

.gbn-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    text-align: left;
}

/* WPForms overrides inside the form wrap */
.gbn-form-wrap div.wpforms-container-full {
    margin: 0 !important;
}

.gbn-form-wrap .wpforms-field-label {
    font-weight: 600 !important;
    color: #2D3748 !important;
    font-size: 0.9rem !important;
}

.gbn-form-wrap input[type=text],
.gbn-form-wrap input[type=email],
.gbn-form-wrap input[type=tel],
.gbn-form-wrap textarea {
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    padding: 12px 16px !important;
    background: #F7FAFC !important;
    color: #2D3748 !important;
    width: 100% !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    font-size: 0.95rem !important;
}

.gbn-form-wrap input:focus,
.gbn-form-wrap textarea:focus {
    border-color: #FF6310 !important;
    box-shadow: 0 0 0 3px rgba(255, 99, 16, 0.1) !important;
    outline: none !important;
}

.gbn-form-wrap button[type=submit] {
    background: #FF6310 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    width: 100% !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.gbn-form-wrap button[type=submit]:hover {
    background: #e55a0e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(255, 99, 16, 0.3) !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (768px+)
   ═══════════════════════════════════════ */
@media (min-width: 768px) {
    .gbn-back-bar {
        padding: 14px 32px;
    }

    .gbn-hero-section {
        padding: 0 32px 32px;
    }

    .gbn-hero-header {
        padding-top: 24px;
    }

    .gbn-hero-content {
        flex-direction: row;
        align-items: flex-start;
        gap: clamp(20px, 2vw, 32px);
    }

    .gbn-gallery {
        flex: 1;
        min-width: 0;
    }

    .gbn-d-title {
        font-size: 1.8rem;
    }

    .gbn-hero-sidebar {
        flex: 0 0 clamp(300px, 28vw, 380px);
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }

    /* Thumbnail strip */
    .gbn-gallery-thumb {
        flex: 0 0 72px;
        height: 52px;
    }

    /* Sections */
    .gbn-section-inner {
        padding: 64px 32px;
    }

    .gbn-section-title {
        font-size: 2rem;
    }

    /* De Box side-by-side */
    .gbn-box-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .gbn-box-image {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .gbn-box-features {
        grid-template-columns: 1fr;
    }

    /* Complex grid */
    .gbn-complex-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gbn-complex-item {
        aspect-ratio: 4 / 3;
    }

    /* Bereikbaarheid grid */
    .gbn-location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .gbn-location-map {
        min-height: 100%;
    }

    .gbn-location-map iframe {
        min-height: 300px;
        height: 100%;
    }

    /* Form */
    .gbn-form-wrap {
        padding: 40px 36px;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Desktop (1024px+)
   ═══════════════════════════════════════ */
@media (min-width: 1024px) {
    .gbn-back-bar {
        padding: 14px 40px;
    }

    .gbn-hero-section {
        padding: 0 40px 36px;
    }

    .gbn-hero-header {
        padding-top: 28px;
    }

    .gbn-d-title {
        font-size: 2rem;
    }

    .gbn-d-address {
        font-size: 1.1rem;
    }

    .gbn-d-description {
        font-size: 1.05rem;
    }

    .gbn-sidebar-card {
        padding: 24px 22px;
    }

    .gbn-section-inner {
        padding: 72px 40px;
    }

    .gbn-section-title {
        font-size: 2.2rem;
    }

    .gbn-section-text {
        font-size: 1.1rem;
    }

    /* Complex grid 3 cols */
    .gbn-complex-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }

    .gbn-complex-overlay span {
        font-size: 1.2rem;
    }

    /* Bereikbaarheid */
    .gbn-location-map iframe {
        min-height: 350px;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Large Desktop (1280px+)
   ═══════════════════════════════════════ */
@media (min-width: 1280px) {
    .gbn-gallery-thumb {
        flex: 0 0 80px;
        height: 56px;
    }
}
