@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');


.cpv5-section,
.cpv5-preview-shell {
    --cpv5-container-max-width: 1320px;
    --cpv5-grid-gap: 26px;
    --cpv5-card-width: 278px;
    --cpv5-card-height: 332px;
    --cpv5-card-radius: 20px;
    --cpv5-card-padding-x: 20px;
    --cpv5-card-padding-top: 18px;
    --cpv5-card-padding-bottom: 16px;
    --cpv5-card-border-width: 3px;
    --cpv5-card-border-color: #FFFFFF;
    --cpv5-card-bg: #E9E0FF;
    --cpv5-card-shadow: 0 10px 30px rgba(62,31,145,0.18);
    --cpv5-map-width: 118px;
    --cpv5-map-height: 60px;
    --cpv5-map-top: 34px;
    --cpv5-map-left: 0px;
    --cpv5-date-size: 23px;
    --cpv5-date-margin-top: 18px;
    --cpv5-separator-margin-top: 14px;
    --cpv5-type-size: 16px;
    --cpv5-button-width: 155px;
    --cpv5-button-height: 42px;
    --cpv5-button-radius: 10px;
    --cpv5-button-margin-top: 18px;
    --cpv5-title-size: 20px;
    --cpv5-badge-height: 30px;
    --cpv5-badge-radius: 14px;
    --cpv5-badge-city-pad-x: 18px;
    --cpv5-badge-status-pad-x: 16px;
    --cpv5-contact-width: 320px;
    --cpv5-contact-height: 305px;
    --cpv5-contact-radius: 22px;
    --cpv5-contact-bg-color: #E9E0FF;
    --cpv5-contact-title-size: 17px;
    --cpv5-contact-phone-size: 18px;
    --cpv5-contact-line-gap: 10px;
    --cpv5-contact-text-align: center;
    --cpv5-contact-offset-x: 0px;
    --cpv5-contact-offset-y: 0px;
    --cpv5-contact-inner-padding: 30px;
    --cpv5-contact-button-width: 230px;
    --cpv5-contact-button-height: 58px;
    --cpv5-contact-button-font-size: 20px;
    --cpv5-contact-button-radius: 999px;
    --cpv5-contact-button-offset-y: 0px;
    --cpv5-contact-spacing-cards: 20px;
    --cpv5-background-overlay: linear-gradient(90deg, rgba(130,180,255,.88) 0%, rgba(139,98,255,.82) 48%, rgba(186,132,255,.75) 100%);
    --cpv5-badge-image-width: 108px;
    --cpv5-badge-image-top: 16px;
    --cpv5-badge-image-right: 14px;
    --cpv5-badge-image-left: 0px;
    --cpv5-card-render-mode: css;
    --cpv5-card-bg-image: none;
    --cpv5-city-badge-top: 18px;
    --cpv5-city-badge-left: 18px;
    --cpv5-city-badge-color-default: linear-gradient(180deg, #4DA0FF 0%, #2F5BFF 100%);
    --cpv5-city-badge-color-new: linear-gradient(180deg, #FFB347 0%, #FF7A00 100%);
    --cpv5-city-badge-color-full: linear-gradient(180deg, #FF5A5A 0%, #D91E3A 100%);
    --cpv5-content-offset-y: 0px;
    --cpv5-button-offset-y: 0px;
    --cpv5-footer-band-height: 74px;
    --cpv5-footer-band-bg: #7B68D9;
    --cpv5-footer-band-bg-new: #D9A5A0;
    --cpv5-footer-band-bg-full: #8A84A3;
    --cpv5-card-tint-new: #F3D2CC;
    --cpv5-card-tint-full: #C9C1DB;
    --cpv5-section-padding-top: 34px;
    --cpv5-section-padding-bottom: 34px;
    --cpv5-bg-image: none;
}
.cpv5-section,
.cpv5-preview-shell {
    position: relative;
    padding: var(--cpv5-section-padding-top) 20px var(--cpv5-section-padding-bottom);
    background-image: var(--cpv5-background-overlay), var(--cpv5-bg-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.cpv5-section:before,
.cpv5-preview-shell:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 15% 18%, rgba(255,255,255,.35) 0 2px, transparent 3px),
      radial-gradient(circle at 85% 32%, rgba(255,255,255,.28) 0 2px, transparent 3px),
      radial-gradient(circle at 60% 12%, rgba(255,255,255,.24) 0 1.5px, transparent 2.5px),
      radial-gradient(circle at 25% 68%, rgba(255,255,255,.24) 0 2px, transparent 3px),
      radial-gradient(circle at 78% 80%, rgba(255,255,255,.2) 0 2px, transparent 3px);
    opacity: .8;
}
.cpv5-inner {
    max-width: var(--cpv5-container-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.cpv5-front-title {
    text-align: center;
    font-size: var(--cpv5-title-size);
    letter-spacing: .02em;
    font-weight: 900;
    color: #231645;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.cpv5-front-sub {
    text-align: center;
    color: #fff;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 34px;
    text-shadow: 0 1px 2px rgba(0,0,0,.14);
}
.cpv5-front-grid > .cpv5-front-card:nth-child(2) { grid-column: 1; grid-row: 1; margin-left: calc(var(--cpv5-card-width) + var(--cpv5-grid-gap)); }
.cpv5-front-grid > .cpv5-front-card:nth-child(3) { grid-column: 1; grid-row: 1; margin-left: calc((var(--cpv5-card-width) * 2) + (var(--cpv5-grid-gap) * 2)); }
.cpv5-front-grid > .cpv5-front-card:nth-child(4) { grid-column: 1; grid-row: 2; }
.cpv5-front-grid > .cpv5-front-card:nth-child(5) { grid-column: 1; grid-row: 2; margin-left: calc(var(--cpv5-card-width) + var(--cpv5-grid-gap)); }
.cpv5-front-grid > .cpv5-front-card:nth-child(6) { grid-column: 1; grid-row: 2; margin-left: calc((var(--cpv5-card-width) * 2) + (var(--cpv5-grid-gap) * 2)); }

.cpv5-front-grid > .cpv5-contact-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 24px;
    align-self: start;
    justify-self: start;
}
.cpv5-front-card {
    width: var(--cpv5-card-width);
    min-height: var(--cpv5-card-height);
    border-radius: var(--cpv5-card-radius);
    border: var(--cpv5-card-border-width) solid var(--cpv5-card-border-color);
    background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.03) 100%), var(--cpv5-card-bg);
    box-shadow: var(--cpv5-card-shadow);
    padding: var(--cpv5-card-padding-top) var(--cpv5-card-padding-x) var(--cpv5-card-padding-bottom);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.cpv5-section[data-card-render-mode="image"] .cpv5-front-card:not([style*="background:url"]),
.cpv5-preview-shell[data-card-render-mode="image"] .cpv5-front-card:not([style*="background:url"]) {
    background: var(--cpv5-card-bg-image) center/100% 100% no-repeat !important;
    border-color: transparent;
}

.cpv5-section[data-card-render-mode="image"] .cpv5-front-card[style*="background:url"],
.cpv5-preview-shell[data-card-render-mode="image"] .cpv5-front-card[style*="background:url"] {
    border-color: transparent;
}

.cpv5-section[data-card-render-mode="image"] .cpv5-card-footer-band,
.cpv5-preview-shell[data-card-render-mode="image"] .cpv5-card-footer-band {
    background: transparent !important;
    background-image: none !important;
    border-top: none !important;
}

.cpv5-front-card[data-status="new"] {
    background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 100%), var(--cpv5-card-tint-new);
}
.cpv5-front-card[data-status="full"] {
    background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 100%), var(--cpv5-card-tint-full);
}
.cpv5-front-card[data-status="new"] .cpv5-city-badge {
    background: var(--cpv5-city-badge-color-new);
}
.cpv5-front-card[data-status="full"] .cpv5-city-badge {
    background: var(--cpv5-city-badge-color-full);
}
.cpv5-city-badge,
.cpv5-status-badge {
    height: var(--cpv5-badge-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    border-radius: var(--cpv5-badge-radius);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.38),
        0 6px 12px rgba(23, 26, 92, .18);
}
.cpv5-city-badge {
    align-self: flex-start;
    padding: 0 var(--cpv5-badge-city-pad-x);
    background: var(--cpv5-city-badge-color-default);
    position: absolute;
    top: var(--cpv5-city-badge-top);
    left: var(--cpv5-city-badge-left);
    z-index: 3;
    text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.cpv5-status-badge {
    position: absolute;
    right: 16px;
    top: 18px;
    padding: 0 var(--cpv5-badge-status-pad-x);
}
.cpv5-status-new { background: linear-gradient(180deg,#ffbb4b 0%,#ff8b18 100%); }
.cpv5-status-full { background: linear-gradient(180deg,#ff4772 0%,#cf143f 100%); }
.cpv5-status-image-badge {
    position: absolute;
    top: var(--cpv5-badge-image-top);
    right: var(--cpv5-badge-image-right);
    width: var(--cpv5-badge-image-width);
    height: auto;
    display: block;
    z-index: 3;
    filter: drop-shadow(0 8px 12px rgba(33, 21, 84, .22));
}

.cpv5-map-shape {
    width: var(--cpv5-map-width);
    height: var(--cpv5-map-height);
    object-fit: contain;
    margin-top: calc(var(--cpv5-map-top) + 18px);
    transform: translateX(var(--cpv5-map-left)) translateY(var(--cpv5-content-offset-y));
    opacity: .94;
    filter: drop-shadow(0 10px 12px rgba(100,76,191,.18));
}
.cpv5-date {
    margin-top: calc(var(--cpv5-date-margin-top) + var(--cpv5-content-offset-y));
    color: #2d1c73;
    font-size: var(--cpv5-date-size);
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
}
.cpv5-separator {
    width: 100%;
    height: 1px;
    margin-top: calc(var(--cpv5-separator-margin-top) + var(--cpv5-content-offset-y));
    background: linear-gradient(90deg, rgba(77,58,152,0) 0%, rgba(77,58,152,.22) 18%, rgba(77,58,152,.22) 82%, rgba(77,58,152,0) 100%);
}
.cpv5-type-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #48376f;
    font-size: var(--cpv5-type-size);
    margin-top: calc(14px + var(--cpv5-content-offset-y));
    text-align: center;
}
.cpv5-calendar-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}
.cpv5-card-footer-band {
    width: calc(100% + (var(--cpv5-card-padding-x) * 2));
    margin: auto calc(var(--cpv5-card-padding-x) * -1) calc(var(--cpv5-card-padding-bottom) * -1);
    min-height: var(--cpv5-footer-band-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    background-color: var(--cpv5-footer-band-bg);
    background-image: none;
    border-top: 1px solid rgba(255,255,255,0.18);
    position: relative;
}
.cpv5-front-card[data-status="new"] .cpv5-card-footer-band {
    background: none;
    background-color: var(--cpv5-footer-band-bg-new);
    background-image: none;
}
.cpv5-front-card[data-status="full"] .cpv5-card-footer-band {
    background: none;
    background-color: var(--cpv5-footer-band-bg-full);
    background-image: none;
}
.cpv5-card-button {
    margin-top: 0;
    transform: translateY(var(--cpv5-button-offset-y));
    width: var(--cpv5-button-width);
    height: var(--cpv5-button-height);
    border-radius: var(--cpv5-button-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,#6f3aff 0%,#3812d7 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 20px rgba(61, 30, 143, .18);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 14px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}
.cpv5-card-button-disabled {
    background: linear-gradient(180deg,#b6aed1 0%,#726b8f 100%);
    cursor: default;
}
.cpv5-contact-card {
    width: var(--cpv5-contact-width);
    min-height: var(--cpv5-contact-height);
    border-radius: var(--cpv5-contact-radius);
    border: 3px solid rgba(255,255,255,.38);
    background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%), rgba(238,227,255,.58);
    box-shadow: 0 10px 30px rgba(62,31,145,.14);
    padding: var(--cpv5-contact-inner-padding);
    text-align: var(--cpv5-contact-text-align);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    transform: translateY(var(--cpv5-contact-offset-y));
    background-color: var(--cpv5-contact-bg-color);
    overflow: hidden;
}
.cpv5-contact-title {
    color: #3d2d68;
    font-size: var(--cpv5-contact-title-size);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
}
.cpv5-contact-phone {
    color: #51436e;
    font-size: var(--cpv5-contact-phone-size);
    font-weight: 800;
    margin-top: calc(var(--cpv5-contact-line-gap) + 16px);
}
.cpv5-contact-phone-small { margin-top: var(--cpv5-contact-line-gap); }
.cpv5-contact-button {
    width: var(--cpv5-contact-button-width);
    height: var(--cpv5-contact-button-height);
    margin: 28px auto 0;
    border-radius: var(--cpv5-contact-button-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    font-size: var(--cpv5-contact-button-font-size);
    font-weight: 900;
    background: linear-gradient(90deg,#20d6f2 0%,#2484ff 100%);
    box-shadow: 0 14px 28px rgba(36,132,255,.2);
    transform: translateY(var(--cpv5-contact-button-offset-y));
}
.cpv5-preview-grid {
    grid-template-columns: var(--cpv5-card-width) var(--cpv5-contact-width);
    justify-content: center;
}

@media (max-width: 767px) {
    .cpv5-section {
        padding-left: 12px;
        padding-right: 12px;
    }
        .cpv5-front-card,
    .cpv5-contact-card {
        width: 100%;
        max-width: 360px;
        justify-self: center;
    }
}

.cpv5-preview-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}
.cpv5-preview-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4f496f;
}


/* V19 font unification */
.cpv5-section,
.cpv5-preview-shell,
.cpv5-section *,
.cpv5-preview-shell * {
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.cpv5-front-title {
    font-weight: 700 !important;
    letter-spacing: .02em;
}

.cpv5-front-sub {
    font-weight: 500 !important;
}

.cpv5-date {
    font-weight: 700 !important;
    letter-spacing: 0;
}

.cpv5-type-line,
.cpv5-contact-phone,
.cpv5-contact-title,
.cpv5-card-button,
.cpv5-city-badge,
.cpv5-status-badge {
    font-weight: 700 !important;
}

.cpv5-type-line span {
    line-height: 1.2;
}

/* Prevent theme styles from breaking button text */
.cpv5-card-button,
.cpv5-contact-button {
    font-family: 'Montserrat', Arial, sans-serif !important;
    text-transform: none;
}

/* More robust calendar icon rendering */
.cpv5-calendar-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    image-rendering: auto;
    background: transparent;
}


/* V20 font tuning */
.cpv5-date { font-weight: 700 !important; }
.cpv5-type-line { font-weight: 500 !important; }
.cpv5-card-button { font-weight: 700 !important; }
.cpv5-city-badge { font-weight: 700 !important; }


/* V22 layout cleanup */
.cpv5-section {
    overflow-x: hidden;
}

.cpv5-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cpv5-contact-width);
    gap: var(--cpv5-grid-gap);
    align-items: start;
    max-width: calc((var(--cpv5-card-width) * 3) + (var(--cpv5-grid-gap) * 3) + var(--cpv5-contact-width));
    margin: 0 auto;
}

.cpv5-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, var(--cpv5-card-width));
    gap: var(--cpv5-grid-gap);
    align-items: start;
    justify-content: start;
}

.cpv5-contact-card {
    position: sticky;
    top: 24px;
    align-self: start;
    justify-self: start;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #E9E0FF;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.cpv5-contact-title {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    font-size: 17px;
    padding: 0 6px;
}

.cpv5-contact-phone {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
}

@media (max-width: 1180px) {
    .cpv5-layout {
        grid-template-columns: 1fr;
        max-width: calc((var(--cpv5-card-width) * 2) + var(--cpv5-grid-gap));
    }

    .cpv5-cards-grid {
        grid-template-columns: repeat(2, var(--cpv5-card-width));
        justify-content: center;
    }

    .cpv5-contact-card {
        position: relative;
        top: auto;
        justify-self: center;
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    .cpv5-layout {
        max-width: 100%;
    }

    .cpv5-cards-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cpv5-front-card,
    .cpv5-contact-card {
        width: 100%;
        max-width: 360px;
        justify-self: center;
    }
}


/* V23 spacing polish */
@media (min-width: 1181px) {
    .cpv5-layout {
        column-gap: calc(var(--cpv5-grid-gap) + var(--cpv5-contact-spacing-cards));
        max-width: calc((var(--cpv5-card-width) * 3) + (var(--cpv5-grid-gap) * 3) + var(--cpv5-contact-width) + var(--cpv5-contact-spacing-cards));
    }

    .cpv5-contact-card {
        margin-left: 0;
    }
}


/* V25 desktop-only silhouette controls */
@media (max-width: 767px) {
    .cpv5-map-shape {
        height: auto !important;
        margin-top: 52px !important;
        transform: none !important;
        max-width: 118px;
    }
}

/* V27 correct behavior: only X desktop */
@media (min-width: 768px) {
    .cpv5-contact-card {
        transform: translate(var(--cpv5-contact-offset-x), var(--cpv5-contact-offset-y));
    }
}


/* V30 mobile vertical alignment fix */
@media (max-width: 767px) {
    .cpv5-front-card {
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .cpv5-city-badge {
        top: 14px !important;
        left: 14px !important;
    }

    .cpv5-status-image-badge,
    .cpv5-status-badge {
        top: 14px !important;
        right: 12px !important;
    }

    .cpv5-map-shape {
        margin-top: 40px !important;
        transform: translateX(0) translateY(0) !important;
        height: auto !important;
        max-width: 118px;
    }

    .cpv5-date {
        margin-top: 12px !important;
    }

    .cpv5-separator {
        margin-top: 10px !important;
    }

    .cpv5-type-line {
        margin-top: 10px !important;
    }

    .cpv5-card-footer-band {
        min-height: 64px !important;
    }

    .cpv5-card-button {
        transform: none !important;
    }
}
