/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    position: relative; /* Needed for the menu slide */
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-top: 1px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}
/* --- STICKY HEADER --- */
.main-header {
    position: sticky; /* Makes the header stick */
    top: 0;           /* Sticks it to the very top of the viewport */
    width: 100%;
    z-index: 990;     /* Ensures it stays on top of other content */
}
/* Mobile Menu: Hidden by default */
.mobile-menu-trigger {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: block; /* Show on mobile */
}
.nav-desktop {
    display: none; /* Hide on mobile */
}

/* Styles for the slide-in menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateX(100%); /* Initially off-screen to the right */
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.mobile-menu.is-open {
    transform: translateX(0); /* Slides in */
}
.mobile-menu a {
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-size: 18px;
}
.mobile-menu-close {
    align-self: flex-end;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Overlay for behind the menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.overlay.is-active {
    opacity: 1;
    visibility: visible;
}


/* Media Query for Desktop (Responsive Design) */
@media (min-width: 768px) {
    .mobile-menu-trigger, .mobile-menu {
        display: none; /* Hide mobile elements on desktop */
    }
    .nav-desktop {
        display: flex; /* Show desktop nav */
        gap: 20px;
    }
}
/* --- Property Grid Styles --- */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.property-grid {
    display: grid;
    /* This creates a responsive grid that fits as many columns as possible */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.property-card a {
    text-decoration: none;
    color: #333;
}

.property-card .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    display: block;
}

.property-card .card-content {
    padding: 15px;
}

.property-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    /* Truncate long titles */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-card .location {
    color: #666;
    margin-bottom: 15px;
}

.property-card .price {
    font-size: 1.3em;
    font-weight: bold;
    color: #0056b3;
}

.property-card .price .period {
    font-size: 0.7em;
    font-weight: normal;
    color: #555;
}
/* --- Property Details Page Styles --- */
.property-details-layout {
    display: flex;
    flex-wrap: wrap; /* Allows sidebar to wrap on smaller screens */
    gap: 30px;
}

.details-main {
    flex: 3; /* Takes up 3/4 of the space */
    min-width: 300px;
}

.details-sidebar {
    flex: 1; /* Takes up 1/4 of the space */
    min-width: 280px;
}

.gallery .main-image img {
    width: 100%;
    border-radius: 8px;
    height: auto;
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.features-list li {
    background: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
}

/* Booking Box Styles */
.booking-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky; /* Makes the box stay in view on scroll */
    top: 20px;
}

.price-display {
    margin-bottom: 20px;
    text-align: center;
}
.price-display .label {
    display: block;
    font-size: 1em;
    color: #666;
}
.price-display .amount {
    display: block;
    font-size: 2.2em;
    font-weight: bold;
    color: #0056b3;
}
.price-display .period {
    font-size: 1em;
    font-weight: normal;
    color: #555;
}

.booking-box .btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}
.btn-primary { background-color: #007bff; color: white; }
.btn-primary:hover { background-color: #0056b3; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-secondary:hover { background-color: #5a6268; }
.btn .btn-price { font-weight: normal; opacity: 0.9; }

.booking-box .disclaimer {
    font-size: 0.8em;
    text-align: center;
    color: #888;
}

.owner-info {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

/* Responsive adjustments for the details page */
@media (max-width: 768px) {
    .property-details-layout {
        flex-direction: column;
    }
}
/* --- Homepage Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?auto=format&fit=crop&w=1470');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on small screens */
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    gap: 10px;
}

.search-form input[type="text"],
.search-form select {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

.search-form input[type="text"] {
    flex-grow: 1; /* Takes up available space */
    min-width: 250px;
}

.search-form button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #0056b3;
}

/* --- Owner Call to Action Section --- */
.owner-cta {
    background-color: #f4f8ff; /* A light, inviting blue */
    padding: 50px 0;
    text-align: center;
}

.owner-cta h2 {
    margin-top: 0;
}

.btn-cta {
    display: inline-block;
    background-color: #28a745; /* A strong, action-oriented green */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.btn-cta:hover {
    background-color: #218838;
}

/* Media Query for smaller screens */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .search-form {
        flex-direction: column;
    }
}
/* --- GETMESPACE.IN MODERN THEME V1.0 --- */

/* 1. Root Variables (Our Color Palette & Theme Settings) */
:root {
    --primary-color: #005A9C; /* A strong, professional blue */
    --secondary-color: #34495E; /* A deep, slate grey */
    --accent-color: #F39C12; /* A warm, inviting orange for buttons */
    --background-light: #F8F9FA; /* A very light grey for backgrounds */
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #EAECEE;
    --white: #FFFFFF;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

/* 2. Global Resets & Body Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 3. Reusable Components (Buttons & Forms) */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #004a80; /* Darker shade of primary */
    text-decoration: none;
    transform: translateY(-2px);
}
.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}
.btn-accent:hover {
    background-color: #d48911; /* Darker shade of accent */
    text-decoration: none;
    transform: translateY(-2px);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2);
}


