/* Travora TBO Hotels - Frontend styles with brandable palette */

:root {
    --travora-primary: #0f766e; /* primary brand color (teal) */
    --travora-primary-soft: #14b8a6; /* lighter accent */
    --travora-accent: #2563eb; /* secondary accent (blue) */
    --travora-bg-soft: #f1f5f9;
    --travora-radius-lg: 1rem;
    --travora-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.travora-tbo-search-wrapper {
    margin: 2rem 0;
    font-family: var(--travora-font-family);
}

/* Search form shell */

.travora-tbo-search-form {
    background: #ffffff;
    border-radius: var(--travora-radius-lg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 1rem;
    margin-bottom: 1rem;
}

.travora-tbo-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.travora-tbo-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #f9fafb;
    border-radius: 0.4rem;
    border: 1px solid #e5e7eb;
    flex: 1 1 220px;
    min-height: 3.1rem;
    cursor: pointer;
}

.travora-tbo-pill:hover {
    border-color: var(--travora-primary-soft);
    background: #f1f5f9;
}

.travora-tbo-pill-location,
.travora-tbo-pill-dates,
.travora-tbo-pill-rooms {
    cursor: default;
}

.travora-tbo-pill-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 0.4rem;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.travora-tbo-icon-bed::before {
    content: "\1F6CF"; /* bed emoji */
}

.travora-tbo-icon-calendar::before {
    content: "\1F4C5"; /* calendar emoji */
}
/* Location suggestions dropdown */
.travora-tbo-location-suggestions {
    position: absolute;
    /* Must float above adjacent pills and site headers */
    z-index: 10000;
    margin-top: 0.25rem;
    width: 100%;
    overflow-x: hidden;
    min-width: 320px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.travora-tbo-location-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 0.75rem 1.0rem;
    border: none;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    overflow: hidden;
}

.travora-tbo-location-suggestion:last-child {
    border-bottom: none;
}

.travora-tbo-location-suggestion:hover,
.travora-tbo-location-suggestion:focus {
    background: #eff6ff;
}

.travora-tbo-location-suggestion-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
}

.travora-tbo-location-suggestion-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
}

.travora-tbo-location-suggestion-icon::before { content: none !important; }

/* Map toggle button on location pill */
.travora-tbo-pill-location {
    position: relative;
}

.travora-tbo-map-toggle {
    border: none;
    background: #eff6ff;
    border-radius: 0.55rem;
    padding: 0.35rem 0.6rem;
    margin-left: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.travora-tbo-map-toggle:hover {
    background: #dbeafe;
}

.travora-tbo-icon-map::before {
    content: "\1F5FA"; /* map emoji */
    font-size: 1.1rem;
}

/* Map modal */
.travora-tbo-map-modal {
    position: fixed;
    inset: 0;
    /* Ensure map modal always sits above the search bar and its dropdowns. */
    z-index: 99999;
    display: none;
}

.travora-tbo-map-modal.is-open {
    display: block;
}

.travora-tbo-map-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.travora-tbo-map-dialog {
    position: relative;
    z-index: 100000;
    margin: 2rem auto;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.travora-tbo-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.travora-tbo-map-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.travora-tbo-map-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.travora-tbo-map-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.travora-tbo-map-radius {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
}

.travora-tbo-map-search-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
}

.travora-tbo-map-canvas {
    flex: 1;
    min-height: 360px;
}

.travora-tbo-map-footer {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.travora-tbo-map-apply {
    border-radius: 999px;
    border: none;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    background: var(--travora-primary);
    cursor: pointer;
}

.travora-tbo-map-apply:hover {
    background: var(--travora-primary-soft);
}

@media (max-width: 768px) {
    .travora-tbo-map-dialog {
        margin: 0.5rem;
        height: calc(100vh - 1rem);
    }
}


.travora-tbo-icon-user::before {
    content: "\1F465"; /* busts in silhouette */
}

.travora-tbo-pill-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.travora-tbo-pill-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
}

.travora-tbo-pill-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Location input with autocomplete */

.travora-tbo-location-main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    position: relative;
}



.travora-tbo-pill-country {
    cursor: default;
}

.travora-tbo-icon-flag::before {
    content: "F30D"; /* globe showing Europe-Africa */
}

.travora-tbo-country-select {
    width: 100%;
    border-radius: 0.35rem;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
    background: #ffffff;
}

.travora-tbo-country-select:focus {
    outline: 2px solid var(--travora-primary-soft);
    outline-offset: 1px;
}
.travora-tbo-location-input {
    width: 100%;
    border-radius: 0.35rem;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
    background: #ffffff;
}

.travora-tbo-location-input:focus {
    outline: 2px solid var(--travora-primary-soft);
    outline-offset: 1px;
}
/* Date range pill */

.travora-tbo-pill-dates {
    flex: 1.3 1 260px;
}

