/* Mobile: hide city selector on main page, show lang switcher instead */
@media (max-width: 1024px) {
    .header--main .main-select {
        display: none !important;
    }
}

/* header__right: flex wrapper for lang-switcher + burger */
@media (min-width: 1025px) {
    /* Desktop: transparent so children participate in parent grid directly */
    .header .header__right {
        display: contents;
    }
}
@media (max-width: 1024px) {
    .header .header__right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }
    /* Main page: city-select hidden → span remaining grid columns to reach right edge */
    .header--main .header__right {
        grid-column: 2 / -1;
    }
}

/* Socials live in the burger menu on every page, but the main-page desktop
   header row has no socials block — hide it there and keep the original grid */
@media (min-width: 1025px) {
    .header--main .socials {
        display: none;
    }
    .header--main .header__wrapp:has(.socials) {
        grid-template-columns: 1fr repeat(3, auto);
    }
}

/* Show header nav on main page (style.css hides it via .header--main) */
@media (min-width: 1025px) {
    .header--main .header__nav {
        display: flex !important;
    }
    .header--main {
        padding-bottom: 0 !important;
    }
}

/* Reset browser defaults for button elements that use .main-link styling */
button.main-link {
    background: none;
    border: none;
    cursor: pointer;
}

/* Price expand: remove from flow when expanded so category link sits flush */
.price.is-open + [data-price-expand] {
    display: none;
}

/* Category link: reset the -32px pull-up margin designed for the expand button */
.price-section__item > [data-price-category-link] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Overlay: scroll-da boşluq yaranmasın — fixed, document flow-dan çıxır */
.overlay.fixed-block,
.overlay[data-overlay] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 20px 0 !important;
}

/* Login modal açıq olanda overlay və modal görünsün (style.css-də .overlay üçün opacity: 0 qalır) */
.overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(28, 27, 31, 0.7) !important;
}
.overlay.active .login-modal.active,
.overlay.active [data-popup="login"].active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Dil dəyişməsi: desktopda header-mobile blokunu gizlətmək */
@media (min-width: 1025px) {
    .header .lang-box--header-mobile {
        display: none !important;
    }
}

/* Mobil: header sətirində dil düyməsi (burger yanında) həmişə görünsün */
@media (max-width: 1024px) {
    .header .lang-box--header-mobile {
        background: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 50;
        margin-right: 16px;
    }

    .header .lang-box--header-mobile .menu-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: none;
        background-color: transparent;
        transition: background 0.3s;
        border: none;
        cursor: pointer;
    }

    .header .lang-box--header-mobile .menu-button:hover,
    .header .lang-box--header-mobile .menu-button:focus {
        /* background: rgba(73, 69, 79, 0.08); */
        outline: none;
    }

    .header .lang-box--header-mobile .menu-button svg {
        fill: #1a1918;
        width: 20px;
        height: 20px;
    }

    .header .lang-box--header-mobile .sub-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        transform: none;
        visibility: hidden;
        opacity: 0;
        display: flex;
        flex-direction: column;
        padding: 11px 11px;
        border-radius: 8px;
        background: rgba(var(--bg-a), 1);
        border: 1px solid rgba(62, 62, 77, 0.6);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 100;
        transition: opacity 0.2s, visibility 0.2s;
    }

    .header .lang-box--header-mobile:focus-within .sub-menu,
    .header .lang-box--header-mobile.is-open .sub-menu {
        visibility: visible;
        opacity: 1;
    }

    .header .lang-box--header-mobile .sub-menu a {
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 14px;
        line-height: 150%;
        padding: 6px 8px;
        margin-bottom: 8px;
        color: rgba(var(--cl-b), 1);
        transition: color 0.3s;
        text-align: center;
        text-decoration: none;
    }

    .header .lang-box--header-mobile .sub-menu li:last-of-type a {
        margin-bottom: 0;
    }

    .header .lang-box--header-mobile .sub-menu a:hover {
        color: rgba(var(--cl-c), 1);
    }

    /* Mobil menyu içindəki dil blokunu gizlət */
    .mobile .lang-box {
        display: none !important;
    }

    /* Mobil: burger menyu açıb bağlayanda overlay (fixed-block) scroll/padding problemi olmasın */
    .overlay.fixed-block,
    .overlay[data-overlay] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Match source Dolma index title size on city and prices pages */
