:root {
    --bg-color: #fcfbfa;
    --text-color: #2b2927;
    --border-color: #e6e3df;
    --card-bg: #ffffff;
    --accent-color: #AC3710;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:"Overpass", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

input, textarea, select {
    font-size: 16px; /* Prevents auto-zoom on mobile focus */
  }

.chat-wrapper {
    width: 100%;
    max-width: 650px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    padding: 20px;
}

.chat-wrapper .footer{
    margin-top: 30px;
}

.title {
    margin: 30px 0;
    text-align: center;
}

.title h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: "Hammersmith One", sans-serif;
}

.disclaimer {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.copyright {
    color: #888;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}
/* Desktop default layout */
#property-modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); 
    z-index: 100; justify-content: center; align-items: center; 
    padding: 16px; backdrop-filter: blur(2px);
    padding: 0;
}
.modal-dialog-card {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-family: sans-serif;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.modal-close-btn {
    position: absolute; top: 12px; right: 12px; 
    background: rgba(255,255,255,0.8); border: none; border-radius: 50%; 
    width: 32px; height: 32px; font-size: 1.2rem; cursor: pointer; 
    z-index: 101; display: flex; align-items: center; justify-content: center;
}
/* Mobile Full-Screen Layout (600px or less) */
@media screen and (max-width: 600px) {
    #property-modal-overlay {
        padding: 0;
    }
    .modal-dialog-card {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        
        /* Remove all corner radiuses / curbs */
        border-radius: 0;
        border: none;
        box-shadow: none;
    }


}

.stash-floating-pill {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 50;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 0.96rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.stash-floating-pill.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.stash-floating-pill:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.stash-pill-badge {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    
}

/* Bottom Drawer Overlay & Sheet */
.stash-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10; /* Increased to stay right under the drawer */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stash-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.stash-bottom-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 11;
    background: #ffffff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease-in-out, opacity 0.2s ease, visibility 0.35s ease;
}

.stash-drawer-overlay.is-open .stash-bottom-drawer {
    max-height: 95vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
}

.stash-drawer-handle {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 0 auto 16px auto;
}

#stash-drawer-content {
    width: 100%;
    display: block;
    min-height: 100px;
    padding: 30px 10px 0;
}

/* Drawer Title & Subtitle */
.drawer-title {
    margin: 0 0 6px 0;
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.drawer-subtitle {
    margin: 0 0 20px 0;
    font-size: 0.9375rem; /* 15px */
    color: #64748b;
    line-height: 1.5;
}

/* Stash Title Input Field */
.stash-title-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.stash-title-input::placeholder {
    color: #94a3b8;
}

.stash-title-input:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Share Action Button */
.btn-primary.btn-share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #0f172a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary.btn-share-action:hover {
    background-color: #1e293b;
}

.btn-primary.btn-share-action:active {
    transform: scale(0.98);
}

/* Material Symbol Alignment */
.btn-primary.btn-share-action .material-symbols-outlined {
    font-size: 1.25rem; /* 20px */
    line-height: 1;
}

/* Secondary Close Button */
.btn-secondary.btn-close-drawer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 10px; /* Separates it cleanly from the primary button above */
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-secondary.btn-close-drawer:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.btn-secondary.btn-close-drawer:active {
    transform: scale(0.98);
}

.btn-secondary.btn-close-drawer .material-symbols-outlined {
    font-size: 1.125rem; /* 18px */
    line-height: 1;
}

.drawer-actions {
    margin-top: 30px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.stash-notice-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--surface-subtle, #f5f5f5);
    color: var(--text-secondary, #666);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  /* PWA Install Button */
  /* PWA Install Button Base */
#pwa-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px 10px 18px;
    background-color: #121212;
    color: #fbbc04; /* Warm yellow/amber accent */
    border: 1px solid #fbbc04;
    border-radius: 24px; /* Soft pill shape */
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    user-select: none;
  }
  
  /* Material Icon Sizing inside Button */
  #pwa-install-btn .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    vertical-align: sub;
  }
  
  /* Hover & Active States */
  #pwa-install-btn:hover {
    background-color: #fbbc04;
    color: #121212;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 188, 4, 0.3);
  }
  
  #pwa-install-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

.logo-text {
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-family: "Hammersmith One", sans-serif;
}