.ncb-booking-app,
.ncb-panel,
.ncb-my-bookings,
.ncb-spaces-overview,
.ncb-space-product,
.ncb-product-page {
    max-width: 1280px;
    margin: 0 auto;
}

.ncb-booking-app,
.ncb-my-bookings,
.ncb-spaces-overview,
.ncb-space-product,
.ncb-product-page {
    margin: 30px auto;
    padding-bottom: 30px;
}

.ncb-my-bookings-page .widget-area,
.ncb-my-bookings-page .sidebar,
.ncb-my-bookings-page .site-sidebar,
.ncb-my-bookings-page .primary-sidebar,
.ncb-my-bookings-page #secondary,
.ncb-my-bookings-page aside.widget-area,
.ncb-my-bookings-page .wp-block-search,
.ncb-my-bookings-page .wp-block-latest-posts,
.ncb-my-bookings-page .wp-block-latest-comments,
.ncb-my-bookings-page .wp-block-categories,
.ncb-my-bookings-page .wp-block-categories-list,
.ncb-my-bookings-page .wp-block-archives,
.ncb-my-bookings-page .wp-block-tag-cloud,
.ncb-my-bookings-page .widget {
    display: none !important;
}

.ncb-my-bookings-page .wp-block-group:has(.wp-block-search),
.ncb-my-bookings-page .wp-block-group:has(.wp-block-latest-posts),
.ncb-my-bookings-page .wp-block-group:has(.wp-block-latest-comments),
.ncb-my-bookings-page .wp-block-group:has(.wp-block-categories),
.ncb-my-bookings-page .wp-block-group:has(.wp-block-archives),
.ncb-my-bookings-page .wp-block-group:has(.wp-block-tag-cloud) {
    display: none !important;
}

.ncb-my-bookings-page .content-area,
.ncb-my-bookings-page .site-content,
.ncb-my-bookings-page main,
.ncb-my-bookings-page article,
.ncb-my-bookings-page .entry-content {
    width: 100% !important;
    max-width: none;
}

.ncb-kimono-layout {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(360px, 1fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: start;
}

.ncb-kimono-media {
    min-width: 0;
}

.ncb-vertical-gallery {
    display: grid;
    gap: 22px;
}

.ncb-vertical-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 2px;
    background: #f4f6f8;
}

.ncb-vertical-gallery-item img {
    width: 100%;
    height: auto;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

.ncb-show-photos-inline {
    position: static;
    justify-self: start;
    margin-top: 4px;
}

.ncb-kimono-info {
    position: sticky;
    top: 28px;
    min-width: 0;
    padding: 10px 0 40px;
}

.ncb-kimono-info .ncb-product-title {
    margin-top: 14px;
}

.ncb-kimono-info .ncb-space-meta-line {
    margin: 18px 0 24px;
}

.ncb-kimono-info .ncb-space-copy {
    margin-top: 18px;
}

.ncb-kimono-info .ncb-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.ncb-kimono-info .ncb-section-title {
    margin-bottom: 18px;
}

.ncb-kimono-booking {
    margin-top: 34px;
}

.single-ncb_space main > h1:first-child {
    display: none;
}

.ncb-booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 24px 0;
}

.ncb-auth-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.ncb-auth-layout .ncb-alert {
    grid-column: 1 / -1;
}

.ncb-register-form {
    display: grid;
    gap: 14px;
}

