/* -----------------------------
   GLOBAL STYLES
----------------------------- */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f6f8;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.forgot-container {
            max-width: 400px;
            margin: 50px auto;
            padding: 20px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* -----------------------------
   DASHBOARD AND FORMS
----------------------------- */
.dashboard h3 {
    margin-bottom: 10px;
    font-weight: 700;
    color: #222;
}

button {
  background: #1e57d6;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px !important;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
}
button:hover {
    background-color: #353a92;
}

.delete-btn {
    float: none;
    display: inline-block;
    padding: 3px 8px;
    font-size: 14px;
    margin-left: 10px;
}

.send-btn {
    background-color: #28a745;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    width: 100%;
}
.send-btn:hover {
    background-color: #1e7e34;
}
.like-link {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: underline;
    background-color: white;
    font-weight: 400;
    font-size: 0.9rem;
}

.like-link:hover {
  background-color: white !important;  
  color: #06458b;
}

.title {
    font-weight: 700;
    font-size: 0.85rem;
}

/*/// Responsive tabs ///*/
.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    color: #555;
    text-decoration: none !important;
    padding: 12px 24px;
    cursor: pointer;
    background-color: #f8f9fa;
    margin: 0 2px 2px 2px; /* Bottom margin for vertical spacing */
    border: 2px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    flex: 1 1 auto; /* Allow tabs to grow and shrink */
    text-align: center;
    font-size: 0.85rem;
}

.tab.active {
    text-decoration: none !important;
    font-weight: bold;
    background-color: #659fde;
    color: white;
    border-color: #659fde;
    border-bottom: 2px solid #659fde;
}


/* -----------------------------
   MODERN RESPONSIVE TABLE
----------------------------- */

/* ---------- SHARED STYLES ---------- */
.table-responsive {
  width: 100%;
}

.table-responsive tr {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  padding: 12px;
}

.table-responsive td {
  border: none;
  font-size: 0.9rem;
}

/* Labels in each field */
.table-responsive td::before {
  content: attr(data-label);
  font-weight: bold;
  color: #374151;
  display: block;
  margin-bottom: 4px;
}

/* Photo base style */
.table-responsive .property-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

  /* Photo column on the left */
  .table-responsive td.photo-cell {
    flex: 0 0 180px;
  }

  .table-responsive td.photo-cell img.property-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
  }

  /* Details column on the right */
  .table-responsive td.details-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

/* -----------------------------
   STATUS TAGS
----------------------------- */
.viewing-scheduled {
    background-color: #d1f2eb;
    color: #0f5132;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.viewing-pending {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.viewing-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.like-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.like-yes {
    background-color: #d4edda;
    color: #155724;
}

.like-no {
    background-color: #f8d7da;
    color: #721c24;
}

.like-not-decided {
    background-color: #fff3cd;
    color: #856404;
}

/* -----------------------------
   LOGOUT BUTTON
----------------------------- */
.welcome-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes Logout to the far right */
    margin-bottom: 10px;
}

.logout {
    background-color: #e74c3c;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.logout:hover {
    background-color: #c0392b;
}