/* 4. Header & Navigation */
.main-header {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.main-header .logo img {
    height: 40px;
}
.nav-desktop a {
    margin-left: 25px;
    font-family: var(--font-heading);
    font-weight: 500;
}
.nav-desktop a:hover {
    color: var(--accent-color);
    text-decoration: none;
}


/* 5. Homepage: Hero & CTA */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1470');
    height: 70vh;
    min-height: 500px;
}
.hero h1 {
    font-size: 3em;
    color: var(--white);
    font-weight: 700;
}
.hero p {
    font-size: 1.25em;
    color: rgba(255, 255, 255, 0.9);
}
.search-form {
    background: none;
}
.search-form input, .search-form select {
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
}
.search-form button {
    padding: 14px 30px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--accent-color);
    color: white;
    font-size: 1em;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}
.search-form button:hover {
    background-color: #d48911;
    transform: translateY(-2px);
}
.owner-cta {
    background-color: var(--background-light);
}


/* 6. Property Card */
.property-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.property-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; /* For the badge */
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.property-card .card-image {
    position: relative;
}
.property-card .card-image img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    height: 220px;
}
/* For Rent/Sale Badge */
.property-card::after {
    content: attr(data-listing-type); /* Reads content from data attribute */
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background-color: rgba(0, 90, 156, 0.9); /* Opaque primary color */
    color: var(--white);
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}
.property-card .price {
    color: var(--primary-color);
}


/* 7. Property Details Page */
.details-sidebar .booking-box {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    box-shadow: none;
    margin-top: 20px;
}
.price-display .amount {
    color: var(--primary-color);
}
.booking-box .btn {
    box-shadow: var(--shadow-sm);
}

/* 8. Mobile Menu & Footer (Inherited from before, minor tweaks) */
.mobile-menu {
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
}
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}
.main-footer a {
    color: var(--accent-color);
}

/* Dashboard Styles */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.dashboard-table th, .dashboard-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.dashboard-table thead {
    background-color: var(--background-light);
}
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: capitalize;
}
.status-pending { background-color: #fff0c1; color: #8a6d00; }
.status-confirmed { background-color: #c8e6c9; color: #256029; }
.status-cancelled { background-color: #ffcdd2; color: #c62828; }
/* New Booking Option Styles */
.booking-box h4 {
    text-align: center;
    margin-bottom: 20px;
}
.options-container .option {
    position: relative;
    margin-bottom: 10px;
}
.options-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
/* This is the main change: We're using Flexbox */
/* --- PASTE THIS INTO assets/css/style.css --- */

/* 1. FIX: Update the alignment for the option labels */
.options-container label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* CHANGED from center to flex-start for better top alignment */
    gap: 15px; 
    padding: 15px;
    padding-left: 45px; 
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

/* 2. FIX: Add styling for date-time inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"], /* ADDED this selector */
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* --- No other changes are needed --- */
/* New class for the text content */
.option-content {
    flex-grow: 1; /* Allows the text to take up available space */
}
.options-container label::before { /* Custom radio button circle */
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
}
.options-container input:checked + label {
    border-color: var(--primary-color);
    background-color: #f4f8ff;
}
.options-container input:checked + label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    box-shadow: inset 0 0 0 3px var(--white);
}
.options-container label strong {
    display: block;
    font-family: var(--font-heading);
}
.options-container label span {
    font-size: 0.9em;
    color: var(--text-light);
}
/* The price is no longer absolutely positioned */
.options-container .option-price {
    font-weight: bold;
    font-family: var(--font-heading);
    color: var(--primary-color);
    white-space: nowrap; /* Prevents the price from wrapping */
    text-align: right;
}
/* --- IMPROVED PROPERTY DETAILS PAGE --- */

/* 1. Title and Location Section */
.details-main .title-section .location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 1.1em;
    margin-top: -10px;
}

/* 2. Image Gallery Styles */
.gallery .main-image-display {
    margin-bottom: 10px;
}
.gallery .main-image-display img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.thumbnail {
    width: 100%;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.7;
}
.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* 3. Key Features Section */
.key-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    margin: 25px 0;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}
.feature-item svg {
    color: var(--primary-color);
    flex-shrink: 0; /* Prevents icon from shrinking */
}
.feature-item div {
    display: flex;
    flex-direction: column;
}
.feature-item strong {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}
.feature-item span {
    font-size: 0.9em;
    color: var(--text-light);
}

