:root {
    --dsc-ink: #161a24;
    --dsc-muted: #667085;
    --dsc-line: #e3e7ee;
    --dsc-accent: #e83e24;
    --dsc-gold: #f8d959;
}

.dsc-template-wrap,
.dsc-centres,
.dsc-centre-page,
.dsc-archive__content {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.elementor-widget-directorist-shopping-centres .dsc-centres,
.dsc-archive .dsc-archive__content {
    width: 100%;
}

.dsc-template-wrap {
    padding: 40px 0 72px;
}

.dsc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dsc-section-header h2,
.dsc-title-banner h1,
.dsc-centre-hero h2,
.dsc-deals__header h2,
.dsc-store-group h3 {
    margin: 0;
    color: var(--dsc-ink);
    font-weight: 800;
}

.dsc-section-header h2 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.dsc-section-actions {
    display: flex;
    gap: 8px;
}

.dsc-slider-arrow {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #d4dae5;
    border-radius: 50%;
    background: #fff;
    color: var(--dsc-ink);
    cursor: pointer;
    font-size: 20px;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.dsc-slider-arrow:hover,
.dsc-slider-arrow:focus-visible {
    border-color: var(--dsc-accent);
    background: var(--dsc-accent);
    color: #fff;
    outline: 0;
}

.dsc-slider-arrow:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.dsc-centres__viewport {
    overflow: hidden;
    scroll-behavior: smooth;
}

.dsc-centres__viewport:focus-visible {
    outline: 3px solid rgba(232, 62, 36, .28);
    outline-offset: 4px;
}

.dsc-centres__track {
    display: flex;
    gap: 18px;
    transition: transform .34s ease;
    will-change: transform;
}

.dsc-centres__track > .dsc-centre-card {
    flex: 0 0 calc((100% - 36px) / 3);
}

.dsc-view-all {
    margin: 22px 0 0;
    text-align: right;
}

.dsc-view-all a,
.dsc-directions {
    color: var(--dsc-accent);
    font-weight: 800;
    text-decoration: none;
}

.dsc-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dsc-centre-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--dsc-line);
    border-radius: 12px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dsc-centre-card:hover,
.dsc-centre-card:focus-within {
    transform: translateY(-2px);
    border-color: #cbd3df;
    box-shadow: 0 14px 34px rgba(20, 24, 36, .09);
}

.dsc-centre-card__link,
.dsc-deal-row {
    color: inherit;
    text-decoration: none;
}

.dsc-centre-card__link {
    display: block;
}

.dsc-centre-card__image,
.dsc-centre-hero__image {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2f6, #fff8db 58%, #ffe1d8);
}

.dsc-centre-card__image img,
.dsc-centre-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dsc-centre-card__image--fallback span {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    background: var(--dsc-gold);
    color: var(--dsc-ink);
    font-weight: 900;
    letter-spacing: .08em;
}

.dsc-centre-card__body {
    display: flex;
    min-height: 122px;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
}

.dsc-centre-card__name {
    color: var(--dsc-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.dsc-centre-card__count,
.dsc-centre-card__address {
    margin-top: 7px;
    color: var(--dsc-muted);
    font-size: 14px;
}

.dsc-centre-card__address {
    font-size: 13px;
}

.dsc-title-banner {
    display: grid;
    min-height: 210px;
    place-items: center;
    margin-bottom: 38px;
    padding: 36px 20px;
    background: var(--dsc-gold);
    text-align: center;
}

.dsc-title-banner p {
    margin: 0 0 8px;
    color: #914012;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dsc-title-banner h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1;
}

.dsc-archive__content {
    padding-bottom: 72px;
}

.dsc-centre-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto 32px;
}

.dsc-centre-search input[type="search"] {
    min-width: 0;
    min-height: 50px;
    flex: 1 1 auto;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #cfd5df;
    border-radius: 10px;
    background: #fff;
    color: var(--dsc-ink);
    font: inherit;
}

.dsc-centre-search input[type="search"]:focus {
    border-color: var(--dsc-accent);
    box-shadow: 0 0 0 3px rgba(232, 62, 36, .14);
    outline: 0;
}

.dsc-centre-search button {
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid var(--dsc-accent);
    border-radius: 10px;
    background: var(--dsc-accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.dsc-centre-search a {
    color: var(--dsc-accent);
    font-weight: 700;
    text-decoration: none;
}

.dsc-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.dsc-pagination .page-numbers {
    display: grid;
    min-width: 40px;
    min-height: 40px;
    place-items: center;
    border: 1px solid var(--dsc-line);
    border-radius: 8px;
    color: var(--dsc-ink);
    text-decoration: none;
}

.dsc-pagination .current {
    border-color: var(--dsc-accent);
    background: var(--dsc-accent);
    color: #fff;
}

.dsc-centre-title {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.dsc-centre-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--dsc-line);
    border-radius: 12px;
    background: #fff;
}

.dsc-centre-hero__content {
    padding: clamp(26px, 4vw, 48px);
}

.dsc-centre-hero h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.dsc-centre-hero__content p {
    color: #5e6678;
    line-height: 1.65;
}

.dsc-centre-address {
    margin-bottom: 4px;
    color: var(--dsc-ink) !important;
    font-weight: 700;
}

.dsc-deals {
    overflow: hidden;
    border: 1px solid var(--dsc-line);
    border-radius: 12px;
    background: #fff;
}

.dsc-deals__header,
.dsc-store-group > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dsc-deals__header {
    padding: 24px;
    border-bottom: 1px solid #eef1f5;
}

.dsc-deals__header h2 {
    font-size: 24px;
}

.dsc-deals__header span,
.dsc-store-group > header span {
    color: var(--dsc-muted);
    font-size: 14px;
    white-space: nowrap;
}

.dsc-store-group > header {
    padding: 18px 24px;
    background: #f8fafc;
}

.dsc-store-group h3 {
    font-size: 20px;
}

.dsc-deal-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    border-bottom: 1px solid #eef1f5;
}

.dsc-deal-row:hover,
.dsc-deal-row:focus-visible {
    background: #fffdf5;
}

.dsc-deal-row__image {
    overflow: hidden;
    width: 88px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: #edf1f5;
}

.dsc-deal-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dsc-deal-row__content,
.dsc-deal-row__store,
.dsc-deal-row__offer,
.dsc-deal-row__centre,
.dsc-deal-row__action {
    display: block;
    min-width: 0;
}

.dsc-deal-row__store {
    color: var(--dsc-ink);
    font-size: 18px;
    font-weight: 800;
}

.dsc-deal-row__offer {
    margin-top: 4px;
    color: #4f5a6d;
}

.dsc-deal-row__centre {
    margin-top: 5px;
    color: #8a94a6;
    font-size: 13px;
}

.dsc-deal-row__action {
    padding: 9px 13px;
    border: 1px solid #d7dde8;
    border-radius: 8px;
    color: var(--dsc-ink);
    font-size: 14px;
    font-weight: 800;
}

.dsc-empty {
    padding: 24px;
    border: 1px solid var(--dsc-line);
    border-radius: 8px;
    background: #fff;
    color: var(--dsc-muted);
}

/* The migrated Elementor image carousel is the only homepage banner editor. */
.iso-homepage-banner-section,
.iso-homepage-banner-section .elementor-container,
.iso-homepage-banner-section .elementor-column,
.iso-homepage-banner-section .elementor-widget-wrap,
.iso-homepage-banner-section .elementor-widget-image-carousel {
    min-height: 0 !important;
    height: auto !important;
}

.iso-homepage-banner-section .elementor-image-carousel-wrapper,
.iso-homepage-banner-section .swiper,
.iso-homepage-banner-section .swiper-slide,
.iso-homepage-banner-section figure,
.iso-homepage-banner-section .swiper-slide-inner {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    background: #111;
}

.iso-homepage-banner-section img,
.iso-homepage-banner-section .swiper-slide-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.iso-homepage-banner-section .elementor-swiper-button {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: rgba(0, 0, 0, .78) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    opacity: 1 !important;
    transform: translateY(-50%);
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    z-index: 5 !important;
}

.iso-homepage-banner-section .elementor-swiper-button-prev {
    left: max(16px, env(safe-area-inset-left)) !important;
}

.iso-homepage-banner-section .elementor-swiper-button-next {
    right: max(16px, env(safe-area-inset-right)) !important;
}

.iso-homepage-banner-section .elementor-swiper-button i,
.iso-homepage-banner-section .elementor-swiper-button svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.iso-homepage-banner-section .elementor-swiper-button:hover,
.iso-homepage-banner-section .elementor-swiper-button:focus-visible {
    background: #ffdc39 !important;
    color: #111 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
    transform: translateY(-50%) scale(1.05);
}

.iso-homepage-banner-section .elementor-swiper-button:focus-visible {
    outline: 3px solid #ff2800;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .iso-homepage-banner-section .elementor-swiper-button {
        width: 40px !important;
        height: 40px !important;
    }

    .iso-homepage-banner-section .elementor-swiper-button-prev {
        left: max(10px, env(safe-area-inset-left)) !important;
    }

    .iso-homepage-banner-section .elementor-swiper-button-next {
        right: max(10px, env(safe-area-inset-right)) !important;
    }
}

/* Public-page cleanup: filters disable behavior; selectors protect legacy templates. */
.single-at_biz_dir .directorist-claim-listing-wrapper,
.single-at_biz_dir .directorist-claim-listing-modal,
.single-at_biz_dir .directorist-single-listing-contact-owner,
.single-at_biz_dir .directorist-contact-owner-form {
    display: none !important;
}

.single-at_biz_dir .iso-book-online-section {
    scroll-margin-top: 120px;
}

/* Accessible suggestions attached to the actual Directorist search input. */
.dsc-search-wrap {
    position: relative;
}

.dsc-search-suggestions {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
    text-align: left;
}

.dsc-search-suggestions[hidden] {
    display: none !important;
}

.dsc-search-suggestions__label {
    margin: 0;
    padding: 10px 14px 7px;
    color: #687386;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dsc-search-option {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--dsc-ink);
    text-decoration: none;
}

.dsc-search-option:hover,
.dsc-search-option[aria-selected="true"] {
    background: #fff8df;
}

.dsc-search-option img,
.dsc-search-option__fallback {
    width: 48px;
    height: 36px;
    border-radius: 5px;
    background: #edf1f5;
    object-fit: contain;
}

.dsc-search-option strong,
.dsc-search-option small {
    display: block;
}

.dsc-search-option small,
.dsc-search-option__count {
    margin-top: 2px;
    color: var(--dsc-muted);
    font-size: 12px;
}

@media (max-width: 1024px) {
    .dsc-centres__track > .dsc-centre-card {
        flex-basis: calc((100% - 18px) / 2);
    }

    .dsc-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dsc-centre-hero {
        grid-template-columns: 1fr;
    }

    /* Keep the existing deal sliders inside the viewport at tablet widths. */
    .ddls-slider__nav--prev {
        left: 10px !important;
    }

    .ddls-slider__nav--next {
        right: 10px !important;
    }
}

@media (max-width: 640px) {
    .dsc-template-wrap,
    .dsc-centres,
    .dsc-centre-page,
    .dsc-archive__content {
        width: min(100% - 28px, 1160px);
    }

    .dsc-section-header {
        align-items: flex-end;
    }

    .dsc-section-header h2 {
        max-width: 72%;
        font-size: 27px;
    }

    .dsc-centres__track > .dsc-centre-card {
        flex-basis: 100%;
    }

    .dsc-archive__grid {
        grid-template-columns: 1fr;
    }

    .dsc-centre-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        margin-bottom: 24px;
    }

    .dsc-centre-search input[type="search"] {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dsc-title-banner {
        min-height: 160px;
        margin-bottom: 26px;
    }

    .dsc-deals__header,
    .dsc-store-group > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dsc-deal-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .dsc-deal-row__image {
        width: 72px;
    }

    .dsc-deal-row__action {
        grid-column: 2;
        width: fit-content;
    }

    .dsc-search-option {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .dsc-search-option img,
    .dsc-search-option__fallback {
        width: 40px;
        height: 32px;
    }

    .dsc-search-option__count {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dsc-centres__viewport,
    .dsc-centres__track,
    .dsc-centre-card,
    .dsc-slider-arrow,
    .iso-homepage-banner-section .swiper-wrapper {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}
