/* =========================
   GLOBAL VARIABLES & BASE STYLES
   ========================= */
:root {
    /* Brand Colors */
    --primary-brand-color: #6d43fc; /* Your brand purple */
    --primary-brand-color-rgb: 109, 67, 252; /* RGB for the purple, needed for box-shadow with opacity */

    /* Theme Colors */
    --background-dark: black; /* Main page background */
    --background-card: #1a1a1a; /* Slightly lighter dark for cards/blocks */
    --text-color-light: white; /* Main text color */
    --text-color-muted: #ccc; /* Secondary/muted text color */
    --border-color: #6d43fc; /* Default border/accent color */

    /* Layout & Shadows */
    --shadow-dark: rgba(0,0,0,0.5); /* Stronger shadow for dark mode */
    --header-height: 56px;
    --bottom-nav-height: 56px;
    --border-radius: 8px; /* Standard border radius for cards */
    --border-radius-small: 5px;

    /* --- ANIMATION VARIABLES --- */
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-duration: 0.3s;
}

/* --- Base Typography & Body --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--text-color-light);
    background-color: var(--background-dark);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth; 
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-brand-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utility Classes --- */
.brand-color {
    color: var(--primary-brand-color);
}

.hidden {
    display: none !important;
}

/* =========================
   ANIMATIONS & TRANSITIONS
   ========================= */

/* 1. Global Click Feedback (on-press effect) */
.action-card:active,
.feed-card-link:active .feed-card, /* Adjusted for anchor tag wrapper */
.back-button:active,
.header-icons a:active {
    /* Existing transform is good for physical press feel */
    transform: scale(0.98); 
}

/* 2. Entrance Animation (for a clean load) */
/* Apply this class to main content sections when they load or become visible */
.fade-in-up {
    animation: fadeInUp 0.5s var(--ease-out-quad) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Button/Link Hover Effects (More noticeable feedback) */
.action-card,
.feed-card,
.header-icons a,
.nav-item,
.back-button {
    /* Make sure all transition properties are listed for consistency */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.action-card:hover,
.feed-card-link:hover .feed-card { /* Adjusted for anchor tag wrapper */
    /* Subtle lift and shadow for non-touch devices */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-brand-color-rgb), 0.2);
}

.nav-item:hover {
    color: var(--primary-brand-color);
}
.nav-item:hover i {
    color: var(--primary-brand-color);
}

/* 4. Focus/Input Animation (Draw attention to active field) */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    /* Use the primary brand color for the focus glow */
    outline: none;
    border-color: var(--primary-brand-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-brand-color-rgb), 0.5); /* Increased opacity for better visibility */
}

/* 5. Pulsating Button (For the central 'Plus' button to draw attention) */
.plus-button i {
    /* ... existing styles ... */
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-brand-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-brand-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-brand-color-rgb), 0);
    }
}

/* 6. Toggle Animations */
.toggle-slider {
    /* ... existing styles ... */
    transition: background-color var(--transition-duration), box-shadow var(--transition-duration);
}
.toggle-slider:before {
    /* ... existing styles ... */
    transition: transform var(--transition-duration), background-color var(--transition-duration);
}

/* 7. Popup/Modal Entrance */
.popup-overlay {
    /* Already has a transition: opacity 0.3s ease; */
    opacity: 0;
    pointer-events: none; /* Allows clicks underneath when hidden */
}
.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.popup-content {
    /* Start slightly scaled down and slide up for a modern feel */
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform var(--transition-duration) var(--ease-out-quad), opacity var(--transition-duration);
}
.popup-overlay.show .popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* =========================
   APP LAYOUT STRUCTURE
   ========================= */

/* --- App Main Content Area --- */
.app-main-content {
    /* Adjusted padding-top to clear fixed header and added padding for all sides */
    padding-top: calc(var(--header-height) + 20px); 
    padding-bottom: var(--bottom-nav-height);
    padding-left: 15px;
    padding-right: 15px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- App Header (Main Home) --- */
.app-header {
    background-color: var(--background-dark);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 4px var(--shadow-dark);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1.5px solid var(--primary-brand-color);
    box-sizing: border-box; /* Ensures padding is included in the width */
    /* Smooth background color transition for potential scroll-based effects (JS) */
    transition: background-color var(--transition-duration) ease; 
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-title-container {
    display: flex;
    align-items: center;
}

.app-logo {
    height: 65px;
    margin-right: 8px;
    max-width: 150px;
    max-height: 35px;
}

.app-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-brand-color);
    margin: 0;
    letter-spacing: 0.05em;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icons .fas {
    font-size: 1.4em;
    color: var(--text-color-light);
    padding: 5px;
    transition: color 0.2s ease;
}
/* Subtle hover for header icons */
.header-icons a:hover .fas {
    color: var(--primary-brand-color);
}

.header-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header-icons a:active {
    background-color: rgba(255,255,255,0.1);
}

/* --- Bottom Navigation Bar --- */
.bottom-nav {
    background-color: var(--background-dark);
    height: var(--bottom-nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px var(--shadow-dark);
    z-index: 100;
    border-top: 1.5px solid var(--primary-brand-color);
    transition: transform var(--transition-duration) ease; /* For hiding/showing via JS */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-decoration: none;
    color: var(--text-color-muted);
    font-size: 0.75em;
    font-weight: 500;
    padding: 5px 0;
}

.nav-item.plus-button {
    flex-grow: 0;
    margin: 0 10px;
}

.nav-item i {
    font-size: 1.4em;
    margin-bottom: 4px;
}

.nav-item.active,
.nav-item:active {
    color: var(--primary-brand-color);
}

.nav-item.active i,
.nav-item:active i {
    color: var(--primary-brand-color);
}

.plus-button i {
    background-color: var(--primary-brand-color);
    color: var(--text-color-light);
    padding: 15px;
    border-radius: 50%;
    font-size: 2rem;
    position: relative;
    top: -20px;
    box-shadow: 0 -4px 6px var(--shadow-dark);
    /* Set animation properties */
    transition: transform 0.1s ease;
}

/* =========================
   HOME PAGE COMPONENTS
   ========================= */

/* --- Search Bar Section --- */
.app-search-bar-section {
    padding: 15px 0 0; /* Horizontal padding removed, handled by .app-main-content */
    background-color: var(--background-dark);
    margin-bottom: 20px;
}

.search-input-container {
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--background-dark);
    border-radius: 25px;
    padding: 10px 15px;
    border: 2px solid var(--primary-brand-color);
    box-shadow: 0 1px 3px var(--shadow-dark);
    transition: box-shadow var(--transition-duration) ease; /* Added transition */
}
/* Subtle hover for search bar on non-touch devices */
.search-input-container:hover {
    box-shadow: 0 2px 5px rgba(var(--primary-brand-color-rgb), 0.5);
}

.search-icon {
    color: var(--text-color-muted);
    margin-right: 10px;
    font-size: 1.1em;
}

.app-search-input {
    width: 100%;
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 2px 0;
    color: var(--text-color-light);
    background-color: transparent;
}

.app-search-input::placeholder {
    color: var(--text-color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-search-input:focus::placeholder {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* --- Quick Actions Section --- */
.quick-actions-section {
    display: flex;
    justify-content: space-around;
    padding: 20px 0; /* Horizontal padding removed */
    gap: 15px;
    flex-wrap: wrap;
    background-color: var(--background-dark);
    margin-bottom: 25px;
}

.action-card {
    flex: 1;
    min-width: 100px;
    max-width: 160px;
    text-align: center;
    padding: 15px 10px;
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px var(--shadow-dark);
    cursor: pointer;
    border: 1px solid var(--primary-brand-color);
    /* Existing transition is sufficient */
}

/* --- Listings Feed Section --- */
.listings-feed-section {
    padding: 20px 0; /* Horizontal padding removed */
    background-color: var(--background-dark);
}

.feed-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-brand-color);
    margin: 0 0 20px; /* Horizontal padding removed */
}

/* ⭐️ NEW: Single-column scroll layout ⭐️ */
.listings-grid {
    display: flex; /* Change from grid to flex */
    flex-direction: column; /* Stack items vertically */
    gap: 20px; /* Space between cards */
    padding: 0;
    margin: 0;
}
/* ⭐️ END NEW ⭐️ */

.feed-card-link {
    display: block;
    /* Removed redundant margin here, moved spacing to listings-grid gap */
    text-decoration: none;
    color: inherit;
}

.feed-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--primary-brand-color);
}

