/* css for top-bar of property listing */

.pt-toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    gap: 20px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.pt-left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pt-tab {
    font-weight: bold;
    color: #1a73e8;
    padding-bottom: 5px;
    border-bottom: 2px solid #1a73e8;
    white-space: nowrap;
}

.pt-search-box {
    min-width: 225px;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.pt-search-icon {
    color: #777;
    margin-right: 8px;
    font-size: 14px;
}

.pt-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}

.pt-right-section {
    display: flex;
    align-items: center;
    gap: 15px;
    /* flex-wrap: wrap; */
}

.pt-sort-container {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 1 1 35%;
    min-width: 150px;
}

.pt-sort-label {
    color: #777;
    font-size: 14px;
}

.pt-sort-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 14px;
}

.pt-action-button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 100px;
}

.pt-export-btn {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.pt-add-task-btn {
    background-color: #f0f0f0;
    color: #333;
}

.ab-btn-export {
    color: #FFF!important;
}

.ab-btn-import:hover {
    color: #FFF!important;
}

.pt-export-btn:hover {
    color: #FFF!important;
}

.pt-add-task-btn:hover {
    color: #FFF!important;
}

.pt-create-property-btn {
    color: #FFF!important;
}

.pt-create-property-btn {
    background-color: #1a73e8;
    color: #FFF!important;
}

@media (max-width: 768px) {
    .pt-toolbar-container {
        flex-wrap: wrap;
        gap: 0;
        width: 360px;
    }
    .pt-left-section, 
    .pt-right-section {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .pt-right-section {
        justify-content: flex-start;
        margin-top: 15px;
        gap: 10px;
    }
    .pt-search-box {
        flex: 1 1 60%;
    }
    .pt-property-details {
        width: 100%!important;
    }
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

/* css for property listing */

.pt-property-container {
    width: 100%;
    margin-bottom: 25px;
}

.pt-property-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pt-property-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: calc(25% - 15px); /* 4 columns */
    display: flex;
    flex-direction: column;
    border: 1px dotted blue;
}

.pt-property-item-modal {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px dotted blue;
}

/* Main property image */
.pt-main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

/* Property details section */
.pt-property-details {
    padding: 15px;
}

.pt-property-title {
    font-size: 1rem!important;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pt-property-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.pt-property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Thumbnail gallery under each property */
.pt-gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.pt-gallery img {
    min-width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.3s ease;
    border: 2px solid transparent;
}

.pt-gallery img:hover {
    transform: scale(1.05);
    border-color: #4a90e2;
}

/* Tablet (3 columns) */
@media (max-width: 992px) {
    .pt-property-item {
        width: calc(33.333% - 13px);
    }
}

/* Mobile (2 columns) */
@media (max-width: 768px) {
    .pt-property-item {
        width: calc(50% - 10px);
    }
    .pt-document-card {
        width: 100% !important;
    }
}

/* Extra small mobile (1 column) */
@media (max-width: 480px) {
    .pt-property-item {
        width: 100%;
    }
}

/* css for recent document for property page */

h1 {
    font-size: 24px;
    color: #333;
}

.pt-documents-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .pt-documents-container {
        display: grid;
    }
    .pt-document-card {
        width: 100% !important;
    }
}

.pt-document-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 15px;
    width: 225px;
}

.pt-document-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pt-document-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 12px;
    border-radius: 50%;
}

