/* =============================================================
   OHB Asesorías y Consultorías — Components CSS
   Shared UI components: Header, Footer, Cards, Chatbot, Cookies
   ============================================================= */

/* ---------------------------------------------------------------
   SITE HEADER
--------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  padding: 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(27, 58, 107, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
}

/* ---------------------------------------------------------------
   LOGO
--------------------------------------------------------------- */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--accent-blue, #1B3A6B);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-header.scrolled .logo-text {
  color: var(--accent-blue, #1B3A6B);
}

/* ---------------------------------------------------------------
   NAVIGATION
--------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  position: relative;
}

.nav a {
  color: var(--text-primary, #1A1A2E);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-blue, #1B3A6B);
}

.nav a.active {
  font-weight: 600;
  border-bottom: 2px solid var(--accent-blue, #1B3A6B);
}

/* Services dropdown trigger */
.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-dropdown-trigger::after {
  content: '▾';
  font-size: 0.75rem;
  color: var(--text-secondary, #4A4A68);
  transition: transform 0.2s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] {
  color: var(--accent-blue, #1B3A6B);
}

.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger[aria-expanded="true"]::after {
  color: var(--accent-blue, #1B3A6B);
  transform: rotate(180deg);
}

/* Nav buttons (right side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.nav-btn:hover {
  background: var(--accent-blue-light, #2D5AA0);
  transform: translateY(-1px);
}

.nav-btn.secondary {
  background: transparent;
  color: var(--accent-blue, #1B3A6B);
  border: 1.5px solid var(--accent-blue, #1B3A6B);
}

.nav-btn.secondary:hover {
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
}

.nav-btn.wa-btn {
  background: #25D366;
}

.nav-btn.wa-btn:hover {
  background: #1ebe59;
}

/* ---------------------------------------------------------------
   SERVICES DROPDOWN
--------------------------------------------------------------- */
.services-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(27, 58, 107, 0.15);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.services-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #fff;
  border-top: none;
  filter: drop-shadow(0 -2px 4px rgba(27,58,107,0.08));
}

/* Visible state from JS or CSS hover */
.services-dropdown.visible,
.nav li:hover .services-dropdown,
.nav li:focus-within .services-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.services-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-primary, #1A1A2E);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.services-dropdown a:hover {
  background: rgba(27, 58, 107, 0.07);
  color: var(--accent-blue, #1B3A6B);
}

.services-dropdown .dropdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #4A4A68);
  padding: 0.5rem 1rem 0.25rem;
  display: block;
}

/* ---------------------------------------------------------------
   MOBILE TOGGLE
--------------------------------------------------------------- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-blue, #1B3A6B);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------
   MOBILE MENU
--------------------------------------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--text-primary, #1A1A2E);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 58, 107, 0.08);
  transition: color 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent-blue, #1B3A6B);
}

.mobile-menu .mobile-submenu {
  padding-left: 1rem;
}

.mobile-menu .mobile-submenu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary, #4A4A68);
  border-bottom-color: transparent;
  padding: 0.6rem 0;
}

.mobile-menu .mobile-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm, #C4956A);
  padding: 1rem 0 0.25rem;
  display: block;
}

.mobile-menu-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-secondary, #4A4A68);
  padding: 0.5rem;
  line-height: 1;
}

/* ---------------------------------------------------------------
   SITE FOOTER
--------------------------------------------------------------- */
.site-footer {
  background: #0F2847;
  color: #fff;
  padding: 4rem 0 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem 3rem;
  padding-bottom: 3rem;
}

/* Logo column */
.footer-logo-col .footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Footer columns */
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--accent-warm, #C4956A);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-col a:hover {
  color: #fff;
}

