
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

.property-row.selectable {
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}

.property-row.selectable:hover {
    background-color: #e0e0e0;
}

#toggle-selection-btn {
    border-radius: 6px;
    font-size: 0.9rem;
}

#delete-selected-btn {
    display: none;
    font-size: 0.9rem;
    padding: 6px 12px;
}

#delete-selected-btn.show {
    display: inline-block;
}

.listing-card.selected {
    outline: 2px solid #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.listing-map-container {
    height: 100vh;
    display: flex;
}

.listings-sidebar {
    width: 45%;
    padding: 1rem;
    overflow-y: auto;
    background-color: #fff;
    border-right: 1px solid #ddd;
}

.property-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}


.property-card .card-body {
  padding: 0.75rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-card.selected::before {
    content: "✓ Selected";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007bff;
    color: white;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
}

#map {
    width: 55%;
    height: 100%;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-bar input,
.filter-bar select {
    max-width: 180px;
}

.favorite-btn {
    z-index: 10;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
    text-decoration: none !important;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #ff0000;
}

.property-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%;
}

.property-header {
    text-align: center;
    margin-bottom: 30px;
}

.property-header h1 {
    margin-bottom: 10px;
    color: #343a40;
}

.property-main-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.additional-images {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.additional-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-image-table {
    width: 100px;
    height: auto;
}

.property-details {
    padding: 15px;
}

.property-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.property-price {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}

.property-description {
    font-size: 0.9rem;
    color: #666;
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-actions .dropdown-toggle {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.dropdown-menu {
    min-width: 200px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.text-danger:hover {
    background-color: #dc3545;
    color: white !important;
}

.unclickable {
    pointer-events: none;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    opacity: 1;
    cursor: pointer;
}

.table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #69B190;
    color: white;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.scrollable-view {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-outline-primary {
    color: #69B190;
    border: 1px solid #69B190;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #69B190;
    color: #fff;
}

.btn-outline-primary.active {
    background-color: #69B190;
    color: white;
}

.currency {
    text-align: right !important;
}

.property-image-dashboard {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.gallery-thumb {
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#galleryCarousel .gallery-thumb {
    width: auto !important;
    max-width: 300px;
    margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-size: 100%, 100%;
}

@media (max-width: 767.98px) {
    #toggle-table-btn {
        display: none !important;
    }
}

.description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* change to 2 or 4 as needed */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em; /* controls visual height for smoother truncation */
  }
  
