/* ================================
   Tasteful Kind – Responsive Style
   ================================ */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color: #1A1A1A;
  background-color: #FFFFFF;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background: #BFE6FF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navigation Layout */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4%;
  position: relative;
}

.logo {
  font-size: 1.7rem;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: 1px;
  transform: translateX(-8px);
}

.logo-tasteful {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.logo-kind {
  font-family: "Beau Rivage", cursive;
  font-weight: 400;
  font-size: 2rem;
  color: #007bf7;
  margin-left: 4px;
  position: relative;
  top: 1px;
}

/* Nav Links Container */
.nav-links-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links-container button {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-links-container button:first-child {
  background: transparent;
  color: #1A1A1A;
}

.nav-links-container button:first-child:hover {
  color: #007ACC;
}

.nav-links-container button:last-child {
  background: #1A1A1A;
  color: #FFFFFF;
}

.nav-links-container button:last-child:hover {
  background: #007ACC;
}

/* Burger Menu (hidden by default) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.burger div {
  width: 100%;
  height: 3px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Checkbox Hack for Toggle */
#menu-toggle {
  display: none;
}

#menu-toggle:checked + .burger div:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
#menu-toggle:checked + .burger div:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .burger div:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, #BFE6FF 0%, #FFFFFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  padding: 2rem;
}

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

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #007ACC;
}

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

.btn-secondary {
  background: #E5E7EB;
  color: #1A1A1A;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: #D1D5DB;
}

/* Section Titles */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1A1A1A;
}

/* About Section */
.about {
  padding: 4rem 0;
  background: #FFFFFF;
}

.about p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #444;
}

/* Locations Section */
.locations-section {
  padding: 4rem 0;
  background-color: #F9FBFC;
}

/* Filters Container */
.filters-container {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.filter-item label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
  font-size: 0.9rem;
}

.filter-item select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #1A1A1A;
  background: #FFFFFF;
  transition: border-color 0.3s ease;
}

.filter-item select:focus {
  outline: none;
  border-color: #007ACC;
}

.filter-item button {
  margin-top: 1.7rem;
  width: 100%;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.3rem;
  margin: 1rem;
  color: #1A1A1A;
}

.card p {
  margin: 0 1rem 1.5rem;
  color: #555;
}

/* Footer */
footer {
  background: #BFE6FF;
  text-align: center;
  padding: 2rem 1rem;
  color: #1A1A1A;
  margin-top: 4rem;
}

footer a {
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #007ACC;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #E5E7EB;
  border-top: 4px solid #007ACC;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-overlay p {
  margin-top: 1rem;
  font-weight: 500;
  color: #1A1A1A;
}

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

.hidden {
  display: none !important;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-large {
  max-width: 700px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #F3F4F6;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1A1A1A;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #9CA3AF;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.modal-close:hover {
  color: #1A1A1A;
}

/* Form Styles */
form {
  padding: 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #F3F4F6;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1A1A1A;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #1A1A1A;
  background: #FFFFFF;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #007ACC;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 0.8rem;
  border: 2px dashed #E5E7EB;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1A1A1A;
  background: #F9FAFB;
  cursor: pointer;
}

.form-group small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #6B7280;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #007ACC;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Modals */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #9CA3AF;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #6B7280;
}

/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links-container {
    position: absolute;
    top: 64px;
    right: 4%;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  #menu-toggle:checked ~ .nav-links-container {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links-container button {
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-width: 95%;
  }

  .radio-group,
  .checkbox-group {
    flex-direction: column;
    gap: 1rem;
  }
}