*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --gold: #c9943a;
    --gold-light: #e8bc6a;
    --dark: #1a1208;
    --cream: #fdf6ec;
    --text: #3b2e15;
    --spice: #8b2e0a;
    --green: #2d5a27;
    --sidebar: #111
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f0f;
    color: #e5e5e5;
    min-height: 100vh
}

/* ── LOGIN ── */
#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #1a0a02, #0d1f0a)
}

.login-box {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(201, 148, 58, .2);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    text-align: center
}

.login-logo {
    font-size: 3rem;
    margin-bottom: 1rem
}

.login-box h1 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    margin-bottom: .4rem;
    font-size: 1.8rem
}

.login-box p {
    color: rgba(255, 255, 255, .5);
    margin-bottom: 2rem;
    font-size: .9rem
}

.login-box input {
    width: 100%;
    padding: .85rem 1rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: .1em
}

.login-box input:focus {
    border-color: rgba(201, 148, 58, .6)
}

.login-box button {
    width: 100%;
    padding: .9rem;
    background: linear-gradient(135deg, var(--gold), var(--spice));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif
}

.login-box button:hover {
    opacity: .9
}

.login-error {
    color: #ff6b6b;
    font-size: .85rem;
    margin-top: .5rem;
    display: none
}

/* ── DASHBOARD ── */
#dashboard {
    display: none;
    min-height: 100vh;
    flex-direction: column
}

.top-bar {
    background: rgba(26, 18, 8, .95);
    border-bottom: 1px solid rgba(201, 148, 58, .2);
    padding: .9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100
}

.top-bar .logo {
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    font-size: 1.1rem
}

.top-bar .logo span {
    font-size: .75rem;
    color: rgba(255, 255, 255, .5);
    display: block;
    font-family: 'Inter', sans-serif
}

.top-bar-right {
    display: flex;
    gap: 1rem;
    align-items: center
}

.top-bar-right a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: .85rem
}

.top-bar-right a:hover {
    color: var(--gold-light)
}

.btn-logout {
    padding: .4rem 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    color: rgba(255, 255, 255, .6);
    font-size: .82rem;
    cursor: pointer;
    background: transparent;
    font-family: 'Inter', sans-serif
}

.btn-logout:hover {
    border-color: var(--gold);
    color: var(--gold-light)
}

.dashboard-body {
    display: flex;
    flex: 1
}

.sidebar {
    width: 220px;
    background: #111;
    border-right: 1px solid rgba(255, 255, 255, .07);
    padding: 1.5rem 0;
    flex-shrink: 0;
    min-height: calc(100vh - 58px)
}

.sidebar-nav {
    list-style: none
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.5rem;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: .9rem;
    transition: .2s;
    border-left: 3px solid transparent
}

.sidebar-nav li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .04)
}

.sidebar-nav li a.active {
    color: var(--gold-light);
    border-left-color: var(--gold);
    background: rgba(201, 148, 58, .07)
}

.sidebar-nav li a .ico {
    font-size: 1.1rem;
    width: 20px;
    text-align: center
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto
}

/* ── PANELS ── */
.panel {
    display: none
}

.panel.active {
    display: block
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: .4rem
}

.panel-sub {
    color: rgba(255, 255, 255, .4);
    font-size: .875rem;
    margin-bottom: 2rem
}

/* ── CARDS / SECTIONS ── */
.card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem
}

.card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600
}

.upload-zone {
    border: 2px dashed rgba(201, 148, 58, .3);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    position: relative
}

.upload-zone:hover {
    border-color: var(--gold);
    background: rgba(201, 148, 58, .04)
}

.upload-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer
}

.upload-zone .upload-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem
}

.upload-zone p {
    color: rgba(255, 255, 255, .5);
    font-size: .9rem
}

.upload-zone strong {
    color: var(--gold-light);
    display: block;
    margin-bottom: .3rem
}

.btn {
    padding: .6rem 1.4rem;
    border-radius: 10px;
    border: none;
    font-size: .875rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: .2s
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--spice));
    color: #fff
}

.btn-primary:hover {
    opacity: .9
}

.btn-secondary {
    background: rgba(255, 255, 255, .08);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, .1)
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .13)
}

.btn-danger {
    background: rgba(255, 80, 80, .15);
    color: #ff7070;
    border: 1px solid rgba(255, 80, 80, .2)
}

.btn-danger:hover {
    background: rgba(255, 80, 80, .25)
}

