@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1a2744;
    --primary-light: #243460;
    --accent: #FFB300;
    --accent-dark: #e6a200;
    --accent-light: #fff3cd;
    --white: #ffffff;
    --light: #f8f9fc;
    --border: #e8ecf0;
    --text: #1e2a3b;
    --text-muted: #6b7a99;
    --danger: #e74c3c;
    --success: #27ae60;
    --info: #3498db;
    --warning: #f39c12;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow: 0 4px 20px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, .14);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --sidebar-w: 260px;
    --transition: .2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
    font-size: 15px;
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
.navbar-main {
    background: rgba(26, 39, 68, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-main.navbar-scrolled {
    padding: 0.4rem 0;
    background: rgba(26, 39, 68, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar-main .navbar-brand {
    color: var(--white) !important;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.navbar-main .navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-main .navbar-brand span {
    color: var(--accent);
}

.navbar-main .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-main .nav-link:hover {
    color: var(--white) !important;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    width: 70%;
}

.navbar-main .nav-link.active {
    color: var(--accent) !important;
    font-weight: 600;
}

.navbar-main .navbar-toggler {
    transition: transform 0.3s ease;
}

.navbar-main .navbar-toggler:active {
    transform: scale(0.9);
}

/* User Menu Dropdown */
.navbar-main .dropdown-menu {
    animation: fadeInDown 0.3s ease forwards;
    transform-origin: top center;
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 220px;
    border: 1px solid rgba(0,0,0,0.05);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar-main .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text);
}

.navbar-main .dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateX(3px);
}

.navbar-main .dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.btn-nav-login {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.2rem !important;
    margin: 0.5rem 0.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-nav-login:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
}

.btn-nav-register {
    background: var(--accent);
    border: none;
    color: var(--primary) !important;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.4rem !important;
    font-weight: 700;
    margin: 0.5rem 0.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
}

.btn-nav-register:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e6b 60%, #1a2744 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 179, 0, .15), transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 2.5rem;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

.search-bar input,
.search-bar select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6rem 1rem;
    font-size: .95rem;
    outline: none;
    transition: border-color var(--transition);
    font-family: inherit;
    color: var(--text);
    background: #fff;
}

.search-bar input:focus,
.search-bar select:focus {
    border-color: var(--accent);
}

.search-bar input {
    flex: 1;
    min-width: 200px;
}

.search-bar select {
    min-width: 160px;
}

.btn-search {
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: .65rem 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-search:hover {
    background: var(--accent-dark);
    transform: scale(1.03);
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: .75rem 2rem;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 2px 8px rgba(255, 179, 0, .2);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .15);
    transition: left .3s ease;
}

.btn-primary-custom:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 179, 0, .35);
    color: var(--primary);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: .65rem 1.8rem;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    position: relative;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: width .3s ease;
}

.btn-outline-custom:hover {
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-outline-custom:hover::before {
    width: 100%;
}

.btn-outline-custom:active {
    transform: translateY(0);
}

/* ===== SECTION ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: .5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ===== LISTING CARD ===== */
.listing-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.listing-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--light);
}

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

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

.listing-card-badge {
    position: absolute;
    top: .7rem;
    left: .7rem;
    background: var(--accent);
    color: var(--primary);
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 20px;
}

.listing-card-featured {
    position: absolute;
    top: .7rem;
    right: .7rem;
    background: var(--primary);
    color: var(--accent);
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 20px;
}

