/**
 * ND Travel - AJAX Search Filter Styles
 */

/* ═══════════════════════════════════════
   LAYOUT WRAPPER
═══════════════════════════════════════ */
.nd-travel-search-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    max-width: 90%;
    margin: 30px auto;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.nd-travel-search-sidebar {
    width: 260px;
    min-width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 22px 18px;
    position: sticky;
    top: 20px;
}

.nd-travel-filter-group {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.nd-travel-filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nd-travel-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.nd-travel-filter-label i {
    color: #1bbc9b;
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

/* ── Input text ── */
.nd-travel-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    font-size: 14px;
    color: #444;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    background: #fafafa;
}

.nd-travel-input:focus {
    border-color: #1bbc9b;
    box-shadow: 0 0 0 3px rgba(27,188,155,0.12);
    background: #fff;
}

/* ── Select dropdown ── */
.nd-travel-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fafafa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231bbc9b' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* ── Checkbox list ── */
.nd-travel-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 190px;
    overflow-y: auto;
    padding-right: 2px;
}

.nd-travel-checkbox-list::-webkit-scrollbar {
    width: 3px;
}
.nd-travel-checkbox-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}
.nd-travel-checkbox-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.nd-travel-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: color 0.15s;
    padding: 4px 6px;
    border-radius: 5px;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.nd-travel-checkbox-label:hover {
    background: #f0fdf9;
    color: #1bbc9b;
}

/* Custom checkbox - vizibil și clar */
.nd-travel-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    background: #fff;
}

.nd-travel-checkbox-label input[type="checkbox"]:hover {
    border-color: #1bbc9b;
}

.nd-travel-checkbox-label input[type="checkbox"]:checked {
    background: #1bbc9b;
    border-color: #1bbc9b;
}

.nd-travel-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    display: block;
}

/* Label checked state */
.nd-travel-checkbox-label:has(input:checked) {
    background: #f0fdf9;
    color: #1bbc9b;
    font-weight: 600;
}

/* ── Price Range ── */
.nd-travel-price-display {
    font-size: 13px;
    color: #333;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
    background: #f8f8f8;
    padding: 6px 10px;
    border-radius: 6px;
}

#nd-travel-price-slider {
    margin: 0 8px;
}

#nd-travel-price-slider.ui-slider {
    background: #e9e9e9;
    border: none;
    border-radius: 4px;
    height: 6px;
}

#nd-travel-price-slider .ui-slider-range {
    background: #1bbc9b;
    border-radius: 4px;
}

#nd-travel-price-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1bbc9b;
    top: -8px;
    cursor: pointer;
    outline: none;
    transition: box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(27,188,155,0.3);
}

#nd-travel-price-slider .ui-slider-handle:hover,
#nd-travel-price-slider .ui-slider-handle:focus {
    box-shadow: 0 0 0 5px rgba(27,188,155,0.2);
}

/* ── Reset Button ── */
.nd-travel-reset-btn {
    width: 100%;
    padding: 9px;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.nd-travel-reset-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231,76,60,0.04);
}

.nd-travel-reset-btn i {
    margin-right: 5px;
}


/* ═══════════════════════════════════════
   RESULTS AREA
═══════════════════════════════════════ */
.nd-travel-search-results-wrap {
    flex: 1;
    min-width: 0;
}

.nd-travel-search-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    min-height: 26px;
}

#nd-travel-results-count {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* ── Loading ── */
.nd-travel-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1bbc9b;
    font-weight: 600;
}

.nd-travel-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(27,188,155,0.25);
    border-top-color: #1bbc9b;
    border-radius: 50%;
    animation: nd-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes nd-spin {
    to { transform: rotate(360deg); }
}

.nd-travel-results-grid.nd-travel-loading-state {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ═══════════════════════════════════════
   RESULTS GRID - MASONRY
═══════════════════════════════════════ */

/* Safari fallback: CSS columns */
.nd-travel-results-grid {
    columns: 3;
    column-gap: 20px;
    transition: opacity 0.2s;
}

/* Chrome/Firefox/Edge: CSS Grid Masonry */
@supports (grid-template-rows: masonry) {
    .nd-travel-results-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: masonry;
        gap: 20px;
        columns: unset;
        column-gap: unset;
    }
}

/* ═══════════════════════════════════════
   CARD
═══════════════════════════════════════ */

/* Safari fallback: break-inside pentru columns layout */
.nd-travel-search-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.22s, box-shadow 0.22s;
    display: flex;
    flex-direction: column;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 20px; /* spacing pentru columns fallback */
}

