/* =============================================
   SEARCH TOGGLE BUTTON (primary nav)
   ============================================= */

.map-search-toggle-item {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.map-search-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #e7007e;
    border: none;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.map-search-toggle-btn:hover,
.map-search-toggle-btn[aria-expanded="true"] {
    background: #c90065;
    color: #fff;
}

/* Mobile: skry search li z collapsible menu, zobraz button vedľa MENU */
.map-search-toggle-mobile {
    display: none;
}

@media (max-width: 991px) {
    .map-search-toggle-item {
        display: none;
    }

    .map-search-toggle-mobile {
        display: flex;
        position: absolute;
        right: 140px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* =============================================
   FULL-SCREEN SEARCH OVERLAY
   ============================================= */

.map-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(26, 0, 16, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.map-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Close button */
.map-search-overlay__close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
}

.map-search-overlay__close:hover {
    color: #fff;
}

/* Inner wrapper */
.map-search-overlay__inner {
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
}

/* Label */
.map-search-overlay__label {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

/* Input row */
.map-search-overlay__form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e7007e;
    padding-bottom: 8px;
    gap: 12px;
}

.map-search-overlay__form svg {
    color: #e7007e;
    flex-shrink: 0;
}

.map-search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 28px;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 300;
    line-height: 1.2;
    caret-color: #e7007e;
}

.map-search-overlay__input::placeholder {
    color: rgba(255,255,255,0.2);
}

.map-search-overlay__submit {
    background: #e7007e;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s;
    white-space: nowrap;
}

.map-search-overlay__submit:hover {
    background: #c90065;
}

/* =============================================
   AUTOCOMPLETE SUGGESTIONS
   ============================================= */

.map-search-suggestions {
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
    margin-top: 8px;
}

.map-search-suggestions__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.map-search-suggestions__item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.map-search-suggestions__item:last-child {
    border-bottom: none;
}

.map-search-suggestions__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 3px;
}

.map-search-suggestions__link:hover,
.map-search-suggestions__item.is-active .map-search-suggestions__link {
    background: rgba(231, 0, 126, 0.08);
    padding-left: 10px;
}

.map-search-suggestions__type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e7007e;
    background: rgba(231, 0, 126, 0.12);
    padding: 2px 7px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 54px;
    text-align: center;
}

.map-search-suggestions__title {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 400;
}

.map-search-suggestions__arrow {
    margin-left: auto;
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: color 0.15s;
}

.map-search-suggestions__link:hover .map-search-suggestions__arrow {
    color: #e7007e;
}

/* Loading state */
.map-search-suggestions__loading {
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    padding: 16px 4px;
    text-align: center;
}

/* All results link */
.map-search-suggestions__all {
    display: block;
    text-align: right;
    color: #e7007e;
    font-size: 12px;
    text-decoration: none;
    padding: 12px 4px 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.map-search-suggestions__all:hover {
    opacity: 1;
}

/* =============================================
   SEARCH RESULTS PAGE
   ============================================= */

.map-search-banner {
    background: linear-gradient(135deg, #1a0010 0%, #5c0040 100%);
    padding: 60px 0 40px;
}

.map-search-banner h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0;
}

.map-search-banner h1 em {
    font-style: normal;
    color: #e7007e;
}

.map-search-results {
    padding: 50px 0 70px;
}

.map-search-results__bar {
    margin-bottom: 40px;
    align-items: center;
}

.map-search-results__count p {
    margin: 0;
    color: #888;
    font-size: 0.875rem;
    text-align: right;
}

/* Search form on results page */
.map-search-form__inner {
    display: flex;
    border: 2px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.map-search-form__inner:focus-within {
    border-color: #e7007e;
}

.map-search-form__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 16px;
    font-size: 1rem;
    font-family: "Source Sans Pro", sans-serif;
    background: transparent;
    color: #1d1d1b;
}

.map-search-form__btn {
    border: none;
    background: #e7007e;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.map-search-form__btn:hover {
    background: #c90065;
}

/* Results list */
.map-search-results__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-search-results__item {
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.map-search-results__item:last-child {
    border-bottom: none;
}

.map-search-results__type {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e7007e;
    background: rgba(231, 0, 126, 0.08);
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.map-search-results__title {
    font-size: 1.15rem;
    margin: 6px 0 8px;
}

.map-search-results__title a {
    color: #1d1d1b;
    text-decoration: none;
}

.map-search-results__title a:hover {
    color: #e7007e;
}

.map-search-results__excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.6;
}

.map-search-results__link {
    font-size: 0.8rem;
    color: #27ae60;
    text-decoration: none;
}

.map-search-results__list mark {
    background: rgba(231, 0, 126, 0.15);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.map-search-results__empty {
    padding: 40px 0;
    color: #444;
}

.map-search-results__empty p {
    margin-bottom: 12px;
}

.map-search-results__pagination {
    margin-top: 40px;
}

.map-search-results__pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.map-search-results__pagination .page-numbers.current,
.map-search-results__pagination .page-numbers:hover {
    background: #e7007e;
    border-color: #e7007e;
    color: #fff;
}

.map-search-results__sidebar {
    background: #f7f9fc;
    padding: 24px;
    border-radius: 4px;
    border-left: 3px solid #e7007e;
}

.map-search-results__sidebar h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e7007e;
}

.map-search-results__sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-search-results__sidebar ul li {
    padding: 7px 0;
    border-bottom: 1px solid #eaeef2;
}

.map-search-results__sidebar ul li:last-child {
    border-bottom: none;
}

.map-search-results__sidebar ul li a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.map-search-results__sidebar ul li a:hover {
    color: #e7007e;
}
