.listing-info-modal li {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    list-style-type: circle;
    flex-wrap: wrap;
}

.listings-grid {
    display: grid;
    align-items: flex-start;
    justify-content: space-evenly;
    display: flex;
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: .5rem;
}

.listing-video-container {
    width: 100%;
    height: 8rem;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    background-color: var(--backgroundGray);
}

.listing-video-container.no-video {
  height: auto;
}

.listing-video-container video {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.listing-card {
    width: min(17rem, 90vw);
    background-color: var(--primaryWhite);
    border-radius: 1rem;
    border: 1px solid var(--gray4);
}

.listing-card > :nth-child(2) {
    padding: 1rem .5rem;
    display: grid;
    row-gap: .5rem;
    font-size: .9rem;
}

.listing-price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.listing-price-container > :first-child {
    display: flex;
    align-items: center;
}

.listing-price-container > :nth-child(2) {
    background-color: transparent;
    padding: .2rem;
    display: flex;
    justify-content: center;
    border: none;
}
.listing-price-container > :nth-child(2) > img {
    height: 1.2rem;
}
.rent-digit {
    font-size: 1.1rem;
    font-family: var(--semiBold);
}
.rent-digit ~ * {
    color: var(--gray5);
}


.detail-container {
    display: flex;
    align-items: center;
    column-gap: .5rem;
}
.detail-container > :first-child {
    width: 1.2rem;
    font-size: .9rem;
    /* background-color: rebeccapurple; */
    text-align: center;
    display: flex;
    justify-content: center;
}

.reserve-room-btn {
    margin-top: 1rem;
    width: 100%;
    background-color: var(--primaryGreen);
    border: none;
    color: white;
    padding: .5rem;
    border-radius: .2rem;
}

.toggle-list-room-btn {
    margin-top: 1rem;
    width: 100%;
    border: none;
    color: white;
    padding: .5rem;
    border-radius: .2rem;
    display: flex;
    justify-content: center;
    height: 2rem;
    align-items: center;
}

.toggle-list-room-btn.list {
    background-color: var(--primaryGreen);
}
.toggle-list-room-btn.unlist {
    background-color: var(--red1);
}

.listing-learn-more-container {
    padding-top: 3rem;
    position:fixed;
    background-color: white;
    z-index: var(--aboveBackdrop);
    --modalWidth: min(40rem, 90vw);
    width: var(--modalWidth);
    left: calc((100vw - var(--modalWidth)) / 2);
    --modalHeight: 30rem;
    height: var(--modalHeight);
    bottom: calc((100vh - var(--modalHeight)) / 2);
    border-radius: 1rem;
    opacity: 0;
    z-index: var(--indexBehind);
    transform: scale(.7);
    transition: .2s ease-in-out;
    overflow-y: auto;
    display: grid;
    align-content: flex-start;
    padding-bottom: 2rem;
}

.listing-learn-more-container > * {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    opacity: 0;
    z-index: var(--indexBehind);
    transform: translateX(-2rem);
    transition: .2s ease-in-out;
}

.listing-learn-more-container > .active {
    opacity: 1;
    z-index: inherit;
    transform: translateX(0);
    transition: .2s ease-in-out;
}

.listing-learn-more-container.show {
    z-index: var(--aboveBackdrop);
    transform: scale(1);
    opacity: 1;
    transition: .2s ease-in-out;
}

.listing-info-modal > :first-child {
    position: absolute;
    right: 1rem;
    top: 0rem;
    background-color: transparent;
    border-radius: var(--circularBorderRadius);
    border: none;
    font-size: 2rem;
    color: var(--gray600);
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-info-modal > ul {
    display: grid;
    row-gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.listing-info-modal > ul ul {
    display: grid;
    row-gap: .5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.listing-info-modal .copy-btn {
    width: max-content;
    margin-left: 1rem;
    padding: .5rem;
    border-radius: .3rem;
    background-color: var(--primaryWhite);
    color: var(--primaryGreen);
    border: 1px solid var(--primaryGreen);
}

.modal-disclaimer {
    display: grid;
    row-gap: .5rem;
    background-color: var(--faintGreen);
    padding: 1rem;
    border-radius: .5rem;
    position: relative;
}

.listing-cta-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: .5rem;
}

/* thread design */
.listing-threads-container {
    width: 100%;
    height: 100%;
    background-color: var(--primaryWhite);
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /* align-content: flex-start; */
    /* background-color: green; */
}

.listing-threads-container > :first-child {
    /* background-color: aliceblue; */
    width: 90%;
    margin: 0 auto;
    display: grid;
    row-gap: 1rem;
}

.inquiry-field-container {
    outline: 1px solid var(--lightGray);
    display: flex;
    justify-content: space-between;
    padding: .5rem 1rem;
    border-radius: .3rem;
    column-gap: 1rem;
}

.inquiry-field-container textarea {
    border: none;
    width: 100%;
}

.inquiry-field-container textarea:focus-visible {
    outline: none;
}

.inquiry-field-container button {
    width: 4rem;
    margin-top: auto;
}

.thread-initials {
    background-color: rgb(140, 140, 241);
    color: var(--primaryWhite);
    border-radius: .5rem;
    padding: .2rem .4rem;
    font-size: .9rem;
}

/* .thread {
    display: grid;
    row-gap: 1.5rem;
    outline: 1px solid var(--lightGray);
    padding: 2rem;
    border-radius: .8rem;
} */

.message-container {
    display: grid;
    row-gap: .5rem;
}

.message-container > :first-child {
    display: flex;
    column-gap: .5rem;
    align-items: center;
}



@media screen and (max-width: 400px) {
    .listing-learn-more-container {
        left: 0;
        width: 100vw;
        bottom: -10rem;
        transform: scale(1);
        height: 90vh;
        min-height: 30rem;
        border-radius: 1rem 1rem 0 0;
    }

    .listing-learn-more-container.show {
        bottom: 0;
    }
}


/* ai design makeover */
/* Video Uploader Component Styles */
.listing-video-container {
  position: relative;
  width: 100%;
  min-height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fdf7;
}

/* Upload Zone - When no video */
.video-upload-zone {
  
  padding: 24px 16px;
  border: 2px dashed #c8e6c3;
  border-radius: 8px;
  background: linear-gradient(180deg, #f0f9ef 0%, #fff 100%);
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 120px;
}

.video-upload-zone:hover,
.video-upload-zone.drag-over {
  border-color: #68bb59;
  background: linear-gradient(180deg, #e8f5e6 0%, #fff 100%);
}

.video-upload-zone.has-preview {
  padding: 0;
  border-style: solid;
  border-color: #68bb59;
}

.video-upload-zone.no-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Upload Icon */
.upload-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #68bb59 0%, #4a9c3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(104, 187, 89, 0.3);
}

.upload-icon-wrapper svg {
  width: 22px;
  height: 22px;
  color: white;
}

/* Upload Label Button */
.upload-video-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #68bb59 0%, #5aad4b 100%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(104, 187, 89, 0.25);
}

.upload-video-label:hover {
  background: linear-gradient(135deg, #5aad4b 0%, #4a9c3d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(104, 187, 89, 0.35);
}

.upload-video-label svg {
  width: 16px;
  height: 16px;
}

.upload-hint {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
}

/* Video Preview Zone - New structure */
.video-preview-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid #68bb59;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fdf7;
}

/* Video Player Container - holds video and progress overlay */
.video-player-container {
  position: relative;
  width: 100%;
  background: #1a1a1a;
}

.listing-video-container video,
.video-player-container video {
  width: 100%;
  display: block;
  max-height: 180px;
  object-fit: cover;

  height: 8rem;
}

/* Video Actions Bar - OUTSIDE video, never overlapped */
.video-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fdf7;
  border-top: 1px solid #e8f5e6;
}

.video-file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.video-file-name {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.video-file-size {
  font-size: 11px;
  color: #888;
}

.video-action-buttons {
  display: flex;
  gap: 8px;
}

.btn-change-video,
.btn-upload-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-change-video {
  background: #fff;
  color: #555;
  border: 1px solid #ddd;
}

.btn-change-video:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.btn-upload-video {
  background: linear-gradient(135deg, #68bb59 0%, #5aad4b 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(104, 187, 89, 0.25);
}

.btn-upload-video:hover:not(:disabled) {
  background: linear-gradient(135deg, #5aad4b 0%, #4a9c3d 100%);
}

.btn-upload-video:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-upload-video svg,
.btn-change-video svg {
  width: 14px;
  height: 14px;
}

/* Upload Progress Overlay */
.upload-progress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}

.upload-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e8f5e6;
  border-top-color: #68bb59;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.upload-progress-text {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.upload-progress-bar-container {
  width: 120px;
  height: 4px;
  background: #e8f5e6;
  border-radius: 2px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #68bb59 0%, #4a9c3d 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.upload-progress-percent {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

/* Error State */
.video-error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 5px;
  color: #dc2626;
  font-size: 12px;
  margin-top: 8px;
}

.video-error-msg svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Success State */
.video-success-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 5px;
  color: #16a34a;
  font-size: 12px;
  margin-top: 8px;
}

.video-success-msg svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Toast Notifications */
.video-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  animation: slideIn 0.3s ease;
  min-width: 280px;
  max-width: 360px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.video-toast.success { border-left: 3px solid #68bb59; }
.video-toast.error { border-left: 3px solid #dc2626; }

.video-toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.video-toast.success .video-toast-icon { color: #68bb59; }
.video-toast.error .video-toast-icon { color: #dc2626; }

.video-toast-content { flex: 1; }

.video-toast-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.video-toast-message {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.video-toast-close {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #999;
}

.video-toast-close:hover { color: #333; }

.hidden { display: none !important; }