/* În Grid Masonry nu mai avem nevoie de margin-bottom */
@supports (grid-template-rows: masonry) {
    .nd-travel-search-card {
        margin-bottom: 0;
    }
}

.nd-travel-search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.nd-travel-search-card__image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    flex-shrink: 0;
}

.nd-travel-search-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.nd-travel-search-card:hover .nd-travel-search-card__image img {
    transform: scale(1.05);
}

/* Conținut card - elimină margin-top negativ care rupea layout-ul */
.nd-travel-search-card .nd_travel_margin_top_50_negative {
    margin-top: 0 !important;
}

/* ── No results ── */
.nd-travel-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
    font-size: 15px;
}

.nd-travel-no-results p::before {
    content: '🔍';
    display: block;
    font-size: 36px;
    margin-bottom: 10px;
}


/* ═══════════════════════════════════════
   PAGINATION
═══════════════════════════════════════ */
.nd-travel-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 30px;
    justify-content: center;
}

.nd-travel-page-btn {
    padding: 7px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}

.nd-travel-page-btn:hover {
    border-color: #1bbc9b;
    color: #1bbc9b;
}

.nd-travel-page-btn.active {
    background: #1bbc9b;
    border-color: #1bbc9b;
    color: #fff;
    cursor: default;
    font-weight: 700;
}

.nd-travel-page-dots {
    padding: 7px 4px;
    color: #ccc;
    font-size: 14px;
    align-self: center;
}


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1200px) {
    /* columns fallback */
    .nd-travel-results-grid {
        columns: 2;
    }
    @supports (grid-template-rows: masonry) {
        .nd-travel-results-grid {
            grid-template-columns: repeat(2, 1fr);
            columns: unset;
        }
    }
}

@media (max-width: 900px) {
    .nd-travel-search-wrap {
        flex-direction: column;
    }
    .nd-travel-search-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
    }
    .nd-travel-results-grid {
        columns: 2;
    }
    @supports (grid-template-rows: masonry) {
        .nd-travel-results-grid {
            grid-template-columns: repeat(2, 1fr);
            columns: unset;
        }
    }
}

@media (max-width: 560px) {
    .nd-travel-results-grid {
        columns: 1;
    }
    @supports (grid-template-rows: masonry) {
        .nd-travel-results-grid {
            grid-template-columns: 1fr;
            columns: unset;
        }
    }
}

/* ═══════════════════════════════════════
   SORTING
═══════════════════════════════════════ */
.nd-travel-sort-wrap {
    margin-left: auto;
}

.nd-travel-sort-select {
    padding: 7px 32px 7px 12px;
    font-size: 13px;
    font-weight: 500;
    border-color: #e0e0e0;
    color: #444;
    min-width: 170px;
    cursor: pointer;
}

.nd-travel-sort-select:focus {
    border-color: #1bbc9b;
    box-shadow: 0 0 0 3px rgba(27,188,155,0.12);
}

/* ═══════════════════════════════════════
   HERO SEARCH
═══════════════════════════════════════ */
.nd-travel-hero-search {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.nd-travel-hero-search__inner {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13);
    padding: 20px 24px;
}

.nd-travel-hero-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nd-travel-hero-field--text {
    flex: 2;
}

.nd-travel-hero-field--dest {
    flex: 1.5;
}

.nd-travel-hero-field--btn {
    flex-shrink: 0;
}

.nd-travel-hero-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
}

.nd-travel-hero-label i {
    color: #1bbc9b;
    margin-right: 4px;
}

.nd-travel-hero-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.nd-travel-hero-input:focus {
    border-color: #1bbc9b;
    box-shadow: 0 0 0 3px rgba(27,188,155,0.12);
    background: #fff;
}

.nd-travel-hero-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231bbc9b' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fafafa;
    padding-right: 32px;
    cursor: pointer;
}

.nd-travel-hero-btn {
    padding: 11px 28px;
    background: #1bbc9b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(27,188,155,0.35);
}

.nd-travel-hero-btn:hover {
    background: #17a588;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27,188,155,0.4);
}

.nd-travel-hero-btn:active {
    transform: translateY(0);
}

.nd-travel-hero-btn i {
    margin-right: 6px;
}

@media (max-width: 700px) {
    .nd-travel-hero-search__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px;
    }
    .nd-travel-hero-btn {
        width: 100%;
        padding: 13px;
        font-size: 15px;
    }
}

