/* ==========================================================================
   My Ads Pages
   Covers: my_ads/index, my_ads/new, my_ads/edit
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

/* .my-ads-wrapper class više se ne koristi u template-u (sekcija je
   <section class="main-content">). Sva pravila skinula .my-ads-wrapper
   prefix jer se my-ads.css učitava SAMO na /my-ads* stranicama. */

/* --------------------------------------------------------------------------
   Primary action row (Novi oglas button)
   -------------------------------------------------------------------------- */
.my-ads-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: clamp(20px, 3vw, 28px);
}

.my-ads-actions .btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Profile tab nav — vidi components/profile-tabs.css (canonical, deljeni
   sa profile/index i profile/password). Ne duplikovati ovde. */

/* .btn-new-ad ad-hoc class obrisana — template koristi canonical .btn.btn-primary.
   .verification-warning obrisan — template koristi canonical .alert.alert-warning. */

/* --------------------------------------------------------------------------
   Filter bar (index listing) — editorial polish
   Page-specific (samo /my-ads index ima ovaj layout sa status tabs + 2-row
   filter form). Klase su page-scoped (`.filter-*`) tako da
   se ne sudaraju sa /oglasi .filter-bar pattern-om.
   -------------------------------------------------------------------------- */

.filter-bar {
    background: var(--warm-white);
    border: 1px solid var(--hairline);
    border-radius: 0;
    padding: clamp(18px, 2vw, 24px);
    margin-bottom: clamp(20px, 3vw, 32px);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Status tabs (Sve / Nacrt / Na čekanju / Aktivan / Odbijen / Istekao) */
.filter-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid var(--hairline-strong);
    background: var(--cream);
    border-radius: 0;
    overflow: hidden;
}

.filter-tab {
    padding: 9px 16px;
    border: none;
    border-right: 1px solid var(--hairline);
    background: transparent;
    color: var(--taupe);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1.3;
}

.filter-tab:last-child {
    border-right: none;
}

.filter-tab:hover {
    background: var(--warm-white);
    color: var(--ink);
}

.filter-tab.active {
    background: var(--ink);
    color: var(--cream);
}

/* Search box: input + button on the right side of tabs row */
.filter-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 520px;
    margin-left: auto;
}

.search-input {
    width: 100%;
    padding: 11px 44px 11px 14px;
    background: var(--cream);
    border: 1px solid var(--hairline-strong);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
    color: var(--taupe);
    opacity: 0.7;
}

.search-input:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(184, 117, 92, 0.15);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--terracotta);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: color 0.15s, background-color 0.15s;
}

.search-btn:hover {
    color: var(--terracotta-d);
    background: var(--warm-white);
}

/* Second filter row: type selects + submit */
.filter-group {
    display: flex;
    align-items: center;
}

.filter-select {
    padding: 10px 35px 10px 12px;
    background: var(--cream);
    border: 1px solid var(--hairline-strong);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A6E64' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(184, 117, 92, 0.15);
}

.filter-submit {
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   Results header (count + sort)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Results header (count + sort) — editorial dropped-card chrome
   -------------------------------------------------------------------------- */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline);
    flex-wrap: wrap;
}

.results-count {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--taupe);
}

.results-count strong {
    font-family: var(--font-display);
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--ink);
    font-size: 1.1rem;
    margin-right: 4px;
}

.clear-filters {
    margin-left: 14px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.15s;
}

.clear-filters:hover {
    color: var(--terracotta-d);
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-sort label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe);
    margin: 0;
}

.sort-select {
    padding: 8px 30px 8px 12px;
    background: var(--cream);
    border: 1px solid var(--hairline-strong);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A6E64' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sort-select:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(184, 117, 92, 0.15);
}

