/* =========================================================
   BnsBazarApp - FINAL CLEAN site.css
   Light + Dark Theme Safe
   ========================================================= */

/* ------------------------------
   Root & Base
-------------------------------- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    margin-bottom: 60px;
    background-color: var(--theme-colour-0);
    color: var(--theme-text-0);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

p, li {
    color: var(--theme-text-1);
}

small {
    color: var(--theme-text-2);
}

.input-validation-error {
    border-color: orangered;
}

/* ------------------------------
   Theme Utility Classes
-------------------------------- */
.theme-contrast-text-0 {
    color: var(--theme-text-0);
}

.theme-contrast-text-1 {
    color: var(--theme-text-1);
}

.theme-contrast-text-2 {
    color: var(--theme-text-2);
}

.theme-colour-0 {
    color: var(--theme-colour-0);
}

.theme-colour-1 {
    color: var(--theme-colour-1);
}

.theme-colour-2 {
    color: var(--theme-colour-2);
}

.theme-bg-colour-0 {
    background-color: var(--theme-colour-0);
}

.theme-bg-colour-1 {
    background-color: var(--theme-colour-1);
}

.theme-bg-colour-2 {
    background-color: var(--theme-colour-2);
}

/* ------------------------------
   Navbar
-------------------------------- */
.navbar {
    background-color: var(--navbar-bg);
}

    .navbar a,
    .navbar .navbar-brand {
        color: var(--theme-nav-text);
    }

.theme-navbar-link {
    color: var(--theme-nav-text) !important;
    font-weight: 500;
}

.navbar-nav .nav-item {
    margin-right: 15px;
}

.nav-logo {
    height: 3rem;
    width: 3rem;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ------------------------------
   Buttons & Effects
-------------------------------- */
.pulse-btn {
    background: linear-gradient(90deg, #ff9900, #ff5500);
    color: white !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: bold;
    animation: pulse 1.8s infinite;
    box-shadow: 0 0 10px #ff5500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* ------------------------------
   Advertisement Layout
-------------------------------- */
.ad-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ad-heading {
    color: #18a558 !important;
    font-weight: 700;
}

/* Ad Frame */
.ad-frame {
    width: 95%;
    max-width: 1500px;
    margin: 20px auto;
    background: var(--theme-colour-1);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.12);
}

/* Header text */
.ad-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--theme-text-0);
    margin-bottom: 6px;
}

.location {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-colour-2);
    margin-bottom: 4px;
}

.ad-description {
    font-size: 18px;
    font-weight: 500;
    color: var(--theme-text-1);
    margin: 12px 0 22px 0;
}

.ad-header small {
    color: var(--theme-text-2);
}

/* Divider */
.divider {
    border: none;
    border-top: 2px dashed rgba(0, 132, 255, 0.45);
    margin: 28px 0;
}

/* ------------------------------
   MEDIA FRAME (EXACT SCALIDRAW)
-------------------------------- */
.media-frame {
    width: 100%;
    border: 2px solid #cfd8e3;
    border-radius: 18px;
    padding: 20px;
    background: var(--theme-colour-1);
}

/* Rows */
.media-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Divider inside media */
.media-divider {
    margin: 22px 0;
    border-top: 2px dashed #9bbcff;
}

/* Media box */
.media-box {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Images */
    .media-box img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* SHOW FULL IMAGE */
        background: #ffffff;
    }

    /* Video */
    .media-box video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000;
    }

/* ------------------------------
   Mobile Responsive
-------------------------------- */
@media (max-width: 900px) {
    .media-row {
        grid-template-columns: 1fr;
    }

    .media-box {
        height: auto;
    }

    .ad-frame {
        width: 97%;
        padding: 18px;
    }

    .ad-title {
        font-size: 24px;
    }

    .location {
        font-size: 18px;
    }

    .ad-description {
        font-size: 16px;
    }
}

/* ------------------------------
   Misc
-------------------------------- */
.login-logo-img {
    width: 200px;
    margin-top: 40px;
    opacity: 0.95;
}