.travora-tbo-dates-fields {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.travora-tbo-date-field {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.travora-tbo-date-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
}

.travora-tbo-date-input {
    width: 100%;
    border-radius: 0.35rem;
    border: 1px solid #d1d5db;
    padding: 0.35rem 0.55rem;
    font-size: 0.9rem;
    background: #ffffff;
}

.travora-tbo-date-input:focus {
    outline: 2px solid var(--travora-primary-soft);
    outline-offset: 1px;
}

.travora-tbo-date-nights {
    min-width: 2.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tbo-search-text-color, #0f172a);
    white-space: nowrap;
}

/* Rooms & guests pill */

.travora-tbo-pill-rooms {
    flex: 1 1 220px;
}

.travora-tbo-pill-rooms:focus-visible {
    outline: 2px solid var(--travora-primary);
    outline-offset: 2px;
}

/* Submit button */

.travora-tbo-search-submit-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

.travora-tbo-submit-button {
    border: none;
    border-radius: 0.4rem;
    padding: 0 1.5rem;
    background: var(--travora-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.travora-tbo-submit-button:hover {
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.3);
}

.travora-tbo-submit-button:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Messages */

.travora-tbo-messages {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.travora-tbo-messages-error {
    color: #b91c1c;
}

.travora-tbo-messages-success {
    color: #15803d;
}

/* Filter bar */

.travora-tbo-filter-bar {
    display: none;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1rem 1rem;
    border-radius: 0.75rem;
    background: var(--travora-bg-soft);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.travora-tbo-filter-heading {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
}

.travora-tbo-filter-top {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.travora-tbo-filter-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.travora-tbo-filter-grid .travora-tbo-field {
    min-width: 180px;
}

.travora-tbo-filter-grid select {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    background: #ffffff;
}

.travora-tbo-filter-price-range label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

.travora-tbo-price-range {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}

.travora-tbo-price-range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 999px;
    background: var(--tbo-search-divider, #e5e7eb);
}

.travora-tbo-price-range-highlight {
    position: absolute;
    height: 4px;
    border-radius: 999px;
    background: #0ea5e9;
    left: 0;
    right: 0;
}

.travora-tbo-price-range input[type=range] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

/* Allow pointer events only on thumbs */
.travora-tbo-price-range input[type=range]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 999px;
    border: 2px solid #0ea5e9;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.travora-tbo-price-range input[type=range]::-moz-range-thumb {
    pointer-events: auto;
    height: 18px;
    width: 18px;
    border-radius: 999px;
    border: 2px solid #0ea5e9;
    background: #ffffff;
}

.travora-tbo-price-range-values {
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #4b5563;
}

.travora-tbo-filter-summary {
    margin-left: auto;
    font-size: 0.8rem;
    color: #4b5563;
}

/* Advanced filter sections */
.travora-tbo-filter-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

.travora-tbo-filter-section-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #111827;
}

.travora-tbo-filter-section-options {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.travora-tbo-filter-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #374151;
}

.travora-tbo-filter-option input[type=checkbox] {
    margin: 0;
}

.travora-tbo-filter-option-extra {
    display: none;
}

.travora-tbo-filter-section.is-expanded .travora-tbo-filter-option-extra {
    display: flex;
}

.travora-tbo-filter-show-more {
    margin-top: 0.25rem;
    border: none;
    background: none;
    padding: 0;
    font-size: 0.8rem;
    color: #0ea5e9;
    cursor: pointer;
}

@media (max-width: 768px) {
    .travora-tbo-filter-bar {
        padding: 0.75rem 0.75rem 0.9rem;
    }
}

/* Rooms popover */

.travora-tbo-rooms-popover {
    position: relative;
    margin-top: 0.5rem;
    display: none;
}

.travora-tbo-rooms-popover-inner {
    position: absolute;
    z-index: 20;
    right: 0;
    max-width: 340px;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.travora-tbo-rooms-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.travora-tbo-rooms-row-head label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
}

.travora-tbo-rooms-row-head select {
    border-radius: 0.4rem;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.65rem;
    font-size: 0.85rem;
}

.travora-tbo-room-row {
    padding: 0.5rem 0;
    border-top: 1px solid #e5e7eb;
}

.travora-tbo-room-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.travora-tbo-room-grid {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.travora-tbo-room-grid label {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    gap: 0.2rem;
}

.travora-tbo-room-grid select {
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.55rem;
    font-size: 0.85rem;
}

.travora-tbo-room-children-ages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.travora-tbo-room-children-ages select {
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

.travora-tbo-room-children-ages span {
    font-size: 0.8rem;
    color: #4b5563;
}

.travora-tbo-rooms-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.travora-tbo-rooms-done {
    border-radius: 0.4rem;
    border: none;
    background: var(--travora-accent);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* Results */

.travora-tbo-loading {
    padding: 2rem;
    text-align: center;
}

.travora-tbo-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.travora-tbo-card {
    background: #ffffff;
    border-radius: var(--travora-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

.travora-tbo-card-image {
    height: 190px;
    flex: 0 0 190px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.travora-tbo-card-image img,
.travora-tbo-card-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Defensive layout hardening: some themes/plugins apply global rules that
 * absolutely-position images. Ensure our thumbnails stay in normal flow and
 * never overlap the card body. */
.travora-tbo-card-image img {
    position: relative !important;
    inset: auto !important;
    top: 0 !important;
    left: 0 !important;
}

/* Many supplier hero images have text overlays at the bottom. Bias the crop upward to
 * reduce the likelihood that banner text is visible in the thumbnail. */
.travora-tbo-card-image img {
    object-position: 50% 30%;
}

.travora-tbo-card-image-placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.85rem;
}

.travora-tbo-card-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 auto;
    background: #ffffff;
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    transform: none !important;
}

.travora-tbo-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--tbo-search-label-color, #0f172a);
}

.travora-tbo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.2;
}

.travora-tbo-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.travora-tbo-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #0f172a; /* black icons */
}

.travora-tbo-meta-icon svg {
    width: 18px;
    height: 18px;
}



.travora-tbo-card-rating {
    color: #fbbf24;
    font-size: 0.85rem;
}

.travora-tbo-card-location {
    font-size: 0.85rem;
    color: #6b7280;
}

.travora-tbo-card-description {
    font-size: 0.85rem;
    color: #4b5563;
}

.travora-tbo-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.travora-tbo-card-price-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.travora-tbo-card-price-value {
    font-weight: 700;
    display: block;
    color: var(--travora-primary);
}

.travora-tbo-card-actions {
    display: flex;
    gap: 0.5rem;
}

.travora-tbo-view-details,
.travora-tbo-book-button {
    border-radius: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.travora-tbo-view-details {
    background: #e5e7eb;
    color: #111827;
}

.travora-tbo-book-button {
    background: var(--travora-primary);
    color: #ffffff;
}

/* Modal */

.travora-tbo-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.travora-tbo-modal.is-open {
    display: block;
}

.travora-tbo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.travora-tbo-modal-dialog {
    position: relative;
    max-width: 900px;
    margin: 3vh auto;
    background: #ffffff;
    border-radius: var(--travora-radius-lg);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
    overflow: hidden;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
}

.travora-tbo-modal-close {
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.travora-tbo-modal-content {
    padding: 1.5rem;
    overflow-y: auto;
}
.travora-tbo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.travora-tbo-modal-header-main h2 {
    margin: 0;
}


.travora-tbo-modal-gallery {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.travora-tbo-modal-gallery-main {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000000;
}

.travora-tbo-modal-gallery-main-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
}


.travora-tbo-modal-gallery-counter {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
}

.travora-tbo-modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    cursor: pointer;
}

.travora-tbo-modal-gallery-prev {
    left: 0.75rem;
}

.travora-tbo-modal-gallery-next {
    right: 0.75rem;
}

.travora-tbo-modal-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.travora-tbo-modal-gallery-thumb {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    flex: 0 0 120px;
    cursor: pointer;
    opacity: 0.7;
}

.travora-tbo-modal-gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.travora-tbo-modal-gallery-thumb.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #0ea5e9;
}

@media (max-width: 768px) {
    .travora-tbo-modal-gallery-main-image img {
        height: 220px;
    }
}

.travora-tbo-modal-description {
    font-size: 0.9rem;
    color: #4b5563;
}

.travora-tbo-modal-location {
    font-size: 0.9rem;
    color: #6b7280;
}

.travora-tbo-modal-price {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--travora-primary);
}

.travora-tbo-booking-form {
    margin-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.travora-tbo-booking-form h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
}

.travora-tbo-booking-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 0.25rem;
}

.travora-tbo-booking-form input {
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
}

.travora-tbo-booking-form button {
    justify-self: flex-start;
    border-radius: 0.4rem;
    padding: 0.6rem 1.1rem;
    border: none;
    background: var(--travora-accent);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.travora-tbo-booking-message {
    font-size: 0.85rem;
    color: #111827;
}

.travora-tbo-modal-footer-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.travora-tbo-modal-book-toggle {
    border-radius: 0.5rem;
    padding: 0.55rem 1.2rem;
    border: none;
    background: var(--travora-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.travora-tbo-modal-more-details {
    margin-right: auto;
    border-radius: 0.5rem;
    padding: 0.55rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}


/* Single hotel page */

.travora-tbo-single-hotel {
    max-width: 960px;
    margin: 0 auto;
}

.travora-tbo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.travora-tbo-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.travora-tbo-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #4b5563;
}

/* Responsive tweaks */


@media (max-width: 1200px) {
    .travora-tbo-results-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .travora-tbo-search-form {
        padding: 0.85rem;
    }

    .travora-tbo-search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .travora-tbo-pill {
        border-radius: 0.4rem;
    }

    .travora-tbo-search-submit-wrap {
        width: 100%;
    }

    .travora-tbo-submit-button {
        width: 100%;
        justify-content: center;
    }

    .travora-tbo-rooms-popover-inner {
        right: auto;
        left: 0;
        max-width: none;
        width: 100%;
    }

    .travora-tbo-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .travora-tbo-results-grid {
        grid-template-columns: 1fr;
    }
}


/* Detail page layout */
.travora-tbo-single-hotel {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.travora-tbo-single-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.travora-tbo-single-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.travora-tbo-section {
    margin-top: 2rem;
}

.travora-tbo-section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.travora-tbo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.travora-tbo-gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.travora-tbo-amenities-listing {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.travora-tbo-amenities-line {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.5rem;
    row-gap: 0.15rem;
    font-size: 0.9rem;
}

.travora-tbo-amenities-label {
    font-weight: 600;
    min-width: 150px;
}

.travora-tbo-amenities-value {
    flex: 1 1 auto;
}
.travora-tbo-rooms-table-wrapper {
    overflow-x: auto;
}

.travora-tbo-rooms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.travora-tbo-rooms-table th,
.travora-tbo-rooms-table td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.6rem 0.5rem;
    vertical-align: top;
}

.travora-tbo-rooms-table th {
    text-align: left;
    font-weight: 600;
    background: #f9fafb;
}

.travora-tbo-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .travora-tbo-single-meta {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}


.travora-tbo-reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.travora-tbo-reviews-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.travora-tbo-reviews-stars .travora-tbo-star {
    font-size: 1rem;
    margin-right: 0.1rem;
}

.travora-tbo-reviews-stars .travora-tbo-star.is-muted {
    color: #d1d5db;
}

.travora-tbo-reviews-text {
    font-size: 0.9rem;
    color: #4b5563;
}

@media (min-width: 768px) {
    .travora-tbo-reviews-summary {
        flex-direction: row;
        align-items: center;
    }

    .travora-tbo-reviews-text {
        margin-left: 0.75rem;
    }
}

/* Result card highlight line under title */
.travora-tbo-card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0.25rem 0 0.35rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.travora-tbo-highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.travora-tbo-highlight-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.travora-tbo-highlight-icon-guests::before {
    content: "\1F465";
}

.travora-tbo-highlight-icon-cancel::before {
    content: "\1F4C5";
}

.travora-tbo-highlight-icon-meal::before {
    content: "\2615";
}

.travora-tbo-highlight-text {
    white-space: normal;
}

/* Amenity grid on detail page */
.travora-tbo-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.75rem 1.5rem;
    margin-top: 0.75rem;
}

.travora-tbo-amenities-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.travora-tbo-amenities-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.travora-tbo-amenities-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.travora-tbo-amenities-group li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #374151;
}

.travora-tbo-amenities-group li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-size: 0.75rem;
    color: var(--travora-primary);
}

/* Other amenities subsections (detail page) */
.travora-tbo-amenities-subgroups{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.35rem;
}

.travora-tbo-amenities-subgroup-title{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.travora-tbo-amenities-more{
    list-style: none;
    padding-left: 0;
    margin-top: 0.35rem;
}

.travora-tbo-amenities-more::before{ content: none; }

.travora-tbo-amenities-subtoggle{
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
    color: var(--travora-primary);
}

/* Amenities show more/less (detail page) */
.travora-tbo-amenities-toggle{
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
    color: var(--travora-primary);
}

.travora-tbo-amenities-toggle-inline{
    display: inline-block;
    margin-top: 0.25rem;
}

.travora-tbo-amenities-other{
    margin-top: 1.25rem;
}

.travora-tbo-amenities-other-text{
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151;
}

.travora-tbo-amenities-note {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .travora-tbo-card-highlights {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Split gallery layout on detail page */
.travora-tbo-gallery-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 0.75rem;
}

.travora-tbo-gallery-main,
.travora-tbo-gallery-thumb {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.travora-tbo-gallery-main img,
.travora-tbo-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.travora-tbo-gallery-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(90px, 1fr);
    gap: 0.5rem;
}

.travora-tbo-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(15,23,42,0.7), transparent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Gallery lightbox */
.travora-tbo-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.travora-tbo-gallery-lightbox.is-open {
    display: flex;
}

.travora-tbo-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.travora-tbo-gallery-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
}

.travora-tbo-gallery-lightbox-image-wrap {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
}

.travora-tbo-gallery-lightbox-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.travora-tbo-gallery-lightbox-counter {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    font-size: 0.8rem;
}

.travora-tbo-gallery-lightbox-close {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
}

.travora-tbo-gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.travora-tbo-gallery-lightbox-prev {
    left: 0.5rem;
}

.travora-tbo-gallery-lightbox-next {
    right: 0.5rem;
}

@media (max-width: 900px) {
    .travora-tbo-gallery-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .travora-tbo-gallery-lightbox-inner {
        padding-inline: 0.75rem;
    }
}

/* --- v12 adjustments: unified card CTA layout and gallery tweaks --- */
.travora-tbo-card-actions {
    flex: 1 1 auto;
}

.travora-tbo-view-details,
.travora-tbo-book-button {
    flex: 1 1 0;
    text-align: center;
}

.travora-tbo-card-footer {
    align-items: flex-end;
}

/* Make gallery tiles more uniform */
.travora-tbo-gallery-main img,
.travora-tbo-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.travora-tbo-gallery-main,
.travora-tbo-gallery-thumb {
    border-radius: 0.75rem;
}

.travora-tbo-gallery-main img,
.travora-tbo-gallery-thumb img {
    aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
    .travora-tbo-gallery-main img,
    .travora-tbo-gallery-thumb img {
        aspect-ratio: 4 / 3;
    }
}


/* Ensure result cards align consistently in grid rows */
.travora-tbo-results-grid {
  align-items: stretch;
}

.travora-tbo-card {
  height: 100%;
}

.travora-tbo-card-footer {
  margin-top: auto;
  align-items: flex-end;
}

/* Detail page: Rooms & rate information layout */
.travora-tbo-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.travora-tbo-room-card {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.travora-tbo-room-card--collapsed {
  display: none;
}

.travora-tbo-room-media {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #f3f4f6;
}

.travora-tbo-room-image-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.travora-tbo-room-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.travora-tbo-room-image-prev {
  left: 0.5rem;
}

.travora-tbo-room-image-next {
  right: 0.5rem;
}

.travora-tbo-room-image-nav:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.travora-tbo-room-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.travora-tbo-room-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.travora-tbo-room-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.travora-tbo-room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.travora-tbo-room-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}

.travora-tbo-room-tag--cancel {
  background: #fef2f2;
  color: #991b1b;
}

.travora-tbo-room-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.travora-tbo-room-price {
  text-align: right;
}

.travora-tbo-room-price-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.travora-tbo-room-price-value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.travora-tbo-room-price-unavailable {
  font-size: 0.8rem;
  color: #6b7280;
}

.travora-tbo-rooms-toggle-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

.travora-tbo-rooms-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.travora-tbo-rooms-toggle:hover {
  background: #f9fafb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.travora-tbo-rooms-toggle:active {
  transform: translateY(1px);
}

/* Hotel on map container */
.travora-tbo-hotel-map {
  margin-top: 0.75rem;
  width: 100%;
  min-height: 360px;
  border-radius: 1rem;
  overflow: hidden;
}

.travora-tbo-map-infowindow {
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .travora-tbo-room-card {
    grid-template-columns: 1fr;
  }

  .travora-tbo-room-image-frame img {
    height: 200px;
  }

  .travora-tbo-room-footer {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .travora-tbo-room-price {
    text-align: left;
  }
}



.travora-tbo-detail-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 1.25rem 0 1.75rem;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    background-color: #ffffff;
}

@media (min-width: 782px) {
    /* Slight offset when WordPress admin bar is visible on larger screens */
    body.admin-bar .travora-tbo-detail-nav {
        top: 32px;
    }
}

.travora-tbo-detail-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0.4rem;
    display: flex;
    gap: 0.5rem;
}
.travora-tbo-detail-nav-link {
    border: none;
    background: transparent;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-family: var(--travora-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.travora-tbo-detail-nav-link.is-active,
.travora-tbo-detail-nav-link:focus-visible {
    background-color: #fbbf24;
    color: #111827;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    outline: none;
}
.travora-tbo-detail-nav-link:hover {
    background-color: #fef3c7;
}
    list-style: none;
    margin: 0;
    padding: 0 0 0.4rem;
    display: flex;
    gap: 0.5rem;
}
.travora-tbo-detail-nav-link {
    border: none;
    background: transparent;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-family: var(--travora-font-family);
    color: #4b5563;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.travora-tbo-detail-nav-link:hover {
    background-color: #e5f3ff;
    color: var(--tbo-search-text-color, #0f172a);
}
.travora-tbo-detail-nav-link.is-active {
    background-color: #fef3c7;
    color: #92400e;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.5);
}
@media (max-width: 640px) {
  .travora-tbo-detail-nav {
      margin: 1rem 0 1.35rem;
  }
  .travora-tbo-detail-nav-link {
      font-size: 0.85rem;
      padding-inline: 0.7rem;
  }
}


/* --- Detail page sticky section nav (JS‑assisted) --- */
.travora-tbo-detail-nav-placeholder {
    display: none;
    width: 100%;
    height: 0;
}

.travora-tbo-detail-nav {
    position: relative;
    top: auto;
    z-index: 20;
}

.travora-tbo-detail-nav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    border-bottom-color: transparent;
}

body.admin-bar .travora-tbo-detail-nav.is-fixed {
    top: 32px;
}

@media (max-width: 781.98px) {
    body.admin-bar .travora-tbo-detail-nav.is-fixed {
        top: 46px;
    }
}

/* Map toggle panel */
.travora-tbo-map-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.travora-tbo-map-toggle:hover {
    background-color: #f9fafb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.travora-tbo-map-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.travora-tbo-map-toggle-icon::before {
    content: '\25BC';
    display: block;
    transform-origin: center;
    transition: transform 0.15s ease;
}

.travora-tbo-map-toggle[aria-expanded="true"] .travora-tbo-map-toggle-icon::before {
    transform: rotate(-180deg);
}

.travora-tbo-map-panel {
    margin-top: 0.75rem;
}

.travora-tbo-map-panel-inner {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

/* Reviews disclaimer */
.travora-tbo-reviews-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
}


.travora-tbo-location-field {
    position: relative;
}

.travora-tbo-location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.35rem;
    z-index: 30;
}

/* Map pin icon */
.travora-tbo-icon-map-pin::before {
    content: "\1F4CD"; /* Unicode map pin 📍 */
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    color: var(--travora-primary);
}

.travora-tbo-pill-country .travora-tbo-pill-main,
.travora-tbo-pill-location .travora-tbo-pill-main {
    padding-left: 0.75rem;
}



/* Country autocomplete input and suggestions */
.travora-tbo-country-field {
    width: 100%;
    position: relative;
}

.travora-tbo-country-input {
    width: 100%;
    border-radius: 0.35rem;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
    background: #ffffff;
}

.travora-tbo-country-input:focus {
    outline: 2px solid var(--travora-primary-soft);
    outline-offset: 1px;
}

.travora-tbo-country-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    /* Must float above adjacent pills and site headers */
    z-index: 10000;
    margin-top: 0.25rem;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.travora-tbo-country-suggestion {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
}

.travora-tbo-country-suggestion:last-child {
    border-bottom: none;
}

.travora-tbo-country-suggestion:hover,
.travora-tbo-country-suggestion:focus {
    background: #eff6ff;
}


/* Overlay country suggestions directly beneath the country input without resizing the pill */
.travora-tbo-country-field {
    position: relative;
}

.travora-tbo-country-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
}


.travora-tbo-location-suggestion-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.travora-tbo-location-suggestion-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

.travora-tbo-location-suggestion-subtitle {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
}

.travora-tbo-location-suggestion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    /* Force suggestion icons (city pin / hotel bed) to be black as requested. */
    color: #000;
}