.price-section .price-info__title,
.prices-section .price-info__title {
    font-size: 25px;
    line-height: 24px;
}

/* Dolma delta row parity with source price page */
.price-delta-info__value {
    display: flex;
    align-items: end;
    gap: 8px;
    width: auto;
    padding-bottom: 5px;
}

.price-delta-info__week-label {
    color: rgba(var(--cl-a), 1);
    text-align: center;
    padding-bottom: 2px;
}

.prices-section #js-dolma-delta-wrap {
    color: rgba(var(--cl-a), 1);
}

.prices-section #js-dolma-delta-wrap.red #js-dolma-delta {
    color: rgba(var(--cl-c), 1);
}

.prices-section #js-dolma-delta-wrap.green #js-dolma-delta {
    color: rgba(var(--cl-k), 1);
}

.prices-section #js-dolma-delta-wrap.orange #js-dolma-delta {
    color: #F1972E;
}

/* Parser table parity: prevent collapsed native table width and keep column alignment stable */
.prices-section .prices-table.prices-table--grid {
    display: block;
    width: 100%;
    border: 1px solid rgba(var(--bg-j), 1);
    border-radius: 12px;
    background: rgba(var(--bg-a), 1);
    overflow: hidden;
}

.prices-section .prices-table-wrap--scroll .prices-table.prices-table--grid {
    overflow: visible;
}

.prices-section .prices-table-wrap--scroll {
    max-height: 680px;
    overflow-y: auto;
    overflow-x: hidden;
}

