@import "./base.css";
@import "./components.css";
@import "./nav.css";

body {
  max-width: var(--content-stop);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

body > h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

body > h3 {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

body > p {
  font-size: var(--font-size-sm);
}

/* Desktop: large photo left, all text right */
@media (min-width: 768px) {
  body {
    padding: var(--space-8) var(--space-8);
  }

  .has-photo {
    display: grid;
    grid-template-columns: minmax(420px, 52%) 1fr;
    column-gap: var(--space-8);
    align-items: start;
  }

  .has-photo .place-photo {
    grid-column: 1;
    width: 100%;
    max-height: none;
    margin: 0;
    aspect-ratio: 4 / 3;
    position: sticky;
    top: var(--space-6);
    border-radius: var(--radius-lg);
  }

  .has-photo .day-block-body {
    grid-column: 2;
  }
}

/* Mobile: text first, then photo */
@media (max-width: 767px) {
  body {
    padding: var(--space-5) var(--space-4);
  }

  .has-photo {
    display: flex;
    flex-direction: column;
  }

  .has-photo .day-block-body {
    order: 1;
  }

  .has-photo .place-photo {
    order: 2;
    max-height: 280px;
    border-radius: var(--radius-md);
  }
}

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

  .activity,
  .food,
  .kids,
  .travel,
  .todo,
  .location {
    padding: var(--space-4) var(--space-5);
  }
}