/* Contact info items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-contact-item .icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1rem;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  margin-bottom: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.footer-social a:hover {
  background: var(--accent-warm, #C4956A);
  transform: translateY(-2px);
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-warm, #C4956A);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  font-family: inherit;
}

.newsletter-btn:hover {
  background: #d4a577;
  transform: translateY(-1px);
}

.newsletter-success {
  font-size: 0.85rem;
  color: #7ee8a2;
  margin-top: 0.5rem;
  display: none;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  opacity: 0.65;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ---------------------------------------------------------------
   PROPERTY CARD
--------------------------------------------------------------- */
.property-card {
  background: var(--bg-surface, #fff);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(27, 58, 107, 0.08);
  border: 1px solid rgba(212, 197, 169, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27, 58, 107, 0.14);
}

.property-card-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.property-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.property-card:hover .property-card-img {
  transform: scale(1.04);
}

.property-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.property-card-badge.venta { background: var(--accent-blue, #1B3A6B); }
.property-card-badge.renta { background: var(--accent-warm, #C4956A); }
.property-card-badge.nueva { background: #1a9e6e; }

.property-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm, #C4956A);
  margin-bottom: 0.5rem;
}

.property-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #1A1A2E);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-location {
  font-size: 0.82rem;
  color: var(--text-secondary, #4A4A68);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.property-card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-blue, #1B3A6B);
  margin-bottom: 0.85rem;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.property-card-specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-secondary, #4A4A68);
  font-size: 0.83rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 197, 169, 0.25);
}

.property-card-spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------------------------------------------------------------
   WHATSAPP FLOATING BUTTON
--------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 997;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.wa-float svg,
.wa-float img {
  width: 28px;
  height: 28px;
}

/* WhatsApp tooltip */
.wa-float::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wa-float:hover::before {
  opacity: 1;
}

/* ---------------------------------------------------------------
   CHATBOT TOGGLE BUTTON
--------------------------------------------------------------- */
.chatbot-toggle {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(27, 58, 107, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(27, 58, 107, 0.5);
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  display: none;
}

.chatbot-badge.visible {
  display: flex;
}

/* ---------------------------------------------------------------
   CHATBOT WINDOW
--------------------------------------------------------------- */
.chatbot-window {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 360px;
  height: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(27, 58, 107, 0.18);
  display: none;
  flex-direction: column;
  z-index: 998;
  overflow: hidden;
  border: 1px solid rgba(27, 58, 107, 0.1);
  animation: chatSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.open {
  display: flex;
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chatbot header */
.chatbot-header {
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.chatbot-header-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.chatbot-header-sub {
  font-size: 0.72rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chatbot-header-sub::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ee8a2;
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.chatbot-close:hover {
  color: #fff;
}

/* Messages area */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(27, 58, 107, 0.15);
  border-radius: 2px;
}

/* Message bubbles */
.msg-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.msg-bubble.ai {
  background: rgba(27, 58, 107, 0.07);
  color: var(--text-primary, #1A1A2E);
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
}

.msg-bubble.user {
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
}

.msg-time {
  font-size: 0.68rem;
  opacity: 0.55;
  margin-top: 0.3rem;
  display: block;
}

.msg-bubble.ai .msg-time {
  text-align: left;
}

.msg-bubble.user .msg-time {
  text-align: right;
}

/* Quick replies */
.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
}

.quick-reply {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--accent-blue, #1B3A6B);
  color: var(--accent-blue, #1B3A6B);
  background: transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
}

.quick-reply:hover {
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: rgba(27, 58, 107, 0.07);
  border-radius: 4px 12px 12px 12px;
  align-self: flex-start;
  max-width: fit-content;
}

.typing-indicator span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-blue, #1B3A6B);
  opacity: 0.4;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Input bar */
.chatbot-input-bar {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(27, 58, 107, 0.1);
  gap: 0.6rem;
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid rgba(27, 58, 107, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  color: var(--text-primary, #1A1A2E);
  background: #fff;
  transition: border-color 0.2s ease;
  min-width: 0;
}

.chatbot-input:focus {
  border-color: var(--accent-blue, #1B3A6B);
}

.chatbot-input::placeholder {
  color: rgba(74, 74, 104, 0.5);
}

.chatbot-send {
  padding: 0.6rem 1.1rem;
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.chatbot-send:hover {
  background: var(--accent-blue-light, #2D5AA0);
}

/* ---------------------------------------------------------------
   COOKIE CONSENT BANNER
--------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--accent-sand, #D4C5A9);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 24px rgba(27, 58, 107, 0.1);
  z-index: 9999;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-primary, #1A1A2E);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a {
  color: var(--accent-blue, #1B3A6B);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  font-family: inherit;
  border: 2px solid transparent;
}

.cookie-btn.primary {
  background: var(--accent-blue, #1B3A6B);
  color: #fff;
  border-color: var(--accent-blue, #1B3A6B);
}

.cookie-btn.primary:hover {
  background: var(--accent-blue-light, #2D5AA0);
  border-color: var(--accent-blue-light, #2D5AA0);
}

.cookie-btn.secondary {
  background: transparent;
  color: var(--text-secondary, #4A4A68);
  border-color: rgba(74, 74, 104, 0.3);
}

.cookie-btn.secondary:hover {
  border-color: var(--text-secondary, #4A4A68);
  background: rgba(74, 74, 104, 0.05);
}

/* ---------------------------------------------------------------
   RESPONSIVE — ≤ 768px
--------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Header */
  .nav {
    display: none !important;
  }

  .nav-actions {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .mobile-menu {
    display: flex;
  }

  /* Chatbot window narrower */
  .chatbot-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    left: 1rem;
    bottom: 7rem;
    height: calc(100dvh - 8rem);
    max-height: 520px;
  }

  .chatbot-toggle {
    right: 1rem;
    bottom: 4.5rem;
  }

  .wa-float {
    right: 1rem;
    bottom: 1rem;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Newsletter form */
  .newsletter-form {
    flex-direction: column;
  }

  /* Cookie banner */
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 1rem;
  }

  .property-card-img {
    height: 180px;
  }
}