/* 4. Layout & Typography Polish */
.details-main .section {
    margin-top: 30px;
}
.details-main .section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.features-list-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}
.features-list-grid li {
    padding: 8px;
}
.owner-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Adds a user icon before the owner info text */
.owner-info::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%2334495E" viewBox="0 0 16 16"><path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}
/* --- NEW VERTICAL BOOKING OPTION STYLES --- */
.booking-box h4 {
    text-align: center;
    margin-bottom: 20px;
}
.options-container .option {
    position: relative;
    margin-bottom: 10px;
}
.options-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.options-container label {
    display: block;
    padding: 20px; /* MODIFIED: Changed padding to be uniform */
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.options-container label::before {
    display: none; /* Hides the radio button circle */
}
.options-container label::before { /* Custom radio button circle */
    content: '';
    position: absolute;
    left: 15px;
    top: 18px; /* Aligned with the first line of text */
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
}
.options-container input:checked + label {
    border-color: var(--primary-color);
    background-color: #f4f8ff;
}
.options-container input:checked + label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    box-shadow: inset 0 0 0 3px var(--white);
}
.options-container label strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
}
.options-container .option-description {
    display: block;
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.4;
}
.options-container .option-price {
    display: block;
    font-size: 1.4em;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 12px;
}
/* Owner Dashboard Action Buttons */
.dashboard-table .actions {
    display: flex;
    gap: 10px;
}
.btn-action {
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}
.btn-view { background-color: var(--primary-color); }
.btn-edit { background-color: var(--accent-color); }
/* Add this to your style.css file */
.btn-delete {
    background-color: #dc3545; /* A standard red color for delete actions */
    border: none;
    cursor: pointer;
}
/* --- ADVANCED FILTER & PROPERTIES PAGE LAYOUT --- */

.properties-page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.filter-sidebar {
    flex: 0 0 280px; /* Do not grow, do not shrink, base width 280px */
    background-color: var(--background-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
}

.filter-sidebar h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-grid {
    flex: 1;
}
@media (max-width: 767px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 991px) {
    /*
      This forces the results container to take up the full width
      of the screen in the vertical mobile layout, fixing the
      unwanted side margins.
    */
    .results-grid {
        width: 100%;
    }
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 8px;
}

.price-range {
    display: flex;
    gap: 10px;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.radio-group label, .checkbox-group label {
    font-family: var(--font-body);
    font-weight: normal;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.checkbox-group input {
    width: auto;
    margin-right: 8px;
}

.filter-buttons {
    margin-top: 25px;
}
.filter-buttons button {
    width: 100%;
}
.reset-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
}

.results-heading {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Responsive adjustments for filters */
@media (max-width: 992px) {
    .properties-page-layout {
        flex-direction: column;
    }
    .filter-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
}
/* --- IMPROVED HOMEPAGE SECTIONS --- */

.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--secondary-color);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--primary-color);
    color: var(--white);
}
.category-card .icon-bg {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 90, 156, 0.1); /* Light primary color */
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.category-card:hover .icon-bg {
    background-color: var(--white);
}
.category-card svg {
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.category-card:hover svg {
    color: var(--primary-color);
}
.category-card span {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--background-light);
    padding: 60px 0;
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}
.step-card {
    padding: 20px;
}
.step-icon {
    font-size: 3em;
    line-height: 1;
}
.step-card h3 {
    margin: 15px 0 10px 0;
}
.step-card p {
    color: var(--text-light);
}

