/*
Theme Name: NDOM Theme
Author: NDOM
Version: 1.0
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111111;
}

/* ================= HEADER WRAPPER ================= */

.ndom-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

/* ================= TOP BAR ================= */

.ndom-topbar {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 22px;
    gap: 22px;
}

/* ================= LOGO ================= */

.ndom-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.ndom-logo img {
    width: 400px;
    height: auto;
    max-height: 50px;
    display: block;
    object-fit: contain;
}

/* ================= SEARCH ================= */

.ndom-search {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 640px;
}

.ndom-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d7dce2;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
}

.ndom-search input:focus {
    border-color: #111111;
}

.ndom-search button {
    height: 44px;
    padding: 0 18px;
    border: 1px solid #111111;
    border-radius: 0 8px 8px 0;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ndom-search button:hover {
    background: #333333;
}

/* ================= RIGHT ACTIONS ================= */

.ndom-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 0 0 auto;
}

.ndom-actions a {
    text-decoration: none;
    color: #111111;
    font-size: 14px;
    white-space: nowrap;
}

.ndom-action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.ndom-action-link span {
    font-size: 18px;
    line-height: 1;
}

.ndom-action-link:hover {
    opacity: 0.65;
}

/* ================= CTA BUTTON ================= */

.ndom-cta {
    color: #111111 !important;
    background: #ffffff;
    border: 2px solid #111111;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 700;
}

.ndom-cta:hover {
    background: #f4f4f4;
}

/* ================= FILTER BAR ================= */

.ndom-filters {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 11px 22px;
    border-top: 1px solid #eeeeee;
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
}

.ndom-filters a {
    text-decoration: none;
    color: #444444;
    font-weight: 500;
}

.ndom-filters a:hover {
    color: #000000;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
    .ndom-topbar {
        flex-wrap: wrap;
        gap: 14px;
    }

    .ndom-logo img {
        width: 165px;
    }

    .ndom-search {
        order: 3;
        width: 100%;
        max-width: none;
        flex: 0 0 100%;
    }

    .ndom-actions {
        margin-left: auto;
        gap: 10px;
    }

    .ndom-action-link {
        font-size: 0;
    }

    .ndom-action-link span {
        font-size: 20px;
    }

    .ndom-cta {
        padding: 10px 13px;
        font-size: 13px !important;
    }
}

@media (max-width: 520px) {
    .ndom-topbar {
        padding: 10px 14px;
    }

    .ndom-logo img {
        width: 145px;
    }

    .ndom-actions {
        width: 100%;
        justify-content: space-between;
    }

    .ndom-cta {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .ndom-filters {
        padding: 10px 14px;
        gap: 18px;
    }
}

/* ================= MOJE KONTO ================= */

.ndom-account-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 22px 70px;
}

.ndom-account-head {
    margin-bottom: 26px;
}

.ndom-account-head h1 {
    font-size: 34px;
    margin: 0 0 6px;
}

.ndom-account-head p {
    margin: 0;
    color: #666;
}

.ndom-account-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.ndom-account-tab {
    min-height: 96px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    transition: 0.2s ease;
}

.ndom-account-tab:hover,
.ndom-account-tab.active {
    background: #f4f4f4;
    border-color: #111;
}

.ndom-account-content {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 28px;
}

.ndom-account-panel {
    display: none;
}

.ndom-account-panel.active {
    display: block;
}

.ndom-account-panel h2 {
    margin: 0 0 22px;
    font-size: 26px;
}

.ndom-account-success {
    background: #e9f8ef;
    border: 1px solid #b7e2c5;
    color: #146c2e;
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 22px;
}

/* FORMULARZ */

.ndom-account-form {
    max-width: 920px;
}

.ndom-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.ndom-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #333;
}

.ndom-form-field input {
    width: 100%;
    height: 48px;
    border: 1px solid #d7dce2;
    border-radius: 9px;
    padding: 0 13px;
    font-size: 15px;
    outline: none;
}

.ndom-form-field input:focus {
    border-color: #111;
}

.ndom-form-wide {
    grid-column: span 2;
}

.ndom-account-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

/* ULUBIONE */

.ndom-favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ndom-offer-card {
    border: 1px solid #eeeeee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.ndom-offer-card a {
    color: #111;
    text-decoration: none;
}

.ndom-offer-thumb {
    height: 160px;
    background: #f2f2f2;
}

.ndom-offer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ndom-offer-info {
    padding: 14px;
}

.ndom-offer-info h3 {
    font-size: 16px;
    margin: 0 0 10px;
}

.ndom-offer-info strong {
    font-size: 18px;
}

/* WIADOMOŚCI */

.ndom-message-list {
    display: grid;
    gap: 12px;
}

.ndom-message-item {
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 18px;
}

.ndom-message-item h3 {
    margin: 0 0 8px;
}

.ndom-message-item p {
    color: #555;
}

.ndom-message-item a {
    color: #111;
    font-weight: 700;
}

