/* =========================================================================
   DelCRM public website styles
   Palette carried over from the original thedelpilar.com site:
     navy   #0b1f3a   teal  #0b7295   whatsapp #25D366
   ========================================================================= */

:root {
    --navy: #0b1f3a;
    --teal: #0b7295;
    --teal-dark: #085f7d;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;
    --bg: #f5f7fa;
    --text: #222;
    --muted: #666;
    --border: #e5e7eb;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --radius: 14px;
}

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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }

/* HEADER */
header.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    max-width: 1400px;
    margin: auto;
    height: 80px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { height: 56px; width: auto; }
.logo span { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: .3px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
    text-decoration: none; color: #1f2937; font-size: 16px; font-weight: 500;
}
.nav-links a.active, .nav-links a:hover { color: var(--teal); }
.list-property-btn {
    text-decoration: none; border: 2px solid var(--navy); border-radius: 50px;
    padding: 10px 22px; color: var(--navy); font-weight: 600; white-space: nowrap;
}
.list-property-btn:hover { background: var(--navy); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
    .navbar { flex-wrap: wrap; height: auto; padding: 16px 5%; gap: 12px; }
    .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 16px; }
}

/* HERO / SEARCH */
.hero {
    min-height: 560px;
    background: linear-gradient(rgba(11,31,58,.55), rgba(11,31,58,.55)),
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa');
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center; padding: 40px 5%;
}
.search-box {
    width: 100%; max-width: 1100px; background: rgba(255,255,255,.97);
    padding: 32px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.search-box h1 { text-align: center; margin-bottom: 22px; color: var(--navy); font-size: 38px; }
.search-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.search-tabs button {
    border: 1px solid var(--border); background: #fff; padding: 10px 26px;
    border-radius: 30px; font-weight: 600; cursor: pointer; color: var(--navy);
}
.search-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-fields {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px;
}
.search-fields select, .search-fields input {
    padding: 13px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; width: 100%;
}
.btn {
    background: var(--teal); color: #fff; border: none; border-radius: 8px; cursor: pointer;
    font-size: 15px; font-weight: 600; padding: 13px 20px;
}
.btn:hover { background: var(--teal-dark); }
.btn.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn.btn-outline:hover { background: var(--navy); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* SECTIONS */
.section { padding: 70px 5%; }
.section h2 { text-align: center; color: var(--navy); margin-bottom: 16px; font-size: 34px; }
.section > p.lead { text-align: center; max-width: 760px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; }

.disclaimer-banner {
    background: #fff7e6; border-top: 1px solid #f2d99b; border-bottom: 1px solid #f2d99b;
    color: #6b4e00; font-size: 13.5px; text-align: center; padding: 10px 5%;
}
.disclaimer-banner a { color: #6b4e00; text-decoration: underline; }

/* PROPERTY GRID */
.category-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; }
.category-tabs a {
    text-decoration: none; padding: 10px 26px; border-radius: 30px; font-weight: 600;
    border: 1px solid var(--border); color: var(--navy);
}
.category-tabs a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.filters-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 12px; max-width: 1300px; margin: 0 auto 30px; background: #fff; padding: 18px;
    border-radius: 12px; box-shadow: var(--card-shadow);
}
.filters-bar select, .filters-bar input { padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; }

#properties, .properties-grid {
    max-width: 1400px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(4, 1fr); gap: 22px;
}
@media (max-width: 1200px) { #properties, .properties-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { #properties, .properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #properties, .properties-grid { grid-template-columns: 1fr; } }

.property-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--card-shadow); transition: all .25s ease; text-decoration: none; color: inherit;
    display: block;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.property-card .cat-badge {
    position: relative; display: inline-block; margin: 12px 0 0 15px; padding: 4px 12px;
    background: var(--navy); color: #fff; border-radius: 20px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
}
.property-card img { width: 100%; height: 190px; object-fit: cover; }
.property-description p:first-child { margin-top: 0; }
.property-description p:last-child { margin-bottom: 0; }
.property-card img.no-photo {
    /* Fallback (company logo) instead of a real property photo -- shown
       whole and centered rather than cropped/zoomed like a real photo. */
    object-fit: contain; padding: 30px; box-sizing: border-box; background: var(--bg);
}
.property-card h3 { padding: 14px 15px 4px; font-size: 16px; min-height: 46px; }
.property-card .location { padding: 0 15px; color: var(--muted); font-size: 13.5px; }
.property-card .price { font-size: 20px; font-weight: 700; color: var(--teal); padding: 10px 15px 4px; }
.property-card .details { display: flex; gap: 14px; padding: 6px 15px 16px; font-size: 12.5px; color: var(--muted); }

#pagination, .pagination { text-align: center; margin: 30px 0 10px; display: flex; justify-content: center; align-items: center; gap: 14px; }
#pageInfo, .page-info { font-weight: 600; color: var(--navy); }

.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; }