/* Scroll-triggered card animations */
@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cardSlideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feed-card.animate-in {
    animation: cardSlideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.feed-card.animate-fade {
    animation: cardFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.feed-card.animate-slide-right {
    animation: cardSlideRight 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Stagger delays for sequential cards */
.feed-card.animate-in:nth-child(1) { animation-delay: 0ms; }
.feed-card.animate-in:nth-child(2) { animation-delay: 80ms; }
.feed-card.animate-in:nth-child(3) { animation-delay: 160ms; }
.feed-card.animate-in:nth-child(4) { animation-delay: 240ms; }
.feed-card.animate-in:nth-child(5) { animation-delay: 320ms; }
.feed-card.animate-in:nth-child(6) { animation-delay: 400ms; }
.feed-card.animate-in:nth-child(7) { animation-delay: 480ms; }
.feed-card.animate-in:nth-child(8) { animation-delay: 560ms; }
.feed-card.animate-in:nth-child(9) { animation-delay: 640ms; }
.feed-card.animate-in:nth-child(10) { animation-delay: 720ms; }


/* ⭐️ NEW: Image wrapper for icon positioning ⭐️ */
.card-image-wrapper {
    position: relative; /* Context for absolute icon positioning */
    width: 100%;
    /* Maintain aspect ratio */
    padding-bottom: 60%; /* Example: 60% of width for a rectangular image area */
    overflow: hidden;
}

/* Subtle gradient overlay on images for depth */
.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feed-card-link:hover .card-image-wrapper::after,
.feed-card-link:active .card-image-wrapper::after {
    opacity: 1;
}

/* Engaging press/tap animation for mobile */
.feed-card-link:active .feed-card {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.feed-card-link:active .card-image {
    transform: scale(1.05);
    transition: transform 0.15s ease;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 0; /* Image now fills wrapper */
    transition: transform 0.3s ease;
}
/* Image zoom on card hover */
.feed-card-link:hover .card-image {
    transform: scale(1.03);
}

/* ⭐️ NEW: Icon positioning and styling ⭐️ */
.card-action-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.card-action-icon {
    background-color: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.card-action-icon i {
    font-size: 1rem;
    color: white;
    transition: color 0.2s ease, transform 0.15s ease;
}

.card-action-icon:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.08);
}

.card-action-icon:hover i {
    color: var(--primary-brand-color);
}

.card-action-icon:active {
    transform: scale(0.92);
}

.card-action-icon.favorite-button.is-favorited {
    background-color: rgba(255, 56, 92, 0.85);
}

.card-action-icon.favorite-button.is-favorited i {
    color: white;
}

/* Favorite button bounce animation when clicked */
@keyframes favoriteBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(0.9) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
}

.card-action-icon.favorite-button.bounce {
    animation: favoriteBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card-action-icon.favorite-button.bounce i {
    animation: favoriteBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card-action-icon.share-button:hover i {
    color: var(--primary-brand-color);
}
/* ⭐️ END NEW ICON STYLES ⭐️ */

/* --- Property Owner Profile Card --- */
.owner-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(109, 67, 252, 0.08), rgba(109, 67, 252, 0.03));
    border-top: 1px solid rgba(109, 67, 252, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.owner-profile-card:hover {
    background: linear-gradient(135deg, rgba(109, 67, 252, 0.15), rgba(109, 67, 252, 0.06));
    border-top-color: rgba(109, 67, 252, 0.3);
}

.owner-profile-card:active {
    transform: scale(0.98);
}

.owner-avatar-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.owner-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-brand-color), #9d7aff, #6d43fc);
    z-index: 0;
    animation: halo-spin 3s linear infinite;
}

.owner-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--background-dark);
    z-index: 1;
    background-color: var(--background-card);
}

.owner-avatar-placeholder {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d43fc, #8b6bff);
    border: 2px solid var(--background-dark);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@keyframes halo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.owner-info {
    flex: 1;
    min-width: 0;
}

.owner-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-label {
    font-size: 0.78rem;
    color: var(--text-color-muted);
    margin: 2px 0 0;
}

.owner-arrow {
    color: var(--primary-brand-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.owner-profile-card:hover .owner-arrow {
    transform: translateX(4px);
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary-brand-color);
}

.card-location {
    font-size: 0.9em;
    color: var(--text-color-muted);
    margin-bottom: 5px;
    font-weight: 400;
}

.card-location i {
    margin-right: 5px;
    color: var(--primary-brand-color);
}

.card-price {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color-light);
    margin-bottom: 10px;
}

.card-description {
    font-size: 0.85em;
    color: var(--text-color-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   GENERIC FORM & BUTTON STYLES (for Auth/Dashboard/Listing)
   ========================= */

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color-light);
}

.input-group input:not([type="checkbox"]):not([type="radio"]),
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text-color-muted);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-color-light);
    box-sizing: border-box;
    /* Existing transition is sufficient */
}

/* Primary/Action Buttons */
.action-button,
.primary-button,
.login-button,
.signup-button,
.submit-property-button,
.submit-application-button,
.chat-button {
    padding: 15px 30px;
    background-color: var(--primary-brand-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Added box-shadow */
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.action-button:hover,
.primary-button:hover,
.login-button:hover,
.signup-button:hover,
.submit-property-button:hover,
.submit-application-button:hover,
.chat-button:hover {
    background-color: #5a36e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-brand-color-rgb), 0.4); /* Lifted shadow */
}

.action-button:active,
.primary-button:active,
.login-button:active,
.signup-button:active,
.submit-property-button:active,
.submit-application-button:active,
.chat-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5); /* "Press" into the screen */
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-brand-color);
    border: 2px solid var(--primary-brand-color);
}
/* Adjusted secondary button hover */
.secondary-button:hover {
    background-color: var(--primary-brand-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-brand-color-rgb), 0.4);
}
.secondary-button:active {
    transform: translateY(0);
}

/* Specific button overrides */
.logout-button {
    background-color: transparent;
    color: #cc0000;
    border: 2px solid #cc0000;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.logout-button:hover {
    background-color: #cc0000;
    color: var(--text-color-light);
    transform: translateY(-2px);
}
.logout-button:active {
    transform: translateY(0);
}

/* =========================
   PAGE SPECIFIC STYLES
   ========================= */

/* --- Page Layout Overrides --- */
/* Global body layout reset for non-app pages (to use fixed header/footer) */
body:not(.login-page):not(.signup-page):not(.profile-page):not(.list-property-page):not(.main-index-page) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hide website main header/nav/footer on app home/detail pages */
body:not(.main-index-page) > header:not(.app-header),
body:not(.main-index-page) > footer,
.hero-buttons, .call-to-action, .call-to-action.secondary,
header h1:not(.app-title), header iframe {
    display: none !important;
}

/* --- Detail Page Header (Back button structure) --- */
.app-header.detail-page-header {
    justify-content: flex-start;
    padding-left: 15px;
    gap: 15px;
}

.app-header.detail-page-header .header-content-wrapper {
    justify-content: flex-start;
    gap: 15px;
}

.back-button {
    color: var(--text-color-light);
    font-size: 1.4em;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.back-button:active {
    background-color: rgba(255,255,255,0.1);
}
/* Subtle hover for back button */
.back-button:hover {
    background-color: rgba(var(--primary-brand-color-rgb), 0.2);
    color: var(--primary-brand-color);
}

.app-header.detail-page-header .app-title {
    flex-grow: 1;
    text-align: left;
    font-size: 1.3em;
    margin: 0;
}

/* --- Property Details Page --- */
.main-content.property-details-page {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px var(--shadow-dark);
    color: var(--text-color-light);
    box-sizing: border-box;
}

.property-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.property-header h1 {
    font-size: 1.8em;
}

.property-price {
    margin-left: 0;
    margin-top: 10px;
    width: fit-content;
}

.property-image-gallery {
    /* grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); */
    gap: 15px;
    margin-bottom: 30px;
}

.property-image-gallery img {
    height: 180px;
    border-radius: 4px;
    transition: transform 0.3s ease; /* For hover zoom */
}
.property-image-gallery img:hover {
    transform: scale(1.05);
}

.property-features {
    gap: 10px;
    padding: 15px 0;
}

/* --- Auth (Login/Signup) Pages --- */
.login-container, .signup-container {
    padding: 20px;
    max-width: 450px;
    width: 90%;
    margin: 40px auto;
    text-align: center;
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px var(--shadow-dark);
    border: 2px solid var(--primary-brand-color);
    /* Add a subtle entrance animation for the form */
    animation: fadeInUp 0.7s var(--ease-out-quad) forwards;
}

.login-form, .signup-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.signup-container h1 {
    font-size: 2em;
    margin-bottom: 25px;
}

.auth-note {
    font-size: 0.9em;
    color: var(--text-color-muted);
    margin-top: -10px;
    margin-bottom: 15px;
}

.login-options, .signup-options {
    margin-top: 15px;
    color: var(--text-color-muted);
}

.login-options a, .signup-options a, .signup-prompt a {
    color: var(--primary-brand-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.login-options a:hover, .signup-options a:hover, .signup-prompt a:hover {
    color: #9b7bff; /* Lighter shade of purple on hover */
}

.radio-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
    margin-top: 0.5rem;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    color: var(--text-color-muted);
}

.radio-group input[type="radio"]:checked + label {
    background-color: var(--primary-brand-color);
    color: var(--text-color-light);
    font-weight: 600;
}

/* --- International Telephone Input (iti) --- */
.iti { width: 100%; }

.iti__country-list {
  color: var(--text-color-light);
  background-color: var(--background-dark);
  border: 1px solid var(--primary-brand-color);
  box-shadow: 0 0 10px var(--shadow-dark);
  z-index: 999;
}

.iti__country-list .iti__highlight {
  background-color: var(--primary-brand-color);
  color: var(--text-color-light);
}

.iti input[type="tel"] {
  background-color: transparent;
  color: var(--text-color-light);
  border: 1px solid var(--text-color-muted);
  padding-left: 55px;
  box-sizing: border-box;
}

/* --- Profile Page --- */
.profile-container {
    padding: 20px 15px;
    margin: 15px auto;
    max-width: 600px;
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-dark);
    border: 2px solid var(--primary-brand-color);
    box-sizing: border-box;
    animation: fadeInUp 0.7s var(--ease-out-quad) forwards;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-brand-color);
    display: block;
    margin: 0 auto 15px;
    transition: transform 0.3s ease; /* Subtle bounce/zoom on hover */
}
.profile-picture:hover {
    transform: scale(1.05);
}

.user-info-section {
    background-color: var(--background-card);
    padding: 20px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-brand-color);
    text-align: left;
    transition: border-left-color 0.3s ease;
}
.user-info-section:hover {
    border-left: 5px solid #9b7bff; /* Brighter color on hover */
}