.ncb-register-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.ncb-register-form input {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.ncb-booking-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.ncb-booking-form input,
.ncb-booking-form select,
.ncb-booking-form textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.ncb-booking-form textarea,
.ncb-booking-form .ncb-button {
    grid-column: 1 / -1;
}

.ncb-time-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ncb-form-help {
    grid-column: 1 / -1;
    margin: -6px 0 0;
    color: #6b7587;
    font-size: 15px;
}

.ncb-booking-form input[readonly] {
    background: #f6f7f9;
    color: #536074;
}

.ncb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #d71920;
    border-radius: 10px;
    padding: 10px 20px;
    background: #d71920;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.ncb-button:hover,
.ncb-button:focus {
    background: #b71318;
    border-color: #b71318;
    color: #fff;
}

.ncb-button-secondary {
    background: #fff;
    color: #111;
}

.ncb-button-secondary:hover,
.ncb-button-secondary:focus {
    background: #f2f2f2;
    color: #111;
}

.ncb-space-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.ncb-booking-item,
.ncb-panel {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.ncb-spaces-header {
    margin: 0 0 34px;
}

.ncb-spaces-header h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
}

.ncb-spaces-header p {
    margin: 0;
    color: #536074;
    font-size: 21px;
}

.ncb-space-card {
    overflow: hidden;
    border: 1px solid #e3e7ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ncb-space-card-media {
    position: relative;
    display: block;
    min-height: 300px;
    overflow: hidden;
    background: #f4f6f8;
    text-decoration: none;
}

.ncb-space-card-media img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 180ms ease;
}

.ncb-space-card:hover .ncb-space-card-media img {
    transform: scale(1.03);
}

.ncb-image-placeholder {
    display: grid;
    min-height: 300px;
    place-items: center;
    color: #7a8494;
    font-weight: 700;
}

.ncb-type-pill,
.ncb-photo-pill {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.ncb-type-pill {
    top: 18px;
    left: 18px;
    padding: 9px 18px;
    font-size: 18px;
}

.ncb-photo-pill {
    right: 16px;
    bottom: 16px;
    padding: 7px 10px;
    background: rgba(17, 24, 39, 0.86);
    color: #fff;
    font-size: 14px;
}

.ncb-space-card-body {
    padding: 24px 26px 22px;
}

.ncb-space-card h3 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.15;
}

.ncb-space-card h3 a {
    color: #111827;
    text-decoration: none;
}

.ncb-space-card-body p {
    margin: 0 0 18px;
    color: #536074;
    font-size: 19px;
    line-height: 1.45;
}

.ncb-space-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #7a8494;
    font-size: 17px;
}

.ncb-service-count {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf0f4;
    color: #6b7587;
}

.ncb-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.ncb-card-footer strong,
.ncb-price {
    color: #111827;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.ncb-from,
.ncb-card-footer span {
    color: #536074;
}

.ncb-back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #536074;
    text-decoration: none;
    font-weight: 700;
}

.ncb-selected-space {
    margin-bottom: 8px;
}

.ncb-selected-space h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 32px;
}

.ncb-selected-space p {
    margin: 0;
    color: #536074;
}

.ncb-space-product-media {
    position: relative;
    min-height: 500px;
    border-radius: 18px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.ncb-product-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.ncb-product-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 14px;
    background: #d71920;
    color: #fff;
    font-weight: 800;
}

.ncb-product-actions {
    display: flex;
    gap: 22px;
}

.ncb-product-actions a {
    color: #2f3441;
    font-weight: 800;
}

.ncb-product-title {
    margin: 0 0 32px;
    color: #111827;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 850;
}

.ncb-product-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 265px);
    gap: 8px;
    overflow: hidden;
    border-radius: 14px;
}

.ncb-product-gallery-item {
    display: block;
    overflow: hidden;
    background: #f4f6f8;
}

.ncb-product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ncb-gallery-item-1 {
    grid-row: 1 / span 2;
}

.ncb-show-photos {
    position: absolute;
    right: 24px;
    bottom: 24px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    padding: 12px 18px;
    background: #fff;
    color: #2f3441;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    cursor: pointer;
}

.ncb-space-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 38px;
    margin-top: 34px;
}

.ncb-space-product-main h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 38px;
}

.ncb-space-copy,
.ncb-amenities {
    color: #536074;
    font-size: 18px;
    line-height: 1.6;
}

.ncb-product-address {
    margin: 0 0 16px;
    color: #3c4352;
    font-size: 18px;
    font-weight: 800;
}

.ncb-product-divider {
    margin: 34px 0;
    border: 0;
    border-top: 1px solid #e8ebf0;
}

.ncb-section-title {
    margin: 0 0 28px;
    color: #111827;
    font-size: 30px;
}

