/**
 * ====================================================================
 * Kanso Rental Technologies - Main Stylesheet
 * ====================================================================
 * 
 * This file contains all styles for the Kanso application,
 * following the "Structured Elegance" dark theme. The file is
 * organized from general rules to specific component styles.
 *
 * Contents:
 * 1. ROOT & SETUP           - CSS variables, global resets, base typography
 * 2. CORE LAYOUT            - Main application header, content areas, sidebars
 * 3. GLOBAL COMPONENTS      - Buttons, Cards, Forms, Tables, Badges
 * 4. PAGE-SPECIFIC STYLES   - Styles for Login, Dashboard, Properties, etc.
 *
 */


/* =================================================================== */
/* 1. ROOT & SETUP
/* =================================================================== */

/**
 * Defines the color palette, fonts, and core variables for the
 * entire "Structured Elegance" theme.
 */
:root {
    --bg-dark: #1a1a1a;
    --bg-content: #242424;
    --card-bg: #2e2e2e;
    --border-color: #444;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #e7c054;
    --error-bg: #5c1a1a;
    --sucess-banner: #166534;
    --font-primary: 'Poppins', sans-serif;
    --font-headings: 'Playfair Display', serif;
}



/**
 * Global resets and base element styling to ensure a consistent
 * look and feel across all browsers.
 */

.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    /* Start with no width */
    transform-origin: center;
    transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    /* Expand to full width on hover/active */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    /* Optional: Add a subtle noise texture for a premium feel */
    /* background-image: url('../images/noise.png'); */
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold-hover);
}

h1,
h2,
h3 {
    font-family: var(--font-headings);
    color: var(--text-primary);
    margin-bottom: 0.75em;
}


/* =================================================================== */
/* 2. CORE LAYOUT
/* =================================================================== */

/**
 * Defines the main application header and navigation bar.
 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.main-nav a {
    margin: 0 1rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-gold);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile span {
    margin-right: 1rem;
}

/**
 * General structure for the main content area of any page.
 */