/* Tweaks for existing sections */
.search-form button {
    box-shadow: none; /* remove shadow from original search button */
}
.owner-cta .btn-accent {
    padding: 15px 30px;
    font-size: 1.1em;
}
/* Admin action buttons alignment */
.actions-cell {
    display: flex;
    gap: 10px;
    align-items: center;
}
.actions-cell form {
    margin: 0;
}
.rating-summary { font-size: 1.1em; margin-top: 10px; }
.review-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; margin-bottom: 15px; }
.review-rating { margin: 5px 0; color: #f39c12; }
.review-card small { color: var(--text-light); }

/* --- Video Gallery Styles --- */
.main-image-display {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.main-image-display img,
.main-image-display iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
.thumbnail-container {
    display: flex; /* Changed from grid to flex for better horizontal scroll */
    gap: 10px;
    overflow-x: auto; /* Allow scrolling if many thumbnails */
    padding-top: 10px;
    padding-bottom: 5px;
}
.thumbnail-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
}
.thumbnail-wrapper.active, .thumbnail-wrapper:hover {
    border-color: var(--primary-color);
}
.thumbnail-wrapper .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}
.video-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none; /* Allows clicks to pass through to the wrapper */
}
/* --- MOBILE STICKY FILTER BUTTON --- */

/* Style for the trigger button shown only on mobile */
.mobile-filter-trigger {
    display: none; /* Hidden on desktop by default */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.mobile-filter-trigger .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
}

/* Header inside the sidebar, shown only on mobile */
.filter-sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.close-filters {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* --- Responsive styles for mobile view --- */
@media (max-width: 991px) {
    /* Show the sticky button on mobile */
    .mobile-filter-trigger {
        display: block;
    }
    
    /* Style the sidebar as a slide-in overlay */
    .filter-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 320px;
        height: 100%;
        max-width: 90%;
        background-color: var(--white);
        z-index: 1001; /* Higher than the main mobile menu */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    
    /* The class that will be toggled by JavaScript */
    .filter-sidebar.is-open {
        transform: translateX(0);
    }
    
    /* Show the mobile header inside the sidebar */
    .filter-sidebar-header {
        display: flex;
    }
    
    /* Hide the desktop title */
    .filter-sidebar > h3 {
        display: none;
    }
}
/* --- MODERN PROPERTY DETAILS PAGE MAKEOVER --- */

/* 1. New Layout Structure */
/* The main container no longer uses flexbox directly */
.property-details-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

/* 2. Title Section Styling */
.title-section {
    margin-bottom: 20px;
}
.title-section h2 {
    font-size: 2.2em;
    margin-bottom: 5px;
}
.subtitle-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    color: var(--text-light);
}
.subtitle-info .location {
    margin: 0;
}
.subtitle-info .separator {
    font-size: 1.2em;
}

/* 3. Tab System Styling */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}
.tab-link {
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-light);
    position: relative;
    top: 2px; /* Aligns with the bottom border */
    border-bottom: 2px solid transparent;
}
.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.tab-panel {
    display: none; /* Hide all panels by default */
}
.tab-panel.active {
    display: block; /* Show only the active one */
}
.tab-panel h3 {
    margin-top: 0;
}
/* --- MODERN CHECKOUT PAGE LAYOUT --- */

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 for form, 1/3 for summary */
    gap: 40px;
    align-items: flex-start;
}

.customer-form h2 {
    margin-top: 0;
}

.order-summary-sidebar {
    position: sticky;
    top: 91px; /* Adjust based on your sticky header's height + some margin */
}

.summary-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
}

.summary-card h3 {
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-light);
}

.summary-item strong {
    color: var(--text-dark);
    text-align: right;
}

.summary-item.total {
    font-size: 1.2em;
    font-family: var(--font-heading);
    margin-top: 20px;
}

.summary-item .total-amount {
    font-size: 1.3em;
    color: var(--primary-color);
}

.summary-card hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.summary-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive styles for mobile checkout */
@media (max-width: 991px) {
    .checkout-layout {
        grid-template-columns: 1fr; /* Stack to a single column */
    }

    .order-summary-sidebar {
        position: static; /* Un-stick the sidebar */
        grid-row: 1; /* Move the summary to the top on mobile */
    }
}
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1002; /* Higher than other overlays */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 25px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}
.close-modal:hover, .close-modal:focus {
    color: #000;
}
/* --- Owner Profile Page --- */
.profile-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.profile-header h1 {
    margin-bottom: 5px;
}
.profile-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-family: var(--font-heading);
    border-radius: 20px;
    font-size: 0.9em;
}

