/* ======= Guest Page Specific Styles ======= */

/* Guest Badge */
.guest-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 2px solid #fbbf24;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  }
}

/* Hero CTA Text */
.hero-cta-text {
  font-size: 16px;
  color: #fbbf24;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Enhanced Search Form for Guest */
#searchForm {
  position: relative;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  z-index: 2;
  opacity: 0.5;
}

#searchForm input {
  padding-left: 50px;
  cursor: not-allowed;
  opacity: 0.7;
  background: rgba(255,255,255,0.8);
}

.btn-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lock-icon {
  font-size: 14px;
}

/* Disabled State */
.guest-disabled {
  position: relative;
}

.guest-disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.05);
  cursor: not-allowed;
  border-radius: 12px;
  pointer-events: none;
}

.guest-disabled input,
.guest-disabled textarea,
.guest-disabled button {
  cursor: pointer !important;
}

/* Quick Chips Enhancement */
.chips .chip {
  position: relative;
  transition: all 0.3s ease;
}

.chips .chip:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Auth Buttons in Header */
.btn-auth {
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-register {
  background: #fbbf24;
  color: #0e3b3a;
}

.btn-register:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.btn-login {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-login:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
}

/* ======= Features Preview Section ======= */
.features-preview {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #fff 0%, #f8fafc 100%);
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #0e3b3a;
  font-weight: 800;
  margin-bottom: 50px;
  line-height: 1.3;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(19, 163, 155, 0.15);
  border-color: #13a39b;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 22px;
  color: #0e3b3a;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
}

/* ======= Map Preview with Overlay ======= */
.map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.map-preview {
  filter: blur(8px);
  opacity: 0.4;
  pointer-events: none;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 59, 58, 0.7);
  backdrop-filter: blur(2px);
  z-index: 10;
}

.map-overlay-content {
  text-align: center;
  color: #fff;
  padding: 40px;
  max-width: 500px;
}

.overlay-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.map-overlay-content h3 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 800;
}

.map-overlay-content p {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.overlay-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======= Comments Preview ======= */
.comments-preview-notice {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.comments-preview-notice p {
  margin: 0;
  color: #0e3b3a;
  font-weight: 600;
  font-size: 15px;
}

.comments-preview-notice a {
  color: #0e3b3a;
  text-decoration: underline;
  font-weight: 700;
}

.comments-preview-notice a:hover {
  color: #000;
}

.comments-preview {
  position: relative;
  max-height: 500px;
  overflow: hidden;
}

.preview-blur {
  filter: blur(1px);
  opacity: 0.6;
  pointer-events: none;
}

.comments-more-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, 
    rgba(248, 250, 252, 0) 0%, 
    rgba(248, 250, 252, 0.8) 40%,
    rgba(248, 250, 252, 1) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}

.more-overlay-content {
  text-align: center;
}

.more-overlay-content p {
  font-size: 18px;
  color: #0e3b3a;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ======= CTA Section ======= */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0e3b3a 0%, #13a39b 100%);
  text-align: center;
  color: #fff;
}

.cta-content h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======= Enhanced Buttons ======= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.btn-primary {
  background: #fbbf24;
  color: #0e3b3a;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ======= Auth Modal ======= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

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

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: rotate(90deg);
}

.modal-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.modal-content h3 {
  font-size: 28px;
  color: #0e3b3a;
  margin-bottom: 12px;
  font-weight: 800;
}

.modal-content p {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======= Responsive Design ======= */
@media (max-width: 768px) {
  .guest-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

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

  .feature-card {
    padding: 24px;
  }

  .feature-icon {
    font-size: 40px;
  }

  .map-overlay-content {
    padding: 30px 20px;
  }

  .map-overlay-content h3 {
    font-size: 24px;
  }

  .overlay-icon {
    font-size: 48px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
  }

  .modal-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .modal-content h3 {
    font-size: 24px;
  }

  .modal-icon {
    font-size: 48px;
  }

  .overlay-actions,
  .modal-actions {
    flex-direction: column;
  }

  .overlay-actions .btn,
  .modal-actions .btn {
    width: 100%;
  }

  #searchForm {
    gap: 8px;
  }

  .search-wrapper {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .features-preview {
    padding: 50px 15px;
  }

  .cta-section {
    padding: 50px 15px;
  }

  .hero-cta-text {
    font-size: 14px;
  }
}