.info-group {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.info-group label {
    font-weight: 500;
    color: var(--primary-brand-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.info-group p {
    color: var(--text-color-light);
    flex-grow: 1;
    text-align: right;
    margin: 0;
    font-size: 1em;
}

/* Toggle Switch */
.availability-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1em;
    color: var(--text-color-light);
    cursor: pointer;
}
.availability-toggle input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.toggle-slider {
    position: relative; width: 50px; height: 26px;
    background-color: var(--text-color-muted); border-radius: 26px;
}
.toggle-slider:before {
    content: ""; position: absolute; width: 22px; height: 22px;
    border-radius: 50%; background-color: var(--text-color-light);
    top: 2px; left: 2px;
}
.availability-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--primary-brand-color);
}
.availability-toggle input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: var(--text-color-light);
}

/* --- Homeowner Profile/Dashboard --- */
.homeowner-profile-container {
    flex-grow: 1;
    background-color: var(--background-dark);
    padding: 20px 15px;
    margin: 15px auto;
    max-width: 900px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px var(--shadow-dark);
    border: 2px solid var(--primary-brand-color);
    box-sizing: border-box;
    animation: fadeInUp 0.7s var(--ease-out-quad) forwards;
}

.homeowner-profile-container h2 {
    border-bottom: 2px solid var(--primary-brand-color);
    padding-bottom: 8px;
}

.profile-section ul {
    list-style: none;
    padding-left: 0;
}

.profile-section ul li {
    background-color: var(--background-card);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: var(--border-radius-small);
    border-left: 3px solid var(--primary-brand-color);
    color: var(--text-color-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}
.profile-section ul li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(var(--primary-brand-color-rgb), 0.3);
    border-left-color: #9b7bff;
}

.profile-section ul li strong {
    color: var(--primary-brand-color);
    font-size: 1.05em;
    display: block;
    margin-bottom: 5px;
}

/* --- Chat Page --- */
.main-content.chat-page {
    flex-direction: column;
    padding: 0; /* Adjust padding for full-screen chat layout */
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    box-shadow: none;
    border: none;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    color: var(--text-color-light);
    padding-top: calc(var(--header-height) + 20px); /* Clear fixed header */
}

.chat-input-area {
    background-color: var(--background-dark);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--primary-brand-color);
    position: fixed; /* Fix at the bottom */
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 90;
    transition: transform var(--transition-duration) ease; /* For slide in/out */
}

/* =========================
   POP-UP STYLES
   ========================= */

.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: var(--background-dark);
    padding: 30px; border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    text-align: center; max-width: 450px; width: 90%;
    border: 2px solid var(--primary-brand-color);
    color: var(--text-color-light);
}

/* =========================
   RESPONSIVENESS (Media Queries)
   ========================= */

@media (max-width: 768px) {
    /* Detail Page adjustments handled in their respective sections */
}

@media (max-width: 600px) {
    .app-title {
        font-size: 1.5em;
    }
    .app-logo {
        height: 30px;
    }
    .header-icons .fas {
        font-size: 1.3em;
    }
    .action-card {
        min-width: 90px;
        padding: 12px 8px;
    }
    .action-icon {
        font-size: 2em;
    }
    .action-card span {
        font-size: 0.8em;
    }
    .card-image {
        height: clamp(140px, 35vw, 200px);
    }
    .card-title {
        font-size: 1.2em;
    }
    .card-price {
        font-size: 1em;
    }
    .card-content {
        padding: 12px;
    }
    .card-location, .card-description {
        font-size: 0.85em;
    }
    .nav-item {
        font-size: 0.7em;
    }
    .nav-item i {
        font-size: 1.3em;
    }
    .input-group-row {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: clamp(130px, 38vw, 180px);
    }
    .card-title {
        font-size: 1.15em;
    }
    .card-price {
        font-size: 0.95em;
    }
    .card-content {
        padding: 10px;
    }
    .card-location {
        font-size: 0.82em;
    }
    .card-description {
        font-size: 0.82em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .feed-card {
        margin: 0 12px;
    }
    .listings-grid {
        gap: 16px;
    }
}

@media (max-width: 375px) {
    .homeowner-profile-container, .profile-container {
        padding: 15px 10px;
        margin: 10px auto;
    }

    .homeowner-profile-container h1, .profile-container h1 {
        font-size: 1.6em;
    }
    
    /* Property card adjustments for very small screens */
    .card-image {
        height: clamp(120px, 40vw, 160px);
    }
    .card-content {
        padding: 10px;
    }
    .card-title {
        font-size: 1.1em;
        margin-bottom: 6px;
    }
    .card-location {
        font-size: 0.8em;
        margin-bottom: 4px;
    }
    .card-price {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    .card-description {
        font-size: 0.8em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .feed-card {
        margin: 0 10px;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .card-image {
        height: 220px;
    }
    .listings-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .feed-card {
        margin: 0;
    }
}

/* Landscape mode adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .card-image {
        height: 120px;
    }
    .card-content {
        padding: 10px;
    }
    .card-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* =========================
   GLOBAL STYLES - Merged & Adjusted for App
   ========================= */
:root {
    --primary-brand-color: #6d43fc; /* Your brand purple */
    --background-dark: black; /* Your specified background */
    --background-card: #1a1a1a; /* Slightly lighter dark for cards, similar to your dashboard/property containers */
    --text-color-light: white;
    --text-color-muted: #ccc; /* Lighter grey for secondary text */
    --border-color: #6d43fc; /* Your brand purple for borders */
    --shadow-dark: rgba(0,0,0,0.5); /* Stronger shadow for dark mode */
    --header-height: 56px;
    --bottom-nav-height: 56px;
}

body {
    font-family: 'Poppins', sans-serif; /* Keep Poppins as per your previous CSS */
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--text-color-light); /* Default body text is white */
    background-color: var(--background-dark);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Heading Colors - Keep your brand purple */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-brand-color);
    font-family: 'Poppins', sans-serif; /* Ensure Poppins for all headings */
    margin: 0; /* Reset default margins for better control */
}

/* =========================
   APP LAYOUT STRUCTURE (New classes from previous turn, styled with your theme)
   ========================= */

/* App Header */
.app-header {
    background-color: var(--background-dark); /* Black header */
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 4px var(--shadow-dark); /* Darker shadow */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1.5px solid var(--primary-brand-color); /* Your purple border */
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-title-container {
    display: flex;
    align-items: center;
}

.app-logo { /* Adapted from your .logo */
    height: 65px; /* Smaller logo for app header */
    margin-right: 8px;
    max-width: 150px; /* Ensure it doesn't get too wide */
    max-height: 35px; /* From your original .logo */
}

.app-title { /* Adapted from your header h1 */
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-brand-color);
    margin: 0;
    letter-spacing: 0.05em; /* A little letter spacing for flair */
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icons .fas {
    font-size: 1.4em;
    color: var(--text-color-light); /* White icons */
    padding: 5px;
}

.header-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.header-icons a:active {
    background-color: rgba(255,255,255,0.1); /* Subtle white overlay on tap */
}

/* Main Content Area */
.app-main-content {
    padding-top: 80px;
    padding-bottom: var(--bottom-nav-height);
}

/* Search Bar Section - Integrated into app flow */
.app-search-bar-section {
    padding: 15px 15px 0;
    background-color: var(--background-dark); /* Black background */
}

.search-input-container {
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--background-dark); /* Black input background */
    border-radius: 25px;
    padding: 10px 15px;
    border: 2px solid var(--primary-brand-color); /* Your purple border */
    box-shadow: 0 1px 3px var(--shadow-dark);
}

.search-icon {
    color: var(--text-color-muted); /* Muted white for icon */
    margin-right: 10px;
    font-size: 1.1em;
}

.app-search-input { /* Merged from your .search-container input */
    width: 100%;
    max-width: 100%; /* Adjust this value to control the max width on larger screens */
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
     box-sizing: border-box;
    transition: border-color 0.3s;
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 2px 0;
    color: var(--text-color-light); /* White text */
    background-color: transparent;
}

.app-search-input::placeholder {
    color: var(--text-color-muted); /* Muted white placeholder */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-search-input:focus::placeholder {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Quick Actions Section */
.quick-actions-section {
    display: flex;
    justify-content: space-around;
    padding: 20px 15px;
    gap: 15px;
    flex-wrap: wrap;
    background-color: var(--background-dark);
}

.action-card {
    flex: 1;
    min-width: 100px;
    max-width: 160px;
    text-align: center;
    padding: 15px 10px;
    background-color: var(--background-card); /* Card background */
    border-radius: 12px;
    box-shadow: 0 2px 5px var(--shadow-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--primary-brand-color); /* Purple border */
}

.action-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.action-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color-light); /* White text */
}

.action-icon {
    font-size: 2.2em;
    color: var(--primary-brand-color); /* Purple icon */
    margin-bottom: 10px;
}

.action-card span {
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.2;
}

/* Listings Feed Section - The "Facebook-like" feed */
.listings-feed-section {
    padding: 20px 0;
    background-color: var(--background-dark);
}

.feed-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-brand-color); /* Purple title */
    margin: 0 15px 20px;
}

.feed-card-link {
    display: block;
    margin: 0 0 15px;
    text-decoration: none;
    color: inherit;
}

.feed-card { /* Adapted from your .listing */
    background-color: var(--background-card); /* Card background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-dark);
    transition: transform 0.2s ease;
    margin: 0 15px;
    border: 2px solid var(--primary-brand-color); /* Your purple border */
}

.feed-card:active {
    transform: scale(0.99);
}