.prices-section .prices-table--grid .prices-table__native {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.prices-section .prices-table--grid .prices-table__native thead th,
.prices-section .prices-table--grid .prices-table__native tbody td {
    padding: 0 12px;
    border-bottom: 1px solid rgba(var(--bg-j), 1);
    vertical-align: middle;
}

.prices-section .prices-table--grid .prices-table__native tbody tr:last-child td {
    border-bottom: none;
}

.prices-section .prices-table--grid .prices-table__native th.prices-table__title,
.prices-section .prices-table--grid .prices-table__native td.prices-table__value {
    display: table-cell;
    justify-content: initial;
    align-items: initial;
    height: 56px;
    text-align: right;
}

.prices-section .prices-table--grid .prices-table__native th:nth-child(1),
.prices-section .prices-table--grid .prices-table__native td:nth-child(1) {
    text-align: left;
    width: 44%;
}

.prices-section .prices-table--grid .prices-table__native td:nth-child(1) {
    white-space: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prices-section .prices-table--grid .prices-table__native .prices-table__value-text {
    display: inline;
    line-height: 20px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prices-section .prices-table--grid .prices-table__native .prices-table__value-unit {
    display: inline;
    color: rgba(var(--cl-b), 0.58);
    font-size: 14px;
    line-height: 18px;
    margin-left: 6px;
}

.prices-section .prices-table--grid .prices-table__native .prices-table__value-unit::before {
    content: " ";
}

.prices-section .prices-table--grid .prices-table__native th:nth-child(2),
.prices-section .prices-table--grid .prices-table__native td:nth-child(2),
.prices-section .prices-table--grid .prices-table__native th:nth-child(3),
.prices-section .prices-table--grid .prices-table__native td:nth-child(3),
.prices-section .prices-table--grid .prices-table__native th:nth-child(4),
.prices-section .prices-table--grid .prices-table__native td:nth-child(4) {
    width: 14%;
}

.prices-section .prices-table--grid .prices-table__native th:nth-child(5),
.prices-section .prices-table--grid .prices-table__native td:nth-child(5) {
    width: 14%;
}

/* City page: extracted styles from resources/views/web/city/show.blade.php */
.city-main-news-full {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
}

.content-section.content-section--gray.mt-4 {
    margin-bottom: 0;
    padding-bottom: 32px;
}

.city-section-block {
    margin-top: 20px;
}

.city-price-row {
    display: flex;
    justify-content: space-between;
}

.city-price-name {
    flex: 0 0 65%;
}

.city-price-value {
    flex: 0 0 35%;
}

.city-price-value i,
.city-price-value span {
    color: #FF7117;
}

@media (max-width: 768px) {
    .content-section.content-section--gray.mt-4 {
        padding-bottom: 24px;
    }
}

.city-main-news-full .main-news {
    display: grid;
    grid-template-columns: clamp(200px, 23.5714vw, 297px) 1fr;
    gap: 24px clamp(16px, 1.9048vw, 24px);
    padding: clamp(16px, 1.5873vw, 20px);
    background: rgba(var(--bg-a), 1);
    border-radius: 12px;
}

.city-main-news-full .main-news,
.city-main-news-full .main-news__inner,
.city-main-news-full .main-news__content,
.city-main-news-full .main-news__cards {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.city-main-news-full .main-news__content {
    height: 100%;
    max-height: 100%;
    position: relative;
    z-index: 2;
    overflow-y: hidden;
    margin-right: -8px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.city-main-news-full .main-news .main-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.city-main-news-full .main-news__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    column-count: 3;
    column-gap: 12px;
}

.city-main-news-full .main-news__item {
    break-inside: avoid;
    margin-bottom: 12px;
}

.city-main-news-full [data-explore-empty] {
    margin-top: 16px;
}

.city-main-news-full .main-news__sort {
    min-width: 210px;
}

.city-main-news-full .main-news__sort-select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--br-a);
    border-radius: 12px;
    background-color: rgba(var(--bg-a), 1);
    color: rgba(var(--cl-h), 1);
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 20px;
    padding: 0 36px 0 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23777777' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    transition: border-color .2s ease;
}

.city-main-news-full .main-news__sort-select:hover,
.city-main-news-full .main-news__sort-select:focus {
    border-color: rgba(var(--cl-c), 1);
    outline: none;
}

.city-main-news-full .main-news__search .main-form__label {
    position: relative;
    display: block;
    width: 100%;
}

.city-main-news-full .main-news__search .main-form__input {
    width: 100%;
    max-width: 100%;
    padding-right: 44px;
}

.city-main-news-full .main-news__search .main-form__btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .city-main-news-full .main-news {
        gap: 20px;
        grid-template-columns: 100%;
    }

    .city-main-news-full .main-news .main-top {
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .city-main-news-full .main-news__cards {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .city-main-news-full .main-news .main-top {
        grid-template-columns: 1fr auto;
    }

    .city-main-news-full .main-news__sort {
        min-width: 160px;
    }

    .city-main-news-full .main-news__cards {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .prices-section .prices-table-wrap--scroll {
        max-height: none;
        overflow-x: hidden;
    }

    .prices-section .prices-table.prices-table--grid {
        overflow-x: hidden;
    }

    .prices-section .prices-table--grid .prices-table__native {
        min-width: 0;
        width: 100%;
    }

    .prices-section .prices-table--grid .prices-table__native thead th,
    .prices-section .prices-table--grid .prices-table__native tbody td {
        padding: 0 10px;
    }

    .prices-section .prices-table--grid .prices-table__native th.prices-table__title,
    .prices-section .prices-table--grid .prices-table__native td.prices-table__value {
        height: 48px;
    }
}

@media (max-width: 576px) {
    .prices-section .prices-table-wrap--scroll {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        border: 1px solid rgba(var(--bg-j), 1);
        border-radius: 12px;
        background: rgba(var(--bg-a), 1);
    }

    .prices-section .prices-table.prices-table--grid {
        overflow: visible;
        border: none;
        border-radius: 0;
        background: none;
    }

    .prices-section .prices-table--grid .prices-table__native {
        min-width: 480px;
    }

    .prices-section .prices-table--grid .prices-table__native th:nth-child(1),
    .prices-section .prices-table--grid .prices-table__native td:nth-child(1) {
        width: 32%;
    }

    .prices-section .prices-table--grid .prices-table__native th:nth-child(2),
    .prices-section .prices-table--grid .prices-table__native td:nth-child(2),
    .prices-section .prices-table--grid .prices-table__native th:nth-child(3),
    .prices-section .prices-table--grid .prices-table__native td:nth-child(3),
    .prices-section .prices-table--grid .prices-table__native th:nth-child(4),
    .prices-section .prices-table--grid .prices-table__native td:nth-child(4) {
        white-space: nowrap;
        width: 18%;
    }

    .prices-section .prices-table--grid .prices-table__native th:nth-child(5),
    .prices-section .prices-table--grid .prices-table__native td:nth-child(5) {
        white-space: nowrap;
        width: 14%;
    }

    .prices-section .prices-table--grid .prices-table__native th:nth-child(1),
    .prices-section .prices-table--grid .prices-table__native td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 2;
        background-color: rgba(var(--bg-k), 1);
    }

    .prices-section .prices-table--grid .prices-table__native thead th:nth-child(1) {
        z-index: 3;
    }

    /* Fill sub-pixel gaps between columns (fractional % widths at min-width: 480px) */
    .prices-section .prices-table--grid .prices-table__native thead {
        background-color: rgba(var(--bg-k), 1);
    }

    .prices-section .prices-table--grid .prices-table__native tbody {
        background-color: rgba(var(--bg-a), 1);
    }
}

.search-no-results {
    text-align: center;
    padding: 80px 0;
    font-size: 1.5rem;
    color: #888;
}

/* ── Site notification popups ── */
.popup.blue     { background: #26A6E0; }
.popup.blue-v2  { background: #1877F2; }
.popup.blue-v3  { background: #0A66C2; }
.popup.violet   { background: #C13584; }
.popup.red      { background: #FF0000; }
.popup.red-v2   { background: #010101; }
.popup.black    { background: #101010; }
.popup.gray     { background: #555555; }

.popup.blue .popup__title,
.popup.blue-v2 .popup__title,
.popup.blue-v3 .popup__title,
.popup.violet .popup__title,
.popup.red .popup__title,
.popup.red-v2 .popup__title,
.popup.black .popup__title,
.popup.gray .popup__title,
.popup.blue .popup__top p,
.popup.blue-v2 .popup__top p,
.popup.blue-v3 .popup__top p,
.popup.violet .popup__top p,
.popup.red .popup__top p,
.popup.red-v2 .popup__top p,
.popup.black .popup__top p,
.popup.gray .popup__top p { color: #fff; }

.popup.blue .popup__icon svg,
.popup.blue-v2 .popup__icon svg,
.popup.blue-v3 .popup__icon svg,
.popup.violet .popup__icon svg,
.popup.red .popup__icon svg,
.popup.red-v2 .popup__icon svg,
.popup.black .popup__icon svg,
.popup.gray .popup__icon svg,
.popup.blue .popup__close svg,
.popup.blue-v2 .popup__close svg,
.popup.blue-v3 .popup__close svg,
.popup.violet .popup__close svg,
.popup.red .popup__close svg,
.popup.red-v2 .popup__close svg,
.popup.black .popup__close svg,
.popup.gray .popup__close svg { filter: brightness(0) invert(1); }

.subcats { margin: 12px 0 20px; }

.subcats--text .subcats__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.subcats--text .subcats__item {
    flex: 0 0 auto;
}

.subcats--text .subcat-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(var(--bg-c), 1);
    border-radius: 8px;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    letter-spacing: 0.01em;
    color: rgba(var(--cl-e), 1);
    text-decoration: none;
    transition: background 0.3s;
}

.subcats--text .subcat-link i {
    font-style: normal;
    margin-left: 6px;
    color: rgba(var(--cl-b), 0.38);
}

.subcats--text .subcat-link:hover {
    background: rgba(var(--bg-e), 1);
}

@media (max-width: 576px) {
    .subcats--text .subcats__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .subcats--text .subcats__list::-webkit-scrollbar { display: none; }
    .subcats--text .subcats__item { flex: 0 0 auto; }
}
/* Anons card */
.anons-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.anons-tag {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 4px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}
.anons-tag--event  { background: rgba(99,  102, 241, 0.75); }
.anons-tag--action { background: rgba(239, 68,  68,  0.75); }
.anons-tag--offer  { background: rgba(16,  185, 129, 0.75); }
.anons-tag--now    { background: rgba(16,  185, 129, 0.75); }
.anons-tag--soon   { background: rgba(245, 158, 11,  0.75); }
.anons-tag--past   { background: rgba(107, 114, 128, 0.75); }
.anons-card .popular-card__title {
    color: #fff;
}
.anons-card__period {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* Nav Dropdown */
.header .nav-dropdown {
    position: relative;
    overflow: visible;
}

.header .header__nav ul li:has(.nav-dropdown),
.header .header__nav ul:has(.nav-dropdown) {
    overflow: visible;
}

.header .nav-dropdown__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: -5px;
    top: calc(100% + 5px);
    width: 220px;
    min-height: fit-content;
    height: fit-content;
    padding: 10px 18px;
    box-sizing: border-box;
    background: rgba(var(--bg-a), 1);
    border: solid 1px var(--br-b);
    border-radius: 8px;
    z-index: 100;
}

.header .nav-dropdown__menu[hidden] {
    display: none !important;
}

.header .nav-dropdown__menu > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: fit-content;
    height: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.header .nav-dropdown__menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    height: auto;
    padding: 4px 8px;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-size: clamp(13px, 1.28vw, 15px);
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* legacy alias, older browser support */
    color: rgba(var(--cl-b), 1);
    transition: color 0.3s ease;
    font-size: 16px;
}

.header .nav-dropdown__menu a:hover,
.header .nav-dropdown__menu a.active {
    color: rgba(var(--cl-c), 1);
}

@media (max-width: 1024px) {
    .header .mobile {
        overflow: visible;
    }

    .header .nav-dropdown__menu {
        padding: 12px 16px;
        border-color: rgba(62, 62, 77, 0.6);
    }

    .header .nav-dropdown__menu a {
        font-size: 16px;
    }
}

/* User select (logged in) — link to dashboard, link görünüşü olmasın */
.user-select--link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 7px 0;
    min-width: fit-content;
    min-height: 46px;
    text-decoration: none !important;
    color: rgba(var(--cl-b), 1) !important;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
}

.user-select--link-name {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.user-select--link:hover {
    color: rgba(var(--cl-c), 1) !important;
    text-decoration: none !important;
}

.user-select--link:focus,
.user-select--link:active {
    outline: none;
    text-decoration: none !important;
}

.user-select--link .select__name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(var(--bg-c), 1);
    font-weight: 600;
    flex-shrink: 0;
    font-size: 16px;
}

/* User select (logged in) — logout form button */
.user-select .user-logout-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.user-select .user-logout-form button {
    display: block;
    width: 100%;
    padding: inherit;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.user-select .user-logout-form button:hover {
    color: rgba(var(--cl-c), 1);
}

/* ——— Login / Register Modal: 50% Poster | 50% Form (keçid) ——— */
.overlay.active {
    z-index: 99999 !important;
}

.overlay .login-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: auto;
    min-height: 420px;
    max-height: 90vh;
    margin: 0;
    background: rgba(var(--bg-a), 1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--br-b, rgba(255, 255, 255, 0.1));
    z-index: 100000;
    display: none;
    overflow-y: auto;
}

.overlay.active .login-modal.active {
    display: block;
}

.login-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 100001;
}

.login-modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.login-modal__inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 420px;
}

/* Sol yarı — Poster */
.login-modal__poster {
    width: 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--br-b, rgba(255, 255, 255, 0.1));
}

.login-modal__poster-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
    width: 100%;
    min-height: 100%;
    padding: 32px 24px;
}

.login-modal__poster-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    z-index: 0;
}

.login-modal__poster-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.login-modal__poster-link .login-modal__poster-title,
.login-modal__poster-link .login-modal__poster-desc {
    position: relative;
    z-index: 2;
}

.login-modal__poster-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.login-modal__poster-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.login-modal__poster-link:hover .login-modal__poster-title {
    text-decoration: underline;
}

/* Sağ yarı — Form (Login / Register keçid) */
.login-modal__form-side {
    width: 50%;
    min-width: 0;
    padding: 24px 28px 28px;
    overflow-y: auto;
}

.login-modal__box {
    width: 100%;
}

/* Login / Register — sözlərin altında sayt rəngi xətt, 50% / 50%, mərkəzdə */
.login-modal__switch {
    display: flex;
    width: 100%;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--br-b, rgba(255, 255, 255, 0.12));
}

.login-modal__switch-btn {
    width: 50%;
    padding: 0 0 12px 0;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: rgba(var(--cl-b), 0.6);
    font-family: var(--font-family);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.login-modal__switch-btn:hover:not(.active) {
    color: rgba(var(--cl-b), 0.9);
}

.login-modal__switch-btn.active {
    color: rgba(var(--cl-c), 1);
    border-bottom-color: rgba(var(--cl-c), 1);
}

.login-modal__switch-btn:focus-visible {
    outline: 2px solid rgba(var(--cl-c), 0.5);
    outline-offset: 2px;
}

.login-modal__panels {
    position: relative;
}

.login-modal__panel {
    display: none;
}

.login-modal__panel.active {
    display: block;
}

/* ——— Modal form: login-register.blade.php ilə eyni (main-form, registration-section) ——— */
.login-modal .registration-section__inner {
    width: 100%;
}

.login-modal .registration-section__title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: rgba(var(--cl-b), 0.95);
}

/* Success / Error mesaj — modal daxilində (login-register ilə eyni) */
.login-modal__message {
    position: relative;
    margin-bottom: 16px;
    padding: 12px 44px 12px 16px;
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    background: #2e2c2c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.login-modal__message.error {
    background: rgba(199, 18, 18, 0.15);
    border: 1px solid rgba(199, 18, 18, 0.5);
}
.login-modal__message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(var(--cl-a), 1);
}
.login-modal__message.error p {
    color: #c71212;
}
.login-modal__message-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner / intro mətn — Login və Register üçün */
.login-modal__intro {
    margin: 0 0 20px 0;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(var(--cl-b), 0.8);
    font-family: var(--font-family);
    background: rgba(var(--cl-c), 0.08);
    border-left: 3px solid rgba(var(--cl-c), 0.6);
    border-radius: 0 8px 8px 0;
    box-sizing: border-box;
}

.login-modal .main-form.pass {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 16px;
    max-width: 100%;
}

.login-modal .main-form__label {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 100%;
}

.login-modal .main-form__input {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.login-modal .main-form__label:has(.main-form__icon) .main-form__input {
    padding-right: 44px;
}

.login-modal .main-form__icon {
    position: absolute;
    right: 12px;
    top: 11px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.login-modal .main-form .main-btn {
    max-width: 100%;
    width: 100%;
    margin-top: 4px;
}

/* Login modal reuses .popup, so .popup .main-btn (style.css) forces the submit
   button to white bg + white text = invisible. Restore brand color. */
.login-modal.popup .main-btn,
.login-modal.popup .main-btn:hover {
    background: rgba(var(--bg-f), 1);
    color: rgba(var(--cl-a), 1);
    border: none;
}

.login-modal .main-form__link {
    margin-top: 4px;
}

/* Alt sətir: "Artıq hesabınız var? Daxil ol" */
.login-modal__footer {
    margin: 16px 0 0 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(var(--cl-b), 0.75);
    font-family: var(--font-family);
}

.login-modal__footer .login-modal__link {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(var(--cl-c), 1);
    cursor: pointer;
    font-family: var(--font-family);
    text-decoration: underline;
}

.login-modal__footer .login-modal__link:hover {
    opacity: 0.9;
}

.login-modal .valid-tip {
    font-size: 12px;
    color: #c71212;
    margin-top: 4px;
}

@media (max-width: 940px) {
    .overlay .login-modal {
        width: calc(100% - 32px);
        max-width: 900px;
        height: auto;
        max-height: 90vh;
    }
}

@media (max-width: 640px) {
    .overlay .login-modal {
        width: calc(100% - 24px);
        height: auto;
        max-height: 90vh;
    }

    .login-modal__inner {
        flex-direction: column;
        min-height: auto;
    }

    .login-modal__poster {
        width: 100%;
        min-height: 120px;
        border-right: none;
        border-bottom: 1px solid var(--br-b, rgba(255, 255, 255, 0.1));
    }

    .login-modal__form-side {
        width: 100%;
    }
}

.hero-section__list .hero-section__item:not(:first-child) {
    filter: blur(5px);
    opacity: .55;
    pointer-events: none;
    user-select: none;
    cursor: default;
    transition: filter .25s ease, opacity .25s ease;
}

.filter-select--location {
    min-width: 150px;
}

.collection-card__image picture,
.subcat-card__image picture { display: block; width: 100%; height: 100%; }

.collection-card__title { font-family: var(--font-family); color: rgba(var(--cl-b), .95); }
.collection-card__name { font-family: var(--second-family); display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgba(var(--cl-e), 1); }
.collection-card__item { min-width: 0; }
.collection-card { text-decoration: none; }
.collection-card:hover .collection-card__title { color: rgba(var(--cl-b), .95); }
.collection-card:hover .collection-card__name { color: rgba(var(--cl-e), 1); }
.collection-card__title { text-decoration: none; }
.collection-card__title-text { min-width: 0; }
.collection-card__link { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: center; text-decoration: none; }
.collection-card__image img { transition: transform .3s; }
.collection-card__link:hover .collection-card__name { color: rgba(var(--cl-c), 1); }
.collection-card__link:hover .collection-card__image img { transform: scale(1.05); }

.g-rating::after {
    content: "";
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3E%3Cpath fill='%23FC0' d='m4.369 16.5 1.219-5.269L1.5 7.688l5.4-.47L9 2.25l2.1 4.969 5.4.468-4.088 3.544 1.22 5.269L9 13.706 4.369 16.5Z'/%3E%3C/svg%3E");
}
.g-rating--card::after {
    width: 12px;
    height: 12px;
}

/* Карточки компаний: без object-fit картинка тянется под пропорции слота.
   Превью 3:2 в вертикальном слоте 297x340 растягивалось по высоте вдвое —
   это и читалось как «плохое качество фото». cover кадрирует без искажений. */
.parking-card__image img,
.popular-card__image img,
.interesting-card__image img {
    object-fit: cover;
    object-position: center;
}

.interesting-slider .swiper-container,
.interesting-slider.mode .swiper-container {
    padding-bottom: 2px;
}

@media (min-width: 1025px) {
    .mobile-auth {
        display: none;
    }
}

@media (max-width: 1024px) {
    .mobile .mobile-auth {
        width: 100%;
        margin-top: auto;
        padding-bottom: calc(var(--header-height) + 12px);
    }

    .mobile .mobile-auth .main-btn {
        display: flex;
        width: 100%;
    }

    body:has(.mobile.active) #aygun-fab {
        display: none !important;
    }
}