/* Responsive: stack filter bar on small viewports */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search {
        margin-left: 0;
        max-width: none;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .filter-submit {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .results-sort {
        justify-content: flex-end;
    }
}

/* Stara horizontal lista (.ads-list / .ad-image / .ad-content / .ad-meta /
   .ad-status / .ad-actions / .no-ads) je OBRISANA — template koristi
   canonical .ad-card (components/ad-card.css) sa .my-ad-card context
   override-ima i .no-results canonical empty state. */

/* --------------------------------------------------------------------------
   My Ad Card (grid card with actions)
   -------------------------------------------------------------------------- */

.my-ad-card {
    position: relative;
}

.my-ad-card .ad-card-image {
    position: relative;
}

/* --------------------------------------------------------------------------
   Status overlay badge — editorial pastel pills, semantic colors
   Matchuje canonical .tier-badge pattern iz components/editorial-table.css
   ali u absolute-positioned varijanti za overlay na .ad-card image.
   -------------------------------------------------------------------------- */
.my-ad-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    z-index: 2;
}

/* Semantic status colors — muted editorial pastel umesto Bootstrap-style */
.my-ad-status--draft     { background: #e0d9d3; color: #4a3f36; }
.my-ad-status--pending   { background: #efe7d4; color: #6b5a2d; }
.my-ad-status--active    { background: #dde9d6; color: #3d5a31; }
.my-ad-status--rejected  { background: #ead7d3; color: #6e3a31; }
.my-ad-status--expired,
.my-ad-status--sold,
.my-ad-status--rented,
.my-ad-status--archived  { background: #d8d8d4; color: #5a554c; }

/* Date in card footer */
.my-ad-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--taupe);
}

.my-ad-date i {
    margin-right: 4px;
    color: var(--terracotta);
    font-size: 0.85em;
}

/* --------------------------------------------------------------------------
   Card actions bar — editorial, hairline divider, 3 equal-width buttons
   -------------------------------------------------------------------------- */
.my-ad-card-actions {
    display: flex;
    border-top: 1px solid var(--hairline);
}

.my-ad-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 8px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
    color: var(--taupe);
}

.my-ad-action-btn + .my-ad-action-btn {
    border-left: 1px solid var(--hairline);
}

.my-ad-action-btn:hover {
    background: var(--cream);
}

.my-ad-action-edit:hover   { color: var(--ink); }
.my-ad-action-images:hover { color: var(--terracotta); }
.my-ad-action-delete:hover {
    color: #B85044;
    background: rgba(184, 80, 68, 0.06);
}

.my-ad-action-btn i {
    font-size: 0.95em;
}

/* Flash messages — .alert variants now from components/alert.css */

/* --------------------------------------------------------------------------
   Ad Form Card (new / edit)
   -------------------------------------------------------------------------- */

.ad-form-card {
    background: var(--warm-white);
    border: 1px solid var(--hairline);
    border-radius: 0;
    padding: clamp(28px, 4vw, 44px);
    box-shadow: none;
}

.ad-form-card h2 {
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline-strong);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.2vw, 1.65rem);
    line-height: 1.2;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-form-card h2 i {
    color: var(--terracotta);
    font-size: 0.7em;
}

/* Form widgets (.form-control, .form-label, .form-group, .form-row,
   .form-row-3, .form-section, .form-help, .form-actions, .form-check)
   sve dolaze iz canonical components/form.css. Page CSS samo dodaje
   .ad-form-card chrome i specifične layout context-e. */

/* .edit-notice ad-hoc obrisan — edit.html.twig sad koristi canonical
   .alert .alert-info iz components/alert.css. */

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .my-ads-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .ad-card {
        flex-direction: column;
    }

    .ad-image {
        width: 100%;
        height: 150px;
    }

    .ad-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .my-ads-container {
        padding: 0 15px;
    }

    .my-ad-action-btn {
        font-size: 0.75rem;
        padding: 8px 4px;
    }
}

/* ==========================================================================
   Ad Create / Edit Layout (Two-column with sidebar)
   ========================================================================== */

.ad-create-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-create-main {
    min-width: 0;
}

/* Centered variant — single-task pages bez sidebar-a (npr. /images upload) */
.ad-create-main--centered {
    max-width: 820px;
    margin: 0 auto;
}

.ad-create-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --------------------------------------------------------------------------
   Sidebar Cards
   -------------------------------------------------------------------------- */

/* .sidebar-card chrome dolazi iz components/sidebar-card.css.
   Page-specific override-i samo za h3 layout + inner lista u my-ads
   wizard sidebar-u (progress / tips / rules cards). */