/* ═══════════════════════════════════════
   REGIONS + MOBILE FILTER DRAWER v1.2
═══════════════════════════════════════ */
.nd-travel-regions-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.nd-travel-mobile-filter-toggle,
.nd-travel-mobile-filter-header,
.nd-travel-mobile-filter-overlay {
    display: none;
}

@media (max-width: 767px) {

    .nd-travel-mobile-filter-toggle {
        display: inline-flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0 0 16px;
        padding: 12px 18px;
        border: 0;
        border-radius: 8px;
        background: #1bbc9b;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

    .nd-travel-mobile-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99998;
        background: rgba(0, 0, 0, .48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .nd-travel-mobile-filter-overlay.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nd-travel-search-sidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        z-index: 99999 !important;
        width: min(88vw, 380px) !important;
        min-width: 0 !important;
        max-width: 380px !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 18px 28px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        background: #fff !important;
        box-shadow: 8px 0 28px rgba(0, 0, 0, .2);
        transform: translateX(-105%);
        transition: transform .28s ease;
    }

    .nd-travel-search-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .nd-travel-mobile-filter-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 3;
        min-height: 58px;
        margin: 0 -18px 18px;
        padding: 0 14px 0 18px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
        background: #fff;
        font-size: 18px;
    }

    .nd-travel-mobile-filter-close {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: #222;
        font-size: 32px;
        line-height: 1;
        cursor: pointer;
    }

    body.nd-travel-filters-open {
        overflow: hidden !important;
    }

    /* override vechiul responsive care făcea sidebar-ul static */
    .nd-travel-search-wrap {
        flex-direction: column;
    }
}


/* v1.2.2 regions filtered by destination */
.nd-travel-region-option[style*="display: none"] {
    margin: 0 !important;
}


/* v1.2.3 — ierarhie regiuni/subregiuni */
.nd-travel-region-tree{
    margin:0 0 9px;
    padding:0 0 8px;
    border-bottom:1px solid #edf1ef;
}

.nd-travel-region-parent{
    margin:0!important;
    padding:7px 8px!important;
    border-radius:6px;
    background:#f1f8f6;
}

.nd-travel-region-parent span{
    font-weight:700;
    color:#245f51;
}

.nd-travel-region-children{
    padding:4px 0 0 17px;
}

.nd-travel-region-child{
    position:relative;
    margin:0!important;
    padding:5px 6px!important;
    font-size:13px;
}

.nd-travel-region-child span:before{
    content:"↳";
    margin-right:6px;
    color:#95aaa4;
}

#nd-hero-region optgroup{
    font-weight:700;
}




/* Milera available-date calendar — polished UI */
.nd-milera-date-field{
    display:flex;
    align-items:stretch;
    width:100%;
    position:relative;
}

.nd-milera-date-field .nd-travel-input,
.nd-milera-date-field .nd-travel-hero-input{
    flex:1 1 auto;
    min-width:0;
    height:48px;
    padding:0 14px;
    border:1px solid #d9d9d9;
    border-right:0;
    border-radius:8px 0 0 8px !important;
    background:#fff;
    cursor:pointer;
    box-sizing:border-box;
}

.nd-milera-date-field .nd-travel-input:disabled,
.nd-milera-date-field .nd-travel-hero-input:disabled{
    background:#f7f7f7;
    cursor:not-allowed;
}

.nd-milera-calendar-trigger{
    flex:0 0 48px;
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #d9d9d9;
    border-left:0;
    border-radius:0 8px 8px 0;
    background:#fff;
    color:#111;
    cursor:pointer;
    transition:background .15s ease, border-color .15s ease, transform .15s ease;
    box-sizing:border-box;
}

.nd-milera-calendar-trigger:hover:not(:disabled){
    background:#f4f4f4;
}

.nd-milera-calendar-trigger:active:not(:disabled){
    transform:translateY(1px);
}

.nd-milera-calendar-trigger:disabled{
    background:#f7f7f7;
    color:#aaa;
    cursor:not-allowed;
}

.nd-milera-calendar-popover{
    position:absolute;
    z-index:999999;
    width:340px;
    max-width:calc(100vw - 24px);
    padding:16px;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-radius:14px;
    box-shadow:0 18px 50px rgba(0,0,0,.16);
    box-sizing:border-box;
    font-family:inherit;
}

.nd-mcal-head{
    display:grid;
    grid-template-columns:40px 1fr 40px;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
}

.nd-mcal-title{
    display:block;
    text-align:center;
    font-size:15px;
    line-height:1.2;
    font-weight:700;
    color:#171717;
}