.card-image { /* Adapted from your .listing img */
    width: 100%;
    height: clamp(150px, 30vw, 250px);
    object-fit: cover;
    display: block;
    margin-bottom: 0;
}

.card-content {
    padding: 15px;
}

.card-title { /* From your h1/h2 color rule, but for card title */
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary-brand-color);
}

.card-location {
    font-size: 0.9em;
    color: var(--text-color-muted); /* Muted white for location */
    margin-bottom: 5px;
    font-weight: 400;
}

.card-location i {
    margin-right: 5px;
    color: var(--primary-brand-color);
}

.card-price {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color-light); /* White price for prominence */
    margin-bottom: 10px;
}

.card-description {
    font-size: 0.85em;
    color: var(--text-color-muted); /* Muted white for description */
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom Navigation Bar */
.bottom-nav {
    background-color: var(--background-dark); /* Black bottom nav */
    height: var(--bottom-nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px var(--shadow-dark);
    z-index: 100;
    border-top: 1.5px solid var(--primary-brand-color); /* Your purple border */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-decoration: none;
    color: var(--text-color-muted); /* Muted white for inactive items */
    font-size: 0.75em;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s ease;
    height: 100%;
}

.nav-item i {
    font-size: 1.4em;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.nav-item.active,
.nav-item:active {
    color: var(--primary-brand-color); /* Purple for active/tapped items */
}

.nav-item.active i,
.nav-item:active i {
    color: var(--primary-brand-color);
}

/* =========================
   YOUR PREVIOUS CSS CLASSES - Integrated/Overridden/Retained
   ========================= */

/* GLOBAL BODY OVERRIDE (for new pages) - Retained and updated colors */
/* This ensures new pages without specific body classes maintain base styles */
body:not(.login-page):not(.signup-page):not(.profile-page):not(.list-property-page):not(.main-index-page) {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark); /* Use variable */
    color: var(--text-color-light); /* Use variable */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Apply Poppins to general h1, h2, h3 for consistency across all pages */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Your specific header styles - largely replaced by app-header for home page, but kept for other pages */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--background-dark);
    color: var(--text-color-light);
    position: fixed;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--primary-brand-color);
}
.header-left {
    display: flex;
    align-items: center;
}
.logo-title-container .logo { /* Your specific logo-title-container logo sizes */
    max-height: 60px;
    margin-right: 10px;
    max-width: 70px;
}
.logo-title-container { /* Your specific logo-title-container */
    display: flex;
    align-items: center;
    flex-direction: row;
    position: static;
    gap: 0;
}
.logo { /* Your specific .logo styles, mostly superseded by .app-logo for main home page */
    max-height: 40px;
    margin-right: 10px;
    max-height: 50px;
}
.logo-title-container h1 { /* Your specific logo-title-container h1 */
    font-size: 1.6em;
    margin: 0;
    font-weight: bold;
    font-family: Poppins, sans-serif;
}
header h1 { /* Your specific header h1 reset/override */
    margin: 0;
}
header iframe { /* Retained if you still use iframe, but not ideal for app look */
    margin-left: 20px;
}

/* Header actions & Nav menu - Hidden on main app screen by design */
.header-actions, nav ul, .below-header-search, .below-header, .button.primary, .button.secondary {
    display: none !important; /* Force hide these on the app home page */
}

/* Listings Container (from your original CSS) - Now .listings-feed-section and .feed-card */
.listings { /* This class is effectively replaced by .listings-feed-section and .feed-card */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Individual Listing (from your original CSS) - Now .feed-card */
.listing { /* This class is effectively replaced by .feed-card */
    width: 400px;
    background-color: var(--background-dark); /* Changed to your dark background */
    border: 2px solid var(--primary-brand-color); /* Changed to your purple border */
    color: var(--text-color-light); /* Changed to white text */
    padding: 20px;
    margin: 0;
    border-radius: 5px;
    box-sizing: border-box;
}

/* LISTING IMAGE - Used by .card-image now */
.listing img { /* Used by .card-image now */
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* BODY FLEX LAYOUT - Overridden by .app-body and app-main-content structure */
body { /* This general rule is superseded by the app-body specifics */
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* SEARCH CONTAINER - Replaced by .app-search-bar-section */
.search-container { /* Superseded by .app-search-bar-section */
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 80px;
}
.search-container input { /* Specific input styles moved to .app-search-input */
    background-color: var(--background-dark);
    border: 2px solid var(--primary-brand-color);
    color: var(--text-color-light);
    padding: 5px;
    font-size: 0.8em;
    border-radius: 5px;
}

/* Search input customizations */
.search-container input[type="text"]::-webkit-calendar-picker-indicator,
.search-container input[type="text"]::-webkit-inner-spin-button,
.search-container input[type="text"]::-ms-clear {
    display: none;
}

/* HERO BUTTONS & CALL TO ACTION - Replaced by .quick-actions-section */
.hero-buttons, .call-to-action, .call-to-action.secondary {
    display: none !important; /* Hide these on app home page */
}

/* FOOTER STYLES - Hidden on main app screen by design */
footer {
    display: none !important; /* Hide footer on app home page */
}

/* =========================
   RETAINED STYLES FOR OTHER PAGES (Dashboard, Login, Signup, Profile, Listing etc.)
   ========================= */

/* BRAND COLOR UTILITY - Still useful */
.brand-color {
    color: var(--primary-brand-color);
}

/* LOGIN PAGE STYLES */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
.login-form {
    border: 1px solid var(--text-color-muted);
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    background-color: var(--background-dark); /* Ensure dark background */
}
.input-group {
    margin-bottom: 15px;
}
.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-brand-color); /* Your purple */
}
.input-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--text-color-muted);
    border-radius: 5px;
    font-size: 1em;
    background-color: var(--background-dark); /* Input background */
    color: var(--text-color-light); /* Input text color */
}
.login-button {
    background-color: var(--primary-brand-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    width: 100%;
}
.login-button:hover {
    background-color: #5535b0;
}
.login-options {
    margin-top: 10px;
    text-align: center;
}
body.login-page header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--background-dark);
    color: white;
    position: relative;
    border-bottom: 1.5px solid var(--primary-brand-color);
    box-sizing: border-box;
}
body.login-page header h1 {
    margin: 0;
    color: var(--primary-brand-color);
    display: inline-block;
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 0.08em;
}
body.login-page .logo-container {
    display: flex;
    align-items: center;
}
body.login-page .logo-container h1 {
    margin: 0;
    font-size: 1.6em;
    font-family: Poppins, sans-serif;
    font-weight: bold;
}


/* ========================================================= */
/* === SIGNUP PAGE STYLES (UPDATED FOR PROFESSIONAL LOOK) === */
/* ========================================================= */
body.signup-page {
    /* Ensures content starts below fixed header, if you have one */
    padding-top: var(--header-height, 60px); 
    background-color: var(--background-dark);
    color: var(--text-color-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.signup-container {
    padding: 20px;
    max-width: 500px;
    width: 90%; /* Use percentage for better responsiveness */
    margin: 40px auto;
    text-align: center;
    background-color: var(--background-card); /* Card-like background */
    border-radius: var(--border-radius-card, 8px);
    box-shadow: 0 4px 10px var(--shadow-dark); /* Deeper shadow */
    border: 2px solid var(--primary-brand-color);
}

.signup-container h1 {
    font-size: 2em;
    color: var(--primary-brand-color);
    margin-bottom: 25px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Consistent spacing between groups */
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color-light);
}

.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="tel"],
.input-group input[type="text"],
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text-color-muted);
    border-radius: var(--border-radius-small, 5px);
    font-size: 1rem;
    background-color: transparent; /* Transparent background */
    color: var(--text-color-light);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 2px 0;
    color: var(--text-color-light); /* White text */
    background-color: transparent;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-brand-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-brand-color-rgb), 0.3);
}

.signup-form textarea {
    resize: vertical;
}

.signup-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%23ffffff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

.separator {
    text-align: center;
    color: var(--text-color-muted);
    font-weight: 600;
    margin: 10px 0;
    position: relative;
}

.separator::before,
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--text-color-muted);
}

.separator::before {
    left: 0;
}

.separator::after {
    right: 0;
}

.auth-note {
    font-size: 0.9em;
    color: var(--text-color-muted);
    margin-top: -10px;
    margin-bottom: 15px;
}

