/* OUTER WRAPPER: vertical stack (track + arrows + dots) */
.nb-gd-featured-carousel {
    position: relative;
    margin: 0; /* remove top/bottom spacing */
    padding: 0;
    border: none !important;
    outline: none !important;
}

.nb-gd-carousel-track-wrapper {
    overflow: hidden;
    margin: 0 48px; /* left/right only for arrow spacing */
    padding: 0; 
}

/* Horizontal track */
.nb-gd-carousel-track {
    display: flex;
    gap: 1.5rem;      /* JS reads this gap */
    scroll-behavior: smooth;
}

/* Each card: panel is just the picture */
/* Each card: just a transparent container for the image panel */
.nb-gd-card {
    position: relative;
    flex: 0 0 70%;          /* or 60–75% to taste */
    max-width: 70%;
    min-width: 70%;

    background: transparent !important;
    color: #fff;

    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 0;          /* kill line-height gaps */
    overflow: visible;        /* let the rounded image show fully */
}

/* Kill any theme spacing inside the card */
.nb-gd-card > * {
    margin: 0 !important;
    padding: 0 !important;
}

/* Make the link wrap the image perfectly */
.nb-gd-card-image-link {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Image wrapper – 21:9 with rounded corners */
.nb-gd-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #000;
    margin: 0;
    padding: 0;
    border-radius: 10px;      /* 🔴 rounded corners now on the image panel */
}

.nb-gd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover zoom */
.nb-gd-card:hover .nb-gd-card-image img {
    transform: scale(1.05);
}


/* Overlay container at bottom of image */
.nb-gd-card-address {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 0.7rem 1rem 1rem;
    display: block;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.6),
        transparent
    );

    color: #fff;
    pointer-events: none;
    line-height: 1; /* base */
}

/* Base span styling: no extra padding, but keep truncation */
.nb-gd-card-address span {
    display: block;
    margin: 0; /* no !important so we can control mb on title */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Title on first line */
.nb-gd-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.1;
    padding-left: 16px;
    margin-bottom: -10px !important; /* small, controlled gap above address */
}

/* Address on second line */
.nb-gd-card-address-line {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.1;
    padding-left: 16px;
}




/* Arrows: circular buttons centered vertically over the slider */
.nb-gd-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* center the circle itself */

    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #39a751;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    line-height: 0;            /* 🔴 this is the key for centering the glyph */
    cursor: pointer;

    transition: background 0.2s ease,
                transform 0.2s ease,
                border-color 0.2s ease;
    z-index: 5;
}

.nb-gd-carousel-prev {
    left: 8px;
}

.nb-gd-carousel-next {
    right: 8px;
}

.nb-gd-carousel-arrow:hover {
    background: #39a751;
    border-color: #39a751;
    transform: translateY(-50%) scale(1.05);
}


/* Dots wrapper: centered under the track */
.nb-gd-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 6px;
}

/* Dot style */
.nb-gd-carousel-dot {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Active dot */
.nb-gd-carousel-dot.active {
    background: #39a751;
    transform: scale(1.2);
}

/* Hover effect */
.nb-gd-carousel-dot:hover {
    background: #5ed179;
}

/* Mobile: narrower card */
@media (max-width: 767px) {
    .nb-gd-card {
        min-width: 80vw;
        max-width: 80vw;
    }
}


.wp-block-group:has(.nb-gd-featured-carousel) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


.nb-gd-card > * {
    margin: 0 !important;
    padding: 0 !important;
}