.pt-document-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.pt-document-size {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.pt-document-info {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

.pt-document-actions {
    display: flex;
    justify-content: space-between;
}

.pt-action-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 12px;
}

.pt-action-btn:hover {
    text-decoration: underline;
}

/* css for searching */

.no-results {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
    grid-column: 1 / -1; /* Works well with grid layouts */
    width: 100%; /* For flex layouts */
}

/* css for Property Details Page */

.pd-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pd-left-column {
    flex: 2;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pd-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-right-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pd-image-gallery-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.pd-thumbnail-gallery {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 480px) {
    .pd-thumbnail-gallery {
        display: none;
    }
}

.pd-thumbnail-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.pd-thumbnail-gallery img:hover {
    border-color: #4a90e2;
}

.pd-main-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill the space */
    border-radius: 8px;
}

.pd-property-title {
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0 10px;
}

.pd-property-description {
    color: #555;
    margin-bottom: 20px;
}

.pd-property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.pd-feature-box {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.pd-feature-box i {
    color: #4a90e2;
}

.pd-assigned-client {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
    font-size: 14px;
}

.pd-assigned-client .pd-client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.pd-assigned-client .pd-client-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.pd-assigned-client .pd-info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pd-assigned-client .pd-info-row span:first-child {
    font-weight: 600;
    width: 40%;
    text-align: left;
}

.pd-assigned-client .pd-info-row span:last-child {
    width: 60%;
    text-align: left;
}

.pd-task-details {
    font-size: 14px;
    display: grid;
    row-gap: 10px;
}

.pd-task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-task-row label {
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.pd-task-row span {
    flex: 2;
    text-align: left;
}

.pd-task-notes {
    margin-top: 10px;
}

.pd-task-notes label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.pd-task-notes textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f9f9f9;
    resize: vertical;
}

.pd-pdf-file {
    margin-top: 10px;
    text-align: center;
}

.pd-pdf-file img {
    width: 50px;
}

.pd-pdf-file div {
    font-size: 12px;
    margin-top: 5px;
}

.pd-top-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.pd-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.pd-btn-delete {
    background-color: #fbe9e7;
    color: #d32f2f;
}

.pd-btn-delete:hover {
    color: #FFF!important;
}

.pd-btn-edit {
    background-color: #e3f2fd;
    color: #1976d2;
}

.pd-btn-edit:hover {
    color: #FFF!important;
}

/* styles.css */
.pd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.pd-back-link__arrow {
    font-size: 24px;
}

.back-link {
    margin-bottom: 20px;
}

/* css create property modal */

.property-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.property-modal {
    background: #fff;
    width: 650px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
}

@media (max-width: 480px) {
    .property-modal {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        padding: 15px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
    }
    
    /* Optional: Prevent body scrolling when modal is open */
    body.modal-open {
        overflow: hidden !important;
    }
}

.property-modal h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    margin-bottom: 5px;
}

input, textarea, select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

textarea {
    resize: vertical;
}

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.upload-box:hover {
    border-color: #888;
}

.upload-box input {
    display: none;
}

.upload-box label {
    color: #007bff;
    cursor: pointer;
    font-weight: 500;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.cancel-btn {
    background: #f1f1f1;
}

.save-btn {
    background: #2f64e2;
    color: #fff!important;
}

/* General border adjustments */
.pt-toolbar-container,
.pt-property-item,
.pt-property-item-modal,
.pt-document-card,
.pd-left-column,
.pd-right-box,
.property-modal {
    border-radius: 6px; /* Reduced from 8px or 12px */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Toolbar container adjustments */
.pt-toolbar-container {
    padding: 10px 16px; /* Reduced padding */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Search box adjustments */
.pt-search-box {
    border: 1px solid #e0e0e0; /* Lighter border color */
    border-radius: 4px;
}

/* Sort select adjustments */
.pt-sort-select {
    border: 1px solid #e0e0e0; /* Lighter border color */
}

/* Property item adjustments */
.pt-property-item {
    border: 1px solid #f0f0f0; /* Very light border instead of dotted */
}

/* Property details adjustments */
.pt-property-details {
    padding: 12px; /* Reduced from 15px */
}

/* Document card adjustments */
.pt-document-card {
    border: 1px solid #f0f0f0; /* Lighter border */
    padding: 12px; /* Reduced from 15px */
}

/* Property details page adjustments */
.pd-left-column,
.pd-right-box {
    border-radius: 6px; /* Reduced from 12px */
    padding: 16px; /* Reduced from 20px */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Image gallery adjustments */
.pd-thumbnail-gallery img {
    border: 1px solid #f0f0f0; /* Lighter border */
    border-radius: 4px; /* Reduced from 8px */
}

/* Feature box adjustments */
.pd-feature-box {
    border-radius: 4px; /* Reduced from 8px */
}

/* Modal adjustments */
.property-modal {
    border-radius: 8px; /* Reduced from 12px */
    padding: 20px; /* Reduced from 30px */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Form elements adjustments */
input, textarea, select {
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 4px; /* Reduced from 6px */
}

/* Upload box adjustments */
.upload-box {
    border: 1px dashed #d0d0d0; /* Lighter dashed border */
    border-radius: 4px; /* Reduced from 8px */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .pt-toolbar-container {
        padding: 8px 12px; /* Further reduced for mobile */
    }
    
    .pt-property-item {
        border-radius: 4px; /* Even smaller for mobile */
    }
    
    .pt-document-card {
        border-radius: 4px; /* Even smaller for mobile */
    }
    
    .property-modal {
        border-radius: 0; /* No border radius for full-screen mobile */
        padding: 15px; /* Reduced padding for mobile */
    }
}

/* Additional subtle adjustments */
.pt-gallery img {
    border: 1px solid transparent; /* Reduced from 2px */
}

.pt-gallery img:hover {
    border-color: #e0e0e0; /* Lighter hover border */
}

.pt-action-btn {
    border-radius: 4px; /* Reduced from default */
}

.pd-btn {
    border-radius: 4px; /* Reduced from 8px */
}

/* Remove dotted borders completely */
.pt-property-item,
.pt-property-item-modal {
    border-style: solid; /* Changed from dotted */
}