:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo with Image */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 35px;
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-admin {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.btn-admin:hover {
    background: var(--primary-dark);
}

/* Hero Header */
.hero-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 100px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 1rem 2rem;
    background: var(--secondary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.search-box button:hover {
    opacity: 0.9;
}

/* Categories */
.categories-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Posts Grid */
.posts-section {
    padding: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--light-gray);
}

.post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-badge.featured {
    background: var(--danger);
}

.post-content {
    padding: 1.25rem;
}

.post-category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.125rem;
    margin: 0.5rem 0;
    color: var(--dark);
    line-height: 1.4;
}

.post-description {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.post-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--success);
}

.post-location {
    color: var(--gray);
    font-size: 0.875rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left: 3px solid var(--primary);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Main */
.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--light-gray);
    min-height: 100vh;
}

/* Admin header actions */
.admin-header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header > div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header span {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Danger button for logout */
.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    opacity: 0.9;
}

.admin-content {
    padding: 2rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue { background: #dbeafe; color: var(--primary); }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.orange { background: #fef3c7; color: var(--secondary); }
.stat-icon.red { background: #fee2e2; color: var(--danger); }

.stat-info h3 {
    font-size: 2rem;
    color: var(--dark);
}

.stat-info p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Tables */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.data-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--dark);
}

.data-table tr:hover {
    background: #f9fafb;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Image Upload */
.image-upload {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.image-upload:hover {
    border-color: var(--primary);
}

.image-upload i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.preview-item .remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: var(--white);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.login-box .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

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

/* Profile */
.profile-header {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light-gray);
}

.profile-info h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.profile-info p {
    color: var(--gray);
}

/* Status badges */
.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status.active { background: #d1fae5; color: #065f46; }
.status.pending { background: #fef3c7; color: #92400e; }
.status.sold { background: #e5e7eb; color: #374151; }

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .hero-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card,
.stat-card,
.category-card {
    animation: fadeIn 0.5s ease-out;
}

/* Post Card Improvements */
.post-image-wrapper {
    position: relative;
    overflow: hidden;
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--light-gray);
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-category-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-top-right-radius: var(--radius);
}

.post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.post-badge.featured {
    background: var(--danger);
}

.post-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-status.active {
    background: #d1fae5;
    color: #065f46;
}

.post-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.post-status.sold {
    background: #e5e7eb;
    color: #374151;
}

/* Rich Text Editor */
.editor-toolbar {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.editor-toolbar button {
    background: var(--white);
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.2s;
}

.editor-toolbar button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.rich-editor {
    min-height: 300px;
    border: 1px solid #d1d5db;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    background: var(--white);
    overflow-y: auto;
    line-height: 1.6;
}

.rich-editor:focus {
    outline: none;
    border-color: var(--primary);
}

.rich-editor p {
    margin-bottom: 0.75rem;
}

.rich-editor ul, .rich-editor ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.editor-status {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    color: var(--gray);
}

/* Image Upload Areas */
.image-upload {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
}

.image-upload:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.image-upload i {
    font-size: 2.5rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.preview-item .remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: var(--white);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .editor-toolbar {
        gap: 0.125rem;
    }
    
    .editor-toolbar button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}


/* Post Detail Page */
.post-detail-header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span:last-child {
    color: var(--dark);
    font-weight: 500;
}

.post-detail {
    padding: 2rem 0;
}

.post-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

/* Post Images */
.post-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light-gray);
}

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

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumb {
    min-width: 80px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s;
}

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

.thumb.active,
.thumb:hover {
    border-color: var(--primary);
    opacity: 1;
}

/* Post Info */
.post-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-info-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.post-category-tag {
    background: var(--primary);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-status-badge {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.post-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.post-status-badge.sold {
    background: #e5e7eb;
    color: #374151;
}

.post-title-large {
    font-size: 2rem;
    color: var(--dark);
    line-height: 1.3;
}

.post-price-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--success);
}

.post-meta-detail {
    display: flex;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.875rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.post-description-full h3,
.post-location-detail h3,
.contact-box h3,
.share-buttons h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.description-content {
    color: var(--gray);
    line-height: 1.7;
}

.description-content p {
    margin-bottom: 0.75rem;
}

.post-location-detail {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: var(--radius);
}

.post-location-detail p {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Box */
.contact-box {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Share Buttons */
.share-icons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy {
    background: var(--gray);
}

/* Related Posts */
.related-posts {
    padding: 3rem 0;
    background: var(--light-gray);
}

.related-posts .post-card {
    position: relative;
}

.related-posts .post-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Index page card as link */
.posts-grid .post-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .post-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .post-title-large {
        font-size: 1.5rem;
    }
    
    .post-price-large {
        font-size: 1.875rem;
    }
    
    .post-meta-detail {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}


/* ============================================
   POST DETAIL PAGE STYLES
   ============================================ */

/* Post Detail Header / Breadcrumb */
.post-detail-header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: #9ca3af;
}

.breadcrumb span:last-child {
    color: var(--dark);
    font-weight: 500;
}

/* Post Detail Layout */
.post-detail {
    padding: 2rem 0;
    background: var(--light-gray);
    min-height: calc(100vh - 200px);
}

.post-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

@media (max-width: 968px) {
    .post-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Post Images Section */
.post-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light-gray);
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow);
}

/* Gallery Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

.thumb {
    min-width: 90px;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
}

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

.thumb.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: var(--shadow);
}

.thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Post Info Section */
.post-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.post-info-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.post-info-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.post-category-tag {
    background: var(--primary);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-status-badge {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.post-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.post-status-badge.sold {
    background: #e5e7eb;
    color: #374151;
}

.post-title-large {
    font-size: 1.875rem;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .post-title-large {
        font-size: 1.5rem;
    }
}

.post-price-large {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .post-price-large {
        font-size: 1.75rem;
    }
}

.post-meta-detail {
    display: flex;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.875rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.post-meta-detail span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.post-meta-detail i {
    color: var(--primary);
}

/* Description Section */
.post-description-full h3,
.post-location-detail h3,
.contact-box h3,
.share-buttons h3 {
    font-size: 1rem;
    margin-bottom: 0.875rem;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-content {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.description-content p {
    margin-bottom: 0.875rem;
}

.description-content ul,
.description-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.875rem;
}

.description-content li {
    margin-bottom: 0.375rem;
}

.description-content a {
    color: var(--primary);
    text-decoration: none;
}

.description-content a:hover {
    text-decoration: underline;
}

.description-content strong {
    color: var(--dark);
}

.description-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Location Section */
.post-location-detail {
    background: #f0f9ff;
    padding: 1.25rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.post-location-detail p {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.post-location-detail i {
    color: var(--primary);
}

/* Contact Box */
.contact-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.contact-item i {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.contact-item div {
    flex: 1;
}

.contact-item label {
    display: block;
    font-size: 0.6875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.125rem;
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Share Buttons */
.share-buttons {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.share-icons {
    display: flex;
    gap: 0.875rem;
}

.share-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy {
    background: #6b7280;
}

/* Related Posts Section */
.related-posts {
    padding: 3rem 0;
    background: var(--light-gray);
    border-top: 1px solid #e5e7eb;
}

.related-posts .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Make index cards clickable */
.posts-grid .post-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.posts-grid .post-card:hover {
    transform: translateY(-8px);
}

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.no-results p {
    font-size: 1.125rem;
}

/* ============================================
   BOTTOM TAB BAR - SOLID BACKGROUND ICONS
   ============================================ */

.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-radius: 20px 20px 0 0;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    flex: 1;
    cursor: pointer;
}

.tab-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    transition: all 0.3s ease;
}

.tab-icon i {
    font-size: 1.125rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.tab-item:hover .tab-icon {
    background: #475569;
}

.tab-item:hover .tab-icon i {
    color: #ffffff;
}

.tab-item.active .tab-icon {
    background: #38bdf8;
}

.tab-item.active .tab-icon i {
    color: #ffffff;
}

.tab-item:hover {
    color: #ffffff;
}

.tab-item.active {
    color: #38bdf8;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .bottom-tab-bar {
        padding: 0.5rem 0;
        border-radius: 16px 16px 0 0;
    }
    
    .tab-item {
        font-size: 0.625rem;
        padding: 0.375rem 0.5rem;
        gap: 0.25rem;
    }
    
    .tab-icon {
        width: 42px;
        height: 42px;
    }
    
    .tab-icon i {
        font-size: 1rem;
    }
}/* ============================================
   BOTTOM TAB BAR - ALL EQUAL STYLE
   ============================================ */

.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-radius: 20px 20px 0 0;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    flex: 1;
    cursor: pointer;
}

.tab-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-icon i {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.tab-item:hover .tab-icon {
    background: rgba(56, 189, 248, 0.1);
}

.tab-item:hover .tab-icon i {
    color: #38bdf8;
}

.tab-item.active .tab-icon {
    background: rgba(56, 189, 248, 0.15);
}

.tab-item.active .tab-icon i {
    color: #38bdf8;
}

.tab-item:hover {
    color: #38bdf8;
}

.tab-item.active {
    color: #38bdf8;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .bottom-tab-bar {
        padding: 0.5rem 0;
        border-radius: 16px 16px 0 0;
    }
    
    .tab-item {
        font-size: 0.625rem;
        padding: 0.375rem 0.5rem;
        gap: 0.25rem;
    }
    
    .tab-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .tab-icon i {
        font-size: 1.125rem;
    }
}

@media (max-width: 360px) {
    .tab-item {
        padding: 0.375rem 0.25rem;
    }
    
    .tab-icon {
        width: 36px;
        height: 36px;
    }
}   padding-bottom: 100px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .bottom-tab-bar {
        padding: 0.375rem 0 0.5rem;
    }
    
    .tab-item {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
    
    .tab-item i {
        font-size: 1.125rem;
    }
    
    .tab-center-btn {
        width: 50px;
        height: 50px;
    }
    
    .tab-center {
        top: -16px;
    }
}

/* ============================================
   CATEGORIES PAGE
   ============================================ */

.categories-page {
    padding: 2rem 0 100px;
}

.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card-large {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.category-icon-large i {
    font-size: 2rem;
    color: var(--white);
}

.category-card-large h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-count {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
    padding: 2rem 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info-box,
.contact-form-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-info-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.contact-info-box > p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item i {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.contact-info-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-info-item span {
    color: var(--dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card-large {
        padding: 1.5rem;
    }
}

/* ============================================
   TOP DATE/TIME BAR
   ============================================ */

.top-datetime-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.top-datetime-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.datetime-left,
.datetime-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.datetime-left i,
.datetime-right i {
    color: #38bdf8;
    font-size: 0.875rem;
}

.timezone-badge {
    background: #ec4899;
    color: #ffffff;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.25rem;
}

/* Adjust navbar since datetime bar is now sticky */
.navbar {
    position: sticky;
    top: 33px; /* Height of datetime bar */
    z-index: 1000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .top-datetime-bar {
        font-size: 0.75rem;
        padding: 0.375rem 0;
    }
    
    .datetime-left i,
    .datetime-right i {
        font-size: 0.75rem;
    }
    
    .timezone-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
    
    .navbar {
        top: 30px;
    }
}

@media (max-width: 480px) {
    .top-datetime-bar .container {
        gap: 0.5rem;
    }
    
    .datetime-left {
        flex: 1;
    }
    
    .datetime-right {
        flex-shrink: 0;
    }
}