/* =============================================
   Guia Digital do Hóspede - Vila Pitangueira
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1a7a5e;
  --primary-light: #2a9d76;
  --primary-dark: #0f5c44;
  --accent: #e8a838;
  --accent-light: #f5c563;
  --bg: #f0f4f1;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --text: #1e293b;
  --text-light: #64748b;
  --text-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 50%;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 520px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Background Pattern ---- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(26, 122, 94, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(232, 168, 56, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(26, 122, 94, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Hero Header ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  color: var(--text-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* ---- Main Content ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: -1.5rem auto 2rem;
  padding: 0 1rem;
}

/* ---- Quick Info Bar ---- */
.quick-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.quick-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-card .icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.quick-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
}

.quick-card .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

/* ---- WiFi Card (Special) ---- */
.wifi-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.wifi-card::before {
  content: '📶';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 5rem;
  opacity: 0.1;
}

.wifi-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.wifi-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wifi-detail .wifi-label {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 500;
}

.wifi-detail .wifi-value {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  letter-spacing: 0.5px;
}

.wifi-copy-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 8px;
  font-weight: 500;
}

.wifi-copy-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.wifi-copy-btn.copied {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---- Section Cards ---- */
.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: slideUp 0.5s ease-out both;
}

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

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.section-header:hover {
  background: rgba(26, 122, 94, 0.03);
}

.section-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(26, 122, 94, 0.1), rgba(26, 122, 94, 0.05));
  flex-shrink: 0;
}

.section-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.section-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.section-card.active .section-chevron {
  transform: rotate(180deg);
}

.section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card.active .section-body {
  max-height: 2000px;
}

.section-content {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

/* ---- Markdown Content Styles ---- */
.section-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.section-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.section-content p {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.section-content ul,
.section-content ol {
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.section-content li {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.section-content strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.section-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.85rem;
}

.section-content th,
.section-content td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section-content th {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-content blockquote {
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.08), rgba(232, 168, 56, 0.03));
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.8rem 0;
  font-size: 0.88rem;
  color: #6b5c10;
}

.section-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 1rem 0;
}

/* ---- Feedback Form ---- */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
}

.feedback-form input,
.feedback-form textarea {
  font-family: 'Inter', sans-serif;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  width: 100%;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 94, 0.1);
}

.feedback-form textarea {
  min-height: 100px;
  resize: vertical;
}

.star-rating {
  display: flex;
  gap: 6px;
  font-size: 1.8rem;
  cursor: pointer;
}

.star-rating .star {
  transition: var(--transition);
  filter: grayscale(1);
  opacity: 0.4;
}

.star-rating .star.active {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

.star-rating .star:hover {
  transform: scale(1.15);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 122, 94, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.feedback-success {
  text-align: center;
  padding: 1.5rem;
  color: var(--primary);
  font-weight: 500;
}

/* ---- Review CTA ---- */
.review-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
}

.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #5c3d00;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.3);
}

.btn-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(232, 168, 56, 0.4);
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-light);
  font-size: 0.8rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.footer-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* ---- Animations ---- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-card:nth-child(1) {
  animation-delay: 0.05s;
}

.section-card:nth-child(2) {
  animation-delay: 0.1s;
}

.section-card:nth-child(3) {
  animation-delay: 0.15s;
}

.section-card:nth-child(4) {
  animation-delay: 0.2s;
}

.section-card:nth-child(5) {
  animation-delay: 0.25s;
}

.section-card:nth-child(6) {
  animation-delay: 0.3s;
}

.section-card:nth-child(7) {
  animation-delay: 0.35s;
}

.section-card:nth-child(8) {
  animation-delay: 0.4s;
}

.section-card:nth-child(9) {
  animation-delay: 0.45s;
}

.section-card:nth-child(10) {
  animation-delay: 0.5s;
}

/* ---- Loading ---- */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(26, 122, 94, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---- Media Queries ---- */
@media (min-width: 600px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---- Maps Embed ---- */
.map-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* ---- Direction Link ---- */
.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4285f4;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  transition: var(--transition);
}

.directions-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

/* ---- New Rating Styles ---- */
.rating-container {
  text-align: center;
  padding: 1rem 0;
  animation: fadeIn 0.5s ease;
}

.stars-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.5rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: grayscale(1) opacity(0.35);
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.star-btn:hover {
  transform: scale(1.15);
}

.star-btn.filled {
  filter: grayscale(0) opacity(1);
  animation: popStar 0.3s ease;
}

.rating-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  min-height: 1.5em;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
}

/* Google Redirect */
.google-redirect {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(66, 133, 244, 0.02));
  border-radius: var(--radius);
  border: 1px solid rgba(66, 133, 244, 0.2);
  animation: fadeIn 0.4s ease;
}

.google-redirect.show {
  display: block;
}

.google-redirect .celebration {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  animation: bounce 0.6s ease;
}

.google-redirect p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 1rem;
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
}

.btn-google:hover {
  background: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.35);
}

.skip-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.8;
}

/* Feedback Form Visibility */
.feedback-form-container {
  display: none;
  animation: fadeIn 0.4s ease;
}

.feedback-form-container.show {
  display: block;
}

.feedback-intro {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: center;
}

/* Success State */
.success-state {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeIn 0.5s ease;
}

.success-state.show {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
  animation: scaleIn 0.4s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* Animations */
@keyframes popStar {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-12px);
  }

  60% {
    transform: translateY(-6px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* Language Selector */
.language-selector {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.lang-btn {
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  filter: grayscale(80%);
}

.lang-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
  filter: grayscale(0%);
}

.lang-btn.active {
  opacity: 1;
  transform: scale(1.1);
  filter: grayscale(0%);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 480px) {
  .language-selector {
    top: 10px;
    right: 10px;
    gap: 8px;
  }

  .lang-btn {
    font-size: 1.5rem;
  }
}