.signup-button {
    padding: 15px;
    background-color: var(--primary-brand-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-small, 5px);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup-button:hover {
    background-color: #5a36e0;
}

.signup-options {
    margin-top: 15px;
    color: var(--text-color-muted);
}

.signup-options a {
    color: var(--primary-brand-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-message {
    margin-top: 10px;
    font-weight: 500;
}

/* ========================================================= */
/* === INTL-TEL-INPUT STYLES (UPDATED FOR YOUR THEME) === */
/* ========================================================= */
.iti { width: 100%; }

.iti__flag-container { 
    height: 100%;
}

.iti__selected-flag {
    height: 100%;
    background-color: transparent !important;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.iti__country-list {
  color: var(--text-color-light);
  background-color: var(--background-dark);
  border: 1px solid var(--primary-brand-color);
  box-shadow: 0 0 10px var(--shadow-dark);
  z-index: 999;
}

.iti__country-list .iti__highlight {
  background-color: var(--primary-brand-color);
  color: var(--text-color-light);
}

.iti input[type="tel"] {
  background-color: transparent;
  color: var(--text-color-light);
  border: 1px solid var(--text-color-muted);
  padding-left: 55px;
  box-sizing: border-box;
}

/* LOGIN/SIGNUP PROMPT STYLES */
.signup-prompt {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color-muted);
}
.signup-prompt a {
    color: var(--primary-brand-color);
    text-decoration: none;
    font-weight:bold;
}
.signup-prompt a:hover {
    text-decoration: underline;
}

/* Dashboard Page Styling */
.dashboard-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}
.dashboard-container h1 {
    font-size: 2.5em;
    color: var(--primary-brand-color);
    margin-bottom: 20px;
}
.dashboard-container p {
    font-size: 1.1em;
    margin-bottom: 15px;
    max-width: 600px;
}
.dashboard-options {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}
.dashboard-button {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--primary-brand-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.dashboard-button:not(.logout-button) {
    background-color: transparent;
    color: var(--primary-brand-color);
}
.dashboard-button:not(.logout-button):hover {
    background-color: var(--primary-brand-color);
    color: var(--text-color-light);
}
.logout-button {
    background-color: var(--primary-brand-color);
    color: var(--text-color-light);
}
.logout-button:hover {
    background-color: #5a34d0;
}

/* List Property Page Styling */
.list-property-page {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}
.list-property-container {
    background-color: var(--background-dark);
    max-width: 700px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-dark);
    color: var(--text-color-light);
    text-align: center;
    border: 2px solid var(--primary-brand-color); /* Added for consistency */
}
.list-property-container h1 {
    color: var(--primary-brand-color);
    margin-bottom: 15px;
    font-size: 2.2em;
}
.list-property-container p {
    font-size: 1em;
    margin-bottom: 30px;
    color: var(--text-color-muted);
}
.property-listing-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.property-listing-form .input-group {
    text-align: left;
}
.property-listing-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-brand-color);
}
.property-listing-form input[type="text"],
.property-listing-form input[type="number"],
.property-listing-form input[type="email"],
.property-listing-form select,
.property-listing-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text-color-muted);
    border-radius: 5px;
    background-color: var(--background-dark);
    color: var(--text-color-light);
    font-size: 1em;
    box-sizing: border-box;
}
.property-listing-form input::placeholder,
.property-listing-form textarea::placeholder {
    color: var(--text-color-muted);
}
.property-listing-form input:focus,
.property-listing-form select:focus,
.property-listing-form textarea:focus {
    outline: none;
    border-color: var(--primary-brand-color);
    box-shadow: 0 0 0 2px rgba(109, 67, 252, 0.4);
}
.property-listing-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292%22%20height%3D%22292%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.191l-131.6%20129.8C152.1%20202.9%20146.1%20205.8%20139.7%20205.8c-6.4%200-12.4-2.9-16.6-8.8L-3.4%2069.191c-8.9-8.7-9.2-22.9-0.5-31.8%208.7-8.9%2022.9-9.2%2031.8-0.5L139.7%20165.7l110.8-109C254.9%2053.491%20268.9%2053.191%20277.6%2062.091c8.7%208.9%208.5%2023.1-0.6%2031.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px;
}
.property-listing-form .input-group-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}
.property-listing-form .input-group-row .half-width {
    flex: 1;
}
.submit-property-button {
    background-color: var(--primary-brand-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}
.submit-property-button:hover {
    background-color: #5a34d0;
    transform: translateY(-2px);
}

/* User Profile Page Styling */
.profile-page {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}
.profile-container {
    background-color: var(--background-dark);
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-dark);
    text-align: center;
    border: 2px solid var(--primary-brand-color); /* Added for consistency */
}
.profile-container h1 {
    color: var(--primary-brand-color);
    margin-bottom: 30px;
    font-size: 2.5em;
}
.profile-picture-section {
    margin-bottom: 30px;
}
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-brand-color);
    margin-bottom: 15px;
}
.change-picture-button {
    background-color: transparent;
    color: var(--primary-brand-color);
    border: 1px solid var(--primary-brand-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.change-picture-button:hover {
    background-color: var(--primary-brand-color);
    color: var(--text-color-light);
}
.profile-info-section {
    background-color: var(--background-card); /* Consistent lighter dark for info block */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: left;
}
.profile-info-section .info-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.profile-info-section .info-group label {
    font-weight: bold;
    color: var(--primary-brand-color);
    width: 120px;
    flex-shrink: 0;
}
.profile-info-section .info-group p {
    margin: 0;
    color: var(--text-color-muted);
    flex-grow: 1;
}
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.profile-action-button {
    display: block;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background-color: transparent;
    color: var(--primary-brand-color);
    border: 2px solid var(--primary-brand-color);
}
.profile-action-button:hover {
    background-color: var(--primary-brand-color);
    color: white;
}
.profile-action-button.logout-button {
    border-color: #cc0000;
    color: #cc0000;
}
.profile-action-button.logout-button:hover {
    background-color: #cc0000;
    color: white;
}

/* PROPERTY DETAILS PAGE STYLES */
.main-content.property-details-page {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 20px auto;
    background-color: var(--background-dark);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-dark);
    color: var(--text-color-light);
}
.property-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.property-image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.property-header h1 {
    color: var(--primary-brand-color);
    margin: 0;
    font-size: 2.2em;
    flex: 1;
    min-width: 250px;
}
.property-price {
    background-color: var(--primary-brand-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 20px;
    white-space: nowrap;
}
.property-location {
    color: var(--text-color-muted);
    font-size: 1.1em;
    margin-top: 5px;
    width: 100%;
}
.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--primary-brand-color);
    border-bottom: 1px solid var(--primary-brand-color);
}
.feature-item {
    display: flex;
    align-items: center;
    color: var(--text-color-light);
    font-size: 1em;
}
.feature-item i {
    color: var(--primary-brand-color);
    margin-right: 10px;
    font-size: 1.2em;
}
.property-description h2 {
    color: var(--primary-brand-color);
    margin-top: 0;
    font-size: 1.8em;
}
.property-description p {
    color: var(--text-color-light);
    line-height: 1.8;
    margin-bottom: 20px;
}
.owner-contact {
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid var(--primary-brand-color);
}
.owner-contact h2 {
    color: var(--primary-brand-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}
.owner-contact .chat-button {
    background-color: var(--primary-brand-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}
.owner-contact .chat-button:hover {
    background-color: #5a36e0;
}

/* --- APP LAYOUT STRUCTURE adjustments for Detail Pages --- */

/* Specific header style for detail pages (reusing app-header for consistency) */
.app-header.detail-page-header {
    justify-content: flex-start; /* Align items to the start */
    padding-left: 15px; /* Consistent padding */
    gap: 15px; /* Space between back button and title */
}

.app-header.detail-page-header .header-content-wrapper {
    justify-content: flex-start; /* Ensure wrapper content aligns left */
    gap: 15px; /* Space between elements */
}

.back-button {
    color: var(--text-color-light); /* White color for the icon */
    font-size: 1.4em; /* Match header icon size */
    padding: 5px; /* Padding for touch target */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Make it a square touch target */
    height: 40px;
    border-radius: 50%; /* Optional: make it circular */
    transition: background-color 0.2s ease;
}

.back-button:active {
    background-color: rgba(255,255,255,0.1); /* Subtle white overlay on tap */
}

.app-header.detail-page-header .app-title {
    flex-grow: 1; /* Allow title to take remaining space */
    text-align: left; /* Ensure title is left-aligned */
    font-size: 1.3em; /* Slightly smaller for detail page header */
    margin: 0; /* Reset margins */
}

/* Ensure the main content pushes down from fixed header */
.main-content.property-details-page {
    padding-top: calc(var(--header-height) + 20px); /* Adjust padding to clear fixed header + some margin */
    /* Other existing styles for this class */
}

/* Hide the main website header/nav/footer if it's not the app's home page */
/* This ensures only the app-header.detail-page-header is visible */
body:not(.main-index-page) > header:not(.app-header) {
    display: none !important;
}

body:not(.main-index-page) > footer {
    display: none !important;
}

/* Add or ensure property-details-page has appropriate padding-bottom if needed */
/* Example: */
.main-content.property-details-page {
    padding-bottom: 40px; /* Ensure space at the bottom */
}

/* Also, ensure your existing .property-details-page styles are robust */
.main-content.property-details-page {
    max-width: 800px; /* Example max width for content */
    margin: 20px auto; /* Center content */
    background-color: var(--background-dark);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-dark);
    color: var(--text-color-light);
    /* Existing padding-top adjusted above */
    padding-left: 15px; /* Add horizontal padding for mobile */
    padding-right: 15px; /* Add horizontal padding for mobile */
    box-sizing: border-box; /* Include padding in width */
}

/* Adjust property-header for mobile layout */
.property-header {
    flex-direction: column; /* Stack title, price, location vertically */
    align-items: flex-start; /* Align to the left */
    gap: 5px; /* Smaller gap between elements */
}

.property-header h1 {
    font-size: 1.8em; /* Slightly smaller for mobile */
}

.property-price {
    margin-left: 0; /* Remove left margin from previous design */
    margin-top: 10px; /* Add some top margin */
    width: fit-content; /* Adjust width to content */
}

/* Adjust feature items for mobile wrap */
.property-features {
    gap: 10px; /* Smaller gap */
    padding: 15px 0; /* Adjust padding */
}

.feature-item {
    font-size: 0.9em; /* Smaller text */
}

/* Ensure images scale correctly */
.property-image-gallery img {
    height: 180px; /* Slightly shorter images for mobile gallery */
    border-radius: 4px; /* Slightly smaller border radius */
}
/* CHAT PAGE STYLES */
.main-content.chat-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    max-width: 800px;
    margin: 20px auto;
    background-color: var(--background-dark);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-dark);
    overflow: hidden;
}
.chat-header {
    background-color: var(--background-dark);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--primary-brand-color);
}
.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid var(--primary-brand-color);
}
.chat-header h2 {
    margin: 0;
    color: var(--primary-brand-color);
    font-size: 1.5em;
}
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    color: var(--text-color-light);
}
.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    word-wrap: break-word;
}
.message-bubble.sent {
    background-color: var(--primary-brand-color);
    color: white;
    align-self: flex-end;
}
.message-bubble.received {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    align-self: flex-start;
}
.message-bubble .timestamp {
    font-size: 0.75em;
    color: var(--text-color-muted);
    margin-top: 5px;
    display: block;
    text-align: right;
}
.message-bubble.received .timestamp {
    text-align: left;
}
.chat-input-area {
    background-color: var(--background-dark);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--primary-brand-color);
    transition: var(--background-color)0.2s;
}
.chat-input-area input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid var(--primary-brand-color);
    border-radius: 25px;
    background-color: var(--background-dark);
    color: var(--text-color-light);
    font-size: 1em;
    margin-right: 10px;
    outline: none;
}
.chat-input-area button {
    background-color: var(--primary-brand-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}
.chat-input-area button:hover {
    background-color: #5a36e0;
}

/* POP-UP STYLES */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}
.popup-overlay.hidden { opacity: 0; visibility: hidden; }
.popup-content {
    background-color: var(--background-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 2px solid var(--primary-brand-color);
    color: var(--text-color-light);
}
.popup-content h2 {
    color: var(--primary-brand-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}
.popup-content p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--text-color-light);
}
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.action-button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.primary-button {
    background-color: var(--primary-brand-color);
    color: white;
    border: 2px solid var(--primary-brand-color);
}
.primary-button:hover { background-color: #5a36e0; border-color: #5a36e0; }
.secondary-button {
    background-color: transparent;
    color: var(--primary-brand-color);
    border: 2px solid var(--primary-brand-color);
}
.secondary-button:hover { background-color: var(--primary-brand-color); color: white; }

/* Responsive adjustments for extremely small devices (e.g., iPhone SE) */
@media (max-width: 600px) {
    .app-title {
        font-size: 1.5em;
    }
    .app-logo {
        height: 30px;
    }
    .header-icons .fas {
        font-size: 1.3em;
    }
    .action-card {
        min-width: 90px;
        padding: 12px 8px;
    }
    .action-icon {
        font-size: 2em;
    }
    .action-card span {
        font-size: 0.8em;
    }
    .card-image {
        height: clamp(140px, 35vw, 200px);
    }
    .card-title {
        font-size: 1.2em;
    }
    .card-price {
        font-size: 1em;
    }
    .card-content {
        padding: 12px;
    }
    .card-location, .card-description {
        font-size: 0.85em;
    }
    .nav-item {
        font-size: 0.7em;
    }
    .nav-item i {
        font-size: 1.3em;
    }
}

/* =========================
   HOMEOWNER PROFILE / DASHBOARD STYLES
   ========================= */

/* General body adjustments for homeowner page (if not already globally set) */
/* Ensure these don't conflict with your main body rules for the app */
body.homeowner-page { /* Add this class to your body tag: <body class="homeowner-page"> */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Other body styles should be handled by your global body rules */
}

/* Main content container for homeowner profile */
.homeowner-profile-container {
    flex-grow: 1;
    background-color: var(--background-dark); /* Using your variable */
    padding: 20px 15px; /* Adjusted padding for mobile */
    margin: 15px auto; /* Adjusted margin for mobile */
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-dark); /* Using your variable */
    border: 2px solid var(--primary-brand-color); /* Add a border for consistency */
    box-sizing: border-box; /* Include padding in width */
}

