/**
 * Page Sections
 * Alaska Gun Trader Theme
 * 
 * @package Alaska_Gun_Trader
 */

/* ==========================================
   COMPACT HERO WITH INTEGRATED SEARCH
   ========================================== */
.akammo-hero-compact {
    background: linear-gradient(135deg, #1C2526 0%, #2E4A3F 100%);
    padding: 60px 20px 50px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.akammo-hero-compact h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0 0 28px 0;
    font-weight: 400;
}

/* Search Bar */
.hero-search-wrapper {
    position: relative;
}

.hero-search-form {
    position: relative;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.1);
    transition: box-shadow 0.2s ease;
}

.hero-search-bar:focus-within {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(217, 79, 4, 0.3);
}

.hero-search-bar .search-icon {
    color: #9ca3af;
    flex-shrink: 0;
    margin-right: 12px;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 0;
    background: transparent;
    color: #1C2526;
    min-width: 0;
}

.hero-search-input::placeholder {
    color: #9ca3af;
}

.hero-search-btn {
    background: #D94F04;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: #bf4504;
    transform: scale(1.02);
}

/* Quick Links */
.quick-links {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-links span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    text-decoration: none;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.quick-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Real-time Search Results */
.hero-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.hero-search-results.active {
    display: block;
}

.search-results-loading {
    padding: 24px;
    text-align: center;
    color: #6c757d;
}

.search-results-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #D94F04;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-image {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6c757d;
}

.search-result-price {
    font-weight: 700;
    color: #2E4A3F;
}

.search-result-location {
    color: #9ca3af;
}

.search-results-empty {
    padding: 32px 24px;
    text-align: center;
    color: #6c757d;
}

.search-results-empty svg {
    color: #d1d5db;
    margin-bottom: 12px;
}

.search-results-footer {
    padding: 14px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    border-radius: 0 0 16px 16px;
}

.search-results-footer a {
    color: #D94F04;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.search-results-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   MAIN CONTENT - Amazon-style Layout
   ========================================== */
.akammo-main-content {
    padding: 40px 0 60px;
    background: #f5f5f5;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-main-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* Categories Panel (Sidebar) */
.categories-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.panel-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.panel-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.15s ease;
    margin: 0 -12px;
}

.category-item:hover {
    background: #f3f4f6;
    color: #D94F04;
}

.category-item .cat-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
}

.category-item .cat-icon svg {
    width: 100%;
    height: 100%;
}

.category-item:hover .cat-icon {
    opacity: 1;
    color: #D94F04;
}

