/**
 * Related Listings ("More inspo"), Listing Tags, Unified Listing Template
 * Visit Ballarat style.
 */

/* Unified listing template – responsive two-column layout */
.nz-unified-listing-template {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.nz-unified-listing-top {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.nz-unified-listing-top__media {
    min-width: 0;
}
.nz-unified-listing-top__sidebar {
    background: #f4f7ef;
    border: 1px solid #d9e2cf;
    border-radius: 8px;
    padding: 1rem;
    align-self: start;
}
.nz-unified-listing-hero {
    margin-bottom: 0;
}
.nz-unified-listing-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .nz-unified-listing-top {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 1.25rem;
        align-items: start;
    }
    .nz-unified-listing-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.nz-unified-listing-main {
    min-width: 0;
}
.nz-unified-listing-header {
    margin-bottom: 1rem;
}
.nz-unified-listing-category {
    margin: 0 0 3rem 0;
    padding: 1.25rem 0 1.6rem;
    border-bottom: 1px solid #d9d9d9;
}
.nz-unified-listing-category a {
    color: inherit;
    text-decoration: none;
}
.nz-unified-listing-category a:hover {
    text-decoration: underline;
}
.nz-unified-listing-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}
.nz-unified-listing-description {
    margin-bottom: 1.5rem;
}
.nz-unified-listing-description p {
    margin: 0 0 1rem 0;
}
.nz-unified-listing-accessibility {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 6px;
}
.nz-unified-listing-accessibility h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}
.nz-unified-listing-address p,
.nz-unified-listing-price p {
    margin: 0 0 0.75rem 0;
}
.nz-unified-listing-top__sidebar .nz-unified-listing-cta {
    margin: 0.75rem 0;
}
.nz-unified-listing-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.nz-unified-listing-social-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
}
.nz-unified-listing-social-link:hover {
    background: #e0e0e0;
}

/* Related listings section – "More inspo" (standalone, above MORE TO EXPLORE) */
.nz-related-listings {
    margin: 3rem 0;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
}
.nz-related-listings-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}
/* Override title on light backgrounds */
.nz-related-listings.nz-related-listings--light .nz-related-listings-title {
    color: #1a1a1a;
}
.nz-related-listings-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 600px) {
    .nz-related-listings-grid {
        gap: 1.5rem;
    }
    .nz-related-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .nz-related-listings-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
    }
}
.nz-related-listing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s, transform 0.3s;
    background: #fff;
}
.nz-related-listing-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    transform: translateY(-4px);
}
.nz-related-listing-card:hover .nz-related-listing-title {
    color: #2b542c;
}
.nz-related-listing-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.nz-related-listing-content-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.nz-related-listing-image {
    aspect-ratio: 16/10;
    background: #e0e0e0;
    overflow: hidden;
    min-height: 140px;
}
.nz-related-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nz-related-listing-content {
    padding: 1.25rem 1.25rem;
    flex: 1;
}
.nz-related-listing-meta {
    margin: 0 0 0.5rem 0;
    color: #243a22;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1.2;
    text-align: center;
}
.nz-related-listing-pin {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50% 50% 50% 0;
    background: #2b542c;
    transform: rotate(-45deg);
    display: inline-block;
    position: relative;
    top: -1px;
}
.nz-related-listing-pin::after {
    content: "";
    position: absolute;
    width: 0.28rem;
    height: 0.28rem;
    background: #fff;
    border-radius: 50%;
    top: 0.2rem;
    left: 0.2rem;
}
.nz-related-listing-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: #2b542c;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nz-related-listing-excerpt {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #3a3a3a;
}
.nz-related-listing-location {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.4;
}
.nz-related-listing-save {
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}
/* Hide heart/save button on related listing cards. */
.nz-related-listing-card .nz-related-listing-save {
    display: none !important;
}
.nz-related-listing-save-heart {
    width: 1.4rem;
    height: 1.2rem;
}
.nz-related-listing-save-heart-path {
    fill: transparent;
    stroke: #8fbf7e;
    stroke-width: 2.2;
    transition: fill 0.2s ease, stroke 0.2s ease;
}
.nz-related-listing-save.is-active .nz-related-listing-save-heart-path,
.nz-related-listing-save.is-saved .nz-related-listing-save-heart-path {
    fill: none;
    stroke: #ffffff;
}

