﻿/* Index Page Styles - Marino Brimer Brand */

/* Hero Section Override */
.hero {
  background: linear-gradient(rgba(40, 40, 40, 0.7), rgba(40, 40, 40, 0.7)), 
              url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 12rem 0;
  text-align: center;
}

.hero h1 {
  font-family: 'BankGothic Lt BT', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero p {
  font-weight: 300;
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto;
}

/* Hero Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 0.75rem;
  }
}

/* Search Section Override */
.search-section {
  background: #ffffff;
  padding: 2rem 2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.search-section h2 {
  margin-bottom: 0;
  color: #282828;
  font-family: 'BankGothic Lt BT', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  font-weight: 300;
}

.toggle-search-btn {
  display: none;
  background: none;
  border: 2px solid #820000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #820000;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.toggle-search-btn:hover {
  background-color: #820000;
  color: #ffffff;
}

.toggle-search-btn .toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.toggle-search-btn.active .toggle-icon {
  transform: rotate(180deg);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: #fafafa;
  border: 1px solid #ebebeb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group:focus-within {
  border-color: #820000;
  box-shadow: 0 0 0 3px rgba(130, 0, 0, 0.06);
  background: #ffffff;
}

.filter-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: #888;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  color: #282828;
  background-color: transparent;
  outline: none;
}

.filter-group input::placeholder {
  color: #bbb;
}

.filter-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #282828;
  font-weight: 600;
  font-size: 0.95rem;
}

.checkbox-label input {
  cursor: pointer;
}

/* Buttons Override */
.btn {
  padding: 0.75rem 2.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-primary {
  background-color: #820000;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #a00000;
}

.btn-secondary {
  background-color: #6d6d6d;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #282828;
}

/* Property Card Override */
.property-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Map Section */
.map-toggle-btn {
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #820000;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.map-toggle-btn:hover {
  background-color: #a00000;
}

.map-container {
  width: 100%;
  height: 1000px;
  border-radius: 4px;
  margin: 3rem 0;
  border: 1px solid #e5e5e5;
  display: none;
}

.properties-map {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* Pagination */
#paginationContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background-color: #ffffff;
}

.pagination-info {
  color: #282828;
  font-weight: 600;
  min-width: 150px;
  text-align: center;
}

/* Pagination Responsive */
@media (max-width: 768px) {
  #paginationContainer {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    margin: 1.5rem 0;
  }

  #paginationContainer .btn {
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
    flex: 0 1 auto;
  }

  .pagination-info {
    min-width: auto;
    font-size: 0.75rem;
    width: 100%;
    order: 3;
  }
}

@media (max-width: 480px) {
  #paginationContainer {
    flex-direction: column;
    gap: 0.5rem;
  }

  #paginationContainer .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.75rem;
  }

  .pagination-info {
    width: 100%;
    order: 3;
  }
}
}

/* Modal Override */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-content h2 {
  color: #282828;
  font-family: 'BankGothic Lt BT', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #666666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #282828;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
  font-weight: 600;
}

.toast.success {
  background-color: #28a745;
  border-color: #1e7e34;
}

.toast.error {
  background-color: #dc3545;
  border-color: #bd2130;
}

.toast.info {
  background-color: #820000;
  border-color: #6b0000;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Search Section Responsive */
@media (max-width: 768px) {
  .toggle-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-grid,
  .filter-actions {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .search-grid.active,
  .filter-actions.active {
    max-height: 2000px;
  }

  .search-header {
    margin-bottom: 0;
  }

  .search-header + .search-grid {
    margin-top: 1.5rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .search-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-group {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }
}