.category-item .cat-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.category-item .cat-count {
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-item:hover .cat-count {
    background: #D94F04;
    color: #fff;
}

.view-all-link {
    display: block;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #D94F04;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Stats Card */
.stats-card {
    padding: 16px 20px;
}

.stats-card .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.stats-card .stat-row:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.stats-card .stat-label {
    font-size: 13px;
    color: #6b7280;
}

.stats-card .stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #2E4A3F;
}

/* Listings Main Area */
.listings-main {
    min-width: 0;
}

.listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.listings-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.listings-header .see-more {
    font-size: 14px;
    color: #D94F04;
    text-decoration: none;
    font-weight: 500;
}

.listings-header .see-more:hover {
    text-decoration: underline;
}

/* Modern Listing Cards Grid */
.listings-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.listing-card-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.listing-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.listing-card-modern .card-image {
    position: relative;
    aspect-ratio: 4/3;
    background: #f3f4f6;
    overflow: hidden;
}

.listing-card-modern .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card-modern:hover .card-image img {
    transform: scale(1.05);
}

.listing-card-modern .card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.listing-card-modern .card-image .no-image svg {
    width: 48px;
    height: 48px;
    color: #d1d5db;
}

.listing-card-modern .condition-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.listing-card-modern .condition-badge.new {
    background: #10b981;
    color: #fff;
}

.listing-card-modern .condition-badge.used,
.listing-card-modern .condition-badge.excellent,
.listing-card-modern .condition-badge.good {
    background: #3b82f6;
    color: #fff;
}

.listing-card-modern .condition-badge.fair {
    background: #f59e0b;
    color: #fff;
}

.listing-card-modern .card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.listing-card-modern .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-modern .card-location {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-card-modern .card-price {
    font-size: 18px;
    font-weight: 700;
    color: #2E4A3F;
    margin: 4px 0 0;
}

/* Hide old sections */
.akammo-categories-section,
.akammo-listings-section {
    display: none;
}

/* OLD HERO - Keep for fallback but hide */
.akammo-hero {
    display: none;
}

/* OLD SEARCH SECTION - Hide */
.akammo-search-section {
    display: none;
}

/* Custom Search Form */
.agt-search-form {
 background: var(--agt-white);
  padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.search-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
  align-items: end;
}

.search-field-group {
    display: flex;
    flex-direction: column;
 gap: 8px;
}

.search-primary {
    grid-column: span 1;
}

.search-input,
.search-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-size: 15px;
    color: var(--agt-gunmetal);
    background: var(--agt-white);
    transition: var(--agt-transition);
    font-family: var(--agt-font-body);
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--agt-orange);
    box-shadow: 0 0 0 3px rgba(217, 79, 4, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M1.41 0L6 4.58 10.59 0 12 1.42l-6 6-6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.search-submit {
  background: var(--agt-orange);
    color: var(--agt-white);
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
  transition: var(--agt-transition);
    display: flex;
    align-items: center;
 gap: 10px;
    white-space: nowrap;
    font-family: var(--agt-font-heading);
}

.search-submit:hover {
    background: var(--agt-forest);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 74, 63, 0.4);
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

/* HivePress Search Form Override */
.akammo-search-section .hp-form {
    display: block;
    background: var(--agt-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.akammo-search-section .hp-form__fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.akammo-search-section .hp-form__field {
    margin-bottom: 0;
}

.akammo-search-section .hp-form input[type="text"],
.akammo-search-section .hp-form input[type="search"],
.akammo-search-section .hp-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-size: 15px;
  background-color: var(--agt-white);
  color: var(--agt-gunmetal);
}

.akammo-search-section .hp-form button[type="submit"] {
    background-color: var(--agt-orange);
    color: var(--agt-white);
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.akammo-search-section .hp-form button[type="submit"]:hover {
    background-color: var(--agt-forest);
    transform: translateY(-2px);
}

/* ==========================================
   INSTANT SEARCH RESULTS DROPDOWN
   ========================================== */
.agt-instant-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
    display: none;
}

.agt-instant-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.agt-instant-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #D94F04;
    border-radius: 50%;
    animation: agt-spin 0.8s linear infinite;
}

@keyframes agt-spin {
    to { transform: rotate(360deg); }
}

.agt-instant-results-list {
    padding: 8px 0;
}

.agt-instant-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.agt-instant-result-item:hover {
    background-color: #f8f9fa;
}

.agt-instant-result-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.agt-instant-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agt-instant-result-content {
    flex: 1;
    min-width: 0;
}

.agt-instant-result-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.agt-instant-result-price {
    font-size: 13px;
    font-weight: 700;
    color: #2E4A3F;
}

.agt-instant-no-results,
.agt-instant-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Active filters indicator in dropdown */
.agt-instant-filters-active {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-bottom: 1px solid #d1fae5;
    font-size: 12px;
    color: #065f46;
}

.agt-instant-filters-active .filter-label {
    font-weight: 600;
    color: #047857;
}

.agt-instant-filters-active .filter-tags {
    color: #059669;
}

.agt-instant-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    text-decoration: none;
    color: #D94F04;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.agt-instant-view-all:hover {
    background: #D94F04;
    color: #fff;
}

.agt-instant-view-all svg {
    width: 14px;
    height: 14px;
}

/* Position for HivePress search form field */
.hp-form__field--text,
.hp-form__field--keyword,
.search-field-group.search-primary {
    position: relative;
}

/* ==========================================
   LISTINGS SECTION
   ========================================== */
.akammo-listings-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
}

.akammo-listings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
}

.akammo-listings-container {
    max-width: var(--agt-container-width);
    margin: 0 auto;
}

