/* ============================================================
   CLEAN ENTRY LAYOUT (PLUGIN)
   File: render-entry.css
============================================================ */

/* ============================================================
   UNIVERSAL BLOCK SPACING (40px everywhere)
============================================================ */
.ce-block-wrapper {
    margin-bottom: 40px;
}

/* ============================================================
   OUTER WRAPPER (WHITE)
============================================================ */
.entry-gradient-bg {
    margin-top: 5px;
    padding: 30px 0;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

/* ============================================================
   INNER WRAPPER (GRADIENT)
============================================================ */
.entry-gradient-inner {
    max-width: 1250px;
    margin: 0 auto;
    width: 100%;

    background: linear-gradient(
        135deg,
        var(--connect-blue-light) 0%,
        var(--connect-blue-dark) 100%
    );
    border-radius: 14px;
    padding: 20px 0;
}

.ce-entry--community .entry-gradient-inner {
    background: linear-gradient(
        135deg,
        var(--connect-green-light) 0%,
        var(--connect-green-dark) 100%
    );
}

.ce-entry--eachother .entry-gradient-inner {
    background: linear-gradient(
        135deg,
        var(--connect-orange-light) 0%,
        var(--connect-orange-dark) 100%
    );
}

/* ============================================================
   REMOVE OLD BLOCK SPACING (now handled by ce-block-wrapper)
============================================================ */
.ce-block {
    margin-bottom: 0 !important;
}

/* ============================================================
   UNIFIED BLOCK CONTAINER (About, Contact, Gallery)
============================================================ */
.ce-block--gallery {
    background: #fff;
    border: 3px solid var(--entry-color);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    padding: 1.5rem 2rem;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}

/* ============================================================
   BLOCK HEADER (ABOUT‑STYLE — GLOBAL)
============================================================ */

.ce-block__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 20px;
    padding-top: 10px;
}

.ce-block__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--entry-color);
    flex-shrink: 0;
    padding: 0 0.5rem;
}

/* Fixed left line */
.ce-block__line-left {
    width: 40px;
    height: 2px;
    background-color: var(--entry-color);
    flex-shrink: 0;
    opacity: 0.5;
}

/* Flexible right line */
.ce-block__line-right {
    flex-grow: 1;
    height: 2px;
    background-color: var(--entry-color);
    opacity: 0.5;
}

/* ============================================================
   GALLERY MAIN IMAGE
============================================================ */
.ce-gallery-main-wrapper {
    width: 100%;
}

.ce-gallery-main {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
}

#ce-gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s;
}

/* ============================================================
   GALLERY THUMBNAILS
============================================================ */
.ce-gallery-thumbs-wrapper {
    width: 100%;
    margin-top: 0;
}

.ce-gallery-thumbs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 5px 0;
}

.ce-gallery-thumb {
    width: 100px;
    height: 70px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 4px;
}

.ce-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
    display: block;
}

.ce-gallery-thumb img:hover {
    opacity: 0.7;
}

/* CONTACT + MEMBER BENEFIT BLOCKS (same container as Gallery) */
.ce-contact-card,
.ce-contact-block,
.ce-block--member-benefit {
    background: #fff;
    border: 3px solid var(--entry-color);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    padding: 1.5rem 2rem;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   NAVBAR ENTRY-TYPE COLOUR OVERRIDE
============================================================ */
body.ce-entry--business .connect-header,
body.ce-entry--community .connect-header,
body.ce-entry--eachother .connect-header {
    background-color: var(--entry-color) !important;
}
.ce-location-map-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.ce-location-column,
.ce-map-column {
    width: 50%;
}

@media (max-width: 900px) {
    .ce-location-map-row {
        flex-direction: column;
    }
    .ce-location-column,
    .ce-map-column {
        width: 100%;
    }
}
/* ============================================================
   ENTRY PAGE — Premium Interaction Pack (Matches Grid Style)
============================================================ */

/* Shared interactive card wrapper */
.ce-entry-card,
.ce-contact-card,
.ce-block--gallery,
.ce-block--member-benefit,
.ce-contact-block {
    position: relative;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
    will-change: transform, box-shadow;
}

/* Lift + scale + shadow */
.ce-entry-card:hover,
.ce-contact-card:hover,
.ce-block--gallery:hover,
.ce-block--member-benefit:hover,
.ce-contact-block:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    border-color: color-mix(in srgb, var(--entry-color) 70%, black);
}

/* Ripple effect for entry buttons */
.ce-entry-btn,
.ce-contact-card a,
.ce-block--member-benefit a {
    position: relative;
    overflow: hidden;
}

.ce-entry-btn::after,
.ce-contact-card a::after,
.ce-block--member-benefit a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.6) 10%,
        transparent 40%
    );
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.ce-entry-btn:hover::after,
.ce-contact-card a:hover::after,
.ce-block--member-benefit a:hover::after {
    transform: scale(3);
    opacity: 1;
}

/* Optional: tilt effect */
.ce-entry-card,
.ce-contact-card,
.ce-block--gallery,
.ce-block--member-benefit,
.ce-contact-block {
    perspective: 800px;
}

.ce-entry-card:hover,
.ce-about-card:hover,
.ce-contact-card:hover,
.ce-block--gallery:hover,
.ce-block--member-benefit:hover,
.ce-contact-block:hover {
    transform-style: preserve-3d;
}
/* Make ONLY the Similar Listings header white */
.ce-block-wrapper--similar .ce-block__header .ce-block__title {
    color: #fff;
}

.ce-block-wrapper--similar .ce-block__header .ce-block__line-left,
.ce-block-wrapper--similar .ce-block__header .ce-block__line-right {
    background-color: #fff;
}
/* ============================================================
   FIXED — Hover effect for About, Metadata, Categories, Location
============================================================ */

/* Apply interactive wrapper */
.ce-section--about,
.ce-entry-meta-bar,
.ce-block--categories,
.ce-block--location {
    position: relative;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
    will-change: transform, box-shadow;
}

/* Hover effect */
.ce-section--about:hover,
.ce-entry-meta-bar:hover,
.ce-block--categories:hover,
.ce-block--location:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    border-color: color-mix(in srgb, var(--entry-color) 70%, black);
}