/* MORE INSPO – standalone section (must be FIRST in Oxygen, before MORE TO EXPLORE) */
/* Matches MORE TO EXPLORE: dark green background, white text */
.nz-more-inspo-standalone {
    width: 100%;
    margin: 0;
    padding: 1.5rem 1rem 2rem;
    background: #ffffff;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}
.nz-more-inspo-standalone::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-50vw + 50%);
    width: 100vw;
    background: #ffffff;
    z-index: -1;
}
/* Solid white space block between MORE INSPO and MORE TO EXPLORE */
.nz-more-inspo-separator {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 2rem;
    height: 8rem;
    min-height: 8rem;
    background: #ffffff;
    flex-shrink: 0;
    border: none;
}
.nz-more-inspo-standalone + * {
    margin-top: 0;
}
.nz-related-listings.nz-more-inspo-section {
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
    background: #ffffff;
    position: relative;
    z-index: 0;
}
.nz-related-listings.nz-more-inspo-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-50vw + 50%);
    width: 100vw;
    background: #ffffff;
    z-index: -1;
}

/* Remove inherited top gap from Oxygen section wrappers around related listings. */
.ct-section:has(.nz-more-inspo-standalone) .ct-section-inner-wrap,
.ct-section:has(.nz-related-listings) .ct-section-inner-wrap {
    padding-top: 0 !important;
}
.nz-more-inspo-standalone .nz-related-listings {
    margin: 0;
    padding: 0;
}
/* MORE INSPO title – matches MORE TO EXPLORE style exactly, white text */
.nz-more-inspo-standalone .nz-related-listings-title,
.nz-related-listings.nz-more-inspo-section .nz-related-listings-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-align: left;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1f1f1f !important;
    line-height: 1.2;
}
@media (max-width: 767px) {
    .nz-more-inspo-standalone .nz-related-listings .nz-related-listings-title{
        font-size: 24px !important;
    }
}
/* Keep card styling consistent with listing page cards */
.nz-more-inspo-standalone .nz-related-listing-card,
.nz-related-listings.nz-more-inspo-section .nz-related-listing-card {
    background: #fff;
}
.nz-more-inspo-standalone .nz-related-listing-content,
.nz-related-listings.nz-more-inspo-section .nz-related-listing-content {
    background: #fff;
    padding: 1.25rem 1.25rem;
}
.nz-more-inspo-standalone .nz-related-listing-title,
.nz-related-listings.nz-more-inspo-section .nz-related-listing-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2b542c !important;
    margin: 0 0 0.5rem 0;
}
.nz-more-inspo-standalone .nz-related-listing-location,
.nz-related-listings.nz-more-inspo-section .nz-related-listing-location {
    font-size: 1.0625rem;
    color: #555 !important;
}
.nz-more-inspo-standalone .nz-related-listing-card:hover .nz-related-listing-title,
.nz-related-listings.nz-more-inspo-section .nz-related-listing-card:hover .nz-related-listing-title {
    color: #1f3f20 !important;
}

/* Listing gallery slider mode – full-width horizontal scroll (Visit Ballarat style) */
/* Break out of Oxygen container so gallery spans full viewport (fixes grey letterboxing) */
/* Targets both Code Block and Shortcode elements */
.ct-code-block:has(.listing-gallery-slider),
.ct-shortcode:has(.listing-gallery-slider) {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}
/* Contained: match container width/height (same as Oxygen Gallery) – no breakout */
.ct-code-block:has(.listing-gallery-slider.listing-gallery-contained),
.ct-shortcode:has(.listing-gallery-slider.listing-gallery-contained) {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
}
/* Slider dimensions – use CSS vars to match hero/gallery size */
.listing-gallery-slider {
    --slider-aspect-ratio: 21 / 9;
    --slider-min-height: 280px;
    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--slider-min-height);
    overflow: hidden;
    position: relative;
}

.listing-gallery-slider .listing-gallery-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: var(--slider-min-height);
}

.listing-gallery-slider .listing-gallery-slider-track::-webkit-scrollbar {
    display: none;
}

.listing-gallery-slider .listing-gallery-item {
    flex: 0 0 100%;
    min-width: 100%;
    aspect-ratio: var(--slider-aspect-ratio);
    min-height: var(--slider-min-height);
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

.listing-gallery-slider .listing-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slider arrows – Visit Ballarat style */
.listing-gallery-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.listing-gallery-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}
.listing-gallery-slider-arrow:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.listing-gallery-slider-prev {
    left: 1rem;
}
.listing-gallery-slider-next {
    right: 1rem;
}

