/* -----------------------------
   GLOBAL STYLES
----------------------------- */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    color: #333;
    padding-bottom: 40px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-color: #ebebeb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.forgot-container {
            max-width: 400px;
            margin: 40px auto;
            padding: 20px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* -----------------------------
   DASHBOARD AND FORMS
----------------------------- */
.dashboard h3 {
    margin-bottom: 10px;
    font-weight: 700;
    color: #222;
}
.dashboard {
    padding-left: 20px;
    padding-right: 20px;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.dashboard-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.dashboard-right {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
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: 18px;
    margin-left: 10px;
    background: transparent;
    color: #0505d1;
}
.delete-btn:hover{
    transform: translateY(-15%) scale(1.3);
    background: transparent;
}

.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;
}
.like-link2 {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: underline;
    background-color: transparent;
    font-weight: 400;
    font-size: 0.9rem;
}

.like-link2:hover {
  background-color: white !important;  
  color: #06458b;
}


.title {
    font-weight: 700;
    font-size: 0.85rem;
}

/*/// Responsive tabs ///*/
.tabs {
    display: flex;
    /*border-bottom: 2px solid #d8d8d8;
    margin-bottom: 30px;*/
    flex-wrap: wrap;
}

.tab {
    color: #a4a3a3;
    text-decoration: none !important;
    padding: 12px 44px;
    cursor: pointer;
    background-color: white;
    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:hover{
    font-size: 0.98rem;
    color: #323131;
}

.tab.active {
    /*text-decoration: none !important;
    font-weight: bold;
    background-color: #659fde;
    color: white;
    border-color: #659fde;
    border-bottom: 2px solid #659fde;*/
    background-color: #659fde;
    color: white;
    font-weight: 600;
    /*border-color: #659fde;*/
    border-bottom: 2px solid white;
    /*border-top: 3px solid #2563eb;*/
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
    font-size: 17px;
}
.tab-content {
    display: none;
    background: #fff;
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 0 0 6px 6px;
    padding-bottom: 40px;
    padding-top: 30px;
    margin-bottom: 20px;
    /*border-top: none;          /* prevents double border */
}
.tab-content.active {
    display: block;
    background-color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* -----------------------------
   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-yes {
    background-color: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.like-no {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.like-not-decided {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* -----------------------------
   LOGOUT BUTTON
----------------------------- */
.welcome-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes Change Password to the far right */
    flex-wrap: wrap; /* allows wrapping on small screens */
    gap: 10px;
    margin-bottom: 30px;
}

.welcome-bar h3 {
  margin: 0;
  /*font-size: 1.2rem;*/
  color: #333;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout {
    background-color: #e74c3c;
    padding: 10px 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;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: white;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover Effects */
.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Map */
.header-btn {
    background: linear-gradient(135deg, #006bbf, #0098ff);
}
.material-icons {
    font-size: 18px;
}

/* -----------------------------
   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;*/
  display: block;
  /*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;
}

.card-value {
    font-size: 0.875rem;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    font-weight: normal;
}

.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;
    width: 100%;
    min-width: 0;
}

.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: #eff3fb;
}

.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: 22px;
}

/* Responsive view item (for both tabs) */
.responsive-view-item,
.responsive-viewing-item {
    display: flex;
    background: #f5f9fe;
    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;
}

/* Make the last row full width */
.detail-row.full-width-row {
    grid-column: 1 / -1; /* In case parent is grid */
    /*width: 80%;
    max-width: 80%;*/
    box-sizing: border-box;
    padding: 0;
    margin: 2px 0 0 0;
}

.detail-row.full-width-row .title {
    flex-shrink: 0;/* Prevents the label from being squeezed */
    font-weight: 700;
    font-size: 0.875rem;
    /*margin-bottom: 6px;*/
    display: block;
}

.detail-row.full-width-row form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.detail-row.full-width-row textarea {
    width: 100% !important;
    min-height: 80px;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    background-color: #eff3fb;
}

.detail-row.full-width-row .update-btn {
    align-self: start;
    margin-top: 6px;
    padding: 6px 12px;
    font-size: 0.875rem;
}



.select-row {
    display: flex;
    align-items: center;        /* Vertically centers all child elements */
    gap: 8px;                   /* Optional: adds consistent spacing */
    /*margin-bottom: 8px;         /* Or as needed */
}

.select-row .title {
    flex-shrink: 0;/* Prevents the label from being squeezed */
    font-weight: 700;
    font-size: 0.875rem;
}

/* Status form */
.status-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-form select {
    padding: 3px 6px;
    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;
}

.photo-address {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 2px;
    min-height: 50px;
}

.photo-address .title {
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    color: white;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}
.close-btn-container {
  position: relative;
  display: inline-block;
}
.close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    background-color: #d9534f !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
    padding: 0 !important;
}

.close-btn:hover {
    background-color: #c9302c !important;
    transform: translateY(-15%) scale(1.1) !important; /* Slight zoom */
}
.close-btn:hover::after {
    opacity: 1;
    visibility: visible;
}
/* Tooltip bubble */
.close-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -38px;   /* distance below button */
    left: -65%;
    transform: translateX(-50%);
    background: #2c2c2c;  /* dark rounded bubble */
    color: #fff;
    padding: 7px 12px;
    font-size: 11px;
    line-height: 1;
    border-radius: 10px;  /* <-- full rounded shape */
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: opacity 0.18s ease;
    z-index: 9999;
}
/* Show tooltip on hover */
.close-btn:hover::after,
.close-btn:hover::before {
    opacity: 1;
}

#filter_date_label.disabled {
  color: #b3b3b3;
}

.update-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  font-weight: 500;
  font-size: 15px;
  padding: 7px 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
  transition: all 0.25s ease;
}

.update-btn i {
  font-size: 16px;
}

.update-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.update-btn:active {
  transform: scale(0.98);
}

.update-btn:disabled {
    background: linear-gradient(135deg, #eeeeee, #dddddd);
    cursor: none;
    box-shadow: none;
    transform: none;
}

.select-status {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.status-yes {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-no {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.status-undecided {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.responsive-view-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}
.map-link {
    flex-shrink: 0;         /* prevent icon from shrinking or moving */
  color: #ffc107;
  font-size: 1.1em;
  transition: transform 0.2s ease, color 0.2s ease;
}
.map-link:hover {
  color: #ffdc77;
  transform: scale(1.2);
}
/* Smooth modal slide + fade */
.confirm-animate {
    animation: confirmSlideIn 0.35s ease-out;
}

@keyframes confirmSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Color themes */
.confirm-green  { background: #e8f8f0 !important; }
.confirm-yellow { background: #fff8e6 !important; }
.confirm-red    { background: #fdecea !important; }
.confirm-blue    { background: #e1eaf3 !important; }

.confirm-green-header  { background: #28a745; color: white; }
.confirm-yellow-header { background: #ffc947; color: white; }
.confirm-red-header    { background: #dc3545; color: white; }
.confirm-blue-header    { background: #79b1ed; color: white; }

.confirm-green-btn  { background: #28a745 !important; color: white !important; }
.confirm-yellow-btn { background: #ffb400 !important; color: white !important; }
.confirm-red-btn    { background: #dc3545 !important; color: white !important; }
.confirm-blue-btn    { background: #529dec !important; color: white !important; }

.confirm-green-btn:hover  { background: green !important; color: white !important; }
.confirm-yellow-btn:hover { background: #e09e00 !important; color: white !important; }
.confirm-red-btn:hover    { background: #ae2b38 !important; color: white !important; }
.confirm-blue-btn:hover    { background: #045fbf !important; color: white !important; }

#globalConfirmIcon {
    font-size: 2.5rem;    /* increase icon size */
    line-height: 1;       /* clean vertical alignment */
    display: inline-block;
    transform: translateY(-1px); /* perfect vertical centering */
    margin-right: 10px;
}
.map-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.map-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
}

.map-close {
  color: #8f8f8f;
  position: absolute;
  top: -9px; right: 3px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.map-close:hover {
  color: #000;
}

/* Define colors for each filter */
.map-filter[data-filter="all"]      { background-color: #f0f0f0; color: #333; }
.map-filter[data-filter="scheduled"]      { background-color: #d4edda; color: #155724; }
.map-filter[data-filter="cancelled"]       { background-color: #f8d7da; color: #721c24; }
.map-filter[data-filter="pending"]{ background-color: #fff3cd; color: #856404; }

/* Toggle Container */
.sms-consent {/* Wrapper (optional, helps spacing in forms) */
    max-width: 100%;
}
.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    user-select: none;
    max-width: 100%;
    flex-wrap: nowrap;
}

/* Toggle Text */
.toggle-text {
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;        /* Allow wrap if needed */
    word-break: break-word;    /* Prevent overflow */
    max-width: 100%;
}

/* Hide actual checkbox */
.toggle-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle Slider */
.toggle-slider {
    position: relative;
    width: 46px;
    height: 26px;
    min-width: 46px;     /* Prevent shrink on mobile */
    background-color: #ccc;
    border-radius: 13px;
    transition: background-color 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

/* Inner circle */
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    top: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* Checked state */
.toggle-label input:checked + .toggle-slider {
    background-color: #007cba;
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

#consent-text {
    min-height: 20px;
    transition: opacity 0.2s ease;
    display: inline-block;
}
#sms-warning {
    color: #d32f2f;
    font-size: 0.875rem;
    font-style: italic;
}
#chatbot-toggle {
    position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007cba;
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 1000;
        transition: all 0.3s ease;
}
#chatbot-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    max-height: 300px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    /* Responsive adjustments */
    transform: translateX(0);
}
/************ Mobile- and Tablets *******************************************************************************/
@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;
    }
    
    .detail-row.full-width-row {
    width: 100%;
    max-width: 100%;
    }
    
    #filter_date {
        background-color: white;
    }
    
    #filter_date:disabled {
      background-color: #e3e3e3;
    }
    
    #filter_date_label.disabled {
      color: #b3b3b3;
    }
    
    .welcome-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .welcome-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

    #chatbot-toggle {
        bottom: 70px;
        right: 2px;
        width: 40px;
        height: 40px;
        font-size: 18px;
}
    #chatbot-box {
        width: calc(100% - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        margin: 0 auto;
        max-height: 200px;
        font-size: 14px;
    }
}
@media (min-width: 576px) {
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .toggle-label {
        gap: 8px;
    }

    .toggle-text {
        font-size: 13px;
    }

    .toggle-slider {
        width: 42px;
        height: 24px;
        min-width: 42px;
    }

    .toggle-slider::before {
        width: 20px;
        height: 20px;
        top: 2px;
        left: 2px;
    }

    .toggle-label input:checked + .toggle-slider::before {
        transform: translateX(18px);
    }
}
@media (max-width: 768px) {
    body {
        padding: 2px;
        padding-bottom: 70px;
    }
    .split-columns {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .split-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #ddd;
        padding-top: 20px;
        margin-top: 20px;
    }
  
    .tabs {
        display: none !important;
    }
  
  .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%;
    }
    #filter_date_label.disabled {
      color: #b3b3b3;
    }
    .dashboard {
        padding: 15px 0;
    }
    .dashboard-left {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-start;
    }
    .dashboard-right {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        align-items: unset;
    }
    .filter-container {
        margin: 15px 0;
        display: flex;
        /*flex-direction: column;*/
        gap: 8px;
    }
    .filter-container label {
        font-size: 14px;
    }
    .filter-container select,
    .filter-container input {
        width: 100%;
        padding: 8px;
        border-radius: 4px;
        border: 1px solid #666;
    }
    .header-btn {
        flex: 1;
        justify-content: center;
    }
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #89cef5;
        border-top: 1px solid #ddd;
        display: flex;
        justify-content: space-around;
        z-index: 1000;
    }

    .mobile-bottom-nav a {
        flex: 1;
        text-decoration: none;
        border: none;
        background: none;
        padding: 6px 0;
        font-size: 12px;
        color: #777;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav a i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .mobile-bottom-nav a.active {
        color: #001021;
    }
    .forgot-container {
            margin: 10px auto;
    }
}
@media (max-width: 992px) { /* tablets */
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}