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

:root {
  --colonial-cream: #f5f1e8;
  --colonial-brown: #6b4423;
  --colonial-gold: #d4a574;
  --colonial-navy: #1e3a5f;
  --colonial-burgundy: #7a2828;
  --colonial-green: #4a5c3a;
  --text-dark: #2c2416;
  --text-light: #f5f1e8;
  --shadow: rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--colonial-cream);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.hero {
  background: linear-gradient(135deg, var(--colonial-navy) 0%, var(--colonial-burgundy) 100%);
  color: var(--text-light);
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 Q 25 25, 50 50 T 100 50" stroke="rgba(255,255,255,0.05)" fill="none" stroke-width="2"/></svg>');
  opacity: 0.3;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(100px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

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

.main-title {
  font-family: 'Cinzel', serif;
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.tagline {
  font-size: 1.8rem;
  margin-bottom: 15px;
  opacity: 0.95;
  font-weight: 600;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-style: italic;
}

.filter-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 30px 20px;
  background-color: rgba(107, 68, 35, 0.05);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--shadow);
}

.filter-btn {
  font-family: 'Cinzel', serif;
  padding: 12px 28px;
  border: 2px solid var(--colonial-brown);
  background-color: var(--colonial-cream);
  color: var(--colonial-brown);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  background-color: var(--colonial-brown);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.filter-btn.active {
  background-color: var(--colonial-burgundy);
  color: var(--text-light);
  border-color: var(--colonial-burgundy);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.region-section {
  margin-bottom: 80px;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.region-section.hidden {
  display: none;
}

.region-title {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: var(--colonial-navy);
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.region-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--colonial-gold), var(--colonial-burgundy));
  margin: 20px auto;
  border-radius: 2px;
}

.region-description {
  text-align: center;
  font-size: 1.4rem;
  color: var(--colonial-brown);
  margin-bottom: 50px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
  animation: gridFadeIn 1s ease-out;
}

@keyframes gridFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.property-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  opacity: 0;
  animation: cardAppear 0.6s ease-out forwards;
}

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

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }

.property-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.property-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.15);
}

.price-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--colonial-gold), var(--colonial-burgundy));
  color: white;
  padding: 12px 24px;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: priceFloat 3s ease-in-out infinite;
}

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

.property-content {
  padding: 25px;
}

.property-name {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--colonial-navy);
  margin-bottom: 10px;
  font-weight: 600;
}

.property-location {
  font-size: 1.1rem;
  color: var(--colonial-brown);
  margin-bottom: 8px;
  font-style: italic;
}

.establishment-info {
  font-size: 1rem;
  color: var(--colonial-burgundy);
  margin-bottom: 15px;
  font-weight: 600;
}

.property-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: justify;
}

.features {
  margin-bottom: 20px;
  background-color: rgba(212, 165, 116, 0.1);
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid var(--colonial-gold);
}

.features h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--colonial-navy);
  margin-bottom: 10px;
}

.features ul {
  list-style: none;
  padding-left: 0;
}

.features li {
  font-size: 1rem;
  padding: 6px 0;
  padding-left: 25px;
  position: relative;
  font-style: italic;
}

.features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--colonial-gold);
  font-size: 1.2rem;
}

.slogan {
  font-size: 1.15rem;
  color: var(--colonial-burgundy);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  padding: 10px;
  border-top: 1px solid rgba(212, 165, 116, 0.3);
  border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.details-btn {
  width: 100%;
  padding: 14px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--colonial-brown), var(--colonial-navy));
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--colonial-navy), var(--colonial-brown));
}

.footer {
  background: linear-gradient(135deg, var(--colonial-brown), var(--colonial-navy));
  color: var(--text-light);
  padding: 50px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-text {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-style: italic;
}

.footer-disclaimer {
  font-size: 0.95rem;
  opacity: 0.8;
  font-style: italic;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease;
}

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

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

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2.5rem;
  font-weight: 400;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--colonial-brown);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: rgba(107, 68, 35, 0.1);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.8rem;
  }

  .tagline {
    font-size: 1.3rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .hero {
    padding: 80px 20px;
  }

  .region-title {
    font-size: 2.2rem;
  }

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

  .filter-nav {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 25px;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2.2rem;
  }

  .property-name {
    font-size: 1.5rem;
  }

  .price-tag {
    font-size: 1.2rem;
    padding: 10px 18px;
  }
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #6772e5;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  margin-top: 20px;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: #5469d4;
}

.checkout-container {
  display: flex;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.checkout-left {
  width: 40%;
  background-color: #f6f9fc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.checkout-right {
  width: 60%;
  background-color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.left-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.strip-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #6772e5;
  margin-bottom: auto;
}

.back-link a, .powered-by a, .legal-links a {
    color: #6b7c93;
    text-decoration: none;
}

.back-link a:hover, .powered-by a:hover, .legal-links a:hover {
    text-decoration: underline;
}

.back-link {
    margin-bottom: 20px;
}

.powered-by {
    margin-bottom: 10px;
}

.legal-links {
    font-size: 0.8rem;
    color: #6b7c93;
}


.item-details {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.thumbnail {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.item-description {
  color: #6b7c93;
  margin-bottom: 20px;
}

.item-price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.next-btn {
  width: 100%;
  max-width: 400px;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #6772e5;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.next-btn:hover {
  background-color: #5469d4;
}

.next-btn.loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.next-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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


#legal-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

#legal-modal.show {
    display: flex;
}

#legal-modal .modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

#legal-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.error-message {
  display: none;
  text-align: left;
  padding: 20px;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.error-icon {
  flex: 2;
  text-align: center;
}

.error-icon svg {
  width: 50px;
  height: 50px;
  stroke: #ff5252;
}

.error-text {
  flex: 3;
}

.error-text h3 {
  margin-bottom: 10px;
}

.error-text p {
  color: #6b7c93;
}

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