:root {
    --primary: #4f46e5;
    --secondary: #f59e0b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent: #5ac8fa;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header & Nav */
header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--secondary);
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    border-radius: 40px;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero span {
    color: #fcd34d;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-img {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.card-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

/* View Page */
.view-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.view-main {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.info-item {
    margin-bottom: 30px;
}

.info-label {
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.info-value {
    font-size: 1.1rem;
}

.blog-review {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

/* Admin Sidebar Layout */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    flex: 1;
    padding: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: 0.2s;
}

.nav-item:hover {
    color: var(--primary);
    background: #f1f5f9;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.admin-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.admin-main {
    padding: 40px;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
}

/* Dashboard Components */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.luxury-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.data-table th {
    padding: 16px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

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

.glass-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.9rem;
    transition: border 0.2s;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

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

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-blue {
    background: #e0e7ff;
    color: #4338ca;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 80px;
    }

    .nav-text {
        display: none;
    }

    .admin-wrapper {
        margin-left: 80px;
    }

    .view-container {
        grid-template-columns: 1fr;
    }
}