/* ── Mobile Search & Filters (≤800px only) ── */

/* Hide mobile elements on desktop */
.mob-search-trigger,
.mob-search-overlay,
.mob-sub-panel,
.mob-sort-filter-bar,
.mob-filters-overlay {
    display: none;
}

@media (max-width: 800px) {

/* ── Hide H1 on search page, show found count instead ── */
h1.searchPageHeader {
    display: none;
}

/* ── Hide desktop search bar ── */
.nav-search-bar {
    display: none !important;
}

/* ── Nav: white background (matches desktop) ── */
.modern-navbar {
    background: #ffffff;
    padding-bottom: 16px;
}

/* ── Hide desktop left col / filter toggle ── */
.leftCol          { display: none !important; }
.featuresButton   { display: none !important; }
.mobileFilters    { display: none !important; }
.rightCol         { width: 100% !important; }
.mainContainer    { display: block !important; }

/* ── Compact search trigger bar ── */
.mob-search-trigger {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    gap: 10px;
    width: auto;
}
.mob-search-trigger i.pin {
    color: #888;
    font-size: 16px;
    flex-shrink: 0;
}
.mob-search-trigger-text {
    flex: 1;
    min-width: 0;
}
.mob-search-trigger-main {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-search-trigger-sub {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-search-trigger-btn {
    background: #5a9e2f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: none; /* clicks handled by parent */
}

/* ── Sort / Filters bar ── */
.mob-sort-filter-bar {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 0 0 12px 0;
    background: #fff;
}
.mob-sort-btn,
.mob-filter-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 0;
    background: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-family: inherit;
}
.mob-sort-btn {
    border-right: 1px solid #eee;
}
.mob-sort-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f4f9f9;
    border: 1px solid #c5dede;
    border-radius: 20px;
    padding: 6px 14px 6px 12px;
    position: relative;
}
.mob-sort-icon {
    color: #4a4e69;
    font-size: 13px;
    flex-shrink: 0;
}
.mob-sort-chevron {
    color: #4a4e69;
    font-size: 11px;
    flex-shrink: 0;
    pointer-events: none;
}
#mobSortSelect {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #2d6b6f;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    line-height: 1.2;
}
.mob-filters-clear-row {
    padding: 8px 16px 0;
    text-align: right;
}
.mob-filters-clear-all {
    background: none;
    border: none;
    color: #4a4e69;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}
.mob-filter-badge {
    background: #3a6e3e;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    padding: 1px 7px;
    font-weight: 700;
}

} /* end @media 800px */

/* ──────────────────────────────────────────
   Full-screen overlays – shown via JS .open
   These are fixed/full so no media needed,
   but we only add the open class on mobile.
   ────────────────────────────────────────── */

/* ── "Your search" overlay ── */
.mob-search-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    flex-direction: column;
    overflow-y: auto;
}
.mob-search-overlay.open { display: flex; }

.mob-search-header,
.mob-sub-header,
.mob-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.mob-search-header h2,
.mob-sub-header h2,
.mob-filters-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111;
}
.mob-search-close,
.mob-sub-close,
.mob-filters-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
}

.mob-search-fields { flex: 1; padding: 8px 0; }

