/* home/static/css/mysite.css */

/* ====================== RESET & TYPOGRAPHY ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.5;
  color: #000;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ====================== UTILITIES ====================== */
/* Hides an element completely */
.hidden {
  display: none !important;
}

/* A simple container to center content and set max width */
.container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ====================== HEADER & NAV ====================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  position: relative;
  border-top: none !important;
  border-bottom: none !important;
}

.special-link-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}
.special-link {
  background-color: #007bff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.special-link:hover {
  background-color: #0056b3;
}

/* Flex container for logo, desktop menu, and toggle button */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  max-width: 1280px;
}

.nav-icon {
  width: 1.5rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* Logo styling */
.logo {
  font-size: 1;          /* hide any leftover text */
  padding: 0;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 3.5rem;       /* about 56px; increased from 40px */
  width: 21rem;         /* increased proportionally */
  /* Default to visible - only fade if image is actually loading */
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  background-color: transparent; /* No placeholder background for logo */
}

/* If image is still loading when JS runs, it will handle opacity */

/* Shared styles for any nav-menu (desktop or mobile) */
.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #000;
  font-weight: 600;
  font-size: 1rem;
}

.nav-link:hover {
  color: #444;
}

/* === Desktop Menu (visible on ≥768px) === */
.desktop-menu {
  display: none; /* Hidden on mobile by default */
  gap: 1.5rem;
  align-items: center;
}

/* === Mobile Toggle Button (visible on <768px) === */
.mobile-toggle {
  display: none; /* hidden by default */
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
}

/* === Mobile Menu (hidden by default; shown when toggled) === */
.mobile-menu {
  flex-direction: column;
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  position: absolute;
  top: 100%; /* directly below the header */
  left: 0;
  right: 0;
  padding: 1rem;
  gap: 1rem;
  z-index: 100; /* ensure it appears above content */
  display: none;
  border-top: none !important;
}

.mobile-menu.mobile-menu-open {
  display: flex;
}

/* ====================== RESPONSIVE RULES ====================== */
/* Mobile first: below 768px */
/* Show toggle button, hide desktop menu */
@media (max-width: 767px) {
  .desktop-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  /* Mobile-menu remains hidden by default; JS will remove .hidden to show it */
  .logo-image {
    height: 2.5rem;
    width: auto;
    max-width: none;
  }
}

/* Desktop: 768px and up */
/* Show desktop menu, hide toggle & mobile menu */
@media (min-width: 768px) {
  .desktop-menu {
    display: flex; /* Show the desktop menu */
  }

  .header-links-left {
    display: flex;
    gap: 1.5rem;
    align-items: left;
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
  }

  .header-links-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }

  .nav-container .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-toggle,
  .mobile-menu {
    display: none !important;
    border-top: none !important;
  }
}

.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 63vh;
  overflow: hidden;
  object-fit: contain; 
}

@media (max-width: 767px) {
  .hero-video {
    aspect-ratio: 4/3;
    max-height: none;
  }
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;        
  object-position: center;
  /* Video optimization */
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Slightly darkens the video */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.hero-overlay-image {
  max-width: 700px;
  max-height: 500px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  /* Start visible - no fade needed for hero overlay */
  opacity: 1;
  background-color: transparent; /* No dark background */
}

/* Responsive sizing for logo on video */
@media (max-width: 1024px) {
  .hero-overlay-image {
    max-width: 55%;
    max-height: 220px;
  }
}

@media (max-width: 768px) {
  .hero-overlay-image {
    max-width: 50%;
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  .hero-overlay-image {
    max-width: 55%;
    max-height: 140px;
  }
}

.hero-overlay-subtitle {
  color: white;
  font-size: 1rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-overlay-subtitle {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-overlay-subtitle {
    font-size: 0.7rem;
  }
}

/* ========== GALLERY AS A ROW ========== */
.three-image-grid .grid {
  display: flex;
  flex-wrap: wrap;           /* allow wrapping on narrow screens */
  justify-content: center;   /* center the row */
  padding-bottom: 6rem;
  gap: 1rem;                 /* space between grid items */
}

.three-image-grid .grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex: 1 1 450px;          /* slightly less wide, minimum 450px */
  max-width: 450px;         /* slightly less wide maximum */
  min-height: 375px;        /* keep the same height */
}

.three-image-grid .grid-item {
  background-color: #e5e7eb; /* Placeholder background */
}

.three-image-grid .grid-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease, opacity 0.3s ease-in-out, transform 0.3s ease;
  opacity: 0;
  /* Darkened by default */
  filter: brightness(0.4);
}

.three-image-grid .grid-item img[src] {
  opacity: 1;
}

/* Normal brightness and zoom on hover */
.three-image-grid .grid-item:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

.three-image-grid .grid-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 28, 28, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  opacity: 1; /* Visible by default */
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through to the link */
}

/* Hide overlay on hover */
.three-image-grid .grid-item:hover .grid-item__overlay {
  opacity: 0;
}