.app-content {
    padding: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.content-header h1 {
    margin-bottom: 0;
}

/**
 * A reusable layout pattern for pages with a main content area
 * and a sidebar (e.g., Properties page).
 */
.page-layout-with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sidebar-panel {
    flex: 0 0 300px;
    /* Does not grow or shrink */
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    /* --- Add these two lines --- */
    position: sticky;
    top: 2rem;
}

.main-content-area {
    flex-grow: 1;
}


/* =================================================================== */
/* 3. GLOBAL COMPONENTS
/* =================================================================== */

/**
 * Defines the styles for all buttons used in the application.
 */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gold);
    border: none;
    border-radius: 4px;
    color: var(--bg-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    /* NEW: Enhanced Transitions */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    color: var(--bg-dark);
    /* NEW: "Lift" effect on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    /* NEW: "Press" effect on click */
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.content-header .btn-primary {
    width: auto;
    /* Override full-width for header buttons */
    flex-shrink: 0;
    /* Prevents button from shrinking */
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 4px;
    font-weight: 600;
    /* NEW: Enhanced Transitions */
    transition: all 0.2s ease-in-out;
    transform: translateY(0);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    /* NEW: "Lift" effect on hover */
    transform: translateY(-2px);
}

.btn-secondary:active {
    /* NEW: "Press" effect on click */
    transform: translateY(1px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-logout {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/**
 * Defines the base styles for a "Card" - the primary container
 * for displaying grouped content.
 */
/* --- Enhanced Card Hover Effect --- */
.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother transition */
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    /* Add a slight zoom */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* --- Enhanced Primary Button Hover Effect --- */
.btn-primary {
    /* ... existing rules ... */
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    color: var(--bg-dark);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    transform: translateY(-1px);
}

/**
 * Base styles for all forms and input fields.
 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/**
 * Base styles for data tables (used for agents, tickets, units, etc.).
 */
.data-table,
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td,
table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table thead,
table thead {
    background: var(--bg-dark);
}

.data-table th,
table th {
    font-weight: 600;
}

.data-table tbody tr:hover,
table tbody tr:hover {
    background-color: #383838;
}

/**
 * Base styles for colored status badges used for properties and tickets.
 * Colors are defined in specific sections below.
 */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
}


/* =================================================================== */
/* 4. PAGE-SPECIFIC & COMPONENT STYLES
/* =================================================================== */

/**
 * Styles unique to the Login page.
 */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #111, #333);
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    color: var(--accent-gold);
}

.login-header p {
    color: var(--text-secondary);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.error-banner {
    background: var(--error-bg);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #c83737;
}

/**
 * Styles for the Landlord/Agent dashboard grids.
 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.metric {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0.5rem 0;
}

/**
 * Styles for the Advanced Search sidebar panel.
 */
.sidebar-panel h3 {
    font-family: var(--font-headings);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-form .form-group {
    margin-bottom: 1.25rem;
}

.search-form label {
    font-size: 0.9rem;
    font-weight: 600;
}

.search-form input,
.search-form select {
    margin-top: 0.25rem;
    padding: 0.6rem 0.8rem;
}

.price-range {
    display: flex;
    gap: 0.5rem;
}

.form-actions .btn-secondary {
    text-align: center;
}

.icon-filter {
    margin-right: 0.5rem;
}

/**
 * Styles for the Property Listing cards (on properties.php).
 */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.property-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Pushes action button to bottom */
}

.property-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-unit-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.progress-bar-container {
    height: 8px;
    width: 100%;
    background: var(--bg-dark);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.property-card-actions {
    margin-top: auto;
    /* Ensures it stays at the bottom */
}

.property-card-actions .btn-secondary {
    display: block;
    text-align: center;
}

/**
 * Styles for the Property Details page (property_details.php).
 */
.details-page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.details-main-column {
    flex: 2;
    /* Takes up 2/3 of the space */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.details-sidebar-column {
    flex: 1;
    /* Takes up 1/3 of the space */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
    /* Sticks on scroll */
}

.details-card {
    padding: 2rem;
}

.details-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    /* Label column | Data column */
    gap: 1rem 1.5rem;
}

.info-grid dt {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-grid dd {
    margin-left: 0;
}

.text-discount {
    color: #4ade80;
    /* A nice green for discounts */
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    text-align: center;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: var(--bg-dark);
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.unit-table td .text-secondary {
    color: var(--text-secondary);
}


/**
 * Status Badge color variations for different contexts.
 */
/* For property units */
.status-badge.status-vacant {
    background-color: rgba(58, 134, 255, 0.2);
    color: #69a1ff;
}

/* Blue */
.status-badge.status-occupied {
    background-color: rgba(108, 117, 125, 0.2);
    color: #a3b0bc;
}

/* Grey */

/* For maintenance tickets */
.status-badge.status-open {
    background-color: rgba(255, 159, 64, 0.2);
    color: #ff9f40;
}

/* Orange */
.status-badge.status-in-progress {
    background-color: rgba(58, 134, 255, 0.2);
    color: #69a1ff;
}

/* Blue */
.status-badge.status-resolved {
    background-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

/* Green */
.status-badge.status-closed {
    background-color: rgba(108, 117, 125, 0.2);
    color: #a3b0bc;
}

/* Grey */

/* --- Append this to the end of style.css --- */

/* --- Banner Styles --- */
.success-banner {
    background: #166534;
    /* A nice dark green */
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #22c55e;
}

/* --- Form Creation Specifics --- */
.creation-form {
    margin-top: 2rem;
}

.creation-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    /* Ensure textarea uses the correct font */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.creation-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.creation-form .form-actions {
    max-width: 300px;
    /* Make the submit button less wide */
}

/* --- Append this to the end of style.css --- */

/* --- Ticket Details Page Styles --- */
.description-header {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.description-text {
    line-height: 1.7;
}

.ticket-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

/* --- Timeline/Conversation Styles --- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.timeline-item {
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    /* Highlight bar */
    padding: 1rem;
    border-radius: 4px;
}

/* Role-based coloring */
.timeline-role-tenant {
    border-left-color: var(--accent-gold);
}

.timeline-role-agent {
    border-left-color: #3a86ff;
}

/* Blue */
.timeline-role-landlord {
    border-left-color: #8c96a3;
}

/* Grey */

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-user {
    font-weight: 600;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.timeline-content p {
    margin: 0;
}

/* --- Role Indicator Badge Styles (in header) --- */
.role-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: -0.5rem;
    /* Tucks it closer to the welcome name */
    margin-right: 1rem;
    opacity: 0.8;
}

/* Color coding for each role */
.role-badge.role-landlord {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.role-badge.role-agent {
    background-color: #3a86ff;
    /* Blue */
    color: var(--text-primary);
}

.role-badge.role-tenant {
    background-color: #4ade80;
    /* Green */
    color: var(--bg-dark);
}

.role-badge.role-vendor {
    background-color: #9333ea;
    /* A nice purple */
    color: var(--text-primary);
}

.role-badge.role-superadmin {
    background-color: #dc2626;
    /* A strong, distinct red */
    color: var(--text-primary);
}

/* --- Append this to the end of style.css --- */

/* --- Layout for headers inside a card component --- */
.content-header-within-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.content-header-within-card h3 {
    margin-bottom: 0;
}

/* --- Grid layouts for complex forms --- */
.creation-form h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group-grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.creation-form .form-group {
    margin-bottom: 0;
    /* Remove bottom margin inside a grid */
}

/* --- Button Style for Destructive Actions --- */
.btn-danger {
    display: block;
    /* Make it consistent with other action buttons */
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--error-bg);
    border: 1px solid #c83737;
    color: var(--text-primary);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c83737;
    color: var(--text-primary);
}

/* --- Layout Fix for Squashed Buttons in Tables --- */
/*
 * This targets any primary or secondary button specifically within a data table.
 * The `white-space: nowrap;` rule prevents the browser from ever wrapping
 * the button's text (e.g., "Assign Tenant") onto two lines, fixing the
 * "squashed" appearance, especially in narrow columns.
*/
.data-table .btn-primary,
.data-table .btn-secondary {
    white-space: nowrap;
}

/* --- Reporting Page Styles --- */
.report-h3 {
    font-family: var(--font-primary);
    /* Use a more standard font for report headers */
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.text-loss {
    color: #ff9f40;
    /* Orange for vacancy loss */
    font-weight: 600;
}

/* --- Append this to the end of style.css --- */

/* --- Warning Box for Confirmation Pages --- */
.warning-box {
    background: rgba(255, 159, 64, 0.1);
    /* Light Orange */
    border: 1px solid #ff9f40;
    border-left-width: 4px;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.warning-box p {
    margin-top: 0;
}

.warning-box ul {
    margin-top: 1rem;
    padding-left: 20px;
}

.warning-box li {
    margin-bottom: 0.5rem;
}

/* --- Append this to the end of style.css --- */

/* --- "View As" Banner and Dropdown Styles --- */
.view-as-banner {
    background: var(--accent-gold);
    color: var(--bg-dark);
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
}

.view-as-banner a {
    color: var(--bg-dark);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 1rem;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
    margin-right: 1rem;
}

.dropdown .btn-sm {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    right: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
}

.dropdown-content select {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}


/* --- Styles for side-by-side buttons in a table cell --- */
.action-buttons-cell {
    display: flex;
    /* Aligns items in a row */
    align-items: center;
    /* Vertically centers the buttons */
    gap: 0.5rem;
    /* Creates a 0.5rem space between the buttons */
}


/* --- Property Image Gallery Styles --- */
.property-gallery .featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.property-gallery .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.thumbnail-images img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-images img:hover {
    border-color: var(--accent-gold);
}



/* --- Image Management Page Styles --- */
.image-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.image-management-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.image-management-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-content);
}

.image-actions form {
    flex-grow: 1;
}

.image-actions button {
    width: 100%;
}

.featured-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 0 0 4px;
}

.featured-tag .fa-star {
    margin-right: 0.3rem;
}

.image-action-form {
    flex-grow: 1;
}



/* --- Public Listing Page Styles --- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    padding: 0;
    /* Override default card padding */
    display: flex;
    flex-direction: column;
}

.listing-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.listing-card-price {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.listing-card-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Makes card heights equal */
}

.listing-card-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.listing-card-features {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.listing-card-features i {
    margin-right: 0.5rem;
    color: var(--text-secondary);
}

.listing-card .btn-primary {
    text-align: center;
}

/* --- Checkbox Group for Filters --- */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.public-listings-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.public-listings-link a {
    font-weight: 600;
}

/* --- Append this to the end of style.css --- */

/* --- Document Link Styles --- */
.document-links .document-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.document-links .document-link:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.document-links .document-link .fa-file-pdf {
    margin-right: 0.75rem;
    color: #ff5b5b;
    /* A distinctive red for PDFs */
    font-size: 1.2rem;
}

/* --- Append this to the end of style.css --- */

/* --- Sub-header for Sidebars --- */
.sidebar-subheader {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;

    /* This adds the space between sections */
    margin-top: 2rem;
}

/* Prevents extra top margin on the very first sub-header in a card */
.card .sidebar-subheader:first-of-type {
    margin-top: 0;
}

/* --- Ensure consistent spacing on link/button containers --- */
.document-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* This adds space BETWEEN document links if there are multiple */
}

.form-actions-row {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-actions-row .btn-primary,
.form-actions-row .btn-danger {
    width: auto;
    /* Override default full width */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

a.listing-card-link {
    text-decoration: none;
    color: inherit;
    /* Make the link text inherit the default color */
}

/* --- Append this to the end of style.css --- */
.single-col-grid {
    grid-template-columns: 1fr 1fr;
    /* Override the 180px fixed width */
}

.single-col-grid dd {
    font-weight: 600;
}

/* --- Append to style.css --- */

/* Notification badge in header */
.notification-badge {
    background: #ff5b5b;
    color: #fff;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: top;
}

/* Highlight for new rows in a table */
.new-enquiry-row {
    background-color: rgba(212, 175, 55, 0.1) !important;
    border-left: 4px solid var(--accent-gold);
}

/* New status badge color */
.status-badge.status-new {
    background-color: rgba(255, 159, 64, 0.2);
    color: #ff9f40;
}

/* Orange */

/* --- Payment Option Styles --- */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-option img {
    max-height: 40px;
    margin-bottom: 1rem;
}

.payment-option span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Hide the actual radio button */
.payment-options input[type="radio"] {
    display: none;
}

/* Style the label when its corresponding radio button is checked */
.payment-options input[type="radio"]:checked+.payment-option {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}


/* --- Payment Success Summary Styles --- */
.payment-summary {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem auto 0 auto;
    max-width: 500px;
}

.payment-summary h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.payment-summary p {
    margin-bottom: 0.5rem;
}


/* --- Payment Status Badge --- */
.status-badge.status-succeeded {
    background-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    /* Green */
}


/* --- Animation for Elements on Scroll --- */

/* The initial state of the element before it is animated */
.animate-on-scroll {
    opacity: 0;
    /* Start fully transparent */
    transform: translateY(30px);
    /* Start 30px lower than its final position */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* Define the smooth transition */
}

/* For table rows, a fade is enough */
.animate-on-scroll.animate-fade-only {
    transform: translateY(0);
}


/* The final state of the element after the class is added */
.animate-on-scroll.is-visible {
    opacity: 1;
    /* Fade to fully visible */
    transform: translateY(0);
    /* Move up to its final position */
}


/* --- Header Navigation Dropdown Menu --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    margin: 0 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--text-primary);
}

.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    left: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0;
    /* Add padding for top/bottom */
}

.nav-dropdown .dropdown-content a {
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    margin: 0;
    /* Override default link margin */
}

.nav-dropdown .dropdown-content a:hover {
    background-color: var(--bg-content);
    color: var(--accent-gold);
}

/* Active state for dropdown items */
.nav-dropdown .dropdown-content a.active {
    background-color: var(--bg-dark);
    font-weight: bold;
}

/* Show the dropdown menu on hover */
.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* --- Explicit Grid for Dashboard Metric Cards --- */
.dashboard-metrics-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    /* Mobile first: 1 column */
}

/* Tablet screens: 2 columns */
@media (min-width: 768px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop screens: 4 columns */
@media (min-width: 1200px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.text-success {
    color: #4ade80;
    font-weight: 600;
}

.text-success i {
    margin-right: 0.5rem;
}

/* --- Dashboard Widget Styles --- */
.dashboard-widget h3 {
    margin-bottom: 0.5rem;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.widget-list a:hover {
    color: var(--accent-gold);
}

.widget-list .fas {
    color: var(--text-secondary);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.widget-list .widget-date {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.widget-list .widget-action {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Tenant Payment Status Badge --- */
.payment-status-badge {
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
}

.payment-status-badge.status-due {
    background-color: rgba(255, 159, 64, 0.2);
    color: #ff9f40;
}

/* Orange */
.payment-status-badge.status-paid {
    background-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

/* Green */

/* =================================================================== */
/* 5. RESPONSIVE & MOBILE STYLES (VERSION 3.0 - Dribbble-Inspired Overlay)
/* =================================================================== */

/**
 * Body class to prevent scrolling when the mobile menu is open.
 */
body.noscroll {
    overflow: hidden;
}

/**
 * Hamburger Menu Button Styles
 * Z-index is increased to ensure it's always on top of the overlay.
 */
.hamburger-menu {
    display: none;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 1001;
    /* Extremely high z-index */
    position: relative;
    /* Needed for z-index */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animation to an 'X' - we'll make it gold when active */
.hamburger-menu.active span {
    background-color: var(--accent-gold);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}


/**
 * The Full-Screen Menu Overlay Container
 */
.mobile-menu {
    position: fixed;
    top: 5;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    /* Sits just below the hamburger icon */

    /* The "Frosted Glass" Background */
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* For Safari */

    display: flex;
    align-items: center;
    justify-content: center;

    /* Initial state: hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/**
 * The Mobile Navigation Link Container
 */
.mobile-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Individual Mobile Links - this is where the cascade animation happens */
.mobile-nav a {
    color: var(--text-primary);
    font-family: var(--font-headings);
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    /* Responsive font size */
    padding: 0.75rem 0;
    text-decoration: none;
    transition: color 0.3s ease;

    /* Initial state for the animation: hidden and moved down */
    opacity: 0;
    transform: translateY(25px);
}

.mobile-nav a:hover {
    color: var(--accent-gold);
}

.mobile-nav a:last-child {
    margin-top: 1rem;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    /* Smaller font for logout */
    font-family: var(--font-primary);
    color: var(--text-secondary);
}

.mobile-nav a:last-child:hover {
    color: var(--accent-gold);
}

/**
 * The Staggered Cascade Animation
 * When the menu is active, we animate the links into view.
 * Each link has a slightly longer delay, creating the wave effect.
 */
.mobile-menu.active .mobile-nav a {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    /* Base transition */
}

.mobile-menu.active .mobile-nav a:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav a:nth-child(2) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-nav a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-nav a:nth-child(4) {
    transition-delay: 0.35s;
}

.mobile-menu.active .mobile-nav a:nth-child(5) {
    transition-delay: 0.4s;
}

.mobile-menu.active .mobile-nav a:nth-child(6) {
    transition-delay: 0.45s;
}


/**
 * The Responsive Breakpoint - No changes needed here, but kept for structure
 */
@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
    }
}

/**
 * Z-index for the main header
 */
.app-header {
    position: relative;
    z-index: 1002;
    /* Above the content, but below the active hamburger */
}


/* --- Action buttons inside table cells --- */
.action-form {
    margin: 0;
}

.action-form button {
    width: 100%;
}

/* --- Success Button Style --- */

.btn-success {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    background-color: #166534;
    /* Dark Green */
    color: #f0f0f0;
    border: 1px solid #22c55e;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-success:hover {
    background-color: #22c55e;
}

/* --- Navigation Dropdown Styles --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-toggle {
    /* Style it like other nav links but without the underline effect */
    display: inline-block;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 0;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.nav-dropdown .dropdown-toggle:hover {
    color: var(--accent-gold);
}

.nav-dropdown .dropdown-content {
    /* Reposition the dropdown content to align left */
    right: auto;
    left: 0;
    margin-left: 1rem;
    padding: 0.5rem 0;
    /* Use padding on the container */
    min-width: 220px;
}

.nav-dropdown .dropdown-content a {
    display: block;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    /* Padding on the links themselves */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown .dropdown-content a:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}


/* --- Signup Page Action Area Styles --- */
.signup-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    /* Center all content */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Horizontally center flex items */
    gap: 1.5rem;
    /* Creates space between the button and the link */
}

.signup-actions .btn-primary {
    width: 100%;
    max-width: 400px;
    /* Control the max width of the button */
}

.subtle-link {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.subtle-link:hover {
    color: var(--accent-gold);
}

/* --- Enhanced Grid Layouts --- */
.grid-6-cols {
    /* On larger screens, display 6 columns */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-card:last-of-type {
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.review-property {
    font-weight: 600;
}

.review-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-ratings {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.review-ratings span {
    color: var(--accent-gold);
}

.review-comments {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.review-comments p {
    margin-top: 0;
    font-style: italic;
}

.review-comments small {
    color: var(--text-secondary);
}

.vendor-tag {
    font-size: 1rem;
    color: #a3b0bc;
    font-family: var(--font-primary);
    font-weight: 400;
}

.text-success {
    color: #4ade80;
}

.text-warning {
    color: #ff9f40;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-grid input {
    width: auto;
}

.form-image-preview {
    max-height: 100px;
    width: auto;
    margin-top: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Vendor Directory Card Styles */
.vendor-card {
    padding: 0;
}

.vendor-card-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}

.vendor-card-details {
    padding: 1.5rem;
}

.vendor-card-location {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.vendor-card-location i {
    margin-right: 0.5rem;
}

.vendor-card-services {
    font-size: 0.8rem;
    color: #a3b0bc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vendor Profile Page Styles */
.vendor-profile-header {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.vendor-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.vendor-profile-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 1rem;
}

.vendor-profile-overlay h1 {
    color: #fff;
    margin: 0;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.services-list .fa-check {
    color: var(--accent-gold);
    margin-right: 0.75rem;
}

.completion-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.completion-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* --- Append to style.css --- */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-option label {
    display: block;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-option input[type="radio"]:checked+label {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.plan-name {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    display: block;
}

.plan-price {
    font-size: 2rem;
    font-weight: 600;
    display: block;
    margin: 0.5rem 0;
    color: var(--accent-gold);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.plan-features li {
    margin-bottom: 0.5rem;
}

.plan-features .fa-check {
    color: #4ade80;
}

.plan-features .fa-star,
.plan-features .fa-award,
.plan-features .fa-envelope {
    color: var(--accent-gold);
}

.section-header {
    font-family: var(--font-headings);
    margin-top: 2rem;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

.recommended-badge {
    position: absolute;
    top: 1rem;
    right: -5px;
    background: #166534;
    color: #fff;
    padding: 0.3rem 1rem 0.3rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 20% 100%, 0% 50%);
}

/* Fix for multiple forms within an action cell */
.action-buttons-cell .action-form {
    flex-grow: 0;
    /* Stop the form from trying to fill all available space */
}

/* --- Redesigned Vendor Subscription Plan Styles --- */
.form-section-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
    color: var(--text-secondary);
}

.form-section-header:first-of-type {
    margin-top: 1rem;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.plan-option input[type="radio"] {
    display: none;
    /* Hide the default radio button */
}

.plan-card {
    display: block;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* For the premium badge */
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.plan-option input[type="radio"]:checked+.plan-card {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.plan-name {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    display: block;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 600;
    display: block;
    margin: 0.5rem 0;
    color: var(--accent-gold);
}

.plan-price small {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    text-align: left;
}

.plan-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.plan-features .fas {
    color: var(--accent-gold);
    margin-right: 0.75rem;
    width: 20px;
}

.plan-features strong {
    color: var(--text-primary);
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 0.3rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

/* --- Notification Dot in Tables --- */
.notification-cell {
    text-align: center;
}

.notification-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
    animation: pulse 1.5s infinite;
}

/* Animation for the pulsing effect */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* =================================================================== */
/* 6. RESPONSIVE BREAKPOINTS (ADDED FOR MOBILE LISTINGS)
/* =================================================================== */

@media (max-width: 900px) {

    /* --- Stack the Main Layouts --- */
    .page-layout-with-sidebar,
    .details-page-layout {
        flex-direction: column;
        gap: 0;
    }

    /* --- Reset Sidebar & Content Widths --- */
    .sidebar-panel,
    .details-sidebar-column {
        width: 100%;
        flex: none;
        /* Disable flex sizing */
        position: relative;
        /* Remove sticky behavior to avoid scrolling issues */
        top: 0;
        margin-bottom: 2rem;
        order: -1;
        /* Move sidebar to top for easy access to filters */
    }

    .main-content-area,
    .details-main-column {
        width: 100%;
        flex: none;
    }

    /* --- Adjust Grids to Single Column --- */
    .property-grid,
    .dashboard-grid,
    .grid-6-cols {
        grid-template-columns: 1fr;
    }

    /* --- Info Grid in Details stacked --- */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .info-grid dt {
        margin-top: 1rem;
    }

    .info-grid dd {
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
    }

    .info-grid dd:last-child {
        border-bottom: none;
    }

    /* --- Adjust Header & Padding --- */
    .app-content {
        padding: 1rem;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .content-header .btn-primary {
        width: 100%;
    }

    /* --- Mobile Header Specifics (Added for Fix) --- */
    .app-header {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .main-nav .btn-secondary {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* --- Responsive Tables --- */
    .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        white-space: nowrap;
    }
}