.mob-search-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    gap: 14px;
}
.mob-search-row i {
    font-size: 20px;
    color: #888;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.mob-search-row-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.mob-search-row-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.mob-search-row-value.placeholder { color: #aaa; font-weight: 400; }

.mob-search-footer,
.mob-sub-footer,
.mob-filters-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}
.mob-search-submit,
.mob-sub-apply,
.mob-filters-apply {
    width: 100%;
    background: #5a9e2f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.mob-filters-apply { background: #3a6e3e; }

/* ── Sub-panels (dest / dates / guests) ── */
.mob-sub-panel {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10001;
    flex-direction: column;
    overflow: hidden;
}
.mob-sub-panel.open { display: flex; }

.mob-sub-body {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
}

/* Destination */
.mob-dest-search-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.mob-dest-input-wrap {
    position: relative;
    margin-bottom: 20px;
}
.mob-dest-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}
.mob-dest-input {
    width: 100%;
    border: 1px solid #3a6e3e;
    border-radius: 8px;
    padding: 14px 14px 14px 40px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.mob-dest-section-label {
    font-size: 13px;
    color: #555;
    margin: 16px 0 4px;
    font-weight: 600;
}
.mob-county-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 4px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}
.mob-county-item i { color: #888; font-size: 14px; }
.mob-county-item:hover, .mob-county-item.active { color: #3a6e3e; }

/* Calendar month nav arrows */
.mob-cal-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mob-cal-nav-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    flex: 1;
    text-align: center;
}
.mob-cal-nav-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #3a6e3e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mob-cal-nav-btn:hover:not(:disabled) { background: #e8f5e9; }
.mob-cal-nav-btn:disabled { color: #ccc; border-color: #e0e0e0; cursor: default; }

/* Calendar */
.mob-cal-top-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.mob-cal-top-group {
    flex: 1;
}
.mob-cal-top-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 4px;
}
.mob-cal-top-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}
.mob-cal-month { margin-bottom: 28px; }
.mob-cal-month-title {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    color: #111;
}
.mob-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.mob-cal-cell {
    text-align: center;
    padding: 10px 2px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}
.mob-cal-cell.day-name  { font-weight: 600; color: #888; font-size: 11px; cursor: default; }
.mob-cal-cell.empty     { cursor: default; }
.mob-cal-cell.past      { color: #ccc; cursor: default; }
.mob-cal-cell:not(.day-name):not(.empty):not(.past):hover { background: #e8f5e9; }
.mob-cal-cell.selected  { background: #3a6e3e; color: #fff; font-weight: 700; }
.mob-cal-cell.today     { font-weight: 700; text-decoration: underline; }

/* Guests */
.mob-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mob-guest-row:last-child { border-bottom: none; }
.mob-guest-label { font-size: 15px; font-weight: 600; color: #333; }
.mob-guest-sub   { font-size: 12px; color: #888; margin-top: 2px; }
.mob-guest-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mob-counter-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #4a7c4e;
    border-radius: 6px;
    background: #fff;
    font-size: 20px;
    color: #4a7c4e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: inherit;
}
.mob-counter-val {
    font-size: 16px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: #333;
}

/* ── Filters slide-up panel ── */
.mob-sort-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 10003;
}
.mob-sort-overlay.open { display: block; }

.mob-sort-panel {
    position: fixed;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.mob-sort-panel-header {
    display: none;
}
.mob-sort-panel-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}
.mob-sort-panel-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mob-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 17px;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.mob-sort-option:last-child { border-bottom: none; }
.mob-sort-option.active { font-weight: 700; color: #2d6b6f; }
.mob-sort-option .fa-check { color: #2d6b6f; font-size: 15px; }

.mob-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10002;
}
.mob-filters-overlay.open { display: block; }

.mob-filters-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mob-filters-header h2 { font-size: 22px; }

.mob-filters-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 8px;
}
.mob-filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    user-select: none;
}
.mob-filter-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.mob-chevron {
    font-size: 14px;
    color: #555;
    transition: transform 0.2s;
}
.mob-filter-section-header.collapsed .mob-chevron {
    transform: rotate(-180deg);
}
.mob-filter-section-items { padding: 4px 0 4px; }

.mob-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.mob-filter-item:last-child { border-bottom: none; }
.mob-filter-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}
.mob-filter-item-left label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
    flex: 1;
}
.mob-filter-item input[type=checkbox] {
    width: 20px;
    height: 20px;
    accent-color: #3a6e3e;
    cursor: pointer;
    flex-shrink: 0;
}
.mob-filter-count-badge {
    background: #f0f0f0;
    color: #555;
    border-radius: 12px;
    font-size: 12px;
    padding: 2px 8px;
    font-weight: 600;
    flex-shrink: 0;
}