.btn-success {
    background: rgba(45, 90, 39, .5);
    color: #a8d98a;
    border: 1px solid rgba(74, 140, 65, .3)
}

.btn-success:hover {
    background: rgba(45, 90, 39, .7)
}

.btn-sm {
    padding: .35rem .9rem;
    font-size: .8rem
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem
}

.gallery-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #222
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.gallery-thumb .video-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0a02, #0d1f0a);
    font-size: 3rem
}

.gallery-thumb .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: .2s
}

.gallery-thumb:hover .thumb-overlay {
    opacity: 1
}

.gallery-thumb .thumb-caption {
    font-size: .75rem;
    color: rgba(255, 255, 255, .8);
    padding: .3rem .5rem;
    text-align: center
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, .3);
    font-size: .9rem
}

.empty-state span {
    font-size: 3rem;
    display: block;
    margin-bottom: .5rem
}

/* Form fields */
.form-group {
    margin-bottom: 1.2rem
}

.form-group label {
    display: block;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: .4rem;
    font-weight: 500
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .75rem 1rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    outline: none;
    transition: .2s
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(201, 148, 58, .5);
    background: rgba(255, 255, 255, .09)
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.7
}

.form-group select option {
    background: #1a1a1a
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

/* Blog post list */
.post-list {
    display: flex;
    flex-direction: column;
    gap: .8rem
}

.post-item {
    background: #222;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem
}

.post-item-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem
}

.post-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px
}

.post-item-info {
    flex: 1;
    min-width: 0;
}

.post-item-info h4 {
    color: #fff;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: .2rem
}

.post-item-info .meta {
    font-size: .78rem;
    color: rgba(255, 255, 255, .4)
}

.badge {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    margin-left: .5rem
}

.badge-published {
    background: rgba(45, 90, 39, .4);
    color: #78c464;
    border: 1px solid rgba(74, 140, 65, .3)
}

.badge-draft {
    background: rgba(80, 80, 80, .3);
    color: #aaa;
    border: 1px solid rgba(100, 100, 100, .3)
}

.post-item-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0
}

/* Featured image preview */
.img-preview {
    margin-top: .8rem;
    border-radius: 10px;
    overflow: hidden;
    max-height: 200px;
    display: none
}

.img-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #222;
    border: 1px solid rgba(201, 148, 58, .4);
    color: #fff;
    padding: .85rem 1.4rem;
    border-radius: 12px;
    font-size: .9rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: .3s
}

.toast.show {
    transform: translateY(0);
    opacity: 1
}

.toast.success {
    border-color: rgba(74, 140, 65, .5);
    background: rgba(45, 90, 39, .3)
}

.toast.error {
    border-color: rgba(255, 80, 80, .4);
    background: rgba(80, 30, 30, .4)
}

/* Dashboard home */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 1.4rem;
    text-align: center
}

.stat-card .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--gold-light)
}

.stat-card .lbl {
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
    margin-top: .2rem;
    text-transform: uppercase;
    letter-spacing: .08em
}

/* ── RESERVATIONS & CALENDAR ── */
.badge-gold {
    background: rgba(201, 148, 58, .2);
    color: var(--gold-light);
    border: 1px solid rgba(201, 148, 58, .3);
}

.badge-primary {
    background: rgba(45, 90, 39, .2);
    color: #a8d98a;
    border: 1px solid rgba(74, 140, 65, .3);
}

#nav-inq-badge {
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .5);
    font-size: .8rem;
    text-transform: uppercase;
}

.data-table td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(255, 193, 7, .1);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, .3);
}

.status-confirmed {
    background: rgba(76, 175, 80, .1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, .3);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cal-day-name {
    background: #222;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 600;
}

.cal-day {
    background: #1a1a1a;
    min-height: 80px;
    padding: 10px;
    position: relative;
    border: 0.5px solid rgba(255, 255, 255, 0.02);
}

.cal-day.empty {
    background: transparent;
}

.cal-day.today {
    background: rgba(201, 148, 58, 0.05);
}

.cal-day.confirmed {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.cal-day.confirmed .day-num {
    color: #a8d98a;
    font-weight: bold;
}

.cal-day.today .day-num {
    color: var(--gold-light);
    font-weight: bold;
}

.day-num {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.day-inqs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
}

@media(max-width:700px) {
    .sidebar {
        width: 60px
    }

    .sidebar-nav li a span {
        display: none
    }

    .sidebar-nav li a .ico {
        margin: 0 auto
    }

    #nav-inq-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        margin-left: 0;
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .main-content {
        padding: 1.2rem
    }
}