.homeowner-profile-container h1 {
    color: var(--primary-brand-color); /* Using your variable */
    text-align: center;
    margin-bottom: 25px; /* Adjusted margin */
    font-size: 1.8em; /* Adjusted font size for mobile */
}

.homeowner-profile-container h2 {
    color: var(--primary-brand-color); /* Using your variable */
    margin-top: 30px; /* Adjusted margin */
    margin-bottom: 15px; /* Adjusted margin */
    font-size: 1.5em; /* Adjusted font size for mobile */
    border-bottom: 2px solid var(--primary-brand-color); /* Using your variable */
    padding-bottom: 8px; /* Adjusted padding */
}

/* Styling for sections within the profile */
.profile-section {
    margin-bottom: 25px; /* Adjusted margin */
}

.profile-section p, .profile-section ul {
    font-size: 0.95em; /* Adjusted font size */
    line-height: 1.6;
    margin-bottom: 12px; /* Adjusted margin */
    color: var(--text-color-muted); /* Muted text for general info */
}

.profile-section ul {
    list-style: none;
    padding-left: 0;
}

.profile-section ul li {
    background-color: var(--background-card); /* Using your variable for card-like background */
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-brand-color); /* Using your variable */
    color: var(--text-color-light); /* Ensure text in list items is light */
}

.profile-section ul li strong {
    color: var(--primary-brand-color); /* Highlight strong text */
    font-size: 1.05em;
    display: block; /* Make it a block for better spacing */
    margin-bottom: 5px;
}

/* Styling for action links within list items */
.profile-section ul li a.profile-action-link {
    display: inline-block; /* Allow links to be side-by-side */
    margin-right: 10px;
    color: var(--primary-brand-color); /* Purple links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.9em;
}

.profile-section ul li a.profile-action-link:hover {
    color: #5535b0; /* Slightly darker purple on hover */
    text-decoration: underline;
}

.profile-section ul li a.profile-action-link.delete-action {
    color: #cc0000; /* Red for delete actions */
}

.profile-section ul li a.profile-action-link.delete-action:hover {
    color: #a00000;
}

/* Ensure buttons at the bottom of sections are styled */
.profile-section .action-button {
    margin-top: 15px; /* Space above buttons */
    width: 100%; /* Full width for mobile */
    max-width: 300px; /* Optional: limit max-width for better appearance */
    display: block; /* Make them block-level to stack */
    margin-left: auto; /* Center block buttons */
    margin-right: auto;
}

/* Small adjustments for very small screens */
@media (max-width: 375px) {
    .homeowner-profile-container {
        padding: 15px 10px;
        margin: 10px auto;
    }

    .homeowner-profile-container h1 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .homeowner-profile-container h2 {
        font-size: 1.3em;
        margin-top: 25px;
    }

    .profile-section ul li {
        padding: 12px;
    }
}

/* =========================
   PROFILE PAGE STYLES
   ========================= */

/* Body class for specific page adjustments */
body.profile-page {
    /* Ensures content starts below fixed header, assuming --header-height is defined */
    padding-top: var(--header-height); 
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

/* Main profile content container */
.profile-container {
    padding: 20px 15px; /* Ample padding for mobile screens */
    margin: 15px auto; /* Center the container with some margin */
    max-width: 600px; /* Max width for readability on larger phones/tablets */
    background-color: var(--background-dark); /* Match background */
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-dark); /* Deeper shadow */
    border: 2px solid var(--primary-brand-color); /* Add a subtle brand border */
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.profile-container h1 {
    color: var(--primary-brand-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em; /* Mobile-friendly heading size */
}

/* Profile Picture Section */
.profile-picture-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures image fills the circle without distortion */
    border: 3px solid var(--primary-brand-color);
    margin-bottom: 15px;
    display: block; /* Ensures it takes up its own line and centers easily */
    margin-left: auto;
    margin-right: auto;
}

.change-picture-button {
    /* Uses existing action-button and secondary-button styles */
    font-size: 0.9em;
    padding: 8px 15px;
    max-width: 180px; /* Smaller button specific to this context */
    display: block;
    margin: 0 auto; /* Center button horizontally */
}

/* User Info Sections */
.user-info-section {
    background-color: var(--background-card); /* Slightly lighter background for info sections */
    padding: 20px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-brand-color);
    text-align: left;
    transition: border-left-color 0.3s ease;
}
.user-info-section:hover {
    border-left: 5px solid #9b7bff; /* Brighter color on hover */
}

.info-group {
    display: flex;
    justify-content: space-between; /* Spreads label and text across the width */
    align-items: baseline; /* Aligns content based on text baseline */
    margin-bottom: 12px;
    flex-wrap: wrap; /* Allows content to wrap to the next line on very small screens */
}

.info-group label {
    font-weight: 500;
    color: var(--primary-brand-color); /* Labels in brand color */
    margin-right: 10px;
    flex-shrink: 0; /* Prevents the label from shrinking on small screens */
}

.info-group p {
    color: var(--text-color-light);
    flex-grow: 1; /* Allows the text content to take up available space */
    text-align: right; /* Aligns the text content to the right */
    margin: 0; /* Remove default paragraph margin */
    font-size: 1em;
}

/* Profile Actions Section (buttons like "Edit Profile", "Log Out") */
.profile-actions {
    display: flex;
    flex-direction: column; /* Stacks buttons vertically */
    gap: 15px; /* Space between the stacked buttons */
}

.profile-action-button {
    /* These buttons will inherit styles from action-button and primary/secondary-button */
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block; /* Ensures they are block-level to stack correctly */
    box-sizing: border-box;
    font-size: 1em;
}

/* Custom Toggle Switch for Availability */
.availability-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Puts label on left, toggle on right */
    font-size: 1em;
    color: var(--text-color-light);
    cursor: pointer;
}

.availability-toggle input[type="checkbox"] {
    position: absolute; /* Hide the actual checkbox */
    opacity: 0;
    width: 0;
    height: 0;
}

