/* ============================================
   WALKER - Full-Width Grid with Map Drawer
   ============================================ */

/* Override shared main.css styles */
body.page-walker .listings-container { height: auto; overflow: visible; padding: 0; background: transparent; }
body.page-walker .listings-header,
body.page-walker .filters-row { display: none; }
body.page-walker .map-column { display: none !important; }
body.page-walker .listPage { padding: 0; }
body.page-walker .pagination-wrapper { display: none; }

/* ---- Page Header ---- */
.wk-page-header {
    margin-top: 80px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0ec;
}

.wk-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wk-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #526432;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wk-header-icon i { color: #e6f972; font-size: 18px; }

.wk-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #526432;
    line-height: 1.2;
}

.wk-header-title span { color: #b6d400; }

.wk-header-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: #8a9ea6;
    font-weight: 500;
}

.wk-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wk-map-toggle {
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid #e0e0d8;
    background: #fff;
    color: #526432;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.wk-map-toggle:hover,
.wk-map-toggle.active {
    background: #526432;
    color: #e6f972;
    border-color: #526432;
}

.wk-add-btn {
    padding: 9px 18px;
    border-radius: 10px;
    background: #e6f972;
    color: #526432;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}

.wk-add-btn:hover {
    background: #d4e85a;
    box-shadow: 0 4px 14px rgba(230,249,114,0.3);
}

/* ---- Header Filter Selects ---- */
.wk-header-right .wk-filter-select {
    padding: 8px 12px;
    border: 1.5px solid #e0e0d8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #526432;
    background: #fff;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
    height: auto;
    box-shadow: none;
    -webkit-appearance: auto;
    appearance: auto;
    line-height: 1.4;
}

.wk-filter-select:focus { border-color: #b6d400; box-shadow: none; }

/* ---- Card Grid ---- */
.wk-grid-container {
    padding: 20px 24px 10px;
}

.wk-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ---- Walker Card (Horizontal: img left, text right) ---- */
.wk-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: row;
}

.wk-card:hover {
    box-shadow: 0 10px 30px rgba(1,49,61,0.10);
    transform: translateY(-2px);
}

/* Card Image — left column */
.wk-card-img {
    position: relative;
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.wk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.wk-card:hover .wk-card-img img { transform: scale(1.05); }

.wk-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(1,49,61,0.5) 100%);
    pointer-events: none;
}

.wk-badge-verified {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    color: #059669;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wk-badge-verified i { font-size: 9px; }

.wk-badge-price {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #e6f972;
    color: #526432;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.wk-card-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    padding: 3px 9px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.wk-card-rating-num {
    font-size: 12px;
    font-weight: 800;
    color: #526432;
}

.wk-card-rating .wk-stars { display: flex; gap: 1px; }
.wk-card-rating .wk-stars i { font-size: 8px; color: #f5a623; }
.wk-card-rating .wk-stars i.empty { color: #ddd; }

.wk-card-rating-count {
    font-size: 10px;
    color: #8a9ea6;
}

/* Card Content — right column */
.wk-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Card Body */
.wk-card-body {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.wk-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #526432;
    margin: 0;
    line-height: 1.3;
}

.wk-card-type {
    font-size: 12px;
    color: #6b8a92;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wk-card-type::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b6d400;
    flex-shrink: 0;
}

.wk-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wk-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4b5563;
    font-weight: 500;
    background: #f7f7f5;
    padding: 3px 9px;
    border-radius: 6px;
}

.wk-card-meta-item i {
    font-size: 10px;
    color: #526432;
    opacity: 0.5;
}

.wk-card-meta-item.location { background: rgba(182,212,0,0.08); }
.wk-card-meta-item.location i { color: #b6d400; opacity: 1; }

.wk-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wk-card-chip {
    background: transparent;
    color: #3a5a60;
    border: 1.5px solid #e8e8e2;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    transition: all 0.2s;
}

.wk-card:hover .wk-card-chip {
    border-color: rgba(182,212,0,0.3);
    background: rgba(182,212,0,0.04);
}

/* Card Footer */
.wk-card-footer {
    padding: 9px 16px;
    border-top: 1px solid #f0f0ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wk-card-city {
    font-size: 11px;
    font-weight: 600;
    color: #8a9ea6;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.wk-card-city i { font-size: 10px; flex-shrink: 0; }

.wk-card-view {
    font-size: 11px;
    font-weight: 700;
    color: #526432;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.wk-card-view i { font-size: 9px; transition: transform 0.2s; }
.wk-card:hover .wk-card-view { color: #b6d400; }
.wk-card:hover .wk-card-view i { transform: translateX(2px); }

/* ---- Pagination ---- */
.wk-pagination {
    padding: 16px 28px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.wk-pagination button {
    border-radius: 10px;
    border: 1.5px solid #e0e0d8;
    background: #fff;
    color: #526432;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.wk-pagination button:hover:not(:disabled) {
    background: #526432;
    color: #e6f972;
    border-color: #526432;
}

.wk-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.wk-pagination span { font-weight: 700; color: #526432; font-size: 13px; }

/* ---- Main Body Layout ---- */
.wk-body {
    display: flex;
    min-height: calc(100vh - 200px);
}

.wk-cards-col {
    flex: 1;
    min-width: 0;
    transition: flex 0.35s ease;
}

/* ---- Map Side Panel ---- */
.wk-map-panel {
    width: 0;
    overflow: hidden;
    background: #fff;
    border-left: 0px solid #e0e0d8;
    display: flex;
    flex-direction: column;
    transition: width 0.35s ease, border-width 0.35s ease;
    flex-shrink: 0;
}

.wk-map-panel.open {
    width: 420px;
    border-left-width: 1.5px;
}

.wk-map-panel-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0ec;
    flex-shrink: 0;
    white-space: nowrap;
}

.wk-map-panel-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #526432;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk-map-panel-header h3 i { color: #b6d400; }

.wk-map-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
    flex-shrink: 0;
}

.wk-map-panel-close:hover { background: #e8e8e5; }

.wk-map-panel-body { flex: 1; min-height: 0; }
.wk-map-panel-body #map { width: 100%; height: 100%; }

/* Make map panel sticky so it stays visible while scrolling */
.wk-map-panel.open {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    align-self: flex-start;
}

/* ---- Loading & Empty ---- */
.wk-card-grid .loading-state,
.wk-card-grid .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8a9ea6;
    grid-column: 1 / -1;
}

.wk-card-grid .loading-state i { font-size: 28px; color: #b6d400; }
.wk-card-grid .empty-state i { font-size: 40px; color: #e0dcd4; margin-bottom: 12px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .wk-card-grid { grid-template-columns: 1fr; }
    .wk-card-img { width: 220px; }
    .wk-map-panel.open { width: 340px; }
}

@media (max-width: 991px) {
    .wk-page-header { padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
    .wk-header-left { gap: 10px; }
    .wk-header-icon { width: 38px; height: 38px; border-radius: 10px; }
    .wk-header-icon i { font-size: 15px; }
    .wk-header-title { font-size: 17px; }
    .wk-header-right { flex-wrap: wrap; gap: 8px; }
    .wk-header-right .wk-filter-select { font-size: 12px; padding: 7px 10px; }
    .wk-map-toggle { padding: 7px 14px; font-size: 12px; }
    .wk-add-btn { padding: 7px 14px; font-size: 12px; }
    .wk-map-panel.open { width: 300px; }
    .wk-card-img { width: 180px; }
}

@media (max-width: 767px) {
    .wk-page-header { margin-top: 70px; padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
    .wk-header-left { width: 100%; }
    .wk-header-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
    .wk-header-right .wk-filter-select { flex: 1; min-width: calc(33% - 6px); font-size: 11px; padding: 7px 8px; }
    .wk-map-toggle { padding: 7px 12px; font-size: 11px; }
    .wk-add-btn { padding: 7px 12px; font-size: 11px; }
    .wk-card-grid { grid-template-columns: 1fr; }
    .wk-grid-container { padding: 16px; }

    .wk-body { flex-direction: column; }
    .wk-map-panel.open {
        width: 100%;
        position: relative;
        top: 0;
        height: 280px;
        border-left: none;
        border-top: 1.5px solid #e0e0d8;
    }

    .wk-card { flex-direction: column; }
    .wk-card-img { width: 100%; height: 180px; }
    .wk-card-name { font-size: 15px; }
    .wk-card-body { padding: 12px 14px; }
    .wk-card-footer { padding: 8px 14px; }
    .wk-pagination { padding: 16px; gap: 10px; }
    .wk-pagination button { padding: 8px 16px; font-size: 12px; }
}

@media (max-width: 480px) {
    .wk-header-right .wk-filter-select { min-width: calc(50% - 6px); }
    .wk-map-toggle, .wk-add-btn { flex: 1; justify-content: center; }
}
