/* ------------------------------
   RESET + GLOBAL STYLES
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #ffffff;
    color: #333333;
}

/* ------------------------------
      HEADER + NAVIGATION
------------------------------ */
header {
    background: #4a4a8c;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #ffe9d6;
    text-decoration: underline;
}

/* ------------------------------
         LANDING PAGE
------------------------------ */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.landing-header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.landing-header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.landing-header a:hover {
    background: rgba(0, 0, 0, 0.3);
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-img {
    width: 110px;
    height: auto;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 36px;
    font-weight: bold;
    color: #2e7d32;
    margin: 0;
}

.logo-tagline {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.role-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.role-container h1 {
    margin-bottom: 10px;
}

.role-container p {
    color: #555;
    margin-bottom: 30px;
}

.roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.role-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px 20px;
    transition: 0.3s ease;
    background: #ffffff;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.role-card h3 {
    margin-bottom: 10px;
}

.role-card p {
    font-size: 14px;
    margin-bottom: 20px;
}

.role-card a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.student-btn { background: #007bff; }
.landlord-btn { background: #28a745; }
.guest-btn { background: #6c757d; }

.footer-note {
    margin-top: 30px;
    font-size: 13px;
    color: #777;
}

/* ------------------------------
------------------------------ */
.hero, 
.hero-area {
    text-align: center;
    padding: 50px 20px;
    border-radius: 12px;
    margin: 20px auto;
    width: 95%;
}

/* ------------------------------
         ROOMS + CARDS
------------------------------ */
.rooms, .room-list {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    justify-content: center;
}

.room-card {
    width: 270px;
    background: #ffffff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.room-card:hover {
    transform: scale(1.03);
}

.room-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.room-card h4 {
    margin-bottom: 5px;
    font-size: 20px;
}

.category h3 {
    font-size: 26px;
    margin: 10px 0 5px 25px;
}


/* ------------------------------
         ROOMS + CARDS
------------------------------ */


/* ------------------------------
        RESPONSIVE DESIGN
------------------------------ */

@media (max-width: 768px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    .room-card {
        width: 90%;
    }

    .hero, .hero-area {
        width: 100%;
        margin: 10px 0;
        padding: 30px 15px;
    }

    .house-card {
        width: 95%;
    }

    .house-card img {
        height: 200px;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }

    .dash-card {
        padding: 15px;
    }
    
    /* Additional mobile improvements */
    body {
        font-size: 16px;
    }
    
    .category-title {
        font-size: 20px;
        margin: 20px 0 10px 10px;
    }
    
    .rooms, .room-list {
        padding: 10px;
        gap: 15px;
    }
    
    .room-card h4 {
        font-size: 18px;
    }
    
    .form-wrapper {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .about-container {
        padding: 1rem;
        gap: 15px;
    }

    /* Landing page responsive tweaks */
    .landing-main {
        padding: 30px 15px;
    }

    .logo-text {
        font-size: 28px;
    }

    .logo-img {
        width: 80px;
    }

    .role-container {
        padding: 20px;
        margin: 10px 0;
    }

    .roles {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .role-card {
        padding: 20px 15px;
    }

    .role-card p {
        font-size: 16px;
    }

    .role-card a {
        padding: 12px 20px;
        font-size: 16px;
    }

    .footer-note {
        font-size: 14px;
    }
    
    .about-box {
        padding: 1rem;
    }
}

/* ---- Landlord Dashboard Layout ---- */

.dash-wrapper{
    display:flex;
    min-height:100vh;
}

/* Sidebar */

.sidebar{
    position:fixed;
    left:-220px;             /* hidden by default */
    top:0;
    width:220px;
    height:100%;
    background:#314c72;
    padding:20px;
    transition:0.3s ease;
    z-index:1000;
}

/* Sidebar visible */
.sidebar.active{
    left:0;
}

/* Sidebar links */

.sidebar a{
    display:block;
    text-decoration:none;
    color:white;
    padding:12px;
    margin:8px 0;
    border-radius:6px;
}

.sidebar a:hover{
    background:#3b82f6;
}

/* Dashboard content */

.dash-content{
    flex:1;
    padding:25px;
    transition:0.3s;
}

/* Move content when sidebar opens */

.dash-content.shift{
    margin-left:220px;
}

/* Menu button */

.menu-btn{
    font-size:22px;
    background:none;
    border:none;
    cursor:pointer;
    padding:10px;
}

/* Top bar */

.top-bar{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.house-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.house-card img {
    width: 100%;
    border-radius: 8px;
}

.edit-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #2563eb;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

/* Add house form */
.form-wrapper {
    width: 450px;
    margin: 50px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-wrapper input,
.form-wrapper select {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-wrapper button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #1e40af;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
/* About Page Styling */
.about-header {
  text-align: center;
  padding: 3rem 1rem;
  background: #f8f9fa;
}

.about-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-header p {
  font-size: 1.1rem;
  color: #555;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

.about-box {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.about-box h2 {
  margin-bottom: 10px;
  color: #333;
}

.about-box ul {
  margin-left: 15px;
  color: #555;
}

.about-box p {
  color: #555;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

.house-card {
    display: inline-block;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.house-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.house-card h3 {
    margin: 10px 0 5px;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.actions a {
    text-decoration: none;
    color: #b00000;
    font-weight: bold;
}
/* ==========================
   ROOMS PAGE STYLING
========================== */

body {
    font-family: Arial, sans-serif;
    background: rgb(251, 253, 252);
    color: #333;
}

/* Page Title */
h2 {
    margin: 20px 0;
    font-size: 22px;
}

/* Table Container */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
}

/* Table Header */
th {
    background: #2a5ca7;
    padding: 12px;
    font-weight: bold;
    text-align: left;
    font-size: 14px;
}

/* Table Cells */
td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    font-size: 14px;
    background: #fbfcfb;
}

/* Hover Effect */
tr:hover {
    background: #fafafa;
}

/* Room Image */
.room-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Price */
.price {
    font-weight: bold;
    color: #2c3e50;
}

/* Status Badge */
.status {
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    text-transform: capitalize;
}

/* Vacant */
.status.vacant {
    background: #d4edda;
    color: #155724;
}

/* Occupied */
.status.occupied {
    background: #f8d7da;
    color: #721c24;
}

.status.pending {
    background: #f8d7da;
    color: #cf9311;
}

/* Actions Column */
.actions {
    white-space: nowrap;
}

/* Action Buttons */
.actions a {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 6px;
    display: inline-block;
    transition: 0.2s ease;
}

/* Edit Button */
.actions .edit {
    background: #007bff;
    color: #ffffff;
}

.actions .edit:hover {
    background: #0056b3;
}

/* Delete Button */
.actions .delete {
    background: #dc3545;
    color: #ffffff;
}

.actions .delete:hover {
    background: #a71d2a;
}

/* Empty State */
.no-rooms {
    padding: 20px;
    text-align: center;
    font-size: 15px;
    color: #777;
}
/* =========================
   STUDENT DASHBOARD
========================= */

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #f8f9fa;
}

.dashboard-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #222;
}

/* ACTION CARDS */
.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dash-card {
    background: #e3f2fd;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 25px 20px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.dash-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.dash-card p {
    font-size: 0.95rem;
    color: #666;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    background: #f9f9f9;
}

/* RECENT SECTION */
.recent-section h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* HOUSE CONTAINERS */
.houses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
    background: #f8f9fa;
    margin: 0 auto;
    width: 100%;
    max-width: 1300px;
    padding: 20px;
}

.house-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.house-card .card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.house-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.house-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.house-card h4 {
    padding: 15px;
    font-size: 1.1rem;
}

/* BUTTON */
.btn {
    display: block;
    margin: 0 15px 15px;
    padding: 10px;
    text-align: center;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* ===== DASHBOARD HEADER ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #0609d6;
    color: #fff;
}

.dashboard-header .logo a {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}
.dashboard-header a:hover {
    color: #f39c12;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

/* Navigation */
.header-nav a {
    margin-right: 20px;
}


.back-btn {
    display: inline-flex;
    align-items: left;
    gap: 6px;
    font-size: 40px;
    color: #333;
    text-decoration: none;
    margin-bottom: 15px;
    cursor: pointer;
}

.back-btn:hover {
    color: #007bff;
    text-decoration: none;
}
.fav-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #aaa; /* grey */
    transition: transform 0.2s, color 0.2s;
}

.fav-btn:hover {
    transform: scale(1.2);
}

.fav-active {
    color: #e63946; /* red */
}


/* ===== ACCOUNT DROPDOWN ===== */
.account-wrapper {
    position: relative;
}

.account-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-btn:focus {
    outline: none;
}

/* dropdown */
.account-dropdown {
    position: absolute;
    right: 0;
    top: 130%;
    background: #ffffff;
    color: #333;
    min-width: 190px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.account-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.account-dropdown a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.account-dropdown a:hover {
    background: #f3f4f6;
}

.account-dropdown hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #eee;
}

.account-dropdown .danger {
    color: #c0392b;
}
/* =========================
   AUTH PAGES (LOGIN & SIGNUP)
   ========================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: #c7f7f4;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease-in-out;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #222;
}

.auth-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

.auth-container input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: border 0.3s;
}

.auth-container input:focus {
    border-color: #4f46e5;
}

.auth-container button {
    width: 80%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

    .auth-container button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-container button:hover {
    background: #0056b3;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}


.alert-success {
    background: #dcfce7;
    color: #166534;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.warning {
    color: #c0392b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.alert {
    background: #f1f1f1;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #333;
}

.danger-btn {
    background: #c0392b;
    color: #fff;
}

.danger-btn:hover {
    background: #a93226;
}

.danger {
    border: 2px solid #c0392b;
}
/* Logo Styles */
.logo-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.logo-img { 
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6c757d;
}

.logo-text {
    font-size: 36px;
    font-weight: bold;
    color: #3f2bf7;
    margin: 0;
}

.logo-tagline {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* Mobile responsiveness for auth forms */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
        margin: 10px;
        max-width: 100%;
    }
    
    .auth-container h2 {
        font-size: 24px;
    }
    
    .logo-container {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .back-btn {
        font-size: 16px;
    }
    
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-container h2 {
        font-size: 20px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .auth-container input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .auth-container button {
        padding: 14px;
        font-size: 16px;
    }
}

/* =========================
   FILTERS SECTION
========================= */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: #f0f7ff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #2563eb;
}

.filters input,
.filters select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cce5d5;
    outline: none;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.filters input:focus,
.filters select:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.15);
}

/* Checkbox styling */
.filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.filters input[type="checkbox"] {
    accent-color: #2ecc71;
    cursor: pointer;
}

/* Filter button */
.filters .btn {
    padding: 10px 16px;
    border-radius: 25px;
    border: none;
    background: #28a745;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filters .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39,174,96,0.3);
}
.clear-filters {
    background: #007bff;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.clear-filters:hover {
    background: #5a6268;
}
.availability {
    margin: 10px 0;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge.available {
    background: #e8f8f1;
    color: #1e8449;
}

.badge.full {
    background: #fdecea;
    color: #c0392b;
}
.u-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}

/* Urgency levels */
.u-badge.urgent {
    background: #e63946;
    animation: pulse 1.2s infinite;
}

.u-badge.limited {
    background: #f4a261;
}

/* Optional attention grab */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* =========================
   favorites BUTTON
========================= */
.fav-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #bbb;
    transition: transform 0.2s ease, color 0.3s ease;
}

.fav-btn:hover {
    transform: scale(1.2);
}

.fav-btn.active {
    color: #e53935;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0%   { transform: scale(0.8); }
    70%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.book-btn {
    background: #2ecc71;
    color: white;
    cursor: pointer;
}
.pending-btn {
    background-color: #ffe8b3;
    color: #8a5a00;
    border: 1px solid #ffd27a;
    cursor: not-allowed;
}
.booked-btn {
    background: #df4747;
    color: #f5f1f1;
    cursor: pointer;
}

.pending-btn:hover {
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}
.Bbadge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    z-index: 2;
    color: #fff;
}

/* states */
.badge-pending { background: #e9dd3f; }
.badge-approved { background: #1a531a; }
.badge-occupied { background: #d9534f; }
.badge-selected { background: #6c757d; }
.badge-available { background: #04f08e; }
.badge-expired { background: #999; }
.badge-urgent { background: #c9302c; }
.room-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 10px;
}
.icon-wrapper {
    position: relative;
    display: inline-block;
}

.notify-dot {
    position: absolute;
    top: -6px;
    right: -8px;
    background: red;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}

.btn-notify {
    position: relative;
}

.notify-badge {
    position: absolute;
    right: 10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    animation: slideIn 0.4s ease;
}

.toast-success { background: #28a745; }
.toast-error   { background: #dc3545; }
.toast-warning { background: #ffc107; color:#000; }
.toast-info    { background: #17a2b8; }

.toast.hide {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.4s ease;
}

@keyframes slideIn {
    from { transform: translateX(50px); opacity:0; }
    to   { transform: translateX(0); opacity:1; }
}

.profile-card {
    max-width: 420px;
    margin: 30px auto;
    padding: 20px;
    background: #40b9c2;
    border-radius: 12px;
    text-align: center;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2ecc71;
    margin-bottom: 15px;
}
.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #27a36f;
}

.muted {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}
.profile-pic1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}
.top-left-links {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 18px;
    z-index: 1000;
}

.top-left-links a {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.top-left-links a:hover {
    background: #f0f0f0;
    color: #000;
}
.page-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 20px;
}
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}
.page-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.text {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}
.contact-link {
    color: #2b7cff;
    font-weight: 600;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}
.pending-house {
    border: 2px solid #f5c542;
    box-shadow: 0 0 12px rgba(245, 197, 66, 0.5);
    position: relative;
}

.pending-house::before {
    content: "⏳ Pending Booking";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f5c542;
    color: #000;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}
/* checkbox styling */
.hidden-section {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
}

.toggle-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 15px;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #007bff;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
}

.custom-checkbox input:checked + .checkmark {
    background: #007bff;
}

.custom-checkbox input:checked + .checkmark::after {
    content: "✔";
    color: white;
    position: absolute;
    font-size: 12px;
    left: 3px;
    top: -1px;
}
/*house card with badge*/
.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.icon-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.5);
    padding: 6px 10px;
    border-radius: 20px;
}

.icon-overlay i {
    color: #fff;
    font-size: 14px;
}
/* house details page */
.slider {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    background: #000;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

/* preview house cards */
.phouses-container{
display:flex;
gap:15px;
flex-wrap:wrap;
margin-bottom:20px;
}

/* VIEWS PLUS FAVS*/
.house-stats{
display:flex;
gap:15px;
margin-top:8px;
font-size:14px;
color:#555;
}
.trend-badge{
position:absolute;
top:10px;
left:10px;
background:#ff5722;
color:white;
padding:4px 8px;
font-size:12px;
border-radius:6px;
}
.no-results {
    text-align: center;
    padding: 40px;
    color: #555;
}

.no-results h3 {
    margin-bottom: 10px;
}
.scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;

    background: linear-gradient(135deg, #4CAF50, #2196F3);
    color: white;

    border: none;
    border-radius: 50%;
    padding: 12px 16px;

    font-size: 18px;
    cursor: pointer;

    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

    transition: all 0.3s ease;
    z-index: 999;
}

.scrollTopBtn:hover {
    transform: scale(1.1);
}
/* ===== Announcement Bar (FIXED) ===== */
.announcement-bar {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: #fff;
    padding: 10px 0;
    position: relative;
}

.announcement-track {
    display: flex;
    width: max-content;
    animation: scrollText 18s linear infinite;
}

.announcement-track span {
    white-space: nowrap;
    padding-right: 50px;
    font-size: 14px;
}

/* Duplicate content for smooth loop */
.announcement-track::after {
    content: attr(data-text);
    white-space: nowrap;
    padding-left: 50px;
}

/* Animation */
@keyframes scrollText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}
/* ===============================
   LANDLORD DASHBOARD FIXED LAYOUT
=============================== */

/* Prevent horizontal scroll everywhere */
body {
    overflow-x: hidden;
}

/* Wrapper */
.dash-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -220px;
    top: 0;
    width: 220px;
    height: 100%;
    background: #314c72;
    padding: 20px;
    transition: 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
}

.sidebar a:hover {
    background: #3b82f6;
}

/* Main content */
.dash-content {
    flex: 1;
    padding: 20px;
    width: 100%;
    transition: 0.3s;
}

/* IMPORTANT: remove desktop push effect on mobile */
.dash-content.shift {
    margin-left: 220px;
}

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
}

/* Menu button */
.menu-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    position: relative;
}

/* Notification dot */
.icon-wrapper {
    position: relative;
}

.notify-dot {
    position: absolute;
    top: -5px;
    right: -8px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ===============================
   GRID FIX (THIS IS THE REAL HERO)
=============================== */

.houses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Ensure cards behave */
.house-card {
    width: 100%;
}

/* ===============================
   MOBILE FIXES (THIS WAS MISSING)
=============================== */

@media (max-width: 768px) {

    /* Stack everything */
    .dash-wrapper {
        flex-direction: column;
    }

    /* Sidebar overlays, NOT pushes */
    .dash-content.shift {
        margin-left: 0;
    }

    /* Force ONE COLUMN */
    .houses-container {
        grid-template-columns: 1fr;
    }

    /* Better spacing */
    .dash-content {
        padding: 15px;
    }

    /* Fix top bar */
    .top-bar {
        padding: 10px;
    }
}
/* Room status badges */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
}

/* Status colors */
.status-vacant {
    background: #16a34a; /* green */
}

.status-pending {
    background: #f59e0b; /* orange */
}

.status-occupied {
    background: #dc2626; /* red */
}
.back-btn {
        display: inline-block;
        margin: 20px;
        text-decoration: none;
        font-size: 20px;
        color: #333;
        background: #fff;
        padding: 8px 14px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: 0.2s ease;
    }

    .back-btn:hover {
        background: #007bff;
        color: #fff;
    }