/**
 * Nehar Tour Builder — single-product page styling
 * Targets the WooCommerce product tabs (Термини / Аранжман / Ценовник / Агенда)
 * to match the approved design.
 */

/* -------------------------------------------------------------------------
 * Theme palette (kept local to product-page scope, no global leakage)
 * ---------------------------------------------------------------------- */
:root {
    --ntb-color-primary: #0b3954;
    --ntb-color-primary-soft: #1e5377;
    --ntb-color-accent: #f0a500;
    --ntb-color-ok: #2ea44f;
    --ntb-color-no: #d64545;
    --ntb-color-bg-soft: #f4f6f8;
    --ntb-color-bg-row: #fafbfc;
    --ntb-color-border: #e3e6eb;
    --ntb-color-text: #1f2a37;
    --ntb-color-text-muted: #5a6573;
}

/* -------------------------------------------------------------------------
 * WooCommerce tabs — bar styling
 * ---------------------------------------------------------------------- */
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs,
.woocommerce-tabs ul.tabs.wc-tabs {
    background: var(--ntb-color-bg-soft);
    border: 1px solid var(--ntb-color-border);
    border-radius: 8px;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    overflow: hidden;
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs::after,
.woocommerce-tabs ul.tabs.wc-tabs::before,
.woocommerce-tabs ul.tabs.wc-tabs::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li,
.woocommerce-tabs ul.tabs.wc-tabs li {
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
    text-align: center;
    box-shadow: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li::after,
.woocommerce-tabs ul.tabs.wc-tabs li::before,
.woocommerce-tabs ul.tabs.wc-tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a,
.woocommerce-tabs ul.tabs.wc-tabs li a {
    display: block;
    padding: 12px 16px;
    color: var(--ntb-color-text-muted);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    border-right: 1px solid var(--ntb-color-border);
    transition: background-color 150ms ease, color 150ms ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li:last-child a,
.woocommerce-tabs ul.tabs.wc-tabs li:last-child a {
    border-right: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li:hover a,
.woocommerce-tabs ul.tabs.wc-tabs li:hover a {
    background: #ecf0f3;
    color: var(--ntb-color-primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active,
.woocommerce-tabs ul.tabs.wc-tabs li.active {
    background: #ffffff;
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active a,
.woocommerce-tabs ul.tabs.wc-tabs li.active a {
    color: var(--ntb-color-primary);
    background: #ffffff;
    position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active a::after,
.woocommerce-tabs ul.tabs.wc-tabs li.active a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    background: var(--ntb-color-primary);
    border-radius: 2px 2px 0 0;
}

/* Tab panels container */
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-tabs .panel,
.woocommerce-Tabs-panel {
    background: #ffffff;
    border: 1px solid var(--ntb-color-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 28px 28px 32px;
    margin: 0;
}

.woocommerce-Tabs-panel > h2:first-child {
    display: none;
}

.ntb-tab {
    color: var(--ntb-color-text);
    font-size: 15px;
    line-height: 1.6;
}

.ntb-tab-empty {
    color: var(--ntb-color-text-muted);
    font-style: italic;
    margin: 0;
}

/* -------------------------------------------------------------------------
 * Термини tab — grouped by year and 2-month windows (columns).
 * ---------------------------------------------------------------------- */
.ntb-tab-termini .ntb-termini-year-block + .ntb-termini-year-block {
    margin-top: 36px;
}

.ntb-termini-year-title {
    color: var(--ntb-color-primary);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.005em;
    margin: 0 0 26px;
    line-height: 1.25;
}

.ntb-termini-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 48px;
    align-items: start;
}

@media (max-width: 920px) {
    .ntb-termini-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 32px;
    }
}

@media (max-width: 540px) {
    .ntb-termini-groups {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

.ntb-termini-group {
    min-width: 0;
}

.ntb-termini-group-title {
    margin: 0 0 16px;
    padding: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ntb-color-primary);
    letter-spacing: 0.01em;
    border-bottom: 1.5px solid var(--ntb-color-primary);
    display: inline-block;
}

.ntb-termini-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ntb-termini-group-item {
    color: var(--ntb-color-text);
    font-size: 15px;
    line-height: 1.45;
    padding: 8px 0;
    margin: 0;
    white-space: nowrap;
}

.ntb-termini-group-item + .ntb-termini-group-item {
    border-top: 1px dashed transparent;
}

/* -------------------------------------------------------------------------
 * Aranžman tab — Included / Not Included
 * ---------------------------------------------------------------------- */
.ntb-aranzman-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 720px) {
    .ntb-aranzman-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.ntb-aranzman-col {
    background: var(--ntb-color-bg-soft);
    border: 1px solid var(--ntb-color-border);
    border-radius: 8px;
    padding: 22px 24px;
}

.ntb-aranzman-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ntb-color-primary);
}

.ntb-aranzman-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.ntb-aranzman-icon-yes {
    background: var(--ntb-color-ok);
}

.ntb-aranzman-icon-no {
    background: var(--ntb-color-no);
}

.ntb-aranzman-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ntb-aranzman-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: var(--ntb-color-text);
    line-height: 1.55;
    border-bottom: 1px dashed var(--ntb-color-border);
}

.ntb-aranzman-list li:last-child {
    border-bottom: none;
}

.ntb-aranzman-list li::before {
    position: absolute;
    left: 0;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.ntb-aranzman-list-yes li::before {
    content: "\2713";
    background: var(--ntb-color-ok);
}

.ntb-aranzman-list-no li::before {
    content: "\2715";
    background: var(--ntb-color-no);
}

/* -------------------------------------------------------------------------
 * Cenovnik tab — hotel carousel + pricing table.
 * All selectors scoped under .woocommerce-Tabs-panel--ntb_cenovnik so they
 * don't bleed into the admin builder.
 * ---------------------------------------------------------------------- */

/* --- Carousel container --- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-carousel {
    margin: 0;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-slide[hidden] {
    display: none !important;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-slide {
    padding: 0;
}

/* --- Slide header: hotel name + carousel nav --- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 0 18px;
    flex-wrap: wrap;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-hotel-name {
    margin: 0;
    color: var(--ntb-color-primary);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.005em;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ntb-color-primary);
    font-size: 14px;
    font-weight: 500;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-nav-label {
    cursor: pointer;
    user-select: none;
    color: var(--ntb-color-text-muted);
    transition: color 150ms ease;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-prev-label:hover,
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-next-label:hover {
    color: var(--ntb-color-primary);
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-next-label {
    color: var(--ntb-color-primary);
    font-weight: 600;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ntb-color-border);
    background: #ffffff;
    color: var(--ntb-color-primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-nav-btn:hover:not(:disabled) {
    background: var(--ntb-color-primary);
    color: #ffffff;
    border-color: var(--ntb-color-primary);
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-nav-btn:disabled,
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-nav-btn.ntb-disabled {
    opacity: 0.35;
    cursor: default;
}

/* --- Optional hotel description block (sits above the table) --- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-hotel-description {
    color: var(--ntb-color-text);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-hotel-description p {
    margin: 0 0 8px;
}

/* --- Pricing table --- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ntb-color-border);
    border-radius: 10px;
    background: #ffffff;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-th {
    text-align: left;
    padding: 16px 22px;
    color: var(--ntb-color-text-muted);
    font-weight: 500;
    font-size: 13.5px;
    border-bottom: 1px solid var(--ntb-color-border);
    background: #ffffff;
    white-space: nowrap;
    vertical-align: middle;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-th-room {
    white-space: normal;
    min-width: 140px;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-row {
    transition: background-color 120ms ease;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-row:nth-child(even) {
    background: var(--ntb-color-bg-row);
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-row:hover {
    background: #eef3f7;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-td {
    padding: 18px 22px;
    color: var(--ntb-color-text);
    vertical-align: middle;
    border-bottom: 1px solid transparent;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-row:last-child .ntb-pricing-td {
    border-bottom: none;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-td-termin {
    font-weight: 500;
    color: var(--ntb-color-text);
    white-space: nowrap;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-td-nights {
    color: var(--ntb-color-text);
}

/* --- Price link (clickable cells) --- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-price-link {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--ntb-color-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-price-link:hover,
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-price-link:focus {
    background: var(--ntb-color-primary);
    color: #ffffff;
    border-color: var(--ntb-color-primary);
    outline: none;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-price-link .woocommerce-Price-amount {
    color: inherit;
    font-weight: 600;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-na {
    color: var(--ntb-color-text-muted);
    font-size: 14px;
}

/* --- "Од €X" cheapest-price prefix (single product + shop listings) --- */
.ntb-price-from-label {
    display: inline-block;
    margin-right: 4px;
    color: var(--ntb-color-text-muted);
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.01em;
}

.ntb-price-from-amount {
    color: var(--ntb-color-primary);
    font-weight: 700;
}

.ntb-price-from-amount .woocommerce-Price-amount {
    color: inherit;
    font-weight: inherit;
}

/* --- Reserve button (per-row trailing column) --- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-th-action {
    width: 1%;
    white-space: nowrap;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-td-action {
    text-align: right;
    white-space: nowrap;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-reserve-btn {
    appearance: none;
    border: none;
    background: var(--ntb-color-primary);
    color: #ffffff !important;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(11, 57, 84, 0.18);
    transition: background-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-reserve-btn:hover {
    background: var(--ntb-color-primary-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(11, 57, 84, 0.22);
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-reserve-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Priced but unavailable (disabled for the date or sold out): struck
   through and inert — no booking modal. */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-price-strike {
    color: var(--ntb-color-text-muted);
    text-decoration: line-through;
    opacity: 0.75;
    cursor: default;
}
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-price-strike .woocommerce-Price-amount {
    color: inherit;
}

/* Whole row sold out: Распродадено replaces Резервирај. */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-reserve-btn.ntb-pricing-soldout-btn,
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-reserve-btn.ntb-pricing-soldout-btn:disabled {
    background: #fbeaea;
    color: var(--ntb-color-no) !important;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-reserve-btn.ntb-pricing-soldout-btn:hover {
    background: #fbeaea;
    transform: none;
    box-shadow: none;
}

/* =========================================================================
 * Shared modal styling (room-choose / guests / extras).
 * =======================================================================*/
.ntb-room-choose-modal,
.ntb-guests-modal,
.ntb-extras-modal {
    position: fixed;
    inset: 0;
    /* Above the Термини/Ценовник popups (100050) so booking started from
       inside the full Ценовник popup stacks on top of it. */
    z-index: 100070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ntb-room-choose-modal-overlay,
.ntb-guests-modal-overlay,
.ntb-extras-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 57, 84, 0.55);
    backdrop-filter: blur(2px);
}

.ntb-room-choose-modal-content,
.ntb-guests-modal-content,
.ntb-extras-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 28px 22px;
    width: min(560px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(11, 57, 84, 0.25);
    color: var(--ntb-color-text);
}

.ntb-room-choose-modal-close,
.ntb-guests-modal-close,
.ntb-extras-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: var(--ntb-color-text-muted) !important;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.ntb-room-choose-modal-close:hover,
.ntb-guests-modal-close:hover,
.ntb-extras-modal-close:hover {
    background: var(--ntb-color-bg-soft) !important;
    color: var(--ntb-color-primary) !important;
}

.ntb-modal-title {
    margin: 0 0 6px;
    padding-right: 36px;
    color: var(--ntb-color-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.005em;
}

.ntb-modal-subtitle {
    margin: 0 0 18px;
    color: var(--ntb-color-text-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

/* Modal action row (Cancel / Continue / Skip / Confirm). */
.ntb-modal-actions,
.ntb-room-choose-modal .ntb-modal-actions,
.ntb-guests-modal-actions,
.ntb-extras-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

/* All modal buttons — reset every theme-injected property explicitly. */
.ntb-room-choose-modal .ntb-btn,
.ntb-guests-modal .ntb-btn,
.ntb-extras-modal .ntb-btn,
.ntb-room-choose-modal button.ntb-btn,
.ntb-guests-modal button.ntb-btn,
.ntb-extras-modal button.ntb-btn,
.ntb-confirm-extras-btn,
.ntb-skip-extras-btn,
.ntb-guests-cancel-btn,
.ntb-guests-confirm-btn,
.ntb-room-choose-cancel-btn,
.ntb-room-choose-continue-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    border-radius: 999px !important;
    padding: 9px 24px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.ntb-room-choose-modal .ntb-btn:disabled,
.ntb-guests-modal .ntb-btn:disabled,
.ntb-extras-modal .ntb-btn:disabled,
.ntb-confirm-extras-btn:disabled,
.ntb-skip-extras-btn:disabled,
.ntb-guests-cancel-btn:disabled,
.ntb-guests-confirm-btn:disabled,
.ntb-room-choose-cancel-btn:disabled,
.ntb-room-choose-continue-btn:disabled {
    opacity: 0.45 !important;
    cursor: default !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Primary (filled navy). */
.ntb-room-choose-modal .ntb-btn-primary,
.ntb-guests-modal .ntb-btn-primary,
.ntb-extras-modal .ntb-btn-primary,
.ntb-room-choose-continue-btn,
.ntb-confirm-extras-btn,
.ntb-guests-confirm-btn {
    background: var(--ntb-color-primary) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid var(--ntb-color-primary) !important;
    box-shadow: 0 1px 2px rgba(11, 57, 84, 0.15) !important;
}

.ntb-room-choose-modal .ntb-btn-primary:hover:not(:disabled),
.ntb-guests-modal .ntb-btn-primary:hover:not(:disabled),
.ntb-extras-modal .ntb-btn-primary:hover:not(:disabled),
.ntb-room-choose-continue-btn:hover:not(:disabled),
.ntb-confirm-extras-btn:hover:not(:disabled),
.ntb-guests-confirm-btn:hover:not(:disabled) {
    background: var(--ntb-color-primary-soft) !important;
    border-color: var(--ntb-color-primary-soft) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(11, 57, 84, 0.22) !important;
}

/* Secondary (outline navy). */
.ntb-room-choose-modal .ntb-btn-secondary,
.ntb-guests-modal .ntb-btn-secondary,
.ntb-extras-modal .ntb-btn-secondary,
.ntb-room-choose-cancel-btn,
.ntb-skip-extras-btn,
.ntb-guests-cancel-btn {
    background: #ffffff !important;
    background-image: none !important;
    color: var(--ntb-color-primary) !important;
    border: 1px solid var(--ntb-color-border) !important;
    box-shadow: none !important;
}

.ntb-room-choose-modal .ntb-btn-secondary:hover:not(:disabled),
.ntb-guests-modal .ntb-btn-secondary:hover:not(:disabled),
.ntb-extras-modal .ntb-btn-secondary:hover:not(:disabled),
.ntb-room-choose-cancel-btn:hover:not(:disabled),
.ntb-skip-extras-btn:hover:not(:disabled),
.ntb-guests-cancel-btn:hover:not(:disabled) {
    background: var(--ntb-color-bg-soft) !important;
    border-color: var(--ntb-color-primary-soft) !important;
    color: var(--ntb-color-primary) !important;
}

/* =========================================================================
 * Room chooser modal (step 1) — radio cards.
 * =======================================================================*/
.ntb-room-choose-list {
    display: grid;
    gap: 10px;
    margin: 6px 0 4px;
}

.ntb-room-choose-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--ntb-color-border);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.ntb-room-choose-card:hover {
    border-color: var(--ntb-color-primary-soft);
    background: var(--ntb-color-bg-soft);
}

.ntb-room-choose-card-active {
    border-color: var(--ntb-color-primary);
    background: var(--ntb-color-bg-soft);
    box-shadow: 0 0 0 3px rgba(11, 57, 84, 0.08);
}

.ntb-room-choose-card input[type="radio"] {
    accent-color: var(--ntb-color-primary);
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.ntb-room-choose-card-body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.ntb-room-choose-card-name {
    flex: 1;
    color: var(--ntb-color-text);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
}

.ntb-room-choose-card-price {
    color: var(--ntb-color-primary);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.ntb-room-choose-card-price .woocommerce-Price-amount {
    color: inherit;
    font-weight: inherit;
}

/* =========================================================================
 * Guests modal — qty controls inherit base wizard styling, tweaks here.
 * =======================================================================*/
.ntb-guests-tier-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.ntb-guests-tier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--ntb-color-bg-soft);
    border: 1px solid var(--ntb-color-border);
    border-radius: 10px;
}

.ntb-guests-tier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ntb-guests-tier-label {
    color: var(--ntb-color-primary);
    font-weight: 600;
    font-size: 14px;
}

.ntb-guests-tier-age {
    color: var(--ntb-color-text-muted);
    font-size: 12px;
}

/* Qty controls inside the guests modal — locked down with !important so the
 * parent theme's pink "button" styles can't bleed into the +/- buttons. */
.ntb-guests-modal .ntb-qty-control {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid var(--ntb-color-border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ntb-guests-modal .ntb-qty-minus,
.ntb-guests-modal .ntb-qty-plus,
.ntb-guests-modal button.ntb-qty-minus,
.ntb-guests-modal button.ntb-qty-plus {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    background-image: none !important;
    color: var(--ntb-color-primary) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ntb-guests-modal .ntb-qty-minus:hover:not(:disabled),
.ntb-guests-modal .ntb-qty-plus:hover:not(:disabled) {
    background: var(--ntb-color-bg-soft) !important;
    color: var(--ntb-color-primary) !important;
}

.ntb-guests-modal .ntb-qty-minus:disabled,
.ntb-guests-modal .ntb-qty-plus:disabled {
    opacity: 0.35 !important;
    cursor: default !important;
    background: #ffffff !important;
    color: var(--ntb-color-primary) !important;
}

.ntb-guests-modal .ntb-qty-control input[type="number"] {
    width: 42px !important;
    height: 30px !important;
    border: none !important;
    border-left: 1px solid var(--ntb-color-border) !important;
    border-right: 1px solid var(--ntb-color-border) !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--ntb-color-text) !important;
    background: #ffffff !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ntb-guests-modal .ntb-qty-control input[type="number"]::-webkit-inner-spin-button,
.ntb-guests-modal .ntb-qty-control input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ntb-guests-capacity-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ntb-color-text-muted);
    padding: 10px 14px;
    background: var(--ntb-color-bg-soft);
    border-radius: 8px;
}

.ntb-guests-capacity-info strong {
    color: var(--ntb-color-primary);
    font-weight: 700;
}

.ntb-over-capacity .ntb-guests-total-count {
    color: var(--ntb-color-no);
}

/* =========================================================================
 * Extras modal styling.
 * =======================================================================*/
.ntb-extras-list {
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
}

.ntb-extra-item {
    padding: 12px 14px;
    background: var(--ntb-color-bg-soft);
    border: 1px solid var(--ntb-color-border);
    border-radius: 10px;
}

.ntb-extra-must-have {
    border-color: var(--ntb-color-primary-soft);
    background: rgba(11, 57, 84, 0.04);
}

.ntb-extra-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.ntb-extra-checkbox input[type="checkbox"] {
    accent-color: var(--ntb-color-primary);
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.ntb-extra-name {
    flex: 1;
    color: var(--ntb-color-text);
    font-weight: 500;
    font-size: 14px;
}

.ntb-extra-required-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    background: var(--ntb-color-primary);
    color: #ffffff;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ntb-extra-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--ntb-color-primary);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.ntb-extra-price small {
    color: var(--ntb-color-text-muted);
    font-weight: 500;
    font-size: 11.5px;
}

.ntb-extra-kids-price {
    color: var(--ntb-color-text-muted) !important;
}

.ntb-extra-dropdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ntb-extra-dropdown .ntb-extra-name {
    font-weight: 600;
}

.ntb-extra-dropdown select {
    width: 100%;
    border: 1px solid var(--ntb-color-border);
    border-radius: 8px;
    padding: 8px 10px;
    background: #ffffff;
    color: var(--ntb-color-text);
    font-size: 14px;
}

/* --- Mobile polish on modals --- */
@media (max-width: 540px) {
    .ntb-room-choose-modal-content,
    .ntb-guests-modal-content,
    .ntb-extras-modal-content {
        padding: 22px 18px 18px;
        border-radius: 12px;
    }
    .ntb-modal-title {
        font-size: 18px;
    }
    .ntb-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .ntb-btn {
        text-align: center;
    }
}

/* --- Wizard container + message helpers --- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-wizard-wrap {
    margin: 0;
    padding: 0;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-wizard-message {
    margin-top: 12px;
    font-weight: 500;
}

/* --- Inline datepicker fallback (when product has no fixed tour dates) --- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-inline-datepicker {
    background: var(--ntb-color-bg-soft);
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-inline-datepicker label {
    font-weight: 600;
    color: var(--ntb-color-primary);
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-inline-datepicker input[type="text"] {
    flex: 1;
    border: 1px solid var(--ntb-color-border);
    border-radius: 6px;
    padding: 8px 10px;
    background: #ffffff;
}

/* --- Mobile: compress nav header + table padding --- */
@media (max-width: 720px) {
    .woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-hotel-name {
        font-size: 20px;
    }
    .woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-nav-label {
        display: none;
    }
    .woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-th,
    .woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-td {
        padding: 12px 14px;
        font-size: 13px;
    }
    .woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-th-room {
        min-width: 140px;
    }
}

/* -------------------------------------------------------------------------
 * Опис на хотели tab — list of hotels with descriptions
 * ---------------------------------------------------------------------- */
.ntb-hotels-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ntb-hotels-item {
    padding: 18px 22px;
    margin: 0 0 14px;
    background: var(--ntb-color-bg-soft);
    border: 1px solid var(--ntb-color-border);
    border-radius: 8px;
}

.ntb-hotels-item:last-child {
    margin-bottom: 0;
}

.ntb-hotels-item-title {
    margin: 0 0 10px;
    color: var(--ntb-color-primary);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ntb-hotels-item-desc {
    color: var(--ntb-color-text);
    font-size: 14.5px;
    line-height: 1.65;
}

.ntb-hotels-item-desc p {
    margin: 0 0 10px;
}

.ntb-hotels-item-desc p:last-child {
    margin-bottom: 0;
}

.ntb-hotels-item-desc a {
    color: var(--ntb-color-primary);
    text-decoration: underline;
}

.ntb-hotels-item-desc ul,
.ntb-hotels-item-desc ol {
    margin: 0 0 12px 22px;
    padding: 0;
}

/* -------------------------------------------------------------------------
 * Напомени tab — free-form notes
 * ---------------------------------------------------------------------- */
.ntb-notes-content {
    color: var(--ntb-color-text);
    font-size: 15px;
    line-height: 1.7;
    background: var(--ntb-color-bg-soft);
    border: 1px solid var(--ntb-color-border);
    border-left: 4px solid var(--ntb-color-primary);
    border-radius: 8px;
    padding: 20px 24px;
}

.ntb-notes-content p {
    margin: 0 0 12px;
}

.ntb-notes-content p:last-child {
    margin-bottom: 0;
}

.ntb-notes-content strong {
    color: var(--ntb-color-primary);
}

.ntb-notes-content ul,
.ntb-notes-content ol {
    margin: 0 0 12px 22px;
    padding: 0;
}

/* -------------------------------------------------------------------------
 * Agenda tab — rich text day-by-day program
 * ---------------------------------------------------------------------- */
.ntb-agenda-content {
    color: var(--ntb-color-text);
    line-height: 1.75;
    font-size: 15.5px;
}

.ntb-agenda-content h2,
.ntb-agenda-content h3,
.ntb-agenda-content h4 {
    color: var(--ntb-color-primary);
    margin: 22px 0 10px;
    font-weight: 700;
    line-height: 1.3;
}

.ntb-agenda-content h2 { font-size: 22px; }
.ntb-agenda-content h3 { font-size: 19px; }
.ntb-agenda-content h4 { font-size: 16px; }

.ntb-agenda-content p {
    margin: 0 0 14px;
}

.ntb-agenda-content ul,
.ntb-agenda-content ol {
    margin: 0 0 16px 22px;
    padding: 0;
}

.ntb-agenda-content li {
    margin: 4px 0;
}

.ntb-agenda-content strong {
    color: var(--ntb-color-primary);
}

/* -------------------------------------------------------------------------
 * Mobile polish for tab bar
 * ---------------------------------------------------------------------- */
@media (max-width: 720px) {
    .woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs,
    .woocommerce-tabs ul.tabs.wc-tabs {
        flex-direction: column;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a,
    .woocommerce-tabs ul.tabs.wc-tabs li a {
        border-right: none;
        border-bottom: 1px solid var(--ntb-color-border);
        padding: 14px 18px;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li:last-child a,
    .woocommerce-tabs ul.tabs.wc-tabs li:last-child a {
        border-bottom: none;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active a::after,
    .woocommerce-tabs ul.tabs.wc-tabs li.active a::after {
        left: 18px;
        right: 18px;
    }

    .woocommerce-Tabs-panel {
        padding: 20px 18px;
    }
}

/* -------------------------------------------------------------------------
 * Header action buttons (Термини / Погледни Ценовник) — sit right below
 * the product short description.
 * ---------------------------------------------------------------------- */
.ntb-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 18px;
}

.ntb-header-action {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    border: 1px solid var(--ntb-color-border) !important;
    background: #ffffff !important;
    background-image: none !important;
    color: var(--ntb-color-primary) !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
    box-shadow: none !important;
}

.ntb-header-action:hover {
    background: var(--ntb-color-primary) !important;
    border-color: var(--ntb-color-primary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.ntb-header-action-icon {
    font-size: 15px;
    line-height: 1;
}

/* -------------------------------------------------------------------------
 * Popup shell (Термини / Ценовник) — shares the modal pattern.
 * ---------------------------------------------------------------------- */


.ntb-popup {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ntb-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 57, 84, 0.55);
    backdrop-filter: blur(2px);
}

.ntb-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 28px 24px;
    width: min(640px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(11, 57, 84, 0.25);
    color: var(--ntb-color-text);
}

.ntb-popup-content-wide {
    width: min(1100px, 100%);
}

.ntb-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: var(--ntb-color-text-muted) !important;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.ntb-popup-close:hover {
    background: var(--ntb-color-bg-soft) !important;
    color: var(--ntb-color-primary) !important;
}

/* Strikethrough sold-out termini lines inside the popup. */
.ntb-termini-soldout {
    text-decoration: line-through;
    color: var(--ntb-color-text-muted);
    opacity: 0.6;
}

/* Cenovnik popup body inherits cenovnik-tab styling because we add
 * .woocommerce-Tabs-panel--ntb_cenovnik to it. */
.ntb-popup-cenovnik-body {
    margin-top: 14px;
}

/* General terms tab — readable text block. */
.ntb-general-terms-content {
    color: var(--ntb-color-text);
    line-height: 1.7;
    font-size: 15px;
}
.ntb-general-terms-content p { margin: 0 0 12px; }
.ntb-general-terms-content h2,
.ntb-general-terms-content h3,
.ntb-general-terms-content h4 {
    color: var(--ntb-color-primary);
    margin: 18px 0 8px;
}
.ntb-general-terms-content ul,
.ntb-general-terms-content ol {
    margin: 0 0 12px 22px;
    padding: 0;
}

/* -------------------------------------------------------------------------
 * Early-booking promo banner (between product title and price).
 * ---------------------------------------------------------------------- */
.ntb-promo-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ntb-color-primary) 0%, var(--ntb-color-primary-soft) 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(11, 57, 84, 0.18);
}

.ntb-promo-banner-icon {
    font-size: 16px;
    line-height: 1;
}

.ntb-promo-banner-text {
    line-height: 1.3;
}

/* -------------------------------------------------------------------------
 * Cenovnik POPUP — stacked layout (one hotel after another, no carousel).
 * The Cenovnik TAB still uses the carousel; selectors below only apply
 * inside the popup wrapper so they don't bleed into the tab.
 * ---------------------------------------------------------------------- */
.ntb-popup-cenovnik-body .ntb-pricing-carousel {
    display: block;
}

/* Override the [hidden] attribute the template sets on inactive carousel
 * slides — inside the popup we want every slide visible. */
.ntb-popup-cenovnik-body .ntb-pricing-slide[hidden],
.ntb-popup-cenovnik-body .ntb-pricing-slide-stacked {
    display: block !important;
}

/* Visual separator between hotels in the stacked popup. */
.ntb-popup-cenovnik-body .ntb-pricing-slide + .ntb-pricing-slide {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ntb-color-border);
}

/* Hide carousel nav (prev/next + labels) inside the popup. */
.ntb-popup-cenovnik-body .ntb-pricing-nav {
    display: none !important;
}

/* -------------------------------------------------------------------------
 * Hotel-title link inside the "Опис на хотели" tab.
 * Clicking jumps to the Ценовник tab and selects the same hotel in the slider.
 * ---------------------------------------------------------------------- */
.ntb-hotels-item-jump {
    color: var(--ntb-color-primary);
    text-decoration: none;
    transition: color 150ms ease, text-decoration-color 150ms ease;
    text-decoration-color: transparent;
}

.ntb-hotels-item-jump:hover,
.ntb-hotels-item-jump:focus {
    color: var(--ntb-color-primary-soft);
    text-decoration: underline;
    text-decoration-color: currentColor;
    outline: none;
}

.ntb-hotels-item-jump::after {
    content: " \203A";
    font-weight: 400;
    opacity: 0.5;
    transition: opacity 150ms ease, transform 150ms ease;
    display: inline-block;
}

.ntb-hotels-item-jump:hover::after,
.ntb-hotels-item-jump:focus::after {
    opacity: 1;
    transform: translateX(2px);
}

/* -------------------------------------------------------------------------
 * Pricing table — Термин cell now contains the date + a small "N ноќи" line.
 * (The dedicated Број на ноќи column has been removed.)
 * ---------------------------------------------------------------------- */
.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-termin-date,
.ntb-popup-cenovnik-body .ntb-pricing-termin-date {
    color: var(--ntb-color-text);
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.woocommerce-Tabs-panel--ntb_cenovnik .ntb-pricing-termin-nights,
.ntb-popup-cenovnik-body .ntb-pricing-termin-nights {
    color: var(--ntb-color-text-muted);
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * Room occupancy icons — renders "N/A[+B] ..." room names as a row of
 * adult/child silhouettes with the short code beneath. Hovering any icon or
 * the label shows the full room name (incl. parenthetical description).
 * Used in the Cenovnik table header and the room-choose modal.
 * ---------------------------------------------------------------------- */
.ntb-room-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: help;
    line-height: 1;
}

.ntb-room-icon {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--ntb-color-text);
    cursor: help;
}

.ntb-room-icon-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ntb-room-icon-child .ntb-room-icon-svg {
    width: 14px;
    height: 14px;
    color: var(--ntb-color-primary, #1FA8DC);
}

.ntb-room-icons-label {
    flex-basis: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--ntb-color-text-muted);
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.ntb-pricing-th-room .ntb-room-icons {
    justify-content: center;
}

/* Room-choose modal cards: align icons left, label below. */
.ntb-room-choose-card-name .ntb-room-icons {
    justify-content: flex-start;
}
.ntb-room-choose-card-name .ntb-room-icons-label {
    text-align: left;
}

/* Custom tooltip carriers — actual tooltip is rendered to <body> via JS
   (bindFloatingTooltips in ntb-product-page.js) so it escapes overflow
   containers like the pricing-table-wrap's horizontal scroll. */
.ntb-has-tip {
    outline: none;
}

.ntb-tip-floating {
    position: absolute;
    z-index: 999999;
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: 280px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    pointer-events: none;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.ntb-tip-floating-visible {
    opacity: 1;
    transform: translateY(0);
}

.ntb-tip-floating::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.ntb-tip-floating-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #1f2937;
}

/* -------------------------------------------------------------------------
 * WooCommerce product gallery lightbox (PhotoSwipe) — swap the solid black
 * overlay for a translucent blurred backdrop so the page shows through.
 * ---------------------------------------------------------------------- */
.pswp {
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    background: rgba(255, 255, 255, 0.08);
}

.pswp__bg {
    background: rgba(15, 23, 42, 0.25) !important;
    opacity: 1 !important;
}

/* Keep chrome (close button, arrows, caption) readable against the
   semi-transparent backdrop. */
.pswp__top-bar,
.pswp__caption {
    background: rgba(15, 23, 42, 0.35) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.pswp__button {
    background-color: transparent !important;
}

/* =========================================================================
 * Full-width product hero (replaces the old Elementor title section)
 * ========================================================================= */

/* The hero now carries the title/price/description/gallery, so hide the
   default WooCommerce gallery and let the trimmed summary span full width. */
.ntb-tour-product.single-product div.product .woocommerce-product-gallery,
.ntb-tour-product.single-product div.product .images {
    display: none;
}
.ntb-tour-product.single-product div.product .summary.entry-summary {
    float: none;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
}

/* The full-bleed hero (100vw) would otherwise add a horizontal scrollbar —
   clip the theme's content area. */
#primary {
    overflow: hidden;
}

/* Full-bleed: break out of the theme's content container. */
.ntb-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 36px;
    background-color: var(--ntb-color-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.ntb-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 57, 84, 0.30) 0%,
        rgba(11, 57, 84, 0.55) 45%,
        rgba(11, 57, 84, 0.85) 100%
    );
    pointer-events: none;
}

.ntb-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(52px, 9vw, 120px) 24px clamp(40px, 5vw, 64px);
    text-align: center;
}

.ntb-hero .ntb-hero-title {
    margin: 0 0 16px;
    color: #ffffff !important;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Price + action buttons share one centered row. */
.ntb-hero-pricerow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 0 0 26px;
}

.ntb-hero-price {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Recolour the "Од … по лице" line for a dark photo backdrop. */
.ntb-hero-price .ntb-price-from-label,
.ntb-hero-price .ntb-price-from-suffix {
    color: rgba(255, 255, 255, 0.85);
}
.ntb-hero-price .ntb-price-from-amount,
.ntb-hero-price .ntb-price-from-amount .woocommerce-Price-amount {
    color: #ffffff;
    font-weight: 800;
}

/* Breadcrumb trail moved into the hero (default WooCommerce hook removed). */
.ntb-hero .woocommerce-breadcrumb {
    margin: 0 0 18px;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.ntb-hero .woocommerce-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 150ms ease;
}
.ntb-hero .woocommerce-breadcrumb a:hover,
.ntb-hero .woocommerce-breadcrumb a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.ntb-hero .ntb-promo-banner {
    display: inline-flex;
    margin: 0 auto 20px;
}

.ntb-hero .ntb-header-actions {
    justify-content: center;
    margin: 0;
}

/* Glassy buttons over the photo; invert on hover.
   !important throughout — Hello Elementor reset.css loads after this
   sheet and paints button/:hover/:focus in #c36 (red). */
.ntb-hero .ntb-header-action {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.ntb-hero .ntb-header-action:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--ntb-color-primary) !important;
}
.ntb-hero .ntb-header-action:focus,
.ntb-hero .ntb-header-action:focus-visible {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.ntb-hero .ntb-header-action:hover:focus,
.ntb-hero .ntb-header-action:hover:focus-visible {
    background: #ffffff !important;
    color: var(--ntb-color-primary) !important;
}

.ntb-hero-desc {
    max-width: 820px;
    margin: 0 auto 30px;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-align: justify;
}
.ntb-hero-desc p {
    margin: 0 0 12px;
}
.ntb-hero-desc p:last-child {
    margin-bottom: 0;
}

/* ---- Gallery carousel (gallery images only, main image excluded) ----
   Width matches .ntb-hero-desc so the carousel lines up with the
   short description above it. */
.ntb-hero-gallery {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 820px;
    margin: 14px auto 0;
}

.ntb-hero-gallery-track {
    list-style: none;
    margin: 0;
    padding: 6px;
    display: flex;
    gap: 12px;
    flex: 1 1 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ntb-hero-gallery-track::-webkit-scrollbar {
    display: none;
}

.ntb-hero-gallery-cell {
    flex: 0 0 auto;
    margin: 0;
}

.ntb-hero-gallery-item {
    display: block;
    width: clamp(120px, 18vw, 180px);
    height: clamp(82px, 12vw, 120px);
    padding: 0;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    background: none !important;
    cursor: pointer;
    outline: none;
    transition: transform 160ms ease;
}
.ntb-hero-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ntb-hero-gallery-item:hover,
.ntb-hero-gallery-item:focus,
.ntb-hero-gallery-item:focus-visible {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateY(-3px);
    outline: none;
}

.ntb-hero-gallery-nav {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    outline: none;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}
.ntb-hero-gallery-nav:hover {
    background: #ffffff !important;
    color: var(--ntb-color-primary) !important;
    border-color: #ffffff !important;
}
.ntb-hero-gallery-nav:disabled {
    opacity: 0.3;
    cursor: default;
}
.ntb-hero-gallery:not(.ntb-has-overflow) .ntb-hero-gallery-nav {
    display: none;
}

/* ---- Hotels tab gallery — same carousel, light context ----
   The hero variant is glassy white for the photo background; on the white
   tab panel the arrows flip to the standard navy-on-white treatment. */
.ntb-hotels-gallery {
    max-width: none;
    margin: 16px 0 0;
}
.ntb-hotels-gallery .ntb-hero-gallery-nav {
    background: #ffffff !important;
    color: var(--ntb-color-primary) !important;
    border: 1px solid var(--ntb-color-border) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.ntb-hotels-gallery .ntb-hero-gallery-nav:hover {
    background: var(--ntb-color-primary) !important;
    color: #ffffff !important;
    border-color: var(--ntb-color-primary) !important;
}

/* ---- Lightbox (full-size gallery image popup) ---- */
.ntb-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100060;
    align-items: center;
    justify-content: center;
}
.ntb-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 23, 42, 0.3);
}
.ntb-lightbox-figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 92vw;
    max-height: 86vh;
}
.ntb-lightbox-img {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.ntb-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none !important;
    outline: none;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.ntb-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}
.ntb-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none !important;
    outline: none;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.ntb-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}
.ntb-lightbox-prev {
    left: 22px;
}
.ntb-lightbox-next {
    right: 22px;
}
.ntb-lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    letter-spacing: 0.04em;
}
body.ntb-lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .ntb-hero-gallery-nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .ntb-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
    .ntb-lightbox-prev {
        left: 8px;
    }
    .ntb-lightbox-next {
        right: 8px;
    }
}

/* ---------------------------------------------------------------
 * Cenovnik extra-person columns (typed rooms: +adult / +child).
 * Each filled slot is a clickable price stacked vertically with a
 * small "3-то лице / 4-то лице" position label.
 * -------------------------------------------------------------*/
.ntb-pricing-th-extra {
    font-size: 0.82em;
    font-weight: 600;
    color: #50575e;
    white-space: nowrap;
}

.ntb-pricing-td-extra {
    vertical-align: top;
}

.ntb-pricing-td-extra .ntb-pricing-price-link,
.ntb-pricing-td-extra .ntb-pricing-price-strike {
    display: block;
    margin: 0 0 4px;
    line-height: 1.25;
}

.ntb-pricing-td-extra .ntb-pricing-price-link:last-child,
.ntb-pricing-td-extra .ntb-pricing-price-strike:last-child {
    margin-bottom: 0;
}

.ntb-pricing-person-label {
    display: block;
    font-size: 0.72em;
    font-weight: 400;
    color: #8a8f94;
    margin-top: 1px;
}