/* Load more button for incremental results. */
.travora-tbo-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.travora-tbo-load-more {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #fff;
    color: #111;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.travora-tbo-load-more[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.travora-tbo-location-suggestion-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Keep legacy elements (if present) visually hidden to avoid layout squeeze */
.travora-tbo-location-suggestion-type,
.travora-tbo-location-suggestion-label {
    display: none !important;
}

/* Hotel detail room rates */
.travora-tbo-detail-rates {
    margin-top: 0.5rem;
}

.travora-tbo-detail-rates-loading,
.travora-tbo-detail-rates-empty {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.9rem;
}

.travora-tbo-detail-rates-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.travora-tbo-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.travora-tbo-rate-main {
    min-width: 0;
}

.travora-tbo-rate-name {
    font-weight: 650;
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.25;
}

.travora-tbo-rate-meta {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.travora-tbo-rate-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
}

.travora-tbo-rate-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.travora-tbo-rate-price {
    font-weight: 700;
    color: #065f46;
    white-space: nowrap;
}

.travora-tbo-rate-book {
    border: none;
    border-radius: 0.8rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
    background: #0f766e;
    color: #ffffff;
    font-weight: 650;
}

.travora-tbo-rate-book:hover {
    filter: brightness(0.95);
}

/* Hotel detail room rates toolbar + cards */
.travora-tbo-rates-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}

