/* Color Palette: Deep Charcoal (#262626), Forest Green (#88C45A), Silver Grey (#9E9E9E), Pure White (#FFFFFF) */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f7f7f7; /* Light background for contrast */
    color: #262626;
}

/* --- 1. Header and Search Bar (Sticky) --- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    border-bottom: 1px solid #ededed;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #88C45A; /* Forest Green Logo */
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 40px;
    padding: 8px 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05); /* Soft, subtle shadow */
}

.search-input {
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 0.9rem;
    color: #262626;
    background: transparent;
}

.separator {
    color: #dddddd;
    padding: 0 5px;
}

.search-btn {
    background-color: #88C45A; /* Forest Green */
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    margin-left: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-menu a {
    text-decoration: none;
    color: #262626;
    font-size: 0.9rem;
    margin-right: 15px;
    padding: 10px 15px;
    border-radius: 20px;
}

.user-menu a:hover {
    background-color: #f0f0f0;
}

.profile-btn {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}


/* --- 2. Filter Category Chips --- */

.filter-bar {
    position: sticky;
    top: 70px; /* Below the header */
    background-color: #ffffff;
    padding: 15px 50px 10px;
    border-bottom: 1px solid #ededed;
    z-index: 900;
    overflow-x: auto;
    white-space: nowrap; /* Keep chips on one line */
}

.chips-container {
    display: flex;
    gap: 15px;
}

.filter-chip {
    background-color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #262626;
    opacity: 0.7;
    transition: opacity 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.filter-chip:hover {
    opacity: 1;
    border-bottom: 2px solid #dddddd;
}

.filter-chip.active {
    opacity: 1;
    color: #262626;
    font-weight: bold;
    border-bottom: 2px solid #262626;
}

.filter-chip .icon {
    margin-right: 5px;
}


/* --- 3. Listings Grid --- */

.listings-grid-container {
    padding: 30px 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px 20px;
}

.listing-card {
    cursor: pointer;
    text-decoration: none;
    color: #262626;
}

.listing-image-placeholder {
    height: 300px;
    background-color: #D3D3D3; /* Light grey placeholder for images */
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    /* Add a pattern or texture to hint at gym equipment */
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.03), rgba(0,0,0,.03) 10px, transparent 10px, transparent 20px);
}

.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-details h3 {
    font-size: 1.1em;
    font-weight: 600;
}

.rating {
    font-size: 0.9em;
    font-weight: 600;
}

.description, .distance {
    color: #9E9E9E; /* Silver Grey */
    font-size: 0.9em;
    line-height: 1.4;
    margin-top: 3px;
}

.price {
    font-size: 1em;
    font-weight: 600;
    margin-top: 5px;
}

.price strong {
    font-weight: 800;
}

/* ... (Existing CSS content) ... */

/* --- New Styles for the Host Listing Form (list_gym.html) --- */

.host-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.host-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ededed;
}

.host-intro h2 {
    font-size: 2em;
    color: #262626;
    margin-bottom: 5px;
}

.host-intro p {
    color: #9E9E9E;
}

.form-section {
    border: 1px solid #dddddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.form-section legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #88C45A; /* Forest Green Accent */
    padding: 0 10px;
}

.form-group {
    margin-bottom: 15px;
    display: block; /* Ensures full width by default */
}

.form-group.half-width {
    display: inline-block;
    width: calc(50% - 10px);
    margin-right: 20px;
}

.form-group.half-width:last-child {
    margin-right: 0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #262626;
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-size: 1rem;
    color: #262626;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: #88C45A;
    outline: none;
    box-shadow: 0 0 0 2px rgba(136, 196, 90, 0.2);
}

textarea {
    resize: vertical;
}

/* Equipment Checkbox Group */

.instruction {
    font-size: 0.9em;
    color: #9E9E9E;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #dddddd;
    border-radius: 20px; /* Pill-shaped buttons */
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    font-weight: normal;
    font-size: 0.9rem;
    color: #262626;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    /* Optional: Hide default checkbox and style a custom one */
}

.checkbox-group input[type="checkbox"]:checked + span,
.checkbox-group input[type="checkbox"]:checked:not(:only-child) {
    /* Style for checked label if needed */
}

.checkbox-group input[type="checkbox"]:checked {
    accent-color: #88C45A;
}

.checkbox-group label:hover {
    background-color: #f7f7f7;
    border-color: #88C45A;
}

/* Submit Button */

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #88C45A; /* Forest Green */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #6a9c47;
}

/* --- New Styles for Photo Upload Section (Section 4) --- */

.photo-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    border: 2px dashed #9E9E9E; /* Dashed border for a clear upload zone */
    border-radius: 8px;
    background-color: #fcfcfc;
    cursor: pointer;
    color: #262626;
    font-weight: 600;
    transition: background-color 0.2s, border-color 0.2s;
}

.photo-upload-label:hover {
    background-color: #f0f0f0;
    border-color: #88C45A;
}

.photo-upload-label svg {
    color: #88C45A;
}

#file-status {
    /* To show feedback on selected files using JavaScript in a real app */
    text-align: center;
    font-style: italic;
}