.ncb-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 70px;
}

.ncb-service-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    color: #333947;
    font-size: 18px;
    font-weight: 650;
}

.ncb-service-check {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: #148a3b;
    font-weight: 900;
}

.ncb-booking-summary {
    align-self: start;
    position: sticky;
    top: 24px;
    border: 1px solid #e3e7ee;
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ncb-product-side {
    align-self: start;
    position: sticky;
    top: 24px;
    display: grid;
    gap: 16px;
}

.ncb-product-side .ncb-booking-summary {
    position: static;
}

.ncb-product-page-booking .ncb-booking-summary {
    border-color: #d71920;
    background: #d71920;
    color: #fff;
}

.ncb-product-page-booking .ncb-booking-summary .ncb-price,
.ncb-product-page-booking .ncb-booking-summary .ncb-price span,
.ncb-product-page-booking .ncb-booking-summary .ncb-price-list,
.ncb-product-page-booking .ncb-booking-summary .ncb-price-row,
.ncb-product-page-booking .ncb-booking-summary .ncb-price-row span,
.ncb-product-page-booking .ncb-booking-summary .ncb-muted {
    color: #fff;
}

.ncb-price-list {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.ncb-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    line-height: 1.05;
}

.ncb-price-row strong {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
}

.ncb-price-row span {
    font-size: 18px;
    font-weight: 800;
}

.ncb-product-page-booking .ncb-booking-summary .ncb-button {
    border-color: #fff;
    background: #fff;
    color: #d71920;
}

.ncb-product-page-booking .ncb-booking-summary .ncb-button:hover {
    border-color: #fff;
    background: #fff5f5;
    color: #b71318;
}

.ncb-modal[hidden] {
    display: none;
}

.ncb-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.ncb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.58);
}

.ncb-modal-panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 18px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.ncb-modal-panel h2 {
    margin: 0 0 18px;
    color: #111827;
}

.ncb-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.ncb-modal-open {
    overflow: hidden;
}

.ncb-lightbox[hidden] {
    display: none;
}

.ncb-lightbox {
    position: fixed;
    z-index: 99998;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
}

.ncb-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.78);
}

.ncb-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100vh - 56px);
    overflow: auto;
    border-radius: 18px;
    padding: 56px 24px 24px;
    background: #fff;
}

.ncb-lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.ncb-lightbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ncb-lightbox-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.ncb-booking-summary .ncb-button {
    width: 100%;
    margin: 14px 0;
}

.ncb-booking-list {
    display: grid;
    gap: 14px;
}

.ncb-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ncb-alert {
    border-radius: 6px;
    margin: 0 0 18px;
    padding: 12px 14px;
    font-weight: 600;
}

.ncb-alert-success {
    background: #edf8ef;
    color: #1d6b31;
}

.ncb-alert-error {
    background: #fff1ef;
    color: #a23424;
}

.ncb-muted {
    color: #666;
    font-size: 14px;
}

/* Live theme guard: keep the booking UI independent from oversized theme typography. */
.ncb-spaces-overview,
.ncb-product-page,
.ncb-booking-app,
.ncb-modal,
.ncb-lightbox {
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
}

.ncb-spaces-header {
    margin-bottom: 24px;
}

.ncb-spaces-header h2 {
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: 0;
}

.ncb-spaces-header p {
    font-size: clamp(16px, 1.4vw, 20px);
}

.ncb-space-grid {
    max-width: 1080px;
    gap: 28px;
}

.ncb-space-card {
    max-width: 520px;
}

.ncb-space-card-media,
.ncb-space-card-media img,
.ncb-image-placeholder {
    min-height: 240px;
    height: 240px;
}

.ncb-type-pill,
.ncb-product-pill {
    font-size: 14px;
    line-height: 1;
    padding: 7px 13px;
}

.ncb-space-card-body {
    padding: 20px 22px;
}

.ncb-space-card h3 {
    font-size: clamp(22px, 2vw, 28px);
}