/* The visual slider part of the toggle */
.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: var(--background-input); /* Off state background color */
    border-radius: 26px; /* Pill shape */
    transition: background-color 0.4s;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%; /* Circle shape for the thumb */
    background-color: var(--text-color-muted); /* Thumb color in off state */
    top: 2px;
    left: 2px;
    transition: transform 0.4s;
}

/* When the checkbox is checked (toggle is ON) */
.availability-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--primary-brand-color); /* On state background color */
}

.availability-toggle input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(24px); /* Move thumb to the right for ON state */
    background-color: var(--text-color-light); /* Thumb color in on state */
}

/* Utility class to hide elements */
.hidden {
    display: none;
}

/* Responsive adjustments for very small screens */
@media (max-width: 375px) {
    .profile-container {
        padding: 15px 10px;
        margin: 10px auto;
    }

    .profile-container h1 {
        font-size: 1.6em;
    }

    .profile-picture {
        width: 100px;
        height: 100px;
    }

    .change-picture-button,
    .profile-action-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .info-group label,
    .info-group p {
        font-size: 0.9em;
    }
}

.profile-picture-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.favorites-button {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.2s ease-in-out;
}

.favorites-button:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* =========================
   SIGNUP PAGE STYLES - REFINED FOR YOUR BRAND
   ========================= */

/* Main container for the form */
.form-container {
    background-color: var(--background-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-dark);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    border: 2px solid var(--primary-brand-color);
    margin: 20px auto;
}

h1 {
    text-align: center;
    color: var(--primary-brand-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-brand-color);
    outline: none;
    box-shadow: 0 0 3px rgba(109, 67, 252, 0.3);
}

/* Global button styles - exclude icon buttons */
button:not(.back-button-icon):not([class*="icon"]) {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color-light);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 1rem;
}

#toggle-button {
    background-color: #555;
    margin-bottom: 1rem;
}

#toggle-button:hover {
    background-color: #444;
    transform: translateY(-2px);
}

#submit-button {
    background-color: var(--primary-brand-color);
}

#submit-button:hover {
    background-color: #5535b0;
    transform: translateY(-2px);
}

#message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.login-link a {
    color: var(--primary-brand-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.radio-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
    margin-top: 0.5rem;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    color: var(--text-color-muted);
}

.radio-group input[type="radio"]:checked + label {
    background-color: var(--primary-brand-color);
    color: var(--text-color-light);
    font-weight: 600;
}

.radio-group label:hover {
    background-color: #2a2a2a;
}

#verify-button {
    background-color: #6d43fc; 
    color: white;             
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

#next-button {
    background-color: #6d43fc;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}


.profile-photo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #6d43fc; /* Changed to your brand purple */
    display: flex;
    align-items: center;
    justify-content: center;
}

:root {
    --primary-color: #FFC107; /* A bright, energetic yellow */
    --secondary-color: #2196F3; /* A trustworthy and reliable blue */
    --tertiary-color: #607D8B; /* A neutral gray for accents */
    --background-color: #f0f2f5;
    --text-color: #333;
    --card-background: #fff;
    --border-color: #ddd;
}
/* WhereUpay Page Styles */
.payment-page .app-title {
    color: var(--secondary-color); /* The blue for the brand name */
    font-weight: bold;
}

.payment-summary-section {
    text-align: center;
    margin-bottom: 25px;
}

.ride-summary-card {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

.ride-summary-card h2 {
    font-size: 2.5rem;
    margin: 10px 0 0;
}

.payment-methods-section h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 15px;
}

.payment-methods-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.payment-method-card {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 150px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.payment-method-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.payment-method-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.payment-form-section {
    background: var(--card-background);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* New button styles using the variables */
.primary-button {
    background-color: (--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-button:hover { background-color:#5a34d0; }; /* Darker shade of primary color on hover */

/* Styling for the hidden elements and image previews */
.hidden {
    display: none;
}

.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-previews img {
    width: 100px; /* Or whatever size you prefer */
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Purple button styling */
.purple-button {
    background-color: #6d43fc; /* A shade of purple */
    color: white;
    border: none;
}

.purple-button:hover {
    background-color: #5a36e0; /* A darker purple for the hover effect */
}

/* =========================
   GLOBAL STYLES - Merged & Adjusted for App
   ========================= */
:root {
    --primary-brand-color: #6d43fc; /* Your brand purple */
    --background-dark: black; /* Your specified background */
    --background-card: #1a1a1a; /* Slightly lighter dark for cards, similar to your dashboard/property containers */
    --text-color-light: white;
    --text-color-muted: #ccc; /* Lighter grey for secondary text */
    --border-color: #6d43fc; /* Your brand purple for borders */
    --shadow-dark: rgba(0,0,0,0.5); /* Stronger shadow for dark mode */
    --header-height: 56px;
    --bottom-nav-height: 56px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--text-color-light);
    background-color: var(--background-dark);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Heading Colors - Keep your brand purple */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-brand-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: var(--background-dark);
    border-top: 1px solid var(--primary-brand-color);
    box-shadow: 0 -2px 5px var(--shadow-dark);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-muted);
    font-size: 0.75rem;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.plus-button i {
    background-color: var(--primary-brand-color);
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 2rem;
    position: relative;
    top: -20px;
    box-shadow: 0 -4px 6px var(--shadow-dark);
}

/* --- Main Content Sections --- */
.app-main-content {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: var(--bottom-nav-height);
    padding-left: 20px;
    padding-right: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.app-search-bar-section {
    margin-bottom: 20px;
}



.quick-actions-section {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 25px;
}

.action-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--shadow-dark, 0 4px 6px rgba(0, 0, 0, 0.1));
    text-align: center;
    flex: 1;
    padding: 15px 10px;
    transition: transform 0.2s;
    border: 1px solid var(--primary-brand-color);
}

.action-card:hover {
    transform: translateY(-5px);
}



.action-icon {
    font-size: 2rem;
    color: var(--primary-brand-color);
    margin-bottom: 8px;
}

.action-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

.listings-feed-section {
    margin-bottom: 20px;
}

.feed-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-brand-color);
}

.listings-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.property-card {
    background-color: var(--background-card);
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--shadow-dark, 0 4px 6px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-color-light);
    border: 2px solid var(--primary-brand-color);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.property-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.property-info {
    padding: 10px;
}

.property-title {
    font-size: 1rem;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--primary-brand-color);
}

.property-location, .property-price {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin: 0;
}

.property-location i {
    margin-right: 5px;
}

.empty-state {
    text-align: center;
    color: var(--text-color-muted);
    margin-top: 50px;
    line-height: 1.5;
}

.empty-state strong {
    color: var(--primary-brand-color);
}

/* --- Property Details Page --- */
.detail-page-header {
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--primary-brand-color);
    padding: 15px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-dark);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.back-button {
    font-size: 1.5rem;
    color: var(--text-color-light);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.back-button:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.details-page-body {
    background-color: var(--background-dark);
}

.details-info-block {
    padding: 20px;
}

.details-title {
    font-size: 1.5rem;
    margin: 10px 0 0;
    color: var(--primary-brand-color);
}

.details-price {
    font-size: 1.2rem;
    color: var(--text-color-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.details-location {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 15px;
}

.details-section-title {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--primary-brand-color);
    padding-bottom: 5px;
    color: var(--primary-brand-color);
}

.details-description {
    line-height: 1.6;
    color: var(--text-color-light);
}

.details-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.details-features li {
    background-color: var(--background-card);
    padding: 8px 12px;
    border-radius: 20px;
    color: var(--text-color-muted);
    font-size: 0.9rem;
    border: 1px solid var(--primary-brand-color);
}

.details-features i {
    margin-right: 8px;
    color: var(--primary-brand-color);
}

.owner-contact {
    padding: 20px;
    background-color: var(--background-dark);
    border-top: 1px solid var(--primary-brand-color);
    text-align: center;
}

.chat-button {
    background-color: var(--primary-brand-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.chat-button:hover {
    background-color: #5535b0;
}

/* --- Image Gallery with Tabs --- */
.image-gallery-container {
    margin-bottom: 20px;
    padding-top: calc(var(--header-height) + 20px);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-button {
    background-color: var(--background-dark);
    color: var(--text-color-muted);
    border: 1px solid var(--primary-brand-color);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button.active {
    background-color: var(--primary-brand-color);
    color: white;
    border-color: var(--primary-brand-color);
}

.tab-button:hover:not(.active) {
    background-color: #1a1a1a;
}

/* ---- Image Carousel Styling ---- */
.image-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.image-carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.carousel-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* =========================
   PROPERTY DETAILS PAGE - RESPONSIVENESS FIXES
   ========================= */

.main-content.property-details-page {
    padding: 20px;
    max-width: 900px;
    margin: 20px auto;
    background-color: var(--background-dark);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-dark);
    color: var(--text-color-light);
    box-sizing: border-box;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Allows elements to wrap on small screens */
    margin-bottom: 20px;
}

.property-header h1 {
    color: var(--primary-brand-color);
    margin: 0;
    font-size: 2.2em;
    flex: 1;
    min-width: 250px;
}

.property-price {
    background-color: var(--primary-brand-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 20px;
    white-space: nowrap;
}

.property-location {
    color: var(--text-color-muted);
    font-size: 1.1em;
    margin-top: 5px;
    width: 100%; /* Ensures location is on its own line */
}

.property-features {
    display: flex;
    flex-wrap: wrap; /* Allows features to wrap on smaller screens */
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--primary-brand-color);
    border-bottom: 1px solid var(--primary-brand-color);
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--text-color-light);
    font-size: 1em;
}

.feature-item i {
    color: var(--primary-brand-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.property-description h2 {
    color: var(--primary-brand-color);
    margin-top: 0;
    font-size: 1.8em;
}

.property-description p {
    color: var(--text-color-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.owner-contact {
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid var(--primary-brand-color);
}

.owner-contact h2 {
    color: var(--primary-brand-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

.owner-contact .chat-button {
    background-color: var(--primary-brand-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.owner-contact .chat-button:hover {
    background-color: #5a36e0;
}

/* MEDIA QUERIES for responsiveness */

@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .property-price {
        margin-left: 0;
        margin-top: 10px;
    }

    .property-image-gallery {
        grid-template-columns: 1fr; /* Stacks images in a single column */
    }

    .property-image-gallery img {
        height: 250px; /* Adjust image height for better mobile view */
    }

    .property-features {
        flex-direction: column; /* Stacks features vertically */
        gap: 10px;
    }

    .feature-item {
        font-size: 0.9em;
    }
}

/* =========================
   FIND FRIENDS PAGE STYLES
   ========================= */
.friends-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.friend-card {
    display: flex;
    align-items: center;
    background-color: var(--background-card);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-dark);
    border: 2px solid var(--primary-brand-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.friend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-dark);
}

.friend-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-brand-color);
}

.friend-info {
    flex-grow: 1;
}

.friend-name {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color-light);
    margin: 0;
}

.friend-location {
    font-size: 0.9em;
    color: var(--text-color-muted);
    margin: 0;
}

.add-friend-button {
    padding: 8px 15px;
    font-size: 0.9em;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.popup-content {
    background-color: var(--background-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 2px solid var(--primary-brand-color);
    color: var(--text-color-light);
    position: relative;
}

.close-popup-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-color-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-popup-button:hover {
    color: var(--primary-brand-color);
}

.profile-bio {
    font-size: 0.9em;
    color: var(--text-color-muted);
    margin-top: 10px;
}

/* =========================
   PROPERTY SEARCH FILTERS
   ========================= */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background-color: var(--background-card);
    border-radius: var(--border-radius);
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-group {
    flex: 1 1 200px;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color-muted);
    font-size: 0.9em;
}

.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: var(--border-radius-small);
    background-color: #2a2a2a;
    color: var(--text-color-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-brand-color);
    box-shadow: 0 0 0 2px rgba(109, 67, 252, 0.2);
}

/* Style for select dropdown arrow */
.filter-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield; /* Standard property for compatibility */
}

.filter-input[type="number"]::-webkit-outer-spin-button,
.filter-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none; /* Standard property for compatibility */
    margin: 0;
}

/* Price range specific styles */
.price-range {
    display: flex;
    flex-direction: column;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
}

.price-inputs span {
    color: var(--text-color-muted);
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters-container {
        gap: 10px;
        padding: 10px;
    }
    
    .filter-group {
        flex: 1 1 100%;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 5px;
    }
    
    .price-inputs input {
        width: 100%;
    }
}

/* =========================
   THE AYA SEAL — ROYAL PURPLE VERIFIED BADGE
   ========================= */

.aya-seal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6d43fc 0%, #9b7bff 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(109, 67, 252, 0.45);
    text-transform: uppercase;
    white-space: nowrap;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    animation: aya-seal-glow 2.5s ease-in-out infinite alternate;
}

.aya-seal-badge i {
    font-size: 0.85rem;
}

.aya-seal-badge .trust-score {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.65rem;
    margin-left: 4px;
}

@keyframes aya-seal-glow {
    0% {
        box-shadow: 0 2px 8px rgba(109, 67, 252, 0.45);
    }
    100% {
        box-shadow: 0 2px 16px rgba(109, 67, 252, 0.75), 0 0 4px rgba(155, 123, 255, 0.5);
    }
}

/* Badge on property card image */
.feed-card .aya-seal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

/* Badge on property detail page */
.property-aya-seal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6d43fc 0%, #9b7bff 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-radius: 24px;
    box-shadow: 0 3px 12px rgba(109, 67, 252, 0.5);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.property-aya-seal i {
    font-size: 1rem;
}

.property-aya-seal .trust-score {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.7rem;
    margin-left: 6px;
}

/* =========================
   UNLOCK CHAT — PURPLE BUTTON WITH PADLOCK
   ========================= */

.unlock-chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6d43fc 0%, #8b6aff 100%);
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(109, 67, 252, 0.35);
}

.unlock-chat-button:hover {
    background: linear-gradient(135deg, #5a36e0 0%, #7a55f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(109, 67, 252, 0.5);
}

.unlock-chat-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(109, 67, 252, 0.3);
}

.unlock-chat-button i {
    font-size: 1.2em;
}

/* =========================
   SECURE CHAT — GREEN 'UNLOCKED' BUTTON
   ========================= */

.secure-chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00b33c 0%, #009933 100%);
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 179, 60, 0.35);
}

.secure-chat-button:hover {
    background: linear-gradient(135deg, #009933 0%, #00802b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 179, 60, 0.5);
}

.secure-chat-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 179, 60, 0.3);
}