/* Listing hero image – full width, no grey sides (use [listing_hero_image] in hero) */
.nz-listing-hero-image {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    display: block;
}
/* Only style img when inside hero – prevents Lightbox from inheriting */
.nz-listing-hero-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Listing hero carousel – fixed size so small/large images all display same */
.nz-listing-carousel {
    width: 100%;
    overflow: hidden;
}
.nz-listing-carousel .carousel-inner {
    /* aspect-ratio: 16 / 9; */
    min-height: 320px;
    overflow: hidden;
}
.nz-listing-carousel .carousel-item {
    height: 100%;
    min-height: 320px;
    overflow: hidden;
}
.nz-listing-carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
}
/* Lightbox2 – prevent image shrink, allow full-size display */
.lb-image img,
.lb-outerContainer .lb-image img {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
}

/* Carousel arrows on image (left/right) – Bootstrap default positioning */
.nz-listing-carousel .carousel-control-prev,
.nz-listing-carousel .carousel-control-next {
    width: 4rem !important;
    height: 4rem !important;
    top: 50% !important;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #ffffff;
    opacity: 1;
}
.nz-listing-carousel .carousel-control-prev:hover,
.nz-listing-carousel .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}
.nz-listing-carousel .carousel-control-prev{
    left: 10px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}
.nz-listing-carousel .carousel-control-next{
    right: 10px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
/* Carousel indicators as in-image dots (reference style). */
.nz-listing-carousel .carousel-indicators {
    position: absolute;
    left: 50% !important;
    right: auto !important;
    width: auto !important;
    transform: translateX(-50%) !important;
    bottom: 2px;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 0.4rem;
    z-index: 12;
}

.nz-listing-carousel .carousel-indicators [data-bs-target] {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    padding: 0 !important;
    flex: 0 0 8px !important;
    border-radius: 50% !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    background-clip: border-box !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

.nz-listing-carousel .carousel-indicators .active {
    background: #ffffff !important;
}

/* Reference-like radius and hero height for listing detail carousel. */
body.single-listing .nz-listing-carousel .carousel-inner,
body.single-listing .nz-listing-carousel .carousel-item,
body.single-listing .nz-listing-carousel-link,
body.single-listing .nz-listing-carousel .carousel-item img {
    border-radius: 14px;
}

body.single-listing .nz-listing-carousel .carousel-inner,
body.single-listing .nz-listing-carousel .carousel-item,
body.single-listing .nz-listing-carousel-link,
body.single-listing .nz-listing-carousel .carousel-item img {
    min-height: 420px !important;
}

@media (max-width: 991px) {
    body.single-listing .nz-listing-carousel .carousel-inner,
    body.single-listing .nz-listing-carousel .carousel-item,
    body.single-listing .nz-listing-carousel-link,
    body.single-listing .nz-listing-carousel .carousel-item img {
        min-height: 280px !important;
    }
}



/* Only style img when inside carousel – prevents Lightbox from inheriting these */
.nz-listing-carousel .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Listing tags (category/location/tag buttons) – gap can be overridden in Oxygen */
.nz-listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin: 0.75rem 0;
}
/* Force line break after every 10 tags – break fills remaining space, pushing next tag to new line */
.nz-listing-tag-break {
    flex-basis: 0;
    flex-grow: 1;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.nz-listing-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.nz-listing-tag:hover {
    background: #2b542c;
    color: #fff;
}

/* Icon mapping – Font Awesome; fallback = align-justify for unmatched */
.nz-listing-tag::before {
    content: "\f039";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.4rem;
}
.nz-listing-tag-location::before { content: "\f3c5"; } /* map pin */
.nz-listing-tag[data-tag-slug="accommodation"]::before { content: "\f015"; } /* house */
.nz-listing-tag[data-tag-slug="apartments"]::before { content: "\f1ad"; } /* building */
.nz-listing-tag[data-tag-slug="food-and-beverage"]::before { content: "\f2e7"; } /* utensils */
.nz-listing-tag[data-tag-slug="activities-indoor"]::before,
.nz-listing-tag[data-tag-slug="activities_indoor"]::before { content: "\f494"; } /* warehouse */
.nz-listing-tag[data-tag-slug="activities-outdoor"]::before,
.nz-listing-tag[data-tag-slug="activities_outdoor"]::before { content: "\f1bb"; } /* tree */
.nz-listing-tag[data-tag-slug="cottages"]::before { content: "\f6ba"; } /* campfire */
.nz-listing-tag[data-tag-slug="holiday-houses"]::before { content: "\f015"; } /* house */