/* AGENTS / ABOUT */
.agents-section {
    max-width: 1400px; margin: 0 auto; padding: 90px 5%; background: #fff;
    display: flex; align-items: center; gap: 70px;
}
.agents-text { flex: 1; }
.agents-text h2 { font-size: 40px; color: var(--navy); margin-bottom: 20px; }
.agents-text p { font-size: 17px; line-height: 1.85; color: #555; margin-bottom: 16px; }
.stat-row { display: flex; gap: 40px; margin-top: 24px; flex-wrap: wrap; }
.stat-row div { text-align: center; }
.stat-row .num { font-size: 30px; font-weight: 800; color: var(--teal); }
.stat-row .label { color: var(--muted); font-size: 13px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
.team-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 28px 20px; text-align: center; }
.team-avatar {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; background: var(--teal);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
}
.team-photo {
    width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block;
    box-sizing: border-box; border: 3px solid var(--teal);
    /* Headshots are studio shots on a plain white background, same as the
       team-card behind them -- without a border the circle has no visible
       edge and the photo looks like it's just floating on the card. */
}
.team-card h4 { color: var(--navy); margin-bottom: 4px; }
.team-card .role { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

@media (max-width: 860px) {
    .agents-section { flex-direction: column; text-align: center; gap: 30px; }
}

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1100px; margin: 0 auto; }
.contact-info p { margin-bottom: 14px; font-size: 16px; }
.contact-info strong { color: var(--navy); }
.contact-form { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.contact-form label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-family: inherit;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.social-links { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.social-links a {
    text-decoration: none; padding: 8px 16px; border-radius: 20px; background: #eef6ff;
    color: var(--navy); font-weight: 600; font-size: 13px;
}
/* TikTok used to get its own dark-navy pill here, which matched the footer's
   own background exactly and made the link disappear into it (it only ever
   looked right on a light background, like the contact page) -- same light
   pill as the others everywhere keeps every "Follow Us" link visible and
   consistent regardless of what it's sitting on. */

/* FOOTER */
footer.site-footer { background: var(--navy); color: #cfd8e3; padding: 50px 5% 24px; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.footer-grid p, .footer-grid a { color: #cfd8e3; text-decoration: none; font-size: 14px; line-height: 1.9; display: block; }
footer .copyright { text-align: center; padding-top: 20px; font-size: 13px; color: #9fb0c7; }

.whatsapp-btn {
    position: fixed; bottom: 20px; right: 20px; background: var(--whatsapp); color: #fff;
    padding: 15px 22px; border-radius: 50px; text-decoration: none; font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,.3); z-index: 9998; transition: .3s;
}
.whatsapp-btn:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

/* CONSENT BANNER */
#consent-banner {
    position: fixed; left: 0; right: 0; bottom: 0; background: var(--navy); color: #fff;
    padding: 16px 5%; display: flex; gap: 20px; align-items: center; justify-content: center;
    flex-wrap: wrap; z-index: 9999;
}
#consent-banner p { font-size: 13.5px; max-width: 800px; }
#consent-banner a { color: #9ad2e8; }
#consent-banner button { padding: 9px 22px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; }
#consent-accept { background: var(--teal); color: #fff; }

/* CHATBOT WIDGET */
/* A labeled pill (matching the WhatsApp button's shape below it) rather
   than a bare icon circle -- an icon alone reads as decoration and is easy
   to miss/ignore; the text is what actually invites the click. */
#chatbot-launcher {
    position: fixed; bottom: 90px; right: 20px; z-index: 9998; background: var(--navy); color: #fff;
    display: flex; align-items: center; gap: 8px; padding: 15px 22px; border-radius: 50px;
    border: none; cursor: pointer; font-size: 15px; font-weight: 700; font-family: inherit;
    box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: .3s;
}
#chatbot-launcher:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.4); }
#chatbot-launcher .chatbot-launcher-icon { font-size: 20px; line-height: 1; }
#chatbot-window {
    position: fixed; bottom: 90px; right: 20px; width: 360px; max-width: 92vw; height: 520px;
    max-height: 78vh; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
    display: none; flex-direction: column; overflow: hidden; z-index: 9999;
}
#chatbot-window.open { display: flex; }
.chatbot-header { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.chatbot-header strong { font-size: 15px; }
.chatbot-header button { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7fafc; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.chatbot-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.chatbot-quick-replies button {
    background: #eef6ff; border: 1px solid #cfe4f5; color: var(--navy); border-radius: 16px;
    padding: 7px 14px; font-size: 13px; cursor: pointer;
}
.chatbot-input { display: flex; border-top: 1px solid var(--border); padding: 10px; gap: 8px; }
.chatbot-input input { flex: 1; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 20px; }
.chatbot-input button { background: var(--teal); color: #fff; border: none; border-radius: 20px; padding: 0 18px; cursor: pointer; font-weight: 600; }

/* FORMS / ALERTS */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #e6f8ee; color: #146c3c; border: 1px solid #b7ecd0; }
.alert-warning { background: #fff7e6; color: #6b4e00; border: 1px solid #f2d99b; }
.alert-danger { background: #fdecec; color: #8a1f1f; border: 1px solid #f5b8b8; }

.page-title-banner { background: var(--navy); color: #fff; padding: 60px 5% 40px; text-align: center; }
.page-title-banner h1 { font-size: 36px; margin-bottom: 10px; }
.page-title-banner p { color: #c9d6e6; }
