/* Mobile-First CSS - Clean & Modern */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #e5e7eb;
    font-size: 16px;
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: 720px;
    padding: 0 16px;
    margin: 0 auto;
}

#listings .container {
    margin: 0;
}

/* Admin Container - Full Width */
.admin-container {
    width: 100%;
}

/* Full width containers for header, hero, footer, listings */
.site-header .container,
.hero .container,
.site-footer .container {
    max-width: 100%;
}

.listings-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Header - Mobile First */
.site-header {
    background: #4a5568;
    color: white;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.site-header h1 {
    font-size: 22px;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #4a5568;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
}

.main-nav.active {
    display: flex !important;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
    display: block;
    text-align: center;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.25);
}

/* Hero Section - Split Layout Style */
.hero {
    background: #f8f9fa;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.hero .container {
    max-width: 100%;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero-split {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-content {
    flex: 1;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f9fa;
}

.hero-image {
    flex: 1;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a202c;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #4a5568;
    max-width: 500px;
}

.hero-cta {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero {
    background: #667eea;
    color: white;
    font-weight: 600;
    padding: 16px 40px;
    display: inline-block;
    font-size: 16px;
    border: none;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-hero-secondary {
    background: #f97316;
    color: white;
    font-weight: 600;
    padding: 16px 40px;
    display: inline-block;
    font-size: 16px;
    border: none;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* Admin Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 24px 0;
}

.admin-pagination .page-info {
    color: #4a5568;
    font-size: 14px;
}

/* Admin Footer */
.admin-footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

.admin-footer p {
    margin: 0;
}

/* Footer */
.site-footer {
    background: #2d3748;
    color: #cbd5e0;
    text-align: center;
    padding: 32px 16px;
    margin-top: 64px;
    font-size: 14px;
}

/* Buttons - Mobile First */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.admin-page .btn-primary {
    background: #ed64a6;
}

.admin-page .btn-primary:hover {
    background: #d53f8c;
}

.btn-secondary {
    background: #cbd5e0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #a0aec0;
}

.admin-page .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.admin-page .btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-warning {
    background: #ed8936;
    color: white;
}

.btn-warning:hover {
    background: #dd6b20;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

/* Alerts */
.alert {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 0;
    font-size: 14px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid #3182ce;
}

.alert ul {
    margin-left: 20px;
    margin-top: 8px;
}

/* Main Content After Hero */
.hero + .container {
    margin-top: 32px;
}

/* Search Bar - Mobile First */
.search-bar {
    background: white;
    padding: 16px;
    border-radius: 0;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-bar form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-bar input[type="search"],
.search-bar input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 15px;
}

.search-bar button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* Results Info */
.results-info {
    margin-bottom: 32px;
    margin-top: 32px;
    color: #4a5568;
    font-size: 16px;
    padding: 0 4px;
    font-weight: 700;
}

/* Admin Section Heading */
.admin-section-heading {
    padding: 0;
    margin-bottom: 24px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.admin-section-heading h2 {
    font-size: 22px;
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 6px;
}

.admin-section-heading p {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

/* Listings with Sidebar Layout */
.listings-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 100%;
}

.listings-main {
    flex: 1;
    width: 100%;
}

.listings-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-ad {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-ad a {
    display: block;
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* Listings - Full Width Two Column Layout */
.listings-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    width: 100%;
}

.listing-card {
    width: 100%;
    padding: 30px 0;
    transition: all 0.2s;
}

.listing-card:nth-child(odd) {
    background: #ffffff;
}

.listing-card:nth-child(even) {
    background: #f0f1f3;
}

.listing-two-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
}

/* Column Image Section */
.column-image {
    width: 100%;
    flex: 0 0 auto;
}

.listing-image-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listing-main-image {
    width: 100%;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden;
}

.listing-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.listing-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.listing-thumbnail {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    background: white;
}

.listing-thumbnail:hover,
.listing-thumbnail.active {
    border-color: #3498db;
}

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

.listing-image-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 600;
}

/* Column Content Section */
.column-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.listing-content {
    padding: 0;
}

.listing-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a202c;
    font-weight: 700;
    line-height: 1.3;
}

.listing-sku {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-location {
    color: #718096;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.listing-description {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.listing-content .btn {
    margin-top: 8px;
    align-self: flex-start;
}

/* Modal - Mobile First */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.2s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: white;
    border-radius: 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-body {
    padding: 20px;
}

.contact-item {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
    word-break: break-all;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pagination - Mobile First */
.pagination {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
    padding: 0 20px;
    align-items: flex-start;
}

.pagination .btn {
    width: 100%;
}

.page-info {
    text-align: center;
    color: #4a5568;
    padding: 8px 0;
    font-weight: 600;
}

/* Listing Detail Page - Mobile First */
.listing-detail {
    background: white;
    border-radius: 0;
    overflow: hidden;
    border: none;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.listing-detail-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.listing-detail-header h1 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.3;
}

.listing-date {
    color: #95a5a6;
    font-size: 13px;
}

.listing-detail-gallery {
    background: #f8f9fa;
    padding: 16px;
}

.listing-detail-main-image {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 16px;
}

.listing-detail-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.listing-detail-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.listing-detail-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.listing-detail-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.listing-detail-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    background: white;
}

.listing-detail-thumbnail:hover,
.listing-detail-thumbnail.active {
    border-color: #3498db;
}

.listing-detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-detail-body {
    padding: 20px;
}

.listing-detail-body h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.listing-description-full {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.listing-contact-info {
    padding: 20px;
    background: #f8f9fa;
    margin: 0;
}

.listing-contact-info h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #2c3e50;
}

.listing-expires {
    color: #e67e22;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

.listing-actions {
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Admin Styles - Mobile First */
body.admin-page {
    background: #e5e7eb;
}

.admin-container {
    padding: 0;
}

.admin-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #4a5568;
    padding: 24px 32px;
    margin-bottom: 0;
}

.admin-header h1 {
    font-size: 24px;
    color: white;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-nav .btn {
    width: 100%;
}

/* Stats Section */
.stats-section {
    background: #edf2f7;
    padding: 40px 32px;
}

.stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.stat {
    background: white;
    padding: 32px 24px;
    font-size: 13px;
    color: #718096;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat strong {
    display: block;
    font-size: 36px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Table Section - includes filters */
.table-section {
    background: white;
    padding: 32px;
}

.filters-bar {
    background: transparent;
    padding: 0 0 24px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

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

.filter-form select,
.filter-form input[type="search"] {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

.filter-form select:focus,
.filter-form input[type="search"]:focus {
    outline: none;
    border-color: #a0aec0;
    background: white;
    box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.1);
}

.filter-form button {
    width: 100%;
}

/* Admin Table - Mobile First (Card Style) */
.admin-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    padding: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.admin-table table {
    display: none; /* Hide table on mobile */
}

.listing-item {
    background: white;
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.listing-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.listing-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.listing-item-info {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.listing-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-action {
    padding: 8px 16px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    flex: 1;
    min-width: 80px;
    text-align: center;
    font-weight: 600;
    transition: all 0.15s;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: #c6f6d5;
    color: #22543d;
}

.badge-paused {
    background: #feebc8;
    color: #7c2d12;
}

.badge-expired {
    background: #fed7d7;
    color: #742a2a;
}

/* Login Box - Mobile First */
.login-box {
    width: 100%;
    max-width: 450px;
    margin: 80px auto;
    background: white;
    padding: 48px 40px;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 32px;
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
}

/* Forms - Mobile First */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a0aec0;
    box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group small {
    display: block;
    margin-top: 10px;
    color: #718096;
    font-size: 13px;
    line-height: 1.5;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #ecf0f1;
}

/* Form Section */
.form-section {
    background: #b6b6b6;
    padding: 48px 32px;
}

.listing-form {
    background: #f3f4f6;
    padding: 40px 32px;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 0;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.current-image {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 0;
}

.current-image img {
    border: 2px solid #ddd;
    border-radius: 0;
    max-width: 100%;
}

.listing-info-box {
    background: #edf2f7;
    padding: 20px;
    border-radius: 0;
    margin: 24px 0;
    border-left: 4px solid #667eea;
    font-size: 14px;
    line-height: 1.8;
    color: #4a5568;
}

/* Image Upload Area */
.image-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 0;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    margin-bottom: 20px;
}

.image-upload-area:hover {
    border-color: #a0aec0;
    background: #f7fafc;
}

.upload-prompt {
    color: #718096;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.upload-prompt p {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
}

.upload-prompt small {
    display: block;
    line-height: 1.5;
    color: #718096;
}

.upload-spinner {
    padding: 20px;
    text-align: center;
    color: #3498db;
    font-weight: 500;
}

.featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #27ae60;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image Gallery - Mobile First */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.image-gallery-item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    background: white;
}

.image-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.delete-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

/* Desktop Styles - Min-width Media Queries */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }

    .site-header h1 {
        font-size: 28px;
    }

    /* Desktop Navigation */
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
        gap: 8px;
        border-top: none;
        background: transparent;
    }

    .main-nav a {
        padding: 8px 16px;
        border-radius: 0;
    }

    .search-bar form {
        flex-direction: row;
        align-items: flex-end;
    }

    .search-bar input[type="search"],
    .search-bar input[type="text"] {
        flex: 1;
    }

    .search-bar button {
        width: auto;
        padding: 12px 32px;
    }

    .btn {
        width: auto;
    }

    .listing-content .btn {
        width: auto;
    }

    /* Listings - Desktop Two Column Layout */
    .listing-two-column {
        flex-direction: row;
        gap: 80px;
        align-items: center;
        padding: 0 60px;
    }

    .column-image {
        width: 45%;
        flex: 0 0 45%;
    }

    .column-content {
        flex: 1;
    }

    .listing-main-image {
        max-height: 500px;
    }

    .listing-content h3 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .listing-description {
        font-size: 18px;
        line-height: 1.8;
    }

    /* Hero Section - Desktop Split Layout */
    .hero-split {
        flex-direction: row;
    }

    .hero-content {
        padding: 80px 60px;
        max-width: 50%;
    }

    .hero-image {
        max-width: 50%;
    }

    .hero-title {
        font-size: 48px;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 20px;
        max-width: 600px;
    }

    .btn-hero,
    .btn-hero-secondary {
        padding: 18px 50px;
        font-size: 18px;
    }

    .pagination {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
    }

    .pagination .btn {
        width: auto;
    }

    .admin-container {
        padding: 0;
    }

    .admin-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 28px 64px;
        margin-bottom: 0;
    }

    .admin-header h1 {
        font-size: 28px;
    }

    .admin-nav {
        flex-direction: row;
        gap: 12px;
    }

    .admin-nav .btn {
        width: auto;
    }

    .stats-section {
        padding: 56px 64px;
    }

    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
        max-width: 1600px;
    }

    .stat {
        padding: 32px 32px;
    }

    .stat strong {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .table-section {
        padding: 48px 64px 64px 64px;
    }

    .filters-bar {
        padding: 0 0 32px 0;
        margin-bottom: 32px;
        max-width: 1600px;
    }

    .filter-form {
        flex-direction: row;
        align-items: center;
    }

    .filter-form select {
        width: 200px;
    }

    .filter-form input[type="search"] {
        flex: 1;
    }

    .filter-form button {
        width: auto;
    }

    .admin-section-heading {
        padding: 0;
        margin-bottom: 32px;
        max-width: 1600px;
    }

    .admin-section-heading h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .admin-section-heading p {
        font-size: 14px;
    }

    /* Show table on desktop */
    .admin-table {
        padding: 0;
        background: transparent;
        max-width: 1600px;
    }

    .admin-table table {
        display: table;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: white;
        border-radius: 0;
        overflow: hidden;
        border: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .admin-table th,
    .admin-table td {
        padding: 20px 28px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }

    .admin-table th {
        background: #4a5568;
        color: #ffffff;
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #e2e8f0;
    }

    .admin-table tbody tr {
        background: white;
        transition: background 0.15s;
    }

    .admin-table tbody tr:last-child td {
        border-bottom: none;
    }

    .admin-table tbody tr:hover {
        background: #f7fafc;
    }

    .admin-table .listing-item {
        display: none; /* Hide card style on desktop */
    }

    .btn-action {
        flex: none;
        min-width: auto;
    }

    .login-box {
        max-width: 450px;
    }

    .form-row {
        flex-direction: row;
        gap: 20px;
    }

    .form-row .form-group {
        flex: 1;
    }

    .form-actions {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }

    .form-actions .btn {
        width: auto;
        min-width: 140px;
    }

    .form-section {
        padding: 64px;
    }

    .listing-form {
        padding: 56px 72px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .image-gallery-item img {
        height: 160px;
    }

    .listing-detail-images {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 820px;
    }

    /* Full width containers for header, hero, footer on desktop */
    .site-header .container,
    .site-footer .container {
        max-width: 100%;
        padding: 0 32px;
    }

    .hero .container {
        max-width: 100%;
        padding: 0;
    }

    .listing-detail {
        max-width: 820px;
    }

    /* Sidebar Layout on Desktop */
    .listings-with-sidebar {
        flex-direction: row;
        gap: 40px;
        padding: 0 32px;
        align-items: flex-start;
    }

    .listings-main {
        flex: 1;
        min-width: 0;
    }

    .listings-sidebar {
        width: 320px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
    }
}

/* Buyer Verification Styles */
.btn-block {
    width: 100%;
    display: block;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #a0aec0;
    box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.1);
}

.verification-step {
    animation: fadeIn 0.3s ease-in-out;
}

.contact-info-display h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2d3748;
}

.contact-location {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
}

.contact-details-list {
    margin-top: 20px;
}

.contact-details-list .contact-item {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 0;
}

.contact-details-list .contact-item:last-child {
    margin-bottom: 0;
}

.contact-details-list .contact-item strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-details-list .contact-item a {
    color: #667eea;
    text-decoration: none;
    font-size: 16px;
    word-break: break-all;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