/* ... (Existing CSS content) ... */

/* --- New Styles for Host Dashboard (host_dashboard.html) --- */

.host-dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 50px;
    gap: 30px;
}

/* Sidebar and Navigation */

.sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 20px 0;
}

.host-profile {
    padding: 10px 0 20px;
    border-bottom: 1px solid #ededed;
    margin-bottom: 20px;
}

.host-profile h3 {
    font-size: 1.2em;
    color: #262626;
}

.host-profile p {
    font-size: 0.9em;
    color: #9E9E9E;
}

.host-nav a {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #262626;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.host-nav a:hover, .host-nav a.active {
    background-color: #f0f0f0;
    color: #88C45A;
    font-weight: 600;
}

/* Dashboard Content */

.dashboard-content {
    flex-grow: 1;
}

.dashboard-section {
    padding: 30px 0;
    border-bottom: 1px solid #ededed;
    margin-bottom: 20px;
}

.dashboard-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #262626;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-card {
    text-align: center;
}

.card-value {
    font-size: 2em;
    font-weight: bold;
    color: #88C45A;
}

.card-label {
    font-size: 0.9em;
    color: #9E9E9E;
    margin-top: 5px;
}

/* Buttons for Quick Actions */
.action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-card h3, .action-card p {
    margin: 0;
}

.primary-btn, .secondary-btn {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.primary-btn {
    background-color: #88C45A;
    color: white;
    margin-right: 10px;
}

.secondary-btn {
    background-color: #f0f0f0;
    color: #262626;
}

/* Listing Table */
.listing-table {
    border: 1px solid #ededed;
    border-radius: 8px;
    overflow: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr 1.5fr;
    padding: 15px 20px;
    align-items: center;
    border-bottom: 1px solid #f7f7f7;
}

.header-row {
    background-color: #f7f7f7;
    font-weight: 600;
    color: #262626;
}

.status {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85em;
}

.active-status {
    background-color: rgba(136, 196, 90, 0.2); /* Light Green */
    color: #88C45A;
}

.inactive-status {
    background-color: #f0f0f0;
    color: #9E9E9E;
}

.action-link {
    background: none;
    border: none;
    color: #007bff; /* Standard link blue */
    text-decoration: underline;
    cursor: pointer;
    font-size: 1em;
}

/* Financial Table */
.financial-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 20px;
}

.financial-table th, .financial-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.financial-table th {
    background-color: #f7f7f7;
    font-weight: 600;
    color: #262626;
}

.download-btn {
    float: right;
}

/* Reviews */
.review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ededed;
    border-left: 5px solid #88C45A;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-score {
    font-size: 1.8em;
    font-weight: bold;
}

.review-list {
    display: grid;
    gap: 15px;
}

.review-card {
    border-left: 4px solid #f0f0f0;
}

.review-card h4 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

.review-text {
    font-style: italic;
    color: #262626;
    margin-bottom: 10px;
}

.review-date {
    font-size: 0.85em;
    color: #9E9E9E;
    margin-bottom: 10px;
}

/* --- 4. Main Footer Styles --- */

.main-footer {
    border-top: 1px solid #ededed;
    background-color: #ffffff;
    padding: 40px 50px 20px;
    margin-top: 40px;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ededed;
}

.footer-section {
    flex-basis: 30%; /* Gives each column space */
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #262626;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    text-decoration: none;
    color: #555555; /* Slightly darker than Silver Grey for better contrast */
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #262626;
    text-decoration: underline;
}

/* Legal and Social Bar */

.footer-legal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9E9E9E;
}

.legal-links a {
    color: #9E9E9E;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #262626;
    text-decoration: underline;
}

.legal-separator {
    margin: 0 8px;
}

.social-icons a {
    color: #262626;
    margin-left: 15px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #88C45A; /* Highlight social icons on hover */
}
/* --- 5. Login Page Styles --- */

.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Start from the top, not center vertically */
    padding: 60px 20px;
    min-height: calc(100vh - 200px); /* Fill most of the viewport height */
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #ededed;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.login-box h2 {
    font-size: 1.8rem;
    color: #262626;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #9E9E9E;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.login-form .form-group {
    text-align: left;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    /* Inherits from the general input styles in style.css */
    margin-bottom: 10px;
}

.login-btn {
    margin-top: 10px;
    margin-bottom: 15px;
}

.forgot-password-link {
    display: block;
    font-size: 0.9rem;
    color: #88C45A;
    text-decoration: none;
    margin-bottom: 20px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.or-separator {
    text-align: center;
    margin: 20px 0;
    font-size: 0.85rem;
    color: #9E9E9E;
    position: relative;
}

.or-separator::before,
.or-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #ededed;
}

.or-separator::before {
    left: 0;
}

.or-separator::after {
    right: 0;
}

.social-login-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #f7f7f7;
    border: 1px solid #dddddd;
    color: #262626;
    transition: background-color 0.2s;
}

.social-login-btn:hover {
    background-color: #f0f0f0;
}

.signup-prompt {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #9E9E9E;
}

.signup-link {
    color: #88C45A;
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover {
    text-decoration: underline;
}