.table,
.table th,
.table td {
    color: var(--theme-text-0);
}
/* About page text fix for dark mode */
.page-frame {
    color: var(--theme-text-0);
}

    .page-frame h1,
    .page-frame h2,
    .page-frame h3 {
        color: var(--theme-text-0);
    }

    .page-frame p,
    .page-frame li {
        color: var(--theme-text-1);
    }

    .page-frame small {
        color: var(--theme-text-2);
    }
/* ?? BRIGHTEN ABOUT PAGE TEXT IN DARK MODE */
body.dark-mode .page-frame {
    color: #ffffff;
}

    /* Headings */
    body.dark-mode .page-frame h1,
    body.dark-mode .page-frame h2,
    body.dark-mode .page-frame h3 {
        color: #ffffff;
        font-weight: 700;
    }

    /* Paragraphs */
    body.dark-mode .page-frame p {
        color: #e9eef3; /* bright soft white */
        line-height: 1.7;
    }

    /* Bullet points */
    body.dark-mode .page-frame li {
        color: #ffffff;
    }

    /* Muted / small text */
    body.dark-mode .page-frame small {
        color: #cfd8e3;
    }
/* ================================
   ABOUT US – VISIBILITY FIX
   ================================ */

/* Outer spacing */
.about-wrapper {
    padding: 40px 15px;
}

/* Main About container */
.about-frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px;
    border-radius: 18px;
    background: #ffffff; /* LIGHT by default */
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

    /* TEXT – LIGHT MODE */
    .about-frame h1,
    .about-frame h2,
    .about-frame h3 {
        color: #0a1a2c;
        font-weight: 800;
    }

    .about-frame p,
    .about-frame li {
        color: #2c3e50;
        font-size: 17px;
        line-height: 1.8;
    }

    .about-frame small {
        color: #5f6c7b;
    }

/* ================================
   DARK MODE OVERRIDE
   ================================ */

/* IMPORTANT: supports BOTH dark-mode styles */
body.dark-mode .about-frame,
body.theme-dark .about-frame,
[data-theme="dark"] .about-frame {
    background: linear-gradient(180deg, #0d334d, #08293e);
}

    /* Dark mode text */
    body.dark-mode .about-frame h1,
    body.dark-mode .about-frame h2,
    body.dark-mode .about-frame h3,
    body.theme-dark .about-frame h1,
    body.theme-dark .about-frame h2,
    body.theme-dark .about-frame h3,
    [data-theme="dark"] .about-frame h1,
    [data-theme="dark"] .about-frame h2,
    [data-theme="dark"] .about-frame h3 {
        color: #ffffff;
    }

    body.dark-mode .about-frame p,
    body.dark-mode .about-frame li,
    body.theme-dark .about-frame p,
    body.theme-dark .about-frame li,
    [data-theme="dark"] .about-frame p,
    [data-theme="dark"] .about-frame li {
        color: #e9eef3;
    }

    body.dark-mode .about-frame small,
    body.theme-dark .about-frame small,
    [data-theme="dark"] .about-frame small {
        color: #cfd8e3;
    }
/* FIX: Dropdown text visibility */
.dropdown-menu {
    background-color: #ffffff !important;
}

    .dropdown-menu .dropdown-item {
        color: #0a1a2c !important; /* dark readable text */
        font-weight: 600;
    }

        .dropdown-menu .dropdown-item:hover {
            background-color: #f1f6ff;
            color: #003366 !important;
        }
.ad-frame {
    position: relative;
}
/* ================================
   ADMIN DELETE BUTTON (GLOBAL)
   Works on Home / House / Land
================================ */

/* Ensure all ad containers can position children */
.ad-card,
.ad-frame {
    position: relative;
}

/* Delete button top-right */
.admin-delete-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 50;
}

    /* Make sure button is always visible */
    .admin-delete-btn button {
        padding: 4px 10px;
        font-size: 0.8rem;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    }