/* Showroom Page Styles */
main.container {
  padding: 6rem 1rem 4rem;
}

/* Showroom Header */
.showroom-header {
  text-align: center;
  margin-bottom: 3rem;
}

.showroom-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.showroom-header p {
  font-size: 1.125rem;
  color: var(--brand-darkgray);
  max-width: 700px;
  margin: 0 auto;
}

/* Showroom Grid Layout */
.showroom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .showroom-grid {
    grid-template-columns: 1fr 2fr;
  }
}

/* Showroom List */
.showroom-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showroom-search {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.showroom-list {
  max-height: 450px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom scrollbar */
.showroom-list::-webkit-scrollbar {
  width: 6px;
}

.showroom-list::-webkit-scrollbar-track {
  background: var(--brand-lightgray);
  border-radius: 10px;
}

.showroom-list::-webkit-scrollbar-thumb {
  background: var(--brand-gray);
  border-radius: 10px;
}

.showroom-list::-webkit-scrollbar-thumb:hover {
  background: var(--brand-darkgray);
}

/* Showroom Card */
.showroom-card {
  background-color: var(--brand-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.showroom-card:hover {
  box-shadow: var(--shadow-md);
}

.showroom-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.showroom-info {
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--brand-darkgray);
}

.info-item i {
  color: var(--brand-red);
  margin-right: 0.5rem;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.showroom-card .btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showroom-card .btn i {
  margin-right: 0.5rem;
}

.empty-results {
  text-align: center;
  padding: 2rem 0;
}

.empty-results p {
  color: var(--brand-darkgray);
  margin-bottom: 0.5rem;
}

.empty-results .suggestion {
  font-size: 0.875rem;
}

/* Showroom Map */
.showroom-map-container {
  height: 500px;
}

.showroom-map {
  width: 100%;
  height: 100%;
  background-color: var(--brand-lightgray);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--brand-darkgray);
}

/* Subscribe Section */
.subscribe-section {
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.subscribe-container {
  max-width: 900px;
  margin: 0 auto;
}

.subscribe-content {
  text-align: center;
}

.subscribe-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subscribe-content p {
  color: var(--brand-darkgray);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Styles */
.subscribe-form {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-red);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-checkbox input {
  margin-right: 0.5rem;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--brand-darkgray);
}

.subscribe-form .btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
}

.privacy-notice {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--brand-darkgray);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  background-color: var(--brand-white);
  color: var(--brand-black);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3s forwards;
}

.toast-content {
  display: flex;
  align-items: center;
}

.toast-icon {
  margin-right: 0.75rem;
  color: var(--brand-red);
}

.toast-message {
  font-weight: 500;
}

.toast-close {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .showroom-header h1 {
    font-size: 2rem;
  }

  .subscribe-content h2 {
    font-size: 1.75rem;
  }

  .showroom-map-container {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .showroom-header h1 {
    font-size: 1.75rem;
  }

  .showroom-map-container {
    height: 300px;
  }
}