.akammo-listings-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--agt-gunmetal);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.akammo-listings-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D94F04 0%, #FF6B35 100%);
    border-radius: 2px;
}

.akammo-listings-section .hp-listings,
.akammo-listings-section .hp-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 380px) !important;
    gap: 32px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    justify-content: center !important;
}

/* Sleek AI-inspired listing cards */
.akammo-listings-section .hp-listing {
    display: flex;
    flex-direction: column;
    height: auto;
    background: #ffffff;
    width: 100% !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Fixed height for consistency */
    height: 480px;
    min-height: 480px;
    max-height: 480px;
}

.akammo-listings-section .hp-listing__link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.akammo-listings-section .hp-listing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D94F04 0%, #FF6B35 50%, #D94F04 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.akammo-listings-section .hp-listing:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(217, 79, 4, 0.2);
}

.akammo-listings-section .hp-listing:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.akammo-listings-section .hp-listing__header,
.akammo-listings-section .hp-listing__image {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    position: relative;
    overflow: hidden;
}

.akammo-listings-section .hp-listing__header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.98) contrast(1.05);
}

.akammo-listings-section .hp-listing:hover .hp-listing__header img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.1);
}

.akammo-listings-section .hp-listing__content {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

.akammo-listings-section .hp-listing__title {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.akammo-listings-section .hp-listing__excerpt {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
    position: relative;
    padding-left: 0;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
}

/* Red accent bar removed - was distracting
.akammo-listings-section .hp-listing__excerpt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(180deg, #D94F04 0%, #FF6B35 100%);
    border-radius: 2px;
}
*/

.akammo-listings-section .hp-listing__details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 0;
    justify-content: flex-start;
}

.akammo-listings-section .hp-listing__location,
.akammo-listings-section .hp-listing__seller {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    justify-content: flex-start;
    flex-shrink: 0;
}

.akammo-listings-section .hp-listing__location i,
.akammo-listings-section .hp-listing__seller i {
    width: 14px;
    text-align: center;
    color: #D94F04;
    font-size: 11px;
}

/* Seller row between content and footer */
.akammo-listings-section .hp-listing__seller-row {
    padding: 8px 16px;
    border-top: 1px solid #e9ecef;
    background: #fafbfc;
}

.akammo-listings-section .hp-listing__footer {
    margin-top: 0;
    padding: 12px 16px;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #fafbfc 0%, #f8f9fa 100%);
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price styling */
.akammo-listings-section .hp-listing__attribute--price,
.akammo-listings-section .hp-listing__footer .hp-listing__attribute--price {
    display: block !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2E4A3F !important;
    font-family: var(--agt-font-heading) !important;
    letter-spacing: -0.5px;
    text-align: center;
}

.akammo-listings-section .hp-listing__footer .hp-listing__attribute--price::before {
    content: '$';
    margin-right: 2px;
    color: #2E4A3F;
    font-weight: 800;
}

.akammo-browse-all {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================
 FEATURES SECTION
   ========================================== */
.akammo-features-section {
    background-color: var(--agt-gray);
    padding: 80px 20px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-features-container {
    max-width: var(--agt-container-width);
 margin: 0 auto;
}

.akammo-features-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--agt-gunmetal);
    font-size: 32px;
}

.akammo-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================
   MAP SECTION
   ========================================== */
.akammo-map-section {
    padding: 60px 20px;
    background-color: var(--agt-light-gray);
    width: 100vw;
 margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-map-container {
    max-width: var(--agt-container-width);
    margin: 0 auto;
}

.akammo-map-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--agt-gunmetal);
}

.akammo-map-section .hp-listings__map {
 width: 100%;
    height: 500px;
    border-radius: 8px;
  box-shadow: var(--agt-box-shadow);
    overflow: hidden;
}

.akammo-regional-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.akammo-regional-filters a {
    background-color: var(--agt-forest);
    color: var(--agt-white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: var(--agt-transition);
}

.akammo-regional-filters a:hover {
    background-color: var(--agt-orange);
    transform: translateY(-2px);
}

/* ==========================================
   SEO CONTENT SECTION
   ========================================== */
.akammo-seo-content {
    background-color: var(--agt-white);
    padding: 80px 20px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-seo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.akammo-seo-article {
    line-height: 1.8;
  color: #444;
}

.akammo-seo-article h2 {
    font-size: 32px;
    color: var(--agt-gunmetal);
    margin: 0 0 25px 0;
    text-align: center;
}

.akammo-seo-article h3 {
    font-size: 24px;
    color: var(--agt-forest);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--agt-orange);
}

.akammo-seo-article h4 {
    font-size: 18px;
  color: var(--agt-gunmetal);
    margin: 0 0 10px 0;
}

.akammo-seo-article p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.8;
}

.akammo-seo-article strong {
    color: var(--agt-forest);
    font-weight: 600;
}

.akammo-seo-article em {
 color: var(--agt-orange);
    font-style: normal;
}

/* Category Grid */
.akammo-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
    margin: 30px 0;
}