.ncb-space-card-body p,
.ncb-space-copy,
.ncb-amenities,
.ncb-product-address {
    font-size: 16px;
}

.ncb-space-meta-line,
.ncb-service-count,
.ncb-service-item {
    font-size: 15px;
}

.ncb-card-footer strong,
.ncb-price {
    font-size: clamp(28px, 3vw, 38px);
}

.ncb-button {
    min-height: 42px;
    font-size: 16px;
}

.ncb-kimono-layout {
    grid-template-columns: minmax(0, 57%) minmax(320px, 410px);
    gap: clamp(28px, 4vw, 56px);
}

.ncb-vertical-gallery {
    gap: 18px;
}

.ncb-vertical-gallery-item img {
    min-height: 420px;
    max-height: 680px;
}

.ncb-product-title {
    margin-bottom: 20px;
    font-size: clamp(34px, 3.2vw, 52px);
    letter-spacing: 0;
}

.ncb-section-title {
    font-size: clamp(24px, 2vw, 32px);
}

.ncb-kimono-info .ncb-services-grid {
    gap: 12px;
}

.ncb-kimono-booking {
    margin-top: 28px;
}

.ncb-booking-summary {
    padding: 22px;
}

.ncb-kimono-booking {
    width: min(100%, 340px);
    padding: 22px;
    border-radius: 14px;
}

.ncb-kimono-booking .ncb-price {
    margin: 0 0 18px;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.05;
}

.ncb-kimono-booking .ncb-button {
    min-height: 52px;
    margin: 0 0 14px;
    border-radius: 10px;
    font-size: 17px;
}

.ncb-kimono-booking .ncb-muted {
    margin: 0;
    font-size: 15px;
}

.ncb-modal-panel,
.ncb-modal-panel * {
    letter-spacing: 0;
}

.ncb-modal-panel {
    width: min(680px, calc(100vw - 32px));
    padding: 24px;
    font-size: 16px;
    line-height: 1.4;
}

.ncb-modal-panel h2 {
    margin: 0 0 18px;
    max-width: calc(100% - 42px);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
}

.ncb-modal-panel .ncb-booking-form {
    gap: 14px 18px;
    padding: 0;
}

.ncb-modal-panel .ncb-booking-form label {
    gap: 6px;
    font-size: 14px;
    line-height: 1.25;
}

.ncb-modal-panel .ncb-booking-form input,
.ncb-modal-panel .ncb-booking-form select,
.ncb-modal-panel .ncb-booking-form textarea {
    min-height: 44px;
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 16px;
    line-height: 1.25;
}

.ncb-modal-panel .ncb-booking-form textarea {
    min-height: 92px;
}

.ncb-modal-panel .ncb-form-help {
    font-size: 13px;
}

@media (max-width: 760px) {
    .ncb-booking-form,
    .ncb-time-row,
    .ncb-auth-layout,
    .ncb-space-grid,
    .ncb-space-product-grid {
        grid-template-columns: 1fr;
    }

    .ncb-kimono-layout {
        grid-template-columns: 1fr;
    }

    .ncb-kimono-info {
        position: static;
    }

    .ncb-vertical-gallery-item img {
        min-height: 260px;
    }

    .ncb-product-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .ncb-product-gallery-item,
    .ncb-gallery-item-1 {
        grid-row: auto;
        min-height: 220px;
    }

    .ncb-services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ncb-lightbox-grid {
        grid-template-columns: 1fr;
    }

    .ncb-space-card-media,
    .ncb-space-card-media img,
    .ncb-image-placeholder {
        min-height: 230px;
        height: 230px;
    }

    .ncb-spaces-header h2,
    .ncb-space-product-main h2 {
        font-size: 30px;
    }

    .ncb-booking-summary {
        position: static;
    }

    .ncb-product-side {
        position: static;
    }

    .ncb-space-card {
        max-width: none;
    }

    .ncb-product-title {
        font-size: 34px;
    }

    .ncb-kimono-booking {
        width: 100%;
    }

    .ncb-modal-panel .ncb-booking-form {
        grid-template-columns: 1fr;
    }
}