.three-image-grid .grid-item a {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.three-image-grid .grid-item__overlay .overlay-title {
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.three-image-grid .grid-item__overlay .overlay-description {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.three-image-grid .grid-item__overlay .overlay-caption {
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* override the old one‐column mobile rule if present */
@media (max-width: 767px) {
  .three-image-grid .grid-item {
    flex: 1 1 100%;
    max-width: 100%;
    aspect-ratio: 4/3;
    min-height: 0;
  }
  .three-image-grid .grid-item a {
    height: 100%;
  }
  .three-image-grid .grid-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* ========== SUBTITLE ========== */
.section-title h2 {
  color: #000;
  text-align: center;
  font-size: 4rem;
  margin: 1.5rem 0;
}

@media (max-width: 767px) {
  .section-title h2 {
    font-size: 1.6rem;
    white-space: nowrap;
  }
}

/* ========== ARROW ICON ========== */
.arrow-icon {
  display: flex;
  justify-content: center;  /* center horizontally */
  margin: 1rem 0;            /* some vertical breathing room */
  padding-bottom: 4rem;
}
.arrow-icon img {
  width: clamp(24px, 3vw, 64px);
  height: auto;
}

/* ========== INTRO TEXT ========= */
.centered-textbox {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.5rem;
}

.centered-textbox p {
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 0rem;
  text-align: center;        /* center multiline text */
  font-size: 1.1rem;  
  font-weight: 400;      
          
}

/* ====================== FOOTER ====================== */
.site-footer {
  background-color: #000;
  color: #eee;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 0 3rem;

}


@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }
}



.footer-heading {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #ddd;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-text {
  color: #ddd;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
  padding-bottom: 9rem
}

.social-link {
  display: inline-block;
  color: inherit;
}

/* Newsletter Signup Form (centered layout) */
.newsletter-signup-section {
  padding: 4rem 2rem;
  background-color: #fff;
}

.newsletter-signup-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
  text-align: center;
}

.newsletter-description {
  color: #000;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.newsletter-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.newsletter-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form-group label {
  color: #000;
  font-size: 0.9rem;
  font-weight: 500;
}

.newsletter-form-group .required {
  font-weight: normal;
  color: #666;
}

.newsletter-input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: border-color 0.2s, background-color 0.2s;
}

.newsletter-input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #fff;
}

.newsletter-message {
  margin-top: -0.5rem;
  min-height: 1.5rem;
  font-size: 0.9rem;
}

.newsletter-button {
  background-color: #000;
  color: #fff;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: center;
  min-width: 150px;
}

.newsletter-button:hover {
  background-color: #333;
}

.newsletter-button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .newsletter-form-row {
    grid-template-columns: 1fr;
  }
  
  .newsletter-signup-section {
    padding: 2rem 1.5rem;
  }
}

/* FlexPage Newsletter Signup Styles */
.flex-newsletter-signup {
  padding: 4rem 2rem;
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.flex-newsletter-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
  text-align: center;
}

.flex-newsletter-description {
  color: #000;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

.flex-newsletter-form-element {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.flex-newsletter-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.flex-newsletter-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flex-newsletter-form-group label {
  color: #000;
  font-size: 0.9rem;
  font-weight: 500;
}

.flex-newsletter-form-group .required {
  font-weight: normal;
  color: #666;
}

.flex-newsletter-input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px; /* Pill-shaped */
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: all 0.2s ease;
}

.flex-newsletter-input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #fff;
}

.flex-newsletter-message {
  margin-top: -0.5rem;
  min-height: 1.5rem;
  font-size: 0.9rem;
}

.flex-newsletter-button {
  background-color: #000;
  color: #fff;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 9999px; /* Pill-shaped */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-self: center;
  min-width: 160px;
}

.flex-newsletter-button:hover {
  background-color: #333;
}

.flex-newsletter-button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .flex-newsletter-form-row {
    grid-template-columns: 1fr;
  }
  
  .flex-newsletter-signup {
    padding: 2rem 1.5rem;
  }
}

/* Form Success/Error Messages (Global) */
.form-success {
  color: #28a745;
  background: #d4edda;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
  margin-top: 0.5rem;
}

.form-error {
  color: #dc3545;
  background: #f8d7da;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
  margin-top: 0.5rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;    
  vertical-align: middle;
}

/* Footer bottom: legal & copyright */
.footer-bottom {   
  border-top: 1.5px solid #fff;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #ddd;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Group links on desktop side‑by‑side */
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.footer-legal-link {
  color: #ddd;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: #fff;
}

.footer-separator {
  color: #fff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: #bbb;
}

/* Remove absolute positioning styles that are no longer needed */
.header-links-left, .header-links-right, .nav-container .logo {
  position: static;
  transform: none;
  top: auto;
  left: auto;
  right: auto;
}

/* ====================== INVENTORY PAGE STYLES ====================== */
.status-badge {
  border-radius: 25px; /* More oval shape */
  min-width: 120px; /* Make it longer */
  padding: 6px 16px; /* Make it taller with more padding */
  text-align: center;
  font-size: 10px; /* Smaller text */
  font-weight: 500; /* Medium weight */
  color: white; /* Ensure text is white */
  text-transform: uppercase; /* Optional: make text uppercase for better look */
  letter-spacing: 0.5px; /* Slight letter spacing for readability */
}

.status-badge[data-status="live auction"] {
  background-color: #dc2626; /* Red */
}
.status-badge[data-status="make offer"] {
  background-color: #111827; /* Black */
}
.status-badge[data-status="coming soon"] {
  background-color: #9ca3af; /* Light grey */
}
.status-badge[data-status="sold"] {
  background-color: #059669; /* Green */
}
.status-badge[data-status="rnm"] {
  background-color: #7c3aed; /* Purple */
}

.favorite-btn {
  transition: all 0.2s ease;
  transform: scale(1); /* Ensure consistent base size */
}

.favorite-btn:hover {
  transform: scale(1.1); /* Reduced scale effect */
}

.favorite-btn.favorited {
  color: #ef4444; /* Red when favorited */
  transform: scale(1); /* Ensure favorited state doesn't change size */
}

.favorite-btn.favorited .heart-icon {
  color: #ef4444; /* Red when favorited */
  text-shadow: 0 0 1px #ef4444; /* Add a subtle glow effect */
}

.heart-icon {
  display: block; /* Ensure proper sizing */
  line-height: 1; /* Remove extra line height */
  font-size: 48px; /* Fixed font size */
  width: 48px; /* Fixed width */
  height: 48px; /* Fixed height */
}