/* Reveal Animation for Secure Chat Button */
@keyframes secure-chat-reveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
        box-shadow: 0 0 0 rgba(0, 179, 60, 0);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 12px rgba(0, 179, 60, 0.35);
    }
}

/* =========================
   THE AYA HANDSHAKE MODAL
   ========================= */

.aya-handshake-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(4px);
}

.aya-handshake-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.aya-handshake-modal {
    background: linear-gradient(145deg, #121212, #1a1a2e);
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    border: 2px solid var(--primary-brand-color);
    box-shadow: 0 12px 48px rgba(109, 67, 252, 0.5);
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.aya-handshake-overlay.show .aya-handshake-modal {
    transform: scale(1) translateY(0);
}

.aya-handshake-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px 18px;
    border-bottom: 1px solid rgba(109, 67, 252, 0.35);
    background: linear-gradient(135deg, rgba(109, 67, 252, 0.15), transparent);
}

.aya-handshake-header h3 {
    color: var(--primary-brand-color);
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.aya-handshake-header h3 i {
    font-size: 1.6rem;
    color: #9b7bff;
    text-shadow: 0 0 10px rgba(109, 67, 252, 0.6);
}

.aya-handshake-close {
    background: rgba(109, 67, 252, 0.15);
    border: none;
    color: var(--text-color-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aya-handshake-close:hover {
    background: rgba(109, 67, 252, 0.3);
    color: var(--text-color-light);
    transform: rotate(90deg);
}

.aya-handshake-body {
    padding: 26px;
    text-align: center;
}

.aya-handshake-body .shield-icon {
    font-size: 3.4rem;
    color: var(--primary-brand-color);
    margin-bottom: 18px;
    animation: aya-shield-pulse 2.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(109, 67, 252, 0.7);
}

@keyframes aya-shield-pulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(109, 67, 252, 0.7);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(109, 67, 252, 0.9);
    }
}

.aya-handshake-body h4 {
    color: var(--text-color-light);
    font-size: 1.2rem;
    margin: 0 0 14px;
    font-weight: 600;
}

.aya-handshake-body p {
    color: var(--text-color-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 26px;
}

.handshake-property-echo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(109, 67, 252, 0.12);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(109, 67, 252, 0.25);
}

.handshake-echo-label {
    color: var(--primary-brand-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.handshake-echo-title {
    color: var(--text-color-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.aya-handshake-body .price-tag {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-brand-color), #9b7bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 26px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.aya-handshake-body .price-tag span {
    font-size: 1rem;
    -webkit-text-fill-color: var(--text-color-muted);
    font-weight: 400;
}

.momo-pay-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-brand-color) 0%, #5a36e0 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(109, 67, 252, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.momo-pay-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a36e0 0%, #4a2ac0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(109, 67, 252, 0.6);
}

.momo-pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.aya-handshake-footer {
    padding: 18px 26px;
    border-top: 1px solid rgba(109, 67, 252, 0.25);
    text-align: center;
    background: rgba(109, 67, 252, 0.08);
}

.aya-handshake-footer p {
    font-size: 0.8rem;
    color: var(--text-color-muted);
    margin: 0;
}

.aya-handshake-footer p i {
    color: var(--primary-brand-color);
    margin-right: 6px;
}

/* MoMo Input Section Styles */
.momo-input-section {
    margin-top: 22px;
    animation: slideUp 0.35s ease-out;
}

.momo-input-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-light);
    margin-bottom: 10px;
    text-align: left;
}

.momo-number-input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(109, 67, 252, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.momo-number-input:focus {
    outline: none;
    border-color: var(--primary-brand-color);
    box-shadow: 0 0 0 4px rgba(109, 67, 252, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.momo-number-input::placeholder {
    color: #888;
}

.momo-hint {
    font-size: 0.8rem;
    color: var(--text-color-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* Handshake Status */
.handshake-status {
    margin-top: 14px;
    font-size: 0.9rem;
}

/* MoMo Polling State */
.momo-polling-state {
    margin-top: 22px;
    text-align: center;
    animation: slideUp 0.35s ease-out;
}

.polling-icon {
    font-size: 3.2rem;
    color: var(--primary-brand-color);
    margin-bottom: 16px;
    animation: pulse 2s infinite;
    text-shadow: 0 0 20px rgba(109, 67, 252, 0.7);
}

.momo-polling-state h4 {
    font-size: 1.15rem;
    color: var(--text-color-light);
    margin-bottom: 10px;
}

.momo-polling-state p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.polling-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    padding: 14px;
    background: rgba(109, 67, 252, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(109, 67, 252, 0.2);
}

.polling-spinner i {
    color: var(--primary-brand-color);
    font-size: 1.3rem;
    animation: spin 1.5s linear infinite;
}

.polling-spinner span {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}