.ad-create-sidebar .sidebar-card h3 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-create-sidebar .sidebar-card h3 i {
    color: var(--terracotta);
    font-size: 0.8em;
}

.ad-create-sidebar .sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--hairline);
}

.ad-create-sidebar .sidebar-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ad-create-sidebar .sidebar-card ul li:last-child {
    border-bottom: none;
}

.ad-create-sidebar .sidebar-card ul li i {
    color: var(--terracotta);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 0.85em;
}

/* Step indicator chrome sad iz components/step-indicator.css canonical-a.
   Markup koristi .step-indicator + .step-indicator__item--active/--completed
   /--upcoming + .step-indicator__num + .step-indicator__label. */

/* --------------------------------------------------------------------------
   Form Row Layout (replaces Bootstrap .row/.col-md-6)
   -------------------------------------------------------------------------- */

/* .form-group / .form-row / .form-row-3 / .form-section / .form-help /
   .form-actions sve iz components/form.css canonical-a — nema duplikata. */

/* Input-with-suffix — editorial polish (cream BG, hairline, no rounded) */
.ad-form-card .input-with-suffix {
    display: flex;
    align-items: stretch;
}

.ad-form-card .input-with-suffix .form-control,
.ad-form-card .input-with-suffix input {
    border-right: none;
    border-radius: 0;
}

.ad-form-card .input-suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--cream);
    border: 1px solid var(--hairline-strong);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Checkbox & Feature Grid
   -------------------------------------------------------------------------- */

/* .checkbox-inline klasa obrisana — sada koristi canonical .form-check
   iz components/form.css. */

/* Feature grid — multi-category checkbox layout, domain-specific.
   Inner checkbox styling nasleđuje iz components/form.css canonical-a
   (.form-group input[type="checkbox"] terracotta filled). */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(20px, 3vw, 32px);
}

.feature-category {
    min-width: 0;
}

.feature-category h4 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
}

.feature-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Selectable chip pattern — pristupačno (native checkbox iza scene),
   vizuelno editorial. Hairline outline default, terracotta accent +
   paper BG kad je :checked. Native checkbox sakriven od pogleda ali
   ostaje dostupan screen reader-ima i keyboard tab-u. */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 14px;
    background: var(--warm-white);
    border: 1px solid var(--hairline-strong);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.3;
    color: var(--ink);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    position: relative;
}

.checkbox-label:hover {
    border-color: var(--ink);
    background: var(--cream);
}

/* Sakrij native checkbox (ostaje pristupačan keyboard-om i screen
   reader-om — visual feedback dolazi od .checkbox-label state-a) */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Indikator levo od teksta — outlined circle kao "checkbox" placeholder */
.checkbox-label::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--hairline-strong);
    border-radius: 50%;
    background: transparent;
    transition: border-color 0.15s, background-color 0.15s;
}

/* Selected state — terracotta accent + paper BG */
.checkbox-label:has(input:checked) {
    background: var(--paper);
    border-color: var(--terracotta);
    color: var(--ink);
}

.checkbox-label:has(input:checked)::before {
    border-color: var(--terracotta);
    background: var(--terracotta);
    box-shadow: inset 0 0 0 3px var(--paper);
}

/* Keyboard focus visible (kad :focus-visible na hidden checkbox-u) */
.checkbox-label:has(input:focus-visible) {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Image Upload - Drop Zone
   -------------------------------------------------------------------------- */

.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-dropzone:hover {
    border-color: var(--primary-orange);
    background: rgba(244, 121, 32, 0.02);
}

.upload-dropzone.dragover {
    border-color: var(--primary-orange);
    background: rgba(244, 121, 32, 0.05);
    transform: scale(1.01);
}

.upload-dropzone-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.upload-dropzone.dragover .upload-dropzone-icon {
    color: var(--primary-orange);
}

.upload-dropzone-text {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.upload-dropzone-text span {
    color: var(--primary-orange);
    font-weight: 600;
}

.upload-dropzone-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Image Thumbnails Grid
   -------------------------------------------------------------------------- */

/* .image-grid-header + .image-count obrisani — heading "Uploadovane
   fotografije" i counter "X/15" su uklonjeni iz template-a (sve info
   već u dropzone hint-u i thumbnail grid-u). Hairline divider iznad
   grid-a daje tihi separator od dropzone-a. */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    margin-bottom: 20px;
}

/* Grid empty (no images uploaded yet) — sakrij top hairline da ne
   pravi prazan ruler iznad ničega */
.image-grid:empty {
    display: none;
}

.image-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f0f0f0;
    cursor: grab;
}

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-thumb-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-thumb:hover .image-thumb-actions {
    opacity: 1;
}