.nd-mcal-head button{
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid #e7e7e7;
    border-radius:8px;
    background:#fff;
    color:#111;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    transition:background .15s ease, border-color .15s ease;
}

.nd-mcal-head button:hover:not(:disabled){
    background:#f5f5f5;
    border-color:#d7d7d7;
}

.nd-mcal-head button:disabled{
    opacity:.28;
    cursor:not-allowed;
}

.nd-mcal-week,
.nd-mcal-grid{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:6px;
}

.nd-mcal-week{
    margin-bottom:6px;
}

.nd-mcal-week span{
    display:flex;
    align-items:center;
    justify-content:center;
    height:26px;
    font-size:11px;
    font-weight:700;
    color:#999;
    text-transform:uppercase;
}

.nd-mcal-empty,
.nd-mcal-day{
    width:100%;
    aspect-ratio:1 / 1;
    min-height:36px;
}

.nd-mcal-empty{
    display:block;
}

.nd-mcal-day{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid transparent;
    border-radius:9px;
    background:#f6f6f6;
    color:#c0c0c0;
    font-size:13px;
    font-weight:600;
    line-height:1;
    cursor:default;
    box-sizing:border-box;
    transition:background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.nd-mcal-day:disabled{
    opacity:1;
}

.nd-mcal-day.is-available{
    background:#f1f8f3;
    border-color:#d7eadb;
    color:#195c2d;
    cursor:pointer;
}

.nd-mcal-day.is-available:hover{
    background:#e1f1e5;
    border-color:#bcdcc4;
    transform:translateY(-1px);
    box-shadow:0 3px 8px rgba(0,0,0,.06);
}

.nd-mcal-day.is-selected{
    background:#111;
    border-color:#111;
    color:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.nd-mcal-day.is-selected:hover{
    background:#111;
    border-color:#111;
    color:#fff;
}

@media (max-width:480px){
    .nd-milera-calendar-popover{
        position:fixed !important;
        left:12px !important;
        right:12px !important;
        top:auto !important;
        bottom:12px !important;
        width:auto;
        max-width:none;
        padding:16px;
        border-radius:16px;
        box-shadow:0 18px 60px rgba(0,0,0,.24);
    }

    .nd-mcal-week,
    .nd-mcal-grid{
        gap:5px;
    }

    .nd-mcal-day,
    .nd-mcal-empty{
        min-height:40px;
    }
}


/* Milera calendar hard reset — isolate from theme button styles */
.nd-milera-calendar-popover{
    width:296px !important;
    max-width:calc(100vw - 20px) !important;
    padding:14px !important;
    border-radius:12px !important;
}

.nd-milera-calendar-popover *,
.nd-milera-calendar-popover *::before,
.nd-milera-calendar-popover *::after{
    box-sizing:border-box !important;
}

.nd-mcal-head{
    grid-template-columns:34px 1fr 34px !important;
    gap:8px !important;
    margin:0 0 10px !important;
}

.nd-mcal-title{
    margin:0 !important;
    padding:0 !important;
    font-size:14px !important;
    line-height:34px !important;
    font-weight:700 !important;
    white-space:nowrap !important;
}

.nd-mcal-head button,
.nd-mcal-grid button{
    appearance:none !important;
    -webkit-appearance:none !important;
    float:none !important;
    position:relative !important;
    inset:auto !important;
    min-width:0 !important;
    max-width:none !important;
    width:auto !important;
    margin:0 !important;
    text-indent:0 !important;
    text-transform:none !important;
    letter-spacing:0 !important;
    box-shadow:none !important;
}

.nd-mcal-head button{
    width:34px !important;
    min-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    padding:0 !important;
    border:1px solid #e4e4e4 !important;
    border-radius:7px !important;
    background:#fff !important;
    color:#222 !important;
    font-size:20px !important;
    line-height:32px !important;
}

.nd-mcal-week,
.nd-mcal-grid{
    display:grid !important;
    grid-template-columns:repeat(7, 32px) !important;
    grid-auto-columns:32px !important;
    justify-content:space-between !important;
    column-gap:0 !important;
    row-gap:5px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

.nd-mcal-week{
    margin-bottom:5px !important;
}

.nd-mcal-week span{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    height:24px !important;
    min-width:32px !important;
    min-height:24px !important;
    padding:0 !important;
    margin:0 !important;
    font-size:10px !important;
    line-height:1 !important;
    font-weight:700 !important;
    color:#999 !important;
}

.nd-mcal-empty{
    display:block !important;
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
    margin:0 !important;
    padding:0 !important;
}

.nd-mcal-day{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    max-width:32px !important;
    min-height:32px !important;
    max-height:32px !important;
    padding:0 !important;
    margin:0 !important;
    border:1px solid #ededed !important;
    border-radius:7px !important;
    background:#f7f7f7 !important;
    color:#c0c0c0 !important;
    font-family:inherit !important;
    font-size:12px !important;
    font-weight:600 !important;
    line-height:30px !important;
    text-align:center !important;
    overflow:hidden !important;
    transform:none !important;
}

.nd-mcal-day.is-available{
    border-color:#cce9df !important;
    background:#eaf8f3 !important;
    color:#19856d !important;
    cursor:pointer !important;
}

.nd-mcal-day.is-available:hover{
    border-color:#47bfa5 !important;
    background:#d8f3ea !important;
    color:#126d5a !important;
    transform:none !important;
    box-shadow:none !important;
}

.nd-mcal-day.is-selected,
.nd-mcal-day.is-selected:hover{
    border-color:#111 !important;
    background:#111 !important;
    color:#fff !important;
}

@media (max-width:480px){
    .nd-milera-calendar-popover{
        left:50% !important;
        right:auto !important;
        bottom:14px !important;
        width:296px !important;
        max-width:calc(100vw - 24px) !important;
        transform:translateX(-50%) !important;
    }
}


/* Uniformizează Data plecare cu restul câmpurilor */
.nd-milera-date-field .nd-travel-input,
.nd-milera-date-field .nd-travel-hero-input{
    height:auto !important;
    min-height:0 !important;
    font-size:inherit !important;
    line-height:inherit !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
}

/* Sidebar */
.nd-travel-search-sidebar .nd-milera-date-field{
    height:42px !important;
}
.nd-travel-search-sidebar .nd-milera-date-field .nd-travel-input{
    height:42px !important;
    min-height:42px !important;
    padding:0 12px !important;
    font-size:14px !important;
    line-height:40px !important;
}
.nd-travel-search-sidebar .nd-milera-calendar-trigger{
    width:42px !important;
    height:42px !important;
    flex-basis:42px !important;
    font-size:14px !important;
}

/* Hero */
.nd-travel-hero-search .nd-milera-date-field{
    height:48px !important;
}
.nd-travel-hero-search .nd-milera-date-field .nd-travel-hero-input{
    height:48px !important;
    min-height:48px !important;
    padding:0 14px !important;
    font-size:14px !important;
    line-height:46px !important;
}
.nd-travel-hero-search .nd-milera-calendar-trigger{
    width:48px !important;
    height:48px !important;
    flex-basis:48px !important;
    font-size:14px !important;
}

/* v1.6.4 - departure date field aligned to neighboring controls */
.nd-travel-hero-search #nd-hero-data-display{
    height:38px !important;
    min-height:38px !important;
    padding:0 10px !important;
    font-size:12px !important;
    line-height:36px !important;
    font-weight:400 !important;
}
.nd-travel-hero-search .nd-milera-date-field{
    height:38px !important;
}
.nd-travel-hero-search .nd-milera-calendar-trigger{
    width:38px !important;
    height:38px !important;
    min-height:38px !important;
    flex:0 0 38px !important;
    font-size:12px !important;
}

.nd-travel-search-sidebar #nd-sidebar-data-display{
    height:38px !important;
    min-height:38px !important;
    padding:0 10px !important;
    font-size:12px !important;
    line-height:36px !important;
    font-weight:400 !important;
}
.nd-travel-search-sidebar .nd-milera-date-field{
    height:38px !important;
}
.nd-travel-search-sidebar .nd-milera-calendar-trigger{
    width:38px !important;
    height:38px !important;
    min-height:38px !important;
    flex:0 0 38px !important;
    font-size:12px !important;
}


/* v1.6.5 — mobile calendar opens immediately below its input */
@media (max-width:480px){
    .nd-milera-calendar-popover{
        position:absolute !important;
        left:12px !important;
        right:auto !important;
        top:0 !important; /* overwritten by JS with exact input position */
        bottom:auto !important;
        width:296px !important;
        max-width:calc(100vw - 24px) !important;
        transform:none !important;
        margin:0 !important;
    }
}

/* v1.6.6 - exact mobile anchoring under clicked date field */
@media (max-width:480px){
    .nd-milera-calendar-popover{
        position:fixed !important;
        right:auto !important;
        bottom:auto !important;
        transform:none !important;
        margin:0 !important;
    }
}