.listing-card-fav {
    position: absolute;
    bottom: .7rem;
    right: .7rem;
    background: rgba(255, 255, 255, .9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.listing-card-fav:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.listing-card-fav.active {
    color: var(--danger);
}

.listing-card-body {
    padding: 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card-logo {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--border);
    margin-bottom: .7rem;
    background: var(--light);
}

.listing-card-cat {
    font-size: .72rem;
    color: var(--accent-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .3rem;
}

.listing-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .4rem;
    line-height: 1.3;
}

.listing-card-desc {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .8rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.listing-card-loc {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .6rem;
}

.listing-card-loc i {
    color: var(--accent);
}

.listing-card-rating {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .8rem;
}

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

.btn-details {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-details:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ===== SKELETON LOADER ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e8eaed 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== CATEGORY CARDS ===== */
.cat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .8rem;
    font-size: 1.4rem;
    color: #fff;
}

.cat-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .25rem;
}

.cat-count {
    font-size: .78rem;
    color: var(--text-muted);
}

/* ===== SIDEBAR (DASHBOARD) ===== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    background: var(--primary);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 900;
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
}

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

.sidebar-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.sidebar-brand span {
    color: var(--accent);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
}

.sidebar-username {
    font-size: .85rem;
    font-weight: 700;
}

.sidebar-role {
    font-size: .72rem;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sidebar-nav {
    padding: .8rem 0;
    flex: 1;
}

.sidebar-nav-item a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem 1.3rem;
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-left-color: var(--accent);
}

.sidebar-nav-item a.active {
    color: var(--accent);
    background: rgba(255, 179, 0, .12);
    border-left-color: var(--accent);
    font-weight: 700;
    box-shadow: inset 0 0 20px rgba(255, 179, 0, .04);
}

.sidebar-nav-item a i {
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.sidebar-badge {
    background: var(--danger);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 50px;
    padding: .1rem .45rem;
    margin-left: auto;
}

.sidebar-section-label {
    font-size: .68rem;
    color: rgba(255, 255, 255, .35);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: .8rem 1.3rem .3rem;
}

.dashboard-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    background: #fafbfc;
}

.dashboard-topbar {
    background: linear-gradient(to right, #fff 0%, #fafbfc 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.dashboard-main {
    padding: 2rem 1.5rem;
}

/* ===== STATS CARDS ===== */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

/* ===== TABLE ===== */
.table-custom {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    width: 100%;
}

.table-custom thead th {
    background: var(--primary);
    color: #fff;
    padding: .85rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    border: none;
    white-space: nowrap;
}

.table-custom tbody td {
    padding: .8rem 1rem;
    font-size: .88rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background: var(--light);
}

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

/* ===== BADGES ===== */
.badge-status {
    padding: .3rem .7rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
}

.badge-approved {
    background: #d1fae5;
    color: #065f46;
}

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

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-expired {
    background: #e5e7eb;
    color: #374151;
}

.badge-draft {
    background: #ede9fe;
    color: #4c1d95;
}

/* ===== FORMS ===== */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    border: 1px solid #f0f3f6;
    transition: all var(--transition);
}

.form-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.form-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .5rem;
    display: block;
    letter-spacing: .3px;
    text-transform: none;
}

.form-label small {
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.form-control-custom {
    width: 100%;
    border: 1.5px solid #e8ecf0;
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    background: #fff;
}

.form-control-custom::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control-custom:hover {
    border-color: #d8dce5;
    background: #fafbfc;
}

.form-control-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 179, 0, .1), inset 0 0 0 0.75px rgba(255, 179, 0, .2);
    background: #fafbfc;
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 100px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

select.form-control-custom {
    cursor: pointer;
    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='%231a2744' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    appearance: none;
}

select.form-control-custom::-ms-expand {
    display: none;
}

.form-control-custom.error {
    border-color: var(--danger);
}

.form-control-custom.error:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, .1), inset 0 0 0 0.75px rgba(231, 76, 60, .2);
}

.form-hint {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .35rem;
}

.form-error {
    font-size: .8rem;
    color: var(--danger);
    margin-top: .35rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* ===== DASHBOARD UTILITIES ===== */
.dashboard-section-title {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.dashboard-section-title i {
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dashboard-section-title h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .3px;
}

/* ===== UPLOAD COMPONENTS ===== */
.upload-preview-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    transition: all var(--transition);
}

.upload-preview-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.upload-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview-card:hover .upload-overlay {
    opacity: 1;
}

.upload-action-btn {
    background: rgba(231, 76, 60, .9);
    color: white;
    padding: .5rem 1rem;
    border-radius: 4px;
    font-size: .85rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    transition: background .2s ease;
}

.upload-action-btn:hover {
    background: rgba(231, 76, 60, 1);
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}

.upload-grid-item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8fafc;
    transition: all var(--transition);
}

