/* ==========================================================================
   PROTOTYPE HOMEPAGE STYLES (prototype_home.css)
   Page-specific styles for the First Texas Homes homepage optimization.
   ========================================================================== */

/* --- Brand & Theme Constants --- */
:root {
  --fth-navy: #1d3161;
  --fth-navy-dark: #002b59;
  --fth-navy-trans: rgba(0, 43, 89, 0.45);
  --fth-red: #d1262d;
  --fth-gray-bg: #f8f9fa;
  --fth-white: #ffffff;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Hero Section (Video/Slider) --- */
.video-hero-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero-wrap .embed-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.video-hero-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--fth-navy-trans);
  z-index: 1;
  pointer-events: none;
}

.video-caption {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0 15px;
}

.video-caption .display-1 {
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- Mobile Slider (Bootstrap Carousel) --- */
#mobileIndexSlider img {
  height: 400px;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  #mobileIndexSlider img {
    height: 280px;
  }
}

/* --- Brand Strip --- */
.brand-strip {
  margin-bottom: 0px;
}

.brand-strip li {
  padding: 25px 25px 0 25px;
  transition: var(--transition-smooth);
}

.brand-strip li:hover {
  transform: translateY(-5px);
}

/* --- Map Container & Hint --- */
.gmap-fullwrap {
  margin-top: 0px;
  margin-bottom: 20px;
  position: relative;
}

#map-wrapper-homepage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
}

#map {
  width: 100%;
  height: 400px;
  transition: var(--transition-smooth);
}

.map-hint {
  background: rgba(0, 43, 89, 0.85);
  color: var(--fth-white);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 10;
  transition: opacity 0.3s ease;
}

/* --- Map Desktop Filter Panel --- */
#filterForm.map-filter-panel {
  position: absolute;
  left: 5%;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 8px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#filterForm.map-filter-panel h3 {
  font-size: 1.25rem;
}

/* --- Mobile Filter sticky Wrapper --- */
.mobile-filter-sticky-wrapper {
  background: #ffffff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-filter-bar {
  border-bottom: 1px solid #f0f0f0;
}

.filter-collapse-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: #fff;
}

.filter-collapse-wrapper.show {
  max-height: 500px; /* arbitrary large value for smooth transition */
  overflow: visible;
}

.filter-collapse-wrapper form {
  padding: 15px;
}

/* --- Responsive Map Layout --- */
@media (min-width: 992px) {
  #map {
    height: 540px !important;
  }
  #map-wrapper-homepage {
    border-top: 3px solid var(--fth-navy);
  }
  #filterForm.map-filter-panel {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 991.98px) {
  #map-wrapper-homepage {
    border-bottom: 3px solid var(--fth-navy);
  }
  #filterForm.map-filter-panel {
    display: none !important;
  }
}

/* --- Contact AJAX Form Widget --- */
#myAjaxFormWrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ftx-thanks {
  display: none;
  padding: 40px 20px;
  text-align: center;
  color: var(--fth-navy);
  background: #f8f9fa;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px dashed var(--fth-navy);
  border-radius: 8px;
}

/* --- Animations --- */
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.05); }
  28% { transform: scale(1); }
  42% { transform: scale(1.05); }
  70% { transform: scale(1); }
}

.heartbeat-animation {
  animation: heartbeat 6s infinite;
}

.heartbeat-animation:hover {
  animation: none;
  transform: scale(1.05);
}