.travora-tbo-rates-toolbar-left,
.travora-tbo-rates-toolbar-right {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.travora-tbo-rates-label {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 0.25rem;
}

.travora-tbo-rates-search input,
.travora-tbo-rates-select select {
    height: 38px;
    border-radius: 0.6rem;
    border: 1px solid #e5e7eb;
    padding: 0 0.75rem;
    min-width: 180px;
    background: #ffffff;
}

.travora-tbo-rates-toggle {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    background: #ffffff;
    user-select: none;
}

.travora-tbo-rates-reset {
    height: 38px;
    padding: 0 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    background: #ffffff;
    cursor: pointer;
}

.travora-tbo-rates-count {
    font-size: 0.85rem;
    color: #6b7280;
    padding: 0 0.25rem;
}

.travora-tbo-rate-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    background: #ffffff;
    margin: 0 0 0.85rem;
}

.travora-tbo-rate-thumb {
    width: 180px;
    flex: 0 0 180px;
    height: 120px;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #f3f4f6;
}

.travora-tbo-rate-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.travora-tbo-rate-thumb-ph {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
}

/* Rate cards reuse the room-media slider markup; override sizes so cards remain uniform. */
.travora-tbo-rate-card .travora-tbo-room-media {
    width: 180px;
    flex: 0 0 180px;
    height: 120px;
}