/* MOJE OGŁOSZENIA */

.ndom-user-offers {
    display: grid;
    gap: 14px;
}

.ndom-user-offer-item {
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 14px;
}

.ndom-user-offer-thumb {
    width: 110px;
    height: 82px;
    background: #f2f2f2;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
}

.ndom-user-offer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ndom-user-offer-data h3 {
    margin: 0 0 6px;
}

.ndom-user-offer-data p {
    margin: 0 0 6px;
    color: #555;
}

.ndom-user-offer-data a {
    color: #111;
    font-weight: 700;
}

.ndom-no-photo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    color: #777;
    font-size: 14px;
}

.ndom-no-photo.small {
    font-size: 12px;
}

/* BRAK LOGOWANIA */

.ndom-account-login-box {
    max-width: 520px;
    margin: 60px auto;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 34px;
    text-align: center;
}

/* MOBILE */

@media (max-width: 900px) {
    .ndom-account-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .ndom-favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ndom-form-grid {
        grid-template-columns: 1fr;
    }

    .ndom-form-wide {
        grid-column: span 1;
    }
}

@media (max-width: 560px) {
    .ndom-account-tabs {
        grid-template-columns: 1fr;
    }

    .ndom-favorites-grid {
        grid-template-columns: 1fr;
    }

    .ndom-user-offer-item {
        align-items: flex-start;
    }
}

/* ================= NDOM LOGIN NEW DESIGN ================= */

.ndomx-auth * {
    box-sizing: border-box;
}

.ndomx-auth {
    min-height: calc(100vh - 90px);
    background: #eceff3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 20px;
    font-family: Arial, sans-serif;
}

.ndomx-box {
    width: 100%;
    max-width: 1040px;
    min-height: 640px;
    display: grid;
    grid-template-columns: 48% 52%;
    border-radius: 34px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 35px 100px rgba(0,0,0,.18);
}

.ndomx-left {
    background: #232323;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndomx-logo-vertical {
    color: #ffffff;
    font-size: 86px;
    font-weight: 900;
    letter-spacing: 18px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.ndomx-right {
    padding: 60px 58px;
    display: flex;
    align-items: center;
}

.ndomx-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.ndomx-tabs {
    display: flex;
    background: #f0f1f3;
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 36px;
}

.ndomx-tabs button {
    width: 50%;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #666666;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ndomx-tabs button.active {
    background: #232323;
    color: #ffffff;
}

.ndomx-panel {
    display: none;
}

.ndomx-panel.active {
    display: block;
}

.ndomx-panel h1 {
    margin: 0 0 8px;
    font-size: 34px;
    color: #181818;
}

.ndomx-panel p {
    margin: 0 0 28px;
    color: #777777;
    line-height: 1.5;
}

.ndomx-alert {
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
}

.ndomx-alert.error {
    background: #fff0f0;
    color: #a40000;
}

.ndomx-alert.success {
    background: #ecfdf3;
    color: #146c2e;
}

.ndomx-field {
    margin-bottom: 18px;
}

.ndomx-field label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-size: 13px;
    font-weight: 800;
}

.ndomx-input {
    width: 100% !important;
    height: 54px !important;
    border: 1px solid #d9dde3 !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    padding: 0 15px !important;
    font-size: 15px !important;
    color: #111111 !important;
    outline: none !important;
    box-shadow: none !important;
}

.ndomx-input:focus {
    border-color: #232323 !important;
    box-shadow: 0 0 0 4px rgba(35,35,35,.08) !important;
}

.ndomx-password {
    position: relative;
}

.ndomx-password .ndomx-input {
    padding-right: 82px !important;
}

.ndomx-show {
    position: absolute;
    right: 9px;
    top: 9px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f0f1f3;
    color: #222222;
    font-size: 12px;
    font-weight: 800;
    padding: 0 12px;
    cursor: pointer;
}

.ndomx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 3px 0 24px;
}

.ndomx-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.ndomx-remember input {
    margin: 0;
}

.ndomx-link {
    border: 0;
    background: transparent;
    color: #232323;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.ndomx-link:hover {
    text-decoration: underline;
}

.ndomx-submit {
    width: 100%;
    height: 55px;
    border: 0;
    border-radius: 16px;
    background: #232323;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.ndomx-submit:hover {
    background: #000000;
}

.ndomx-secondary {
    width: 100%;
    height: 52px;
    margin-top: 12px;
    border: 1px solid #d9dde3;
    border-radius: 16px;
    background: #ffffff;
    color: #232323;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

@media(max-width: 850px) {
    .ndomx-box {
        grid-template-columns: 1fr;
    }

    .ndomx-left {
        min-height: 170px;
    }

    .ndomx-logo-vertical {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 48px;
        letter-spacing: 10px;
    }

    .ndomx-right {
        padding: 36px 24px;
    }
}

.fa-solid {
    margin-right: 8px;
    color: #333;
}

.icon-highlight {
    color: #c59d5f;
    font-size: 18px;
}