.akammo-category-item {
background: #F9F9F9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--agt-orange);
}

.akammo-category-item h4 {
    color: var(--agt-forest);
    margin-bottom: 12px;
}

.akammo-category-item p {
    font-size: 14px;
    margin: 0;
    color: #666;
}

/* Benefits List */
.akammo-benefits-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    background: #F9F9F9;
    padding: 30px 35px;
    border-radius: 4px;
}

.akammo-benefits-list li {
    padding: 14px 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    border-bottom: 1px solid #E5E5E5;
}

.akammo-benefits-list li:last-child {
    border-bottom: none;
}

.akammo-benefits-list li strong {
    color: var(--agt-forest);
    font-weight: 600;
    display: inline-block;
    min-width: 160px;
}

/* Location Tags */
.akammo-location-tags {
    background: #F5F5F5;
    padding: 30px;
    border-radius: 8px;
 margin-top: 50px;
    text-align: center;
}

.akammo-location-tags h4 {
    font-size: 20px;
    color: var(--agt-gunmetal);
    margin: 0 0 20px 0;
}

.akammo-tags {
 font-size: 13px;
    line-height: 2;
    color: #666;
    margin: 0;
}

.akammo-tags span {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px;
    background: white;
    border-radius: 4px;
    color: var(--agt-forest);
    font-weight: 500;
    transition: var(--agt-transition);
}

.akammo-tags span:hover {
    background: var(--agt-orange);
    color: white;
    cursor: pointer;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-article {
    margin-bottom: 40px;
}

.contact-article .entry-header {
    margin-bottom: 20px;
}

.contact-article .entry-title {
    font-size: 2.5rem;
    color: var(--agt-forest);
    margin-bottom: 15px;
}

.contact-article .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.contact-form-section h2 {
    font-size: 1.875rem;
    color: var(--agt-forest);
    margin-bottom: 25px;
}

.contact-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
}

.contact-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.contact-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.agt-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.agt-contact-form .form-field {
    margin-bottom: 20px;
}

