/* ============================================================
   D'Berg Travel Co. — page-the-islands.css
   Sprocket Design Co. — 30 April 2026 — v1.0.0

   Page-specific styles for /the-islands/ (page-id-1027).
   Recovered from the v49 Additional CSS baseline:
     - Section 12 (page hero + navy gradient overlay)
     - Section 13 (CTA buttons + contacts row)
     - Section 18 (map wrap, islands grid, island cards,
                    hover wash, gold reveal bar)
     - Section 17 (responsive breakpoints)

   All page-scoped rules wrapped in .page-id-1027 so this file
   can never bleed into any other page.

   Loaded by: functions.php → dberg_enqueue_page_specific_css()
   Version param must match the wp_enqueue_style call.
   ============================================================ */


/* ============================================================
   1. PAGE HERO — recovered from v49 Section 12
   The shortcode tags this hero with both .dberg-islands-hero
   AND .dberg-contact-hero, so both selectors are styled.
   ============================================================ */

.page-id-1027 .dberg-page-hero {
    padding: 0 80px !important;
    max-width: 860px !important;
}
.page-id-1027 .dberg-hero-eyebrow {
    display: block !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    color: #C4A35A !important;
    margin-bottom: 14px !important;
}
.page-id-1027 .dberg-hero-h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(2rem, 5vw, 3.4rem) !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.12 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero overlay — navy gradient over photo.
   Matches the gradient pattern used on FAQ, BVI, and Contact
   heroes site-wide. */
.page-id-1027 .dberg-islands-hero,
.page-id-1027 .dberg-contact-hero {
    position: relative !important;
    display: flex !important;
    align-items: flex-end !important;
}
.page-id-1027 .dberg-islands-hero > .vc_column-inner > .wpb_wrapper,
.page-id-1027 .dberg-contact-hero > .vc_column-inner > .wpb_wrapper {
    position: relative !important;
    z-index: 2 !important;
}
.page-id-1027 .dberg-islands-hero::before,
.page-id-1027 .dberg-contact-hero::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(
        to bottom,
        rgba(12,27,46,0.22) 0%,
        rgba(12,27,46,0.55) 50%,
        rgba(12,27,46,0.97) 100%
    ) !important;
    pointer-events: none !important;
}


/* ============================================================
   2. INTRO + MAP — recovered from v49 Section 18
   ============================================================ */

.page-id-1027 .dberg-bvi-intro-body .vc_column_text p,
.page-id-1027 .dberg-bvi-intro-body p {
    font-size: 1rem !important;
    color: #4b5563 !important;
    line-height: 1.85 !important;
}

.page-id-1027 .dberg-map-wrap {
    max-width: 860px !important;
    margin: 0 auto !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 36px rgba(12,27,46,0.13) !important;
}
.page-id-1027 .dberg-map-img {
    width: 100% !important;
    height: 420px !important;
    object-fit: cover !important;
    display: block !important;
}
.page-id-1027 .dberg-map-caption {
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    margin-top: 12px !important;
}


/* ============================================================
   3. ISLANDS GRID — recovered from v49 Section 18
   3-up grid of island cards with full-bleed background image,
   permanent base wash, hover wash that darkens on interaction,
   description that slides in, and a gold bar that wipes across
   the bottom on hover.
   ============================================================ */

.page-id-1027 .dberg-islands-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
}

.page-id-1027 .dberg-island-card {
    position: relative !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    height: 260px !important;
    cursor: default !important;
    background-size: cover !important;
    background-position: center !important;
}

.page-id-1027 .dberg-island-base-wash {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(
        to top,
        rgba(12,27,46,0.82) 0%,
        rgba(12,27,46,0.08) 55%
    ) !important;
}

.page-id-1027 .dberg-island-hover-wash {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    background: rgba(12,27,46,0.72) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}
.page-id-1027 .dberg-island-card:hover .dberg-island-hover-wash {
    opacity: 1 !important;
}

.page-id-1027 .dberg-island-label {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 20px 22px !important;
    z-index: 3 !important;
}

.page-id-1027 .dberg-island-name {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 !important;
    transition: margin-bottom 0.3s !important;
}
.page-id-1027 .dberg-island-card:hover .dberg-island-name {
    margin-bottom: 8px !important;
}

.page-id-1027 .dberg-island-desc {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.78rem !important;
    color: rgba(255,255,255,0.72) !important;
    line-height: 1.6 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: max-height 0.35s ease, opacity 0.35s ease !important;
    margin: 0 !important;
}
.page-id-1027 .dberg-island-card:hover .dberg-island-desc {
    max-height: 120px !important;
    opacity: 1 !important;
}

.page-id-1027 .dberg-island-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 2px !important;
    width: 0 !important;
    background: #C4A35A !important;
    z-index: 4 !important;
    transition: width 0.5s ease !important;
}
.page-id-1027 .dberg-island-card:hover .dberg-island-bar {
    width: 100% !important;
}


/* ============================================================
   4. CTA SECTION — recovered from v49 Section 13
   Navy panel with gold + outline buttons.
   ============================================================ */

.page-id-1027 .dberg-cta-body p,
.page-id-1027 .dberg-cta-body .vc_column_text p {
    font-size: 0.95rem !important;
    color: rgba(255,255,255,0.52) !important;
    max-width: 460px !important;
    margin: 0 auto 32px !important;
    line-height: 1.7 !important;
}
.page-id-1027 .dberg-cta-btns {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-bottom: 0 !important;
}
.page-id-1027 .dberg-cta-btns .dberg-cta,
.page-id-1027 .dberg-cta-btns .dberg-btn-gold,
.page-id-1027 .dberg-cta-btns .dberg-btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.page-id-1027 .dberg-cta-btns .dberg-cta,
.page-id-1027 .dberg-cta-btns .dberg-btn-gold {
    padding: 13px 26px !important;
    background: #C4A35A !important;
    color: #0C1B2E !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: opacity 0.2s !important;
}
.page-id-1027 .dberg-cta-btns .dberg-cta:hover,
.page-id-1027 .dberg-cta-btns .dberg-btn-gold:hover {
    opacity: 0.88 !important;
    color: #0C1B2E !important;
}
.page-id-1027 .dberg-cta-btns .dberg-btn-outline {
    padding: 13px 26px !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}
.page-id-1027 .dberg-cta-btns .dberg-btn-outline:hover {
    background: rgba(255,255,255,0.16) !important;
    color: #fff !important;
}


/* ============================================================
   5. RESPONSIVE — recovered from v49 Section 17
   ============================================================ */

@media (max-width: 1000px) {
    .page-id-1027 .dberg-islands-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 860px) {
    .page-id-1027 .dberg-page-hero {
        padding: 0 32px !important;
    }
    .page-id-1027 .dberg-map-img,
    .page-id-1027 .dberg-map-wrap {
        height: 320px !important;
    }
}

@media (max-width: 600px) {
    .page-id-1027 .dberg-page-hero {
        padding: 0 20px !important;
    }
    .page-id-1027 .dberg-islands-grid {
        grid-template-columns: 1fr !important;
    }
    .page-id-1027 .dberg-island-card {
        height: 240px !important;
    }
    .page-id-1027 .dberg-map-img,
    .page-id-1027 .dberg-map-wrap {
        height: 240px !important;
    }
}


/* ============================================================
   END OF FILE — page-the-islands.css v1.0.0
   ============================================================ */
