:root {
    --primary: #2c3e50;
    /* Dark Slate Blue/Grey from logo text */
    --accent: #8dc63f;
    /* Lime Green from logo checkmark */
    --accent-hover: #7ab32e;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #f4f6f9;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #27ae60;
    /* Or use accent if preferred, but success usually needs to be distinct */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

.logo img {
    height: 40px;
    /* Adjust if using specific img */
}



/* Hero */
.hero {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    background-image: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Filters */
.filters-container {
    background: var(--white);
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    position: sticky;
    top: 73px;
    /* Header height approx */
    z-index: 90;
}

.filters {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #eee;
    background: var(--white);
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
}

/* Property List */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.property-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.property-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    /* List View */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.property-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.card-image-container {
    width: 350px;
    background-color: #eee;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-type {
    background-color: var(--primary);
}

.badge-status-avail {
    background-color: var(--accent);
}

.badge-status-occ {
    background-color: #95a5a6;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-header h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.card-header h2 .id-ref {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 10px;
}

.card-services {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.card-desc {
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Room List in Card */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.room-item-card {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}

.room-item-card.avail {
    border-left-color: var(--accent);
    background: #f0fdf4;
    /* Light green tint */
}

.room-item-card.occupied {
    border-left-color: #95a5a6;
}

.room-status-indicator {
    font-weight: 600;
    font-size: 0.8rem;
}

.text-success {
    color: #27ae60;
}

.text-danger {
    color: #c0392b;
}

.text-muted {
    color: #7f8c8d;
}

.action-bar {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.btn-details,
.btn-share {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-details {
    background-color: var(--primary);
    color: white;
}

.btn-details:hover {
    background-color: #1a252f;
}

.btn-share {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid #ddd;
}

.btn-share:hover {
    border-color: var(--primary);
}

/* Modal specific overrides if needed */
.modal-content {
    border-radius: 8px;
    border-top: 5px solid var(--accent);
}

/* Responsiveness */
@media (max-width: 768px) {
    .property-card {
        flex-direction: column;
    }

    .card-image-container {
        width: 100%;
        height: 250px;
    }

    .card-actions {
        flex-direction: column;
    }

    .filters-container {
        top: 0;
        /* Adjust dependent on header */
    }

    .header-container {
        flex-direction: row;
        /* Keep row for side-by-side */
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.2rem;
        /* Slightly smaller logo to fit */
    }
}

/* Modal - Restore Missing Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}


/* Toast Notification */
.toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 2000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
    /* Slight slide up effect */
}

/* Ensure toast is on top of modal */
@media (min-width: 768px) {
    .toast-notification {
        bottom: 30px;
        left: 50%;
        /* Keep centered or move to right if preferred */
        transform: translateX(-50%);
    }
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 8px;
    border-top: 5px solid var(--accent);
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-header {
    height: 500px;
    background-color: #e9ecef;
    position: relative;
}

.modal-body {
    padding: 2rem;
}

/* Footer Styles */
footer {
    background-color: #333333;
    /* Dark Grey #222 or #333 */
    color: white;
    padding: 4rem 1rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    /* Small green underline */
    height: 4px;
    background-color: var(--accent);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 300;
}

.footer-contact-item i {
    font-size: 1.8rem;
    color: #666;
    /* Outline icon color */
}

/* Responsiveness */
@media (max-width: 768px) {
    .modal-header {
        height: 300px;
    }
}

/* Virtual Tour Badge Overlay */
.virtual-tour-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    pointer-events: none;
    /* Let clicks pass through to the viewer */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.virtual-tour-badge i {
    font-size: 1.2rem;
}

/* Add a subtle animation to draw attention */
@keyframes pulse-badge {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.virtual-tour-badge {
    animation: pulse-badge 2s infinite ease-in-out;
}

/* Modal Description Refinements */
#modalDesc {
    font-size: 0.95rem;
    /* Slightly smaller text */
    line-height: 1.6;
    /* Good readability */
    margin-bottom: 2.5rem;
    /* larger space before "Services inclus" */
    color: #444;
}

#modalDesc p {
    margin-bottom: 0.8rem;
    /* Space between paragraphs */
}

/* Ensure h3 following description has clear separation if needed */
.modal-body h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Updated Status Colors for Owner Perspective */
:root {
    --warning: #f39c12;
    /* Orange */
}

/* Disponible = Vacant = Red (Alert) */
.badge-status-avail {
    background-color: var(--danger) !important;
}

/* Loué = Occupied = Green (Good) */
.badge-status-rented {
    background-color: var(--accent);
    /* or --success */
}

/* Future Availability = Orange (Warning) */
.badge-status-future {
    background-color: var(--warning);
}

/* Text Colors for Status (Owner Perspective) */
.text-status-avail {
    color: var(--danger) !important;
}

.text-status-rented {
    color: var(--accent) !important;
}

/* Toast Notification */
.toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 2000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
    /* Slight slide up effect */
}

/* Ensure toast is on top of modal */
@media (min-width: 768px) {
    .toast-notification {
        bottom: 30px;
        left: 50%;
        /* Keep centered or move to right if preferred */
        transform: translateX(-50%);
    }
}

.text-status-future {
    color: var(--warning) !important;
}

.text-success {
    color: var(--accent);
}

/* Share Tooltip */
.btn-share {
    position: relative;
    /* Anchor for tooltip */
}

.share-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 9999;
}

.share-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

.share-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.text-muted {
    color: #95a5a6;
}