.agt-contact-form label {
    display: block;
    font-weight: 600;
    color: var(--agt-forest);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.agt-contact-form .required {
    color: var(--agt-orange);
}

.agt-contact-form input[type="text"],
.agt-contact-form input[type="email"],
.agt-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.agt-contact-form input[type="text"]:focus,
.agt-contact-form input[type="email"]:focus,
.agt-contact-form textarea:focus {
    outline: none;
    border-color: var(--agt-orange);
}

.agt-contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.agt-contact-form button[type="submit"] {
    background: var(--agt-orange);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.agt-contact-form button[type="submit"]:hover {
    background: #bf4504;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 79, 4, 0.3);
}

/* Contact Info Section */
.contact-info-section {
    margin-top: 40px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-info-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-info-item i {
    font-size: 2.5rem;
    color: var(--agt-orange);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    font-size: 1.25rem;
    color: var(--agt-forest);
    margin-bottom: 10px;
}

.contact-info-item p {
    color: #6b7280;
    margin: 0;
}

.contact-info-item a {
    color: var(--agt-orange);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agt-contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-section {
        padding: 25px 20px;
    }

    .contact-article .entry-title {
        font-size: 2rem;
    }
}

/* ==========================================
   LISTING CARD FAVORITE BUTTON
   ========================================== */
.hp-listing__header {
    position: relative;
}

.listing-card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    min-width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    z-index: 10;
}

.listing-card-favorite:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.listing-card-favorite i {
    font-size: 16px;
    color: #D94F04;
    line-height: 1;
}

.listing-card-favorite .fav-count {
    font-size: 12px;
    font-weight: 600;
    color: #1C2526;
    line-height: 1;
}

.listing-card-favorite .fav-count:empty {
    display: none;
}

/* Active state when favorited */
.listing-card-favorite.is-favorited {
    background: #D94F04;
}

.listing-card-favorite.is-favorited i {
    color: #fff;
}

.listing-card-favorite.is-favorited .fav-count {
    color: #fff;
}

.listing-card-favorite.is-favorited:hover {
    background: #bf4504;
}

/* ==========================================
   FOOTER SEO LINKS
   ========================================== */
.footer-seo-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-section h4 {
    color: var(--agt-white);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-section ul li {
    margin-bottom: 8px;
}

.footer-links-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links-section ul li a:hover {
    color: var(--agt-burnt-orange);
}

.legal-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

/* Archive page SEO footer */
.category-seo-footer {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.category-seo-footer h3 {
    font-size: 20px;
    color: var(--agt-gunmetal);
    margin: 0 0 15px 0;
}

.category-seo-footer h4 {
    font-size: 16px;
    color: var(--agt-gunmetal);
    margin: 20px 0 10px 0;
}

.category-seo-footer p {
    color: #565959;
    line-height: 1.6;
    margin-bottom: 15px;
}

.category-seo-footer a {
    color: var(--agt-burnt-orange);
}

.category-seo-footer a:hover {
    text-decoration: underline;
}

/* Archive page intro */
.category-intro {
    margin: 15px 0 0 0;
    padding: 20px;
    background: rgba(217, 79, 4, 0.05);
    border-left: 4px solid var(--agt-burnt-orange);
    border-radius: 0 8px 8px 0;
}

.category-intro p {
    color: #565959;
    line-height: 1.6;
    margin: 0;
}

.page-subtitle {
    color: #565959;
    font-size: 16px;
    margin: 10px 0 0 0;
}

@media (max-width: 768px) {
    .footer-seo-links {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .footer-links-section h4 {
        margin-bottom: 12px;
    }
}

/* ==========================================
   NEW SEO-OPTIMIZED SECTIONS
   ========================================== */

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 400;
}

.hero-stats .stat strong {
    color: #fff;
    font-weight: 700;
}

.hero-stats .stat-divider {
    color: rgba(255, 255, 255, 0.4);
}

/* Browse by Category Section */
.akammo-categories-section {
    padding: 60px 20px;
    background: #fff;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-categories-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--agt-gunmetal);
    font-size: 28px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    background: #fff;
    border-color: var(--agt-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.category-card .category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--agt-gunmetal);
    margin-bottom: 4px;
}

.category-card .category-count {
    font-size: 13px;
    color: #6c757d;
}

/* Browse by Region Section */
.akammo-regions-section {
    padding: 60px 20px;
    background: #f8f9fa;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-regions-section h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--agt-gunmetal);
    font-size: 28px;
}

.akammo-regions-section .section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 32px;
    font-size: 16px;
}

.regions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.region-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border-radius: 24px;
    text-decoration: none;
    color: var(--agt-gunmetal);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.region-link:hover {
    border-color: var(--agt-orange);
    color: var(--agt-orange);
}

.region-link .region-count {
    font-size: 12px;
    color: #9ca3af;
}

.region-link.region-all {
    background: var(--agt-orange);
    color: #fff;
    border-color: var(--agt-orange);
}

.region-link.region-all:hover {
    background: #bf4504;
}

/* Updated Features Section with Icons */
.akammo-feature .feature-icon {
    margin-bottom: 20px;
    color: var(--agt-orange);
}

.akammo-feature .feature-icon svg {
    width: 48px;
    height: 48px;
}

.akammo-feature {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.akammo-feature h3 {
    font-size: 20px;
    color: var(--agt-gunmetal);
    margin: 0 0 12px 0;
}

.akammo-feature p {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* How It Works Section */
.akammo-info-section {
    padding: 80px 20px;
    background: #fff;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.info-article h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--agt-gunmetal);
    font-size: 32px;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--agt-orange);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 18px;
    color: var(--agt-gunmetal);
    margin: 0 0 12px 0;
}

.step p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Legal Info Box */
.legal-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-info h3 {
    font-size: 22px;
    color: var(--agt-gunmetal);
    margin: 0 0 16px 0;
}

.legal-info p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-info ul {
    margin: 20px 0;
    padding-left: 24px;
}

.legal-info li {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-info li strong {
    color: var(--agt-gunmetal);
}

/* FAQ Section */
.akammo-faq-section {
    padding: 80px 20px;
    background: #f8f9fa;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--agt-gunmetal);
    font-size: 32px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 16px;
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.faq-item h3 {
    font-size: 18px;
    color: var(--agt-gunmetal);
    margin: 0 0 12px 0;
    font-weight: 600;
}

.faq-item p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.akammo-cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--agt-forest) 0%, #1a3a2f 100%);
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-cta-section h2 {
    color: #fff;
    font-size: 32px;
    margin: 0 0 12px 0;
}

.akammo-cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin: 0 0 32px 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.akammo-cta-button.secondary {
    background: transparent;
    border: 2px solid #fff;
}

.akammo-cta-button.secondary:hover {
    background: #fff;
    color: var(--agt-forest);
}

/* Clean Footer Navigation */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav .footer-links-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav .footer-links-section ul li {
    margin-bottom: 8px;
}

.footer-nav .footer-links-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav .footer-links-section ul li a:hover {
    color: var(--agt-orange);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-stats .stat-divider {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .akammo-cta-section h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   HOMEPAGE BROWSE SECTION
   Full filtering experience with sidebar
   ========================================== */
.akammo-browse-section {
    padding: 0 0 40px 0;
    background: #f5f5f7;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.akammo-browse-section .container {
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

.browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    padding-top: 24px;
}

/* ==========================================
   FILTERS SIDEBAR - Clean Minimal Design
   ========================================== */
.filters-sidebar {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    align-self: flex-start;
}

.filters-header-mobile {
    display: none;
}

/* Filter Group */
.filter-group {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.filter-group:first-of-type {
    padding-top: 8px;
}

.filter-group:last-of-type {
    border-bottom: none;
}

/* Filter Options List */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 240px;
    overflow-y: auto;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f9fafb;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

/* Individual Filter Option */
.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 13px;
    color: #374151;
    border-left: 3px solid transparent;
    margin: 0;
    background: transparent;
}

.filter-option:hover {
    background: #f9fafb;
}

/* Active Filter */
.filter-option.active {
    background: #fff7ed;
    border-left-color: var(--agt-orange);
    color: #c2410c;
    font-weight: 600;
}

/* Hide radio input */
.filter-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Option Label */
.option-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

/* Count Badge */
.option-count {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    flex-shrink: 0;
}

.filter-option.active .option-count {
    color: #ea580c;
    font-weight: 600;
}

/* Clear Filters Button */
.clear-filters-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f9fafb;
    border: none;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.clear-filters-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.clear-filters-btn svg {
    width: 12px;
    height: 12px;
}

/* ==========================================
   LISTINGS MAIN AREA
   ========================================== */
.listings-main {
    min-height: 400px;
}

/* Toolbar */
.listings-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-filter-btn svg {
    width: 16px;
    height: 16px;
}

.results-count {
    font-size: 14px;
    color: #6b7280;
}

.results-count span {
    font-weight: 700;
    color: #1f2937;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Active Filter Badges */
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(217, 79, 4, 0.12) 0%, rgba(217, 79, 4, 0.06) 100%);
    border: 1px solid rgba(217, 79, 4, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #c2410c;
}

.filter-badge button {
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: #c2410c;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.filter-badge button:hover {
    opacity: 1;
}

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

.sort-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.sort-select {
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.sort-select:hover {
    border-color: #d1d5db;
}

.sort-select:focus {
    outline: none;
    border-color: var(--agt-orange);
    box-shadow: 0 0 0 3px rgba(217, 79, 4, 0.1);
}

/* Listings Grid */
.listings-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.listing-card-modern {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.listing-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.08);
}

.listing-card-modern .card-image {
    position: relative;
    aspect-ratio: 4/3;
    background: #f5f5f7;
    overflow: hidden;
}

.listing-card-modern .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card-modern:hover .card-image img {
    transform: scale(1.08);
}

.listing-card-modern .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.listing-card-modern .no-image svg {
    width: 48px;
    height: 48px;
    color: #d1d5db;
}

.listing-card-modern .condition-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
}

.listing-card-modern .condition-badge.new {
    background: #059669;
}

.listing-card-modern .condition-badge.like_new {
    background: #0891b2;
}

.listing-card-modern .condition-badge.excellent {
    background: #7c3aed;
}

.listing-card-modern .card-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-card-modern .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--agt-gunmetal);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-modern .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.listing-card-modern .card-location svg {
    flex-shrink: 0;
}

.listing-card-modern .card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--agt-orange);
    margin: 4px 0 0 0;
}

/* Mobile Apply Button - Hidden by default */
.mobile-apply-wrapper {
    display: none;
}

.mobile-apply-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--agt-orange);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

.mobile-apply-btn:hover {
    background: #c2410c;
}

.mobile-apply-btn svg {
    width: 16px;
    height: 16px;
}

/* No Listings Found */
.no-listings-found {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.no-listings-found svg {
    color: #d1d5db;
    margin-bottom: 16px;
}

.no-listings-found h3 {
    font-size: 20px;
    color: var(--agt-gunmetal);
    margin: 0 0 8px 0;
}

.no-listings-found p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* Loading State */
.loading-grid {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

/* Infinite Scroll */
.infinite-scroll-status {
    padding: 40px 20px;
    text-align: center;
}

.infinite-scroll-status .loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--agt-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.infinite-scroll-status .end-message {
    color: #9ca3af;
    font-size: 14px;
}

/* Responsive Browse Layout */
@media (max-width: 1200px) {
    .listings-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .browse-layout {
        grid-template-columns: 240px 1fr;
    }
    
    .listings-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .browse-layout {
        grid-template-columns: 1fr;
        padding-top: 16px;
    }
    
    /* Mobile Filter Drawer */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1000;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: none;
        border: none;
        width: 280px;
        max-width: 85vw;
    }
    
    .filters-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    
    /* Mobile Filter Header */
    .filters-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }
    
    .filters-header-mobile h2 {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        color: #111827;
    }
    
    .close-filters {
        background: #f3f4f6;
        border: none;
        font-size: 18px;
        color: #6b7280;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-filters:hover {
        background: #e5e7eb;
        color: #374151;
    }
    
    .filter-group {
        padding: 16px 20px;
    }
    
    .clear-filters-btn {
        margin: 16px 20px;
        width: calc(100% - 40px);
        border-radius: 8px;
    }
    
    /* Mobile Apply Button */
    .mobile-apply-wrapper {
        display: block;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 12px 20px 12px;
        border-top: 1px solid #e5e7eb;
    }
    
    .mobile-apply-btn {
        border-radius: 8px;
    }
    
    .mobile-filter-btn {
        display: flex;
    }
    
    .listings-toolbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .toolbar-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .listings-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    /* Mobile filter backdrop */
    .filters-sidebar::after {
        content: '';
        position: fixed;
        top: 0;
        left: 100%;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }
    
    .filters-sidebar.open::after {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .listings-grid-modern {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .listing-card-modern .card-title {
        font-size: 15px;
    }
    
    .listing-card-modern .card-price {
        font-size: 17px;
    }
    
    .toolbar-left {
        width: 100%;
    }
    
    .active-filters {
        width: 100%;
    }
    
    .filters-sidebar {
        max-width: 100%;
    }
    
    .mobile-filter-btn {
        padding: 12px 18px;
    }
}