.upload-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-grid-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-grid-item:hover .upload-grid-item-overlay {
    opacity: 1;
}

.upload-grid-delete-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: .4rem .8rem;
    border-radius: 4px;
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .3rem;
    font-weight: 600;
    transition: background .2s ease;
}

.upload-grid-delete-btn:hover {
    background: #d63031;
}

.upload-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    background: #fafbfc;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .9rem;
}

.upload-empty-state i {
    font-size: 2rem;
    margin-bottom: .5rem;
    display: block;
    opacity: .5;
}

.upload-input-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
}

.upload-input-label:hover {
    border-color: var(--accent);
    background: rgba(255, 179, 0, .02);
    color: var(--accent);
}

.upload-input-label input[type="file"] {
    display: none;
}

/* ===== MAP ===== */
#map,
#map-main,
#map-listing {
    width: 100%;
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
}


/* ===== PRICING ===== */
.pricing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 2px solid var(--border);
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.pricing-card.popular {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    padding: .3rem 1.2rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.pricing-price sup {
    font-size: 1.4rem;
    font-weight: 700;
}

.pricing-period {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1.8rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 0;
    font-size: .9rem;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success);
}

/* ===== ALERT ===== */
.alert {
    border-radius: var(--radius-sm);
    padding: .9rem 1.2rem;
    margin-bottom: 1rem;
    border: none;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer .footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
}

footer .footer-brand span {
    color: var(--accent);
}

footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: .9rem;
}

footer a {
    color: rgba(255, 255, 255, .65);
    font-size: .88rem;
}

footer a:hover {
    color: var(--accent);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    font-size: .82rem;
}

/* ===== MODAL ===== */
.modal-login .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
}

.modal-login .modal-header {
    background: var(--primary);
    color: #fff;
    border: none;
}

.modal-login .modal-title span {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard-content {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input,
    .search-bar select {
        min-width: 100%;
    }

    .dashboard-main {
        padding: 1.5rem;
    }

    .upload-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}

/* ===== GALLERY ===== */
.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--accent);
}

/* ===== STARS ===== */
.star-rating {
    display: flex;
    gap: .2rem;
    cursor: pointer;
}

.star-rating i {
    font-size: 1.3rem;
    color: #d1d5db;
    transition: color var(--transition);
}

.star-rating i.active,
.star-rating i:hover {
    color: var(--accent);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .4;
    display: block;
}

.empty-state h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: .5rem;
}

/* ===== HOURS TABLE ===== */
.hours-table td {
    padding: .4rem .6rem;
    font-size: .88rem;
}

.hours-table .day {
    font-weight: 600;
    color: var(--primary);
    width: 110px;
}

/* ===== MAP CONTAINERS ===== */
#hero-map,
#map-listing,
#listings-map-split,
#listings-map-full,
#map-picker {
    background: #c9e8f5;
}

#map-listing {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.map-no-key {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #eef2f7;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.map-no-key i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .4;
    display: block;
}

