* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #1c140a, #3e2f1c, #5a4326, #7b5e38, 1);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: fadeIn 0.5s ease-in;
}

header {
  background: linear-gradient(135deg, #302211, #493821 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.2em;
  opacity: 0.95;
  font-weight: 300;
}

.search-section {
  padding: 30px;
  background: #faf9f8;
  border-bottom: 3px solid #efede9;
}

.search-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #575349;
  font-size: 0.95em;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e6e3de;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s ease;
  font-family: inherit;
  background: white;
}

input:focus,
select:focus {
  outline: none;
  border-color: #473420;
  box-shadow: 0 0 0 3px rgba(234, 190, 102, 0.1);
}

input::placeholder {
  color: #bdb8ad;
}

button {
  padding: 14px 32px;
  background: linear-gradient(135deg, #302211, #493821 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(234, 175, 102, 0.4);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 175, 102, 0.5);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.filters {
  padding: 20px 30px;
  background: white;
  border-bottom: 2px solid #efede9;
  display: none;
  animation: slideDown 0.3s ease;
}

.filters.active {
  display: block;
}

.filter-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-item label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-item input[type="checkbox"] {
  width: auto;
  cursor: pointer;
  transform: scale(1.2);
}

.filter-item input[type="text"] {
  min-width: 250px;
  padding: 10px 14px;
}

.results-section {
  padding: 30px;
  min-height: 400px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #eab766;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #3e2f1c 0%, #5a4326 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.card-title {
  font-size: 1.4em;
  color: #292721;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.card-badge {
  background: linear-gradient(135deg, #3e2f1c 0%, #5a4326 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(234, 188, 102, 0.3);
}

.card-body {
  color: #7d7b6c;
  line-height: 1.6;
  flex: 1;
}

.card-body p {
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.95em;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #efeee9;
}

.card-meta span {
  color: #575449;
}

.card-address {
  font-size: 0.9em;
  color: #6c757d;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #efeee9;
}

.card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #efeee9;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #faf9f8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  color: #495057;
  border: 1px solid #efe9e9;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #efe9e9;
}

.btn-small {
  padding: 8px 14px;
  background: #fafaf8;
  color: #575449;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #efe9e9;
}

.btn-small:hover {
  background: #eac566;
  color: white;
  border-color: #eabe66;
  transform: translateY(-2px);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 3px solid #e9ecef;
  flex-wrap: wrap;
}

.tab {
  padding: 14px 24px;
  background: transparent;
  border: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-weight: 600;
  color: #7d796c;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1em;
}

.tab:hover {
  color: #eac066;
  background: #f8f9fa;
}

.tab.active {
  background: linear-gradient(135deg, #3e2f1c 0%, #5a4326 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(234, 199, 102, 0.3);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #3e2f1c 0%, #5a4326 100%);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.loading.active {
  display: block;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #eac266;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading p {
  color: #7d796c;
  font-size: 1.1em;
}

.error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: none;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.error.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #7d786c;
}

.no-results h2 {
  font-size: 2em;
  margin-bottom: 12px;
  color: #7d786c;
}

.no-results h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #7d786c;
}

.no-results p {
  font-size: 1.1em;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 2em;
  }

  .subtitle {
    font-size: 1em;
  }

  header {
    padding: 30px 20px;
  }

  .search-section {
    padding: 20px;
  }

  .search-form {
    flex-direction: column;
  }

  .form-group {
    width: 100%;
    min-width: auto;
  }

  button {
    width: 100%;
  }

  .filters {
    padding: 15px 20px;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-item input[type="text"] {
    min-width: 100%;
  }

  .results-section {
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    width: 100%;
    text-align: center;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn-small {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6em;
  }

  .container {
    border-radius: 10px;
  }

  input,
  select,
  button {
    font-size: 0.95em;
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.attribution {
  padding: 25px;
  background: #f8f9fa;
  text-align: center;
  color: #6c757d;
  font-size: 0.9em;
  border-top: 2px solid #e9ecef;
}

.attribution p {
  margin: 5px 0;
}

.attribution a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.attribution a:hover {
  color: #764ba2;
  text-decoration: underline;
}

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

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}