/* Property list items */
.property-item {
  background: #f9fafb;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}



/* -----------------------------
   BUTTON STYLES
----------------------------- */

/* Primary button */
.btn-primary {
    /* Base styling */
    background: #f4a83b;
    color: #fff;
    padding: 3px 6px;
    border-radius: 6px;
    border: none;
    
    /* 3D effects */
    position: relative;
    box-shadow: 
        0 1px 0px rgba(255, 255, 255, 0.2) inset, /* Top highlight */
        0 2px 5px rgba(0, 0, 0, 0.3), /* Main shadow */
        0 4px 10px rgba(0, 0, 0, 0.15); /* Depth shadow */
    
    /* 3D perspective */
    transform: translateY(0);
    transition: all 0.15s ease;
    
    /* Text styling for 3D effect */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.btn-primary:hover {
  background: #c3760c; /* darker blue */
}

/* Secondary button */
.btn-secondary {
  background: #f3f4f6; /* neutral background */
  color: #374151; /* neutral text */
}

.btn-secondary:hover {
  background: #e5e7eb;
}


/*NEW*/
.property-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  padding: 15px;
  gap: 20px;
}
.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Container for side-by-side property cards */
.property-cards-container {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
/* 50% width for each card */
.half-width {
    flex: 1 1 50%;
    min-width: 0; /* Allows flex to work properly */
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px 20px;
  font-size: 0.9rem;
}

.details-grid strong {
  color: #333;
}

.filter-container {
    margin-bottom: 16px;
    padding: 12px;
    background-color: var(--gray-50);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-container label {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 0.875rem;
    white-space: nowrap;
}

.filter-container select {
    width: auto;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.975rem;
    background-color: white;
    cursor: pointer;
}

.filter-container select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/*Styles for 'Plan your Property Tour' Tab*/

.split-layout {
    display: block !important;
    padding: 15px !important;
}

.split-columns {
    display: flex;
    gap: 30px;
}

.split-left, .split-right {
    flex: 1;
    min-width: 250px;
}

.split-left button {
  width: 100%;
}

/* Modern textarea styling */
.modern-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: white;
}

.modern-textarea:focus {
    outline: none;
    border-color: #1e57d6;
    box-shadow: 0 0 0 3px rgba(30, 87, 214, 0.1);
}

.modern-textarea::placeholder {
    color: #6b7280;
    opacity: 0.7;
}

.modern-textbox {
    border: 2px solid #ddd;
    border-radius: 6px;
  font-family: inherit;
    font-size: 0.875rem;
  margin-bottom: 5px;
}

.modern-label {
  min-width: 90px;
  font-family: inherit;
  font-size: 0.875rem;
}

/* Property count badge */
.property-count {
    background-color: #e0e7ff;
    color: #1e40af;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* Properties container */
.properties-container {
    max-height: 300px;
    overflow-y: auto;
}

/* Custom scrollbar */
.properties-container::-webkit-scrollbar {
    width: 6px;
}

.properties-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.properties-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.properties-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* No properties message */
.no-properties-message {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-style: italic;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px dashed #d1d5db;
    margin-top: 10px;
}

.send-content {
    display: flex;
    flex-direction: column;
    /*gap: 10px;*/
}

/* Additional responsive styles for Viewed and Viewings tabs */

/* Responsive container for both tabs */
.responsive-views-container,
.responsive-viewings-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Responsive view item (for both tabs) */
.responsive-view-item,
.responsive-viewing-item {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px;
    gap: 15px;
    transition: all 0.3s ease;
}

.responsive-view-item:hover,
.responsive-viewing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Image container */
.view-image, .viewing-image {
    flex: 0 0 180px;
}

.view-image img,
.viewing-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.no-photo {
    width: 100%;
    height: 120px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Details container */
.view-details,
.viewing-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
}

/* Detail row */
.detail-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.detail-row strong {
    flex: 0 0 100px;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.detail-row span,
.detail-row div {
    flex: 1;
    font-size: 0.875rem;
}

/* Status form */
.status-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-form select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* No items messages */
.no-views-message,
.no-viewings-message {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-style: italic;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

/* Simple overflow fix for Viewings tab */
.responsive-viewing-item {
    overflow: hidden;
}

.responsive-viewing-item .detail-row span {
    word-break: break-word;
    overflow-wrap: break-word;
}

.responsive-viewing-item .detail-row {
    word-break: break-word;
}

/* Responsive design */
@media (max-width: 768px) {
    .split-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .split-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #ddd;
        padding-top: 20px;
        margin-top: 20px;
    }
  
    .tabs {
        flex-direction: column;
        border-bottom: none; /* Remove bottom border when stacked */
    }
    
    .tab {
        margin: 2px 0; /* Remove side margins, keep vertical spacing */
        border-radius: 6px; /* Full rounded corners when stacked */
        border-bottom: 2px solid #ddd; /* Add bottom border for separation */
        padding: 14px 20px;
    }
    
    .tab.active {
        border-bottom: 2px solid #659fde; /* Active tab bottom border */
    }
  
  .responsive-view-item,
    .responsive-viewing-item {
        flex-direction: column;
    }
    
    .view-image,
    .viewing-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .view-details,
    .viewing-details {
        grid-template-columns: 1fr;
    }
    
    .detail-row strong {
        flex: 0 0 90px;
    }
    .property-cards-container {
        flex-direction: column;
    }
    .half-width {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .tab {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
  
    .responsive-views-container,
    .responsive-viewings-container {
        gap: 12px;
    }
    
    .responsive-view-item,
    .responsive-viewing-item {
        padding: 10px;
    }
    
    .view-details,
    .viewing-details {
        gap: 6px 12px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .detail-row strong {
        flex: none;
    }
}