.travora-tbo-rate-card .travora-tbo-room-image-frame img {
    height: 120px;
}

@media (max-width: 768px) {
    .travora-tbo-rate-card .travora-tbo-room-media {
        width: 100%;
        flex: 0 0 auto;
        height: 180px;
    }
    .travora-tbo-rate-card .travora-tbo-room-image-frame img {
        height: 180px;
    }
}

.travora-tbo-rate-info {
    flex: 1 1 auto;
    min-width: 0;
}

.travora-tbo-rate-desc {
    margin: 0.5rem 0 0;
    color: #6b7280;
    line-height: 1.45;
    font-size: 0.95rem;
}

.travora-tbo-rate-cancel {
    margin: 0.45rem 0 0;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #0f172a;
}

.travora-tbo-rate-cancel-icon {
    color: var(--travora-primary);
    flex: 0 0 auto;
}

.travora-tbo-rate-cancel-text {
    color: #0f172a;
}

.travora-tbo-rates-more-wrap {
    text-align: center;
    margin: 1rem 0 0;
}

.travora-tbo-rates-more {
    height: 44px;
    padding: 0 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #ffffff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .travora-tbo-rate-card {
        flex-direction: column;
    }
    .travora-tbo-rate-thumb {
        width: 100%;
        flex-basis: auto;
        height: 180px;
    }
    .travora-tbo-rates-search input,
    .travora-tbo-rates-select select {
        min-width: 240px;
        width: 100%;
    }
    .travora-tbo-rates-toolbar-left,
    .travora-tbo-rates-toolbar-right {
        width: 100%;
        justify-content: flex-start;
    }
}