.image-thumb-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.image-thumb-btn:hover {
    transform: scale(1.1);
}

.image-thumb-main {
    background: rgba(244, 121, 32, 0.9);
    color: white;
}

.image-thumb-delete {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.image-thumb.is-main {
    border: 3px solid var(--primary-orange);
}

.image-thumb-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: var(--primary-orange);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Upload progress */
.image-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #eee;
}

.image-thumb-progress-bar {
    height: 100%;
    background: var(--primary-orange);
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

/* Drag reorder states */
.image-thumb.dragging {
    opacity: 0.5;
}

.image-thumb.drag-over {
    outline: 2px dashed var(--primary-orange);
    outline-offset: -2px;
}

/* Upload error state */
.image-thumb.upload-error {
    border: 2px solid #dc3545;
}

.image-thumb-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-size: 0.75rem;
    padding: 5px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Image page actions
   -------------------------------------------------------------------------- */

.image-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
}

/* .btn / .btn-outline / .btn-primary stilizacija dolazi iz components/button.css
   canonical-a. Page CSS samo poziciono dodaje između form i actions row-a. */

/* Reorder hint */
.image-reorder-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Ad Create/Edit Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .ad-create-layout {
        grid-template-columns: 1fr;
    }

    .ad-create-sidebar {
        order: -1;
    }

    .step-indicator {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .ad-form-card .form-row,
    .ad-form-card .form-row-3 {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .step-item {
        padding: 10px 8px;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 5px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .upload-dropzone {
        padding: 25px 15px;
    }

    .upload-dropzone-icon {
        font-size: 2rem;
    }

    .image-page-actions {
        flex-direction: column;
        gap: 10px;
    }

    .image-page-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .ad-create-layout {
        padding: 0 15px;
    }
}

/* ==========================================================================
   "Postavi oglas" landing — editorial CTA card
   Used by templates/frontend/ad/create.html.twig (the gate for logged-out
   users who try to submit an ad). Tokens come from the design system in
   assets/styles/app.css; nothing here is hardcoded.
   ========================================================================== */

.ad-create-cta {
    padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
    background: var(--cream);
}

.ad-create-card {
    background: var(--warm-white);
    border: 1px solid var(--hairline-strong);
    border-radius: 4px;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 44px);
    text-align: center;
}

.ad-create-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hairline-strong);
    border-radius: 50%;
    background: var(--paper);
    color: var(--terracotta);
    font-size: 1.5rem;
}

.ad-create-card h1 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.15;
    color: var(--ink);
}

.ad-create-card .lead {
    margin: 0 auto 28px;
    max-width: 44ch;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    opacity: 0.78;
}

.ad-create-benefits {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    text-align: left;
    display: inline-block;
}

.ad-create-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--ink);
}

.ad-create-benefits li i {
    flex-shrink: 0;
    width: 14px;
    color: var(--terracotta);
    font-size: 0.85rem;
}

.ad-create-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ad-create-divider {
    position: relative;
    margin: 28px 0 18px;
    border-top: 1px solid var(--hairline);
    text-align: center;
}

.ad-create-divider span {
    position: relative;
    top: -0.65rem;
    padding: 0 12px;
    background: var(--warm-white);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--taupe);
}

.ad-create-register-note {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--taupe);
    line-height: 1.55;
}

.ad-create-register-note a {
    color: var(--terracotta);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 0.2s;
}

.ad-create-register-note a:hover {
    color: var(--terracotta-d);
}