/* ===== MAP POPUP ===== */
.map-popup {
    width: 280px;
    max-width: calc(100vw - 40px);
    min-height: 300px;
    font-family: 'Inter', system-ui, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.map-popup-img-wrap {
    width: 100%;
    height: 120px;
    background: #f1f5f9;
    position: relative;
    flex-shrink: 0;
}

.map-popup-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient overlay to make close button more visible if overlapping */
.map-popup-img-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.map-popup-body {
    padding: 1rem 1rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
}

.map-popup-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    color: #b45309;
    background: #fff7d6;
    border: 1px solid #fde68a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.map-popup-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary, #1a2744);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-popup-loc {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.map-popup-btn {
    display: block;
    width: 100%;
    background: var(--accent, #FFB300);
    color: var(--primary, #1a2744);
    border: none;
    border-radius: 8px;
    padding: 0.7rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.map-popup-btn:hover {
    background: var(--accent-dark, #e6a200);
    transform: translateY(-1px);
}

/* Override Google Maps InfoWindow default styles for clean look */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: visible !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.gm-style .gm-style-iw-d {
    padding: 0 !important;
    overflow: visible !important;
    max-height: none !important;
}

/* Position Google close button cleanly */
.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

.gm-style .gm-ui-hover-effect {
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
}

.gm-style .gm-ui-hover-effect span {
    margin: 4px !important;
    width: 20px !important;
    height: 20px !important;
    background-color: #333 !important;
}

/* ===== HOMEPAGE PREMIUM REDESIGN ===== */

/* Hero */
.hp-hero { position:relative; min-height:88vh; display:flex; align-items:center; justify-content:center; overflow:hidden; background:linear-gradient(135deg,#0f172a 0%,#1e2d5a 55%,#0f172a 100%); }
.hp-hero-pattern { position:absolute;inset:0;opacity:.04;background-image:radial-gradient(circle,#fff 1px,transparent 1px);background-size:32px 32px; }
.hp-hero-glow { position:absolute;top:-20%;right:-10%;width:700px;height:700px;border-radius:50%;background:radial-gradient(circle,rgba(255,179,0,.12) 0%,transparent 65%);pointer-events:none; }
.hp-hero-glow2 { position:absolute;bottom:-30%;left:-10%;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(99,130,255,.1) 0%,transparent 65%);pointer-events:none; }
.hp-hero-content { position:relative;z-index:2;text-align:center;padding:2rem 1rem 5rem; }
.hp-hero-badge { display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,179,0,.15);border:1px solid rgba(255,179,0,.3);color:var(--accent);font-size:.78rem;font-weight:700;padding:.35rem 1rem;border-radius:50px;margin-bottom:1.5rem;text-transform:uppercase;letter-spacing:.5px; }
.hp-hero-title { font-size:clamp(2rem,5vw,3.6rem);font-weight:900;color:#fff;line-height:1.15;margin-bottom:1.2rem;letter-spacing:-1px; }
.hp-hero-title .hl { color:var(--accent);position:relative; }
.hp-hero-title .hl::after { content:'';position:absolute;bottom:-4px;left:0;right:0;height:3px;background:var(--accent);border-radius:2px;opacity:.6; }
.hp-hero-sub { font-size:1.1rem;color:rgba(255,255,255,.65);margin-bottom:2.5rem;max-width:560px;margin-left:auto;margin-right:auto; }
.hp-search-wrap { background:#fff;border-radius:16px;padding:1rem;box-shadow:0 20px 60px rgba(0,0,0,.35);max-width:820px;margin:0 auto;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center; }
.hp-search-wrap input,.hp-search-wrap select { border:1.5px solid #e8ecf0;border-radius:10px;padding:.65rem 1rem;font-size:.92rem;color:#1e2a3b;outline:none;font-family:inherit;background:#fff;transition:border-color .2s; }
.hp-search-wrap input:focus,.hp-search-wrap select:focus { border-color:var(--accent);box-shadow:0 0 0 3px rgba(255,179,0,.12); }
.hp-search-wrap input { flex:2;min-width:180px; }
.hp-search-wrap select { flex:1;min-width:140px; }
.hp-search-btn { background:var(--accent);color:#1a2744;border:none;border-radius:10px;padding:.7rem 1.8rem;font-weight:800;font-size:.95rem;cursor:pointer;transition:all .2s;white-space:nowrap;display:flex;align-items:center;gap:.5rem; }
.hp-search-btn:hover { background:#e6a200;transform:translateY(-1px);box-shadow:0 6px 20px rgba(255,179,0,.4); }
.hp-hero-hint { color:rgba(255,255,255,.4);font-size:.78rem;margin-top:1.2rem; }
.hp-hero-hint a { color:rgba(255,179,0,.7); }

/* Stats */
.hp-stats { background:#0f172a;padding:1.2rem 0; }
.hp-stat-item { text-align:center;padding:.8rem 1.5rem;border-right:1px solid rgba(255,255,255,.08); }
.hp-stat-item:last-child { border-right:none; }
.hp-stat-num { font-size:1.6rem;font-weight:900;color:var(--accent);display:block;line-height:1; }
.hp-stat-lbl { font-size:.72rem;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.5px;margin-top:.25rem;display:block; }

/* Category cards */
.hp-cat-card { background:#fff;border-radius:14px;padding:1.5rem 1rem;text-align:center;border:1.5px solid #e8ecf0;transition:all .22s;cursor:pointer;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none; }
.hp-cat-card:hover { border-color:var(--accent);transform:translateY(-4px);box-shadow:0 12px 32px rgba(26,39,68,.1);color:var(--primary); }
.hp-cat-icon { width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto .8rem;font-size:1.5rem;color:#fff;transition:transform .25s ease,box-shadow .25s ease; }
.hp-cat-card:hover .hp-cat-icon { transform:scale(1.12);box-shadow:0 6px 18px rgba(0,0,0,.15); }
.hp-cat-name { font-size:.9rem;font-weight:700;color:#1a2744;margin-bottom:.25rem; }
.hp-cat-count { font-size:.75rem;color:#6b7a99; }

/* Steps */
.hp-step { display:flex;gap:1.2rem;align-items:flex-start; }
.hp-step-num { width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:.95rem;flex-shrink:0;margin-top:.1rem; }
.hp-step-title { font-weight:700;color:#1a2744;margin-bottom:.25rem; }
.hp-step-desc { font-size:.88rem;color:#6b7a99;line-height:1.6; }
.hp-how-card { background:#fff;border-radius:14px;padding:2rem;height:100%;box-shadow:0 2px 16px rgba(0,0,0,.05);border:1px solid #e8ecf0; }

/* Listing cards */
.hp-listing-card { background:#fff;border-radius:14px;overflow:hidden;border:1px solid #e8ecf0;transition:all .22s;height:100%;display:flex;flex-direction:column;box-shadow:0 2px 12px rgba(0,0,0,.05); }
.hp-listing-card:hover { transform:translateY(-5px);box-shadow:0 16px 40px rgba(26,39,68,.12); }
.hp-listing-img { position:relative;height:200px;overflow:hidden;background:#f1f5f9; }
.hp-listing-img img { width:100%;height:100%;object-fit:cover;transition:transform .4s; }
.hp-listing-card:hover .hp-listing-img img { transform:scale(1.06); }
.hp-listing-img::after { content:'';position:absolute;bottom:0;left:0;right:0;height:70px;background:linear-gradient(to top,rgba(0,0,0,.28),transparent);pointer-events:none;z-index:1; }
.hp-listing-badge,.hp-listing-feat,.hp-listing-fav { z-index:2; }
.hp-listing-badge { position:absolute;top:.7rem;left:.7rem;background:var(--accent);color:#1a2744;font-size:.68rem;font-weight:800;padding:.25rem .65rem;border-radius:20px;text-transform:uppercase;letter-spacing:.3px; }
.hp-listing-feat { position:absolute;top:.7rem;right:.7rem;background:#1a2744;color:var(--accent);font-size:.68rem;font-weight:700;padding:.25rem .65rem;border-radius:20px; }
.hp-listing-fav { position:absolute;bottom:.7rem;right:.7rem;background:rgba(255,255,255,.92);border:none;border-radius:50%;width:34px;height:34px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.95rem;color:#6b7a99;transition:all .2s;backdrop-filter:blur(4px); }
.hp-listing-fav:hover,.hp-listing-fav.active { color:#e74c3c;transform:scale(1.1); }
.hp-listing-body { padding:1.1rem 1.2rem;flex:1;display:flex;flex-direction:column; }
.hp-listing-cat { font-size:.68rem;font-weight:700;color:#e6a200;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.3rem; }
.hp-listing-title { font-size:.98rem;font-weight:700;color:#1a2744;margin-bottom:.35rem;line-height:1.3; }
.hp-listing-desc { font-size:.83rem;color:#6b7a99;flex:1;margin-bottom:.7rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
.hp-listing-loc { font-size:.78rem;color:#6b7a99;margin-bottom:.6rem; }
.hp-listing-footer { display:flex;align-items:center;justify-content:space-between;padding-top:.75rem;border-top:1px solid #e8ecf0; }
.hp-details-btn { background:#1a2744;color:#fff;border:none;border-radius:8px;padding:.38rem .95rem;font-size:.8rem;font-weight:700;cursor:pointer;transition:all .2s;text-decoration:none; }
.hp-details-btn:hover { background:var(--accent);color:#1a2744; }

/* Testimonials */
.hp-testi-card { background:#fff;border-radius:14px;padding:1.8rem;box-shadow:0 2px 16px rgba(0,0,0,.06);border:1px solid #e8ecf0;height:100%;transition:box-shadow .2s; }
.hp-testi-card:hover { box-shadow:0 8px 32px rgba(0,0,0,.10); }
.hp-testi-stars { color:#FFB300;margin-bottom:1rem;font-size:1rem; }
.hp-testi-text { color:#374151;font-style:italic;line-height:1.75;margin-bottom:1.2rem;font-size:.92rem; }
.hp-testi-author { font-weight:700;font-size:.88rem;color:#1a2744; }
.hp-testi-loc { font-size:.78rem;color:#6b7a99;font-weight:400; }

/* CTA */
.hp-cta { background:linear-gradient(135deg,var(--accent) 0%,#e6a200 100%);padding:5rem 0;text-align:center; }
.hp-cta h2 { font-size:clamp(1.6rem,3vw,2.4rem);font-weight:900;color:#0f172a;margin-bottom:.75rem; }
.hp-cta p { color:rgba(15,23,42,.65);margin-bottom:2.2rem;font-size:1rem;max-width:520px;margin-left:auto;margin-right:auto; }
.hp-cta-btn-dark { background:#0f172a;color:#fff;border:none;border-radius:10px;padding:.85rem 2.2rem;font-weight:800;font-size:.97rem;cursor:pointer;transition:all .2s;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem; }
.hp-cta-btn-dark:hover { background:#1e2d5a;color:#fff;transform:translateY(-2px); }
.hp-cta-btn-out { background:transparent;color:#0f172a;border:2px solid rgba(15,23,42,.3);border-radius:10px;padding:.82rem 2rem;font-weight:700;font-size:.97rem;cursor:pointer;transition:all .2s;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem; }
.hp-cta-btn-out:hover { border-color:#0f172a;background:rgba(15,23,42,.06);color:#0f172a; }

/* Section headers */
.hp-sec-label { font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--accent);margin-bottom:.5rem;display:inline-flex;align-items:center;gap:.45rem; }
.hp-sec-label::before { content:'';display:inline-block;width:18px;height:2px;background:var(--accent);border-radius:1px;flex-shrink:0; }
.hp-sec-title { font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800;color:#1a2744;margin-bottom:.5rem;letter-spacing:-.5px; }
.hp-sec-sub { color:#6b7a99;font-size:.95rem; }

/* Trust bar */
.hp-trust { background:#fff;border-bottom:1px solid #e8ecf0;padding:.9rem 0; }
.hp-trust-item { display:flex;align-items:center;gap:.55rem;font-size:.83rem;color:#374151;font-weight:500; }
.hp-trust-item i { color:var(--accent);font-size:1rem; }

@media(max-width:767px) {
  .hp-search-wrap { flex-direction:column; }
  .hp-search-wrap input,.hp-search-wrap select { min-width:100%; }
  .hp-stat-item { padding:.6rem .8rem; }
  .hp-stat-num { font-size:1.2rem; }
}