/* Expandable room descriptions */
.travora-tbo-rate-desc-toggle{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 0 6px;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

/* Room card amenities list (compact, like original TBO rate cards) */
.travora-tbo-rate-amenities{
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: #475569;
}
.travora-tbo-rate-amenities li{ margin: 4px 0; }
.travora-tbo-rate-amenities-more{ list-style: none; margin-left: -18px; color: #64748b; }

/* Toggle button used to show full amenities list */
.travora-tbo-rate-amenities-toggle{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  color: var(--travora-primary);
}

/* ------------------------------------------------------------
   Modern search bar skin (cosmetic only)
   Scoped to .travora-tbo-search-form-modern / .travora-tbo-search-bar-modern
------------------------------------------------------------ */

.travora-tbo-search-form.travora-tbo-search-form-modern {
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    padding: 1.1rem;
}

/* ------------------------------------------------------------
   Modern search bar redesign (v80)
   - Single cohesive bar with separators
   - Clear typography
   - SVG outline icons
   - Fully responsive (mobile stacks)
------------------------------------------------------------ */

.travora-tbo-search-form.travora-tbo-search-form-modern {
    background: #ffffff;
    padding: 0;
    border-radius: 1.35rem;
    overflow: visible;
}

.travora-tbo-search-bar.travora-tbo-search-bar-modern {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem;
    border: 1px solid var(--tbo-search-border, #e5e7eb);
    border-radius: var(--tbo-search-radius, 1.35rem);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    background: var(--tbo-search-bg, #ffffff);
}

.travora-tbo-search-bar-modern .travora-tbo-pill {
    border: none;
    background: transparent;
    border-radius: 1rem;
    padding: 0.85rem 1.05rem;
    min-height: 4.5rem;
    box-shadow: none;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.travora-tbo-search-bar-modern .travora-tbo-pill:focus-within,
.travora-tbo-search-bar-modern .travora-tbo-pill:hover {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px var(--tbo-search-border, #e2e8f0);
}

/* Segment separators */
.travora-tbo-search-bar-modern .travora-tbo-pill + .travora-tbo-pill {
    position: relative;
}
.travora-tbo-search-bar-modern .travora-tbo-pill + .travora-tbo-pill::before {
    content: "";
    position: absolute;
    left: -0.3rem;
    top: 0.7rem;
    bottom: 0.7rem;
    width: 1px;
    background: #e5e7eb;
}

/* Typography: clear and modern */
.travora-tbo-search-bar-modern .travora-tbo-pill-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.travora-tbo-search-bar-modern .travora-tbo-country-input,
.travora-tbo-search-bar-modern .travora-tbo-location-input,
.travora-tbo-search-bar-modern .travora-tbo-date-input {
    font-size: 0.95rem;
    color: #0f172a;
    min-height: 1.9rem;
}

.travora-tbo-search-bar-modern .travora-tbo-country-input::placeholder,
.travora-tbo-search-bar-modern .travora-tbo-location-input::placeholder,
.travora-tbo-search-bar-modern .travora-tbo-date-input::placeholder {
    color: var(--tbo-search-placeholder-color, #64748b);
}

/* Icon container */
.travora-tbo-search-bar-modern .travora-tbo-pill-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.9rem;
    background: var(--tbo-search-icon-bg, #f1f5f9);
    flex: 0 0 auto;
}

/* Keep section labels on a single line for a cleaner, modern look. */
.travora-tbo-search-bar-modern .travora-tbo-pill-label {
    white-space: nowrap;
}

/* Date icon stack: show nights below the calendar icon (lightweight and non-intrusive). */
.travora-tbo-search-bar-modern .travora-tbo-pill-icon.travora-tbo-date-icon {
    height: auto;
    min-height: 38px;
    padding: 0.35rem 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

/* SVG outline icons (scoped to the modern search form only) */
.travora-tbo-search-form-modern .travora-tbo-icon-calendar::before,
.travora-tbo-search-form-modern .travora-tbo-icon-user::before,
.travora-tbo-search-form-modern .travora-tbo-icon-map-pin::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.travora-tbo-search-form-modern .travora-tbo-icon-calendar::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3' ry='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.travora-tbo-search-form-modern .travora-tbo-icon-user::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
}

.travora-tbo-search-form-modern .travora-tbo-icon-map-pin::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.travora-tbo-search-bar-modern .travora-tbo-map-toggle {
    background: transparent;
    border: none;
    width: 40px;
    min-width: 40px;
    border-radius: 0.9rem;
}

.travora-tbo-search-bar-modern .travora-tbo-submit-button {
    /* Slightly smaller to free space for long labels/summaries. */
    min-height: var(--tbo-search-btn-height, 4.15rem);
    min-width: var(--tbo-search-btn-min-width, 9.5rem);
    border-radius: var(--tbo-search-btn-radius, 1.1rem);
    padding: 0.85rem 1.1rem;
    background: var(--tbo-search-btn-bg, var(--travora-primary));
    color: var(--tbo-search-btn-text, #fff);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

/* Date picker popover */
.travora-tbo-date-picker {
    position: absolute;
    z-index: 60;
    top: calc(100% + 10px);
    left: 0;
    width: 640px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 0.95rem;
    display: none;
}
.travora-tbo-date-picker.is-open { display: block; }

.travora-tbo-date-picker .tbo-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}
.travora-tbo-date-picker .tbo-cal-nav {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.travora-tbo-date-picker .tbo-cal-nav:hover { background: #f1f5f9; }

.travora-tbo-date-picker .tbo-cal-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.travora-tbo-date-picker .tbo-month-title {
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 0.6rem;
    color: #0f172a;
}

/* Date inputs: treat as clickable controls and prevent truncation. */
.travora-tbo-search-bar-modern .travora-tbo-date-field,
.travora-tbo-search-bar-modern .travora-tbo-date-input {
    cursor: pointer;
}

.travora-tbo-search-bar-modern .travora-tbo-date-input {
    min-width: 140px;
    white-space: nowrap;
    /* Prevent overlap with dividers while keeping dates fully readable. */
    overflow: hidden;
    text-overflow: clip;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Give the check-out field a touch more breathing room near the divider. */
.travora-tbo-search-bar-modern .travora-tbo-date-field-checkout .travora-tbo-date-input {
    padding-right: 1.6rem;
}

/* Prevent the check-out date text from touching/overlapping the next segment divider. */
.travora-tbo-search-bar-modern .travora-tbo-pill-dates .travora-tbo-dates-fields {
    padding-right: 0.75rem;
}

/* Nights indicator: show in a neutral position (no overlap with dates). */
.travora-tbo-search-bar-modern .travora-tbo-date-nights {
    position: static;
    align-self: center;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
}
.travora-tbo-date-picker .tbo-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.travora-tbo-date-picker .tbo-dow span {
    text-align: center;
    padding: 0.25rem 0;
}
.travora-tbo-date-picker .tbo-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}
.travora-tbo-date-picker .tbo-day {
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    color: #0f172a;
    font-weight: 500;
}
.travora-tbo-date-picker .tbo-day.is-disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}
.travora-tbo-date-picker .tbo-day:hover:not(.is-disabled) {
    background: var(--tbo-search-icon-bg, #f1f5f9);
}
.travora-tbo-date-picker .tbo-day.is-in-range {
    background: rgba(59, 130, 246, 0.18);
    border-radius: 0;
}
.travora-tbo-date-picker .tbo-day.is-start,
.travora-tbo-date-picker .tbo-day.is-end {
    background: rgba(59, 130, 246, 0.35);
    border-radius: 0.75rem;
    font-weight: 700;
}

/* Mobile: stack segments */
@media (max-width: 900px) {
    .travora-tbo-search-bar.travora-tbo-search-bar-modern {
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0.75rem;
    }
    .travora-tbo-search-bar-modern .travora-tbo-pill {
        width: 100%;
    }
    .travora-tbo-search-bar-modern .travora-tbo-pill + .travora-tbo-pill::before {
        display: none;
    }
    .travora-tbo-date-picker { width: 100%; }
    .travora-tbo-date-picker .tbo-cal-months { grid-template-columns: 1fr; }
}

.travora-tbo-search-bar.travora-tbo-search-bar-modern {
    gap: 0.9rem;
}

.travora-tbo-search-bar-modern .travora-tbo-pill {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    min-height: 4.05rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.travora-tbo-search-bar-modern .travora-tbo-pill:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.travora-tbo-search-bar-modern .travora-tbo-pill:focus-within {
    border-color: var(--travora-primary-soft);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.travora-tbo-search-bar-modern .travora-tbo-pill-label {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

/* Modern bar: enforce single-line labels (no wrapping) */
.travora-tbo-search-bar-modern .travora-tbo-pill-label,
.travora-tbo-search-bar-modern .travora-tbo-date-label {
    white-space: nowrap;
}

/* Modern bar: ensure dropdowns/popovers overlay adjacent pills */
.travora-tbo-search-bar-modern .travora-tbo-pill {
    z-index: 1;
}
.travora-tbo-search-bar-modern .travora-tbo-pill.is-open {
    z-index: 10001;
}

/* Modern bar: allocate more width to the long-placeholder inputs */
.travora-tbo-search-bar-modern .travora-tbo-pill-country {
    flex: 1.15 1 260px;
}
.travora-tbo-search-bar-modern .travora-tbo-pill-location {
    flex: 1.85 1 360px;
}
.travora-tbo-search-bar-modern .travora-tbo-pill-dates {
    flex: 1.35 1 340px;
}
.travora-tbo-search-bar-modern .travora-tbo-pill-rooms {
    flex: 0.85 1 220px;
}

/* Modern bar: show the rooms/guests summary in a lighter tone (compact). */
.travora-tbo-search-bar-modern #travora-tbo-rooms-summary {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
    /* Show the full summary (no truncation) while keeping it compact. */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Inner inputs become “borderless” and rely on pill container */
.travora-tbo-search-bar-modern .travora-tbo-country-input,
.travora-tbo-search-bar-modern .travora-tbo-location-input,
.travora-tbo-search-bar-modern .travora-tbo-date-input {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 1rem;
    color: #0f172a;
}

.travora-tbo-search-bar-modern .travora-tbo-country-input::placeholder,
.travora-tbo-search-bar-modern .travora-tbo-location-input::placeholder {
    color: var(--tbo-search-placeholder-color, #94a3b8);
}

.travora-tbo-search-bar-modern .travora-tbo-country-input:focus,
.travora-tbo-search-bar-modern .travora-tbo-location-input:focus,
.travora-tbo-search-bar-modern .travora-tbo-date-input:focus {
    outline: none;
}

.travora-tbo-search-bar-modern .travora-tbo-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.85rem;
    background: var(--tbo-search-icon-bg, #f1f5f9);
}

.travora-tbo-search-bar-modern .travora-tbo-icon-map-pin::before {
    font-size: 18px;
}

.travora-tbo-search-bar-modern .travora-tbo-map-toggle {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 0.85rem;
    width: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.travora-tbo-search-bar-modern .travora-tbo-map-toggle:hover {
    border-color: #cbd5e1;
}

.travora-tbo-search-bar-modern .travora-tbo-map-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.travora-tbo-search-bar-modern .travora-tbo-submit-button {
    border-radius: var(--tbo-search-btn-radius, 0.95rem);
    min-height: var(--tbo-search-btn-height, 4.05rem);
    min-width: var(--tbo-search-btn-min-width, 9.5rem);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.20);
}

.travora-tbo-search-bar-modern .travora-tbo-submit-button:hover {
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.24);
}

/* ------------------------------------------------------------
   Search bar layout hardening (v83)
   - Fix broken wrapping on mid-width screens
   - Ensure dropdowns/popovers are not clipped and always overlay
   - Improve placeholder visibility by allocating sensible widths
   NOTE: Cosmetic only; does not alter booking/search behavior.
------------------------------------------------------------ */

.travora-tbo-search-wrapper,
.travora-tbo-search-form-modern,
.travora-tbo-search-bar-modern,
.travora-tbo-search-bar-modern .travora-tbo-pill {
    overflow: visible !important;
}

.travora-tbo-search-form-modern {
    position: relative;
    z-index: 9990;
}

/* Use CSS grid for predictable alignment */
.travora-tbo-search-bar.travora-tbo-search-bar-modern {
    display: grid !important;
    grid-template-areas: "country location dates rooms submit";
    /* Slightly reduce location width and give the date range more breathing room.
       This avoids YYYY-MM-DD clipping/overlap against the next divider. */
    grid-template-columns: minmax(220px, 1.25fr) minmax(240px, 1.55fr) minmax(420px, 2.15fr) minmax(200px, 1.1fr) minmax(110px, 140px);
    align-items: stretch;
    gap: 0.75rem;
}

.travora-tbo-search-bar-modern .travora-tbo-pill-country { grid-area: country; }
.travora-tbo-search-bar-modern .travora-tbo-pill-location { grid-area: location; }
.travora-tbo-search-bar-modern .travora-tbo-pill-dates { grid-area: dates; }
.travora-tbo-search-bar-modern .travora-tbo-pill-rooms { grid-area: rooms; }
.travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap { grid-area: submit; }

/* Ensure content can shrink without forcing ugly wraps */
.travora-tbo-search-bar-modern .travora-tbo-pill,
.travora-tbo-search-bar-modern .travora-tbo-pill-main,
.travora-tbo-search-bar-modern .travora-tbo-country-field,
.travora-tbo-search-bar-modern .travora-tbo-location-field,
.travora-tbo-search-bar-modern .travora-tbo-dates-fields {
    min-width: 0;
}

/* Make sure placeholders and values are not clipped by forced ellipsis rules from themes */
.travora-tbo-search-form-modern input::placeholder {
    opacity: 1;
}

/* Dropdown/popover stacking (country/location suggestions, date picker, rooms popover) */
.travora-tbo-country-suggestions,
.travora-tbo-location-suggestions,
.travora-tbo-date-picker,
.travora-tbo-rooms-popover {
    z-index: 999999 !important;
}

/* Prevent the submit button from overlapping the Rooms label */
.travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap {
    display: flex;
    align-items: stretch;
}
.travora-tbo-search-bar-modern .travora-tbo-submit-button {
    width: 100%;
    min-width: 150px;
}

/* Mid-width responsive layout (tablet / narrow desktop) */
@media (max-width: 1100px) {
    .travora-tbo-search-bar.travora-tbo-search-bar-modern {
        grid-template-areas:
            "country location"
            "dates dates"
            "rooms submit";
        grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr);
    }
}

/* Mobile layout */
@media (max-width: 640px) {
    .travora-tbo-search-bar.travora-tbo-search-bar-modern {
        grid-template-areas:
            "country"
            "location"
            "dates"
            "rooms"
            "submit";
        grid-template-columns: 1fr;
    }
    .travora-tbo-search-bar-modern .travora-tbo-submit-button {
        min-width: 0;
    }
}


.travora-tbo-search-bar-modern .travora-tbo-date-input {
    min-height: 1.9rem;
}
/* More consistent layout on large screens */
@media (min-width: 992px) {
    .travora-tbo-search-bar.travora-tbo-search-bar-modern {
        display: grid;
        grid-template-columns: 1.15fr 1.55fr 1.35fr 1.10fr auto;
        align-items: stretch;
    }

    .travora-tbo-search-bar-modern .travora-tbo-pill {
        flex: initial;
        min-width: 0;
    }

    .travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap {
        align-items: stretch;
    }
}

/* ------------------------------------------------------------
   v80 final overrides (must remain at end of file)
   - Modern single-bar search form
   - SVG icons
   - Custom date-range picker (two-months) with range highlight
------------------------------------------------------------ */

.travora-tbo-search-form.travora-tbo-search-form-modern {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 0;
    overflow: hidden;
}

.travora-tbo-search-bar.travora-tbo-search-bar-modern {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.travora-tbo-search-bar-modern .travora-tbo-pill {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 1rem 1.15rem;
    min-height: 5.2rem;
    box-shadow: none;
}

.travora-tbo-search-bar-modern .travora-tbo-pill:hover {
    background: #fafafa;
}

.travora-tbo-search-bar-modern .travora-tbo-pill:focus-within {
    box-shadow: none;
    background: #f8fafc;
}

.travora-tbo-search-bar-modern .travora-tbo-pill + .travora-tbo-pill {
    border-left: 1px solid #e5e7eb;
}

.travora-tbo-search-bar-modern .travora-tbo-pill-label {
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.travora-tbo-search-bar-modern .travora-tbo-country-input,
.travora-tbo-search-bar-modern .travora-tbo-location-input,
.travora-tbo-search-bar-modern .travora-tbo-date-input {
    font-size: 0.95rem;
    color: var(--tbo-search-text-color, #0f172a);
}

.travora-tbo-search-bar-modern .travora-tbo-country-input::placeholder,
.travora-tbo-search-bar-modern .travora-tbo-location-input::placeholder,
.travora-tbo-search-bar-modern .travora-tbo-date-input::placeholder {
    color: var(--tbo-search-placeholder-color, #64748b);
    opacity: 1;
}

.travora-tbo-search-bar-modern .travora-tbo-pill-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.9rem;
    background: #f1f5f9;
}

.travora-tbo-search-form-modern .travora-tbo-icon-calendar::before,
.travora-tbo-search-form-modern .travora-tbo-icon-user::before,
.travora-tbo-search-form-modern .travora-tbo-icon-map-pin::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.travora-tbo-search-form-modern .travora-tbo-icon-calendar::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.travora-tbo-search-form-modern .travora-tbo-icon-user::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.travora-tbo-search-form-modern .travora-tbo-icon-map-pin::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6-9 13-9 13S3 16 3 10a9 9 0 1 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.travora-tbo-search-bar-modern .travora-tbo-map-toggle {
    border: 0;
    background: transparent;
    width: 42px;
    min-width: 42px;
    border-radius: 0.9rem;
}

.travora-tbo-search-bar-modern .travora-tbo-map-toggle:hover {
    background: #f1f5f9;
}

.travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap {
    padding: 0.75rem;
    border-left: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.travora-tbo-search-bar-modern .travora-tbo-submit-button {
    min-height: 4.2rem;
    border-radius: 1.05rem;
    box-shadow: none;
}

/* Responsive: stack into 2 columns on tablets and single column on small screens */
@media (max-width: 991px) {
    .travora-tbo-search-form.travora-tbo-search-form-modern {
        padding: 0.9rem;
        border-radius: 1.1rem;
    }
    .travora-tbo-search-bar.travora-tbo-search-bar-modern {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem;
    }
    .travora-tbo-search-bar-modern .travora-tbo-pill {
        border: 1px solid #e5e7eb;
        border-radius: 1rem;
        background: #fff;
    }
    .travora-tbo-search-bar-modern .travora-tbo-pill + .travora-tbo-pill {
        border-left: 1px solid #e5e7eb;
    }
    .travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap {
        border-left: 0;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .travora-tbo-search-bar.travora-tbo-search-bar-modern {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------
   v82 cosmetic fixes (search bar only)
   - Prevent label overlap with submit button
   - Reduce placeholder truncation by enforcing sensible min-widths
   - Allow wrapping earlier on constrained desktop containers
------------------------------------------------------------ */

/* If the theme container is narrower than expected, allow the bar to wrap instead of overlapping. */
.travora-tbo-search-bar.travora-tbo-search-bar-modern {
    flex-wrap: wrap;
    row-gap: 0.9rem;
}

/* Reserve predictable space for the submit button and avoid crowding. */
.travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap {
    flex: 0 0 140px;
    min-width: 120px;
    padding: 0.4rem;
}
.travora-tbo-search-bar-modern .travora-tbo-submit-button {
    width: 100%;
    min-width: 0;
    padding: 0.85rem 0.9rem;
}

/* Ensure the Rooms pill never shrinks to the point where it overlaps the submit button. */
.travora-tbo-search-bar-modern .travora-tbo-pill-rooms {
    min-width: 200px;
}

/* Allocate more space to inputs to avoid truncating the "Start typing..." placeholders. */
.travora-tbo-search-bar-modern .travora-tbo-pill-country {
    min-width: 260px;
}
.travora-tbo-search-bar-modern .travora-tbo-pill-location {
    min-width: 360px;
}
.travora-tbo-search-bar-modern .travora-tbo-pill-dates {
    min-width: 360px;
}

/* Inputs should consume available width within their pills. */
.travora-tbo-search-bar-modern .travora-tbo-country-input,
.travora-tbo-search-bar-modern .travora-tbo-location-input,
.travora-tbo-search-bar-modern .travora-tbo-date-input {
    width: 100%;
}


/* Custom date-range picker */
.travora-tbo-pill-dates { position: relative; }

.travora-tbo-date-picker {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 9999;
    width: 690px;
    max-width: calc(100vw - 28px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 1rem;
    display: none;
}

.travora-tbo-date-picker.is-open { display: block; }

.travora-tbo-date-picker .tbo-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.travora-tbo-date-picker .tbo-cal-nav {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0.75rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.travora-tbo-date-picker .tbo-cal-nav:hover { background: #f8fafc; }

.travora-tbo-date-picker .tbo-cal-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

/* Footer action area (Done button) */
.travora-tbo-date-picker .tbo-cal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.65rem 0.75rem 0.75rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.75rem;
}

.travora-tbo-date-picker .tbo-cal-done {
    border: 1px solid #0f766e;
    background: #0f766e;
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.travora-tbo-date-picker .tbo-cal-done:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.travora-tbo-date-picker .tbo-cal-month { min-width: 0; }

.travora-tbo-date-picker .tbo-cal-title {
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 0.5rem;
}

.travora-tbo-date-picker .tbo-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.travora-tbo-date-picker .tbo-cal-dow {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    padding: 0.35rem 0;
    font-weight: 600;
}

.travora-tbo-date-picker .tbo-cal-day {
    border: 0;
    background: transparent;
    border-radius: 0.75rem;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}

.travora-tbo-date-picker .tbo-cal-day:hover { background: #f1f5f9; }

.travora-tbo-date-picker .tbo-cal-day.is-disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: transparent;
}

.travora-tbo-date-picker .tbo-cal-day.is-in-range {
    background: rgba(59, 130, 246, 0.24);
    border-radius: 0;
}

.travora-tbo-date-picker .tbo-cal-day.is-range-start,
.travora-tbo-date-picker .tbo-cal-day.is-range-end {
    background: rgba(59, 130, 246, 0.42);
    border-radius: 0.75rem;
    color: #0f172a;
}

.travora-tbo-date-picker .tbo-cal-day.is-range-start { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.travora-tbo-date-picker .tbo-cal-day.is-range-end { border-top-left-radius: 0; border-bottom-left-radius: 0; }

@media (max-width: 760px) {
    .travora-tbo-date-picker { width: 100%; }
    .travora-tbo-date-picker .tbo-cal-months { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Modern search bar: layout + dropdown overlay fixes (v83)
   UI-only changes (no booking/search logic changes)
------------------------------------------------------------ */

/* Ensure all search-bar ancestors allow popovers to render outside */
.travora-tbo-search-wrapper,
.travora-tbo-search-form.travora-tbo-search-form-modern,
.travora-tbo-search-bar.travora-tbo-search-bar-modern,
.travora-tbo-search-bar-modern .travora-tbo-pill {
    overflow: visible !important;
}

/* Create a predictable layout using CSS Grid (prevents broken wrapping) */
.travora-tbo-search-form-modern .travora-tbo-search-bar-modern {
    display: grid !important;
    grid-template-areas: "country location dates rooms submit";
    /* Desktop: slightly narrower location + wider dates + smaller submit.
       This addresses check-out date overlap against the divider. */
    grid-template-columns: 1.25fr 1.55fr 2.15fr 1.1fr 120px;
    gap: 0.85rem !important;
    align-items: stretch;
}

/* Prevent the check-out date from visually touching the separator line to the right. */
.travora-tbo-search-bar-modern .travora-tbo-pill-dates .travora-tbo-dates-fields {
    padding-right: 1.25rem;
}
.travora-tbo-search-bar-modern .travora-tbo-date-field-checkout .travora-tbo-date-input {
    padding-right: 2.1rem;
}

/* Give the dates pill extra right padding so long YYYY-MM-DD values never touch the next divider. */
.travora-tbo-search-bar-modern .travora-tbo-pill-dates {
    padding-right: 1.75rem;
}

/* Make the submit button a bit less dominant (UI-only). */
.travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap {
    padding: 0.55rem;
}
.travora-tbo-search-bar-modern .travora-tbo-submit-button {
    min-height: 3.7rem;
    font-size: 0.98rem;
    min-width: 0;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.travora-tbo-search-bar-modern .travora-tbo-pill-country { grid-area: country; }
.travora-tbo-search-bar-modern .travora-tbo-pill-location { grid-area: location; }
.travora-tbo-search-bar-modern .travora-tbo-pill-dates { grid-area: dates; }
.travora-tbo-search-bar-modern .travora-tbo-pill-rooms { grid-area: rooms; }
.travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap { grid-area: submit; }

/* Allow grid items to shrink without forcing wrap */
.travora-tbo-search-bar-modern .travora-tbo-pill,
.travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap {
    min-width: 0;
}

/* Prevent the Rooms label from overlapping the button */
.travora-tbo-search-bar-modern .travora-tbo-pill-rooms .travora-tbo-pill-main {
    min-width: 0;
}

/* Keep label and placeholders fully visible as much as possible */
.travora-tbo-search-bar-modern .travora-tbo-country-input,
.travora-tbo-search-bar-modern .travora-tbo-location-input,
.travora-tbo-search-bar-modern .travora-tbo-date-input {
    width: 100%;
}

/* Dropdowns and popovers should always overlay the bar */
.travora-tbo-country-suggestions,
.travora-tbo-location-suggestions,
.travora-tbo-date-picker,
.travora-tbo-rooms-popover {
    z-index: 999999 !important;
}

/* Some themes apply transforms that create stacking contexts; raise the wrapper */
.travora-tbo-search-wrapper {
    position: relative;
    z-index: 9999;
}

/* Ensure pills don't sit above their own dropdowns */
.travora-tbo-search-bar-modern .travora-tbo-pill { position: relative; z-index: 1; }
.travora-tbo-search-bar-modern .travora-tbo-pill:focus-within { z-index: 2; }

/* Responsive layout: medium screens */
@media (max-width: 1100px) {
    .travora-tbo-search-form-modern .travora-tbo-search-bar-modern {
        grid-template-areas:
            "country location"
            "dates dates"
            "rooms submit";
        grid-template-columns: 1fr 1fr;
    }
    .travora-tbo-search-bar-modern .travora-tbo-search-submit-wrap {
        display: flex;
        align-items: stretch;
        justify-content: stretch;
    }
    .travora-tbo-search-bar-modern .travora-tbo-submit-button {
        width: 100%;
        min-width: 0;
    }
}

/* Responsive layout: phones */
@media (max-width: 640px) {
    .travora-tbo-search-form-modern .travora-tbo-search-bar-modern {
        grid-template-areas:
            "country"
            "location"
            "dates"
            "rooms"
            "submit";
        grid-template-columns: 1